locust 2.37.14.dev5__py3-none-any.whl → 2.37.14.dev8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- locust/_version.py +2 -2
- locust/webui/dist/assets/index-B6pZm8wd.js +266 -0
- locust/webui/dist/auth.html +1 -1
- locust/webui/dist/index.html +1 -1
- locust/webui/dist/report.html +9 -9
- {locust-2.37.14.dev5.dist-info → locust-2.37.14.dev8.dist-info}/METADATA +2 -2
- {locust-2.37.14.dev5.dist-info → locust-2.37.14.dev8.dist-info}/RECORD +10 -10
- locust/webui/dist/assets/index-BndfXUOM.js +0 -249
- {locust-2.37.14.dev5.dist-info → locust-2.37.14.dev8.dist-info}/WHEEL +0 -0
- {locust-2.37.14.dev5.dist-info → locust-2.37.14.dev8.dist-info}/entry_points.txt +0 -0
- {locust-2.37.14.dev5.dist-info → locust-2.37.14.dev8.dist-info}/licenses/LICENSE +0 -0
locust/webui/dist/report.html
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
<meta name="theme-color" content="#000000" />
|
10
10
|
|
11
11
|
<title>Locust</title>
|
12
|
-
<script type="module" crossorigin>var e=Object.defineProperty,t=(t,n,r)=>((t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r)(t,"symbol"!=typeof n?n+"":n,r);function n(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var i,o,a,s,l={exports:{}},u={},c={exports:{}},d={};function h(){if(i)return d;i=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function v(){}function x(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var
|
12
|
+
<script type="module" crossorigin>var e=Object.defineProperty,t=(t,n,r)=>((t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r)(t,"symbol"!=typeof n?n+"":n,r);function n(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var i,o,a,s,l={exports:{}},u={},c={exports:{}},d={};function h(){if(i)return d;i=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function v(){}function x(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var _=x.prototype=new v;_.constructor=x,g(_,y.prototype),_.isPureReactComponent=!0;var b=Array.isArray,w=Object.prototype.hasOwnProperty,S={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function C(t,n,r){var i,o={},a=null,s=null;if(null!=n)for(i in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)w.call(n,i)&&!k.hasOwnProperty(i)&&(o[i]=n[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(t&&t.defaultProps)for(i in l=t.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:e,type:t,key:a,ref:s,props:o,_owner:S.current}}function M(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var T=/\/+/g;function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function P(n,r,i,o,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0}}if(l)return a=a(l=n),n=""===o?"."+I(l,0):o,b(a)?(i="",null!=n&&(i=n.replace(T,"$&/")+"/"),P(a,r,i,"",function(e){return e})):null!=a&&(M(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+n)),r.push(a)),1;if(l=0,o=""===o?".":o+":",b(n))for(var u=0;u<n.length;u++){var c=o+I(s=n[u],u);l+=P(s,r,i,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=P(s=s.value,r,i,c=o+I(s,u++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function D(e,t,n){if(null==e)return e;var r=[],i=0;return P(e,r,"","",function(e){return t.call(n,e,i++)}),r}function A(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var E={current:null},R={transition:null},O={ReactCurrentDispatcher:E,ReactCurrentBatchConfig:R,ReactCurrentOwner:S};function L(){throw Error("act(...) is not supported in production builds of React.")}return d.Children={map:D,forEach:function(e,t,n){D(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return D(e,function(){t++}),t},toArray:function(e){return D(e,function(e){return e})||[]},only:function(e){if(!M(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},d.Component=y,d.Fragment=n,d.Profiler=o,d.PureComponent=x,d.StrictMode=r,d.Suspense=u,d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,d.act=L,d.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var i=g({},t.props),o=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=S.current),void 0!==n.key&&(o=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)w.call(n,u)&&!k.hasOwnProperty(u)&&(i[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:e,type:t.type,key:o,ref:a,props:i,_owner:s}},d.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},d.createElement=C,d.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},d.createRef=function(){return{current:null}},d.forwardRef=function(e){return{$$typeof:l,render:e}},d.isValidElement=M,d.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:A}},d.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},d.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},d.unstable_act=L,d.useCallback=function(e,t){return E.current.useCallback(e,t)},d.useContext=function(e){return E.current.useContext(e)},d.useDebugValue=function(){},d.useDeferredValue=function(e){return E.current.useDeferredValue(e)},d.useEffect=function(e,t){return E.current.useEffect(e,t)},d.useId=function(){return E.current.useId()},d.useImperativeHandle=function(e,t,n){return E.current.useImperativeHandle(e,t,n)},d.useInsertionEffect=function(e,t){return E.current.useInsertionEffect(e,t)},d.useLayoutEffect=function(e,t){return E.current.useLayoutEffect(e,t)},d.useMemo=function(e,t){return E.current.useMemo(e,t)},d.useReducer=function(e,t,n){return E.current.useReducer(e,t,n)},d.useRef=function(e){return E.current.useRef(e)},d.useState=function(e){return E.current.useState(e)},d.useSyncExternalStore=function(e,t,n){return E.current.useSyncExternalStore(e,t,n)},d.useTransition=function(){return E.current.useTransition()},d.version="18.3.1",d}function p(){return o||(o=1,c.exports=h()),c.exports}
|
13
13
|
/**
|
14
14
|
* @license React
|
15
15
|
* react-jsx-runtime.production.min.js
|
@@ -18,7 +18,7 @@
|
|
18
18
|
*
|
19
19
|
* This source code is licensed under the MIT license found in the
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
21
|
-
*/var f,g,m,y,v,x=(s||(s=1,l.exports=function(){if(a)return u;a=1;var e=p(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!o.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:i.current}}return u.Fragment=n,u.jsx=s,u.jsxs=s,u}()),l.exports),
|
21
|
+
*/var f,g,m,y,v,x=(s||(s=1,l.exports=function(){if(a)return u;a=1;var e=p(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!o.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:i.current}}return u.Fragment=n,u.jsx=s,u.jsxs=s,u}()),l.exports),_={},b={exports:{}},w={},S={exports:{}},k={};function C(){return g||(g=1,S.exports=(f||(f=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,h=3,p=!1,f=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var i=n(u);null!==i;){if(null===i.callback)r(u);else{if(!(i.startTime<=e))break;r(u),i.sortIndex=i.expirationTime,t(l,i)}i=n(u)}}function _(e){if(g=!1,x(e),!f)if(null!==n(l))f=!0,E(b);else{var t=n(u);null!==t&&R(_,t.startTime-e)}}function b(t,i){f=!1,g&&(g=!1,y(C),C=-1),p=!0;var o=h;try{for(x(i),d=n(l);null!==d&&(!(d.expirationTime>i)||t&&!I());){var a=d.callback;if("function"==typeof a){d.callback=null,h=d.priorityLevel;var s=a(d.expirationTime<=i);i=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),x(i)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var m=n(u);null!==m&&R(_,m.startTime-i),c=!1}return c}finally{d=null,h=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,S=!1,k=null,C=-1,M=5,T=-1;function I(){return!(e.unstable_now()-T<M)}function P(){if(null!==k){var t=e.unstable_now();T=t;var n=!0;try{n=k(!0,t)}finally{n?w():(S=!1,k=null)}}else S=!1}if("function"==typeof v)w=function(){v(P)};else if("undefined"!=typeof MessageChannel){var D=new MessageChannel,A=D.port2;D.port1.onmessage=P,w=function(){A.postMessage(null)}}else w=function(){m(P,0)};function E(e){k=e,S||(S=!0,w())}function R(t,n){C=m(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_continueExecution=function(){f||p||(f=!0,E(b))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},e.unstable_scheduleCallback=function(r,i,o){var a=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:i,priorityLevel:r,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(r.sortIndex=o,t(u,r),null===n(l)&&r===n(u)&&(g?(y(C),C=-1):g=!0,R(_,o-a))):(r.sortIndex=s,t(l,r),f||p||(f=!0,E(b))),r},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}}(k)),k)),S.exports}
|
22
22
|
/**
|
23
23
|
* @license React
|
24
24
|
* react-dom.production.min.js
|
@@ -27,7 +27,7 @@
|
|
27
27
|
*
|
28
28
|
* This source code is licensed under the MIT license found in the
|
29
29
|
* LICENSE file in the root directory of this source tree.
|
30
|
-
*/function T(){if(m)return w;m=1;var e=p(),t=C();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function o(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(i[e]=t,e=0;e<t.length;e++)r.add(t[e])}var s=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),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={},d={};function h(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var f={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){f[e]=new h(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];f[t]=new h(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){f[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){f[e]=new h(e,2,!1,e,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(e){f[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){f[e]=new h(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){f[e]=new h(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){f[e]=new h(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){f[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)});var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function v(e,t,n,r){var i=f.hasOwnProperty(t)?f[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!l.call(d,e)||!l.call(c,e)&&(u.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(e){var t=e.replace(g,y);f[t]=new h(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(g,y);f[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(g,y);f[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){f[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)}),f.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){f[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)});var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.element"),_=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),I=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),L=Symbol.iterator;function N(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var z,B=Object.assign;function F(e){if(void 0===z)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var $=!1;function W(e,t){if(!e||$)return"";$=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"==typeof u.stack){for(var i=u.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{$=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function j(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1);case 11:return e=W(e.type.render,!1);case 1:return e=W(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case _:return"Portal";case T:return"Profiler";case k:return"StrictMode";case D:return"Suspense";case A:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case I:return(e.displayName||"Context")+".Consumer";case M:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case E:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return V(e(t))}catch(n){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function G(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Z(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function J(e,t){Q(e,t);var n=G(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?te(e,t.type,n):t.hasOwnProperty("defaultValue")&&te(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function te(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ne=Array.isArray;function re(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(ne(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:G(r)}}function ae(e,t){var n=G(t.value),r=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){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 ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,de,he=(de=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return de(e,t)})}:de);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={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"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ye(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(fe).forEach(function(e){ge.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]})});var ve=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xe(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){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 _e=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,ke=null,Ce=null;function Te(e){if(e=bi(e)){if("function"!=typeof Se)throw Error(n(280));var t=e.stateNode;t&&(t=wi(t),Se(e.stateNode,e.type,t))}}function Me(e){ke?Ce?Ce.push(e):Ce=[e]:ke=e}function Ie(){if(ke){var e=ke,t=Ce;if(Ce=ke=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Pe(e,t){return e(t)}function De(){}var Ae=!1;function Ee(e,t,n){if(Ae)return e(t,n);Ae=!0;try{return Pe(e,t,n)}finally{Ae=!1,(null!==ke||null!==Ce)&&(De(),Ie())}}function Re(e,t){var r=e.stateNode;if(null===r)return null;var i=wi(r);if(null===i)return null;r=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Oe=!1;if(s)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(de){Oe=!1}function Ne(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var ze=!1,Be=null,Fe=!1,$e=null,We={onError:function(e){ze=!0,Be=e}};function je(e,t,n,r,i,o,a,s,l){ze=!1,Be=null,Ne.apply(We,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ge(e){if(Ve(e)!==e)throw Error(n(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,i=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(i=o.return)){r=i;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return Ge(o),e;if(a===i)return Ge(o),t;a=a.sibling}throw Error(n(188))}if(r.return!==i.return)r=o,i=a;else{for(var s=!1,l=o.child;l;){if(l===r){s=!0,r=o,i=a;break}if(l===i){s=!0,i=o,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,i=o;break}if(l===i){s=!0,i=a,r=o;break}l=l.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==i)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?Xe(e):null}function Xe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Xe(e);if(null!==t)return t;e=e.sibling}return null}var Ye=t.unstable_scheduleCallback,qe=t.unstable_cancelCallback,Ke=t.unstable_shouldYield,Ze=t.unstable_requestPaint,Qe=t.unstable_now,Je=t.unstable_getCurrentPriorityLevel,et=t.unstable_ImmediatePriority,tt=t.unstable_UserBlockingPriority,nt=t.unstable_NormalPriority,rt=t.unstable_LowPriority,it=t.unstable_IdlePriority,ot=null,at=null;var st=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/ut|0)|0},lt=Math.log,ut=Math.LN2;var ct=64,dt=4194304;function ht(e){switch(e&-e){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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=ht(s):0!==(o&=a)&&(r=ht(o))}else 0!==(a=n&~i)?r=ht(a):0!==o&&(r=ht(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-st(t)),r|=e[n],t&=~i;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+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 t+5e3;default:return-1}}function gt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return!(4194240&(ct<<=1))&&(ct=64),e}function yt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function xt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function _t(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,St,kt,Ct,Tt,Mt=!1,It=[],Pt=null,Dt=null,At=null,Et=new Map,Rt=new Map,Ot=[],Lt="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 Nt(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":Dt=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":Et.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function zt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Bt(e){var t=xi(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Tt(e.priority,function(){kt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);_e=r,n.target.dispatchEvent(r),_e=null,t.shift()}return!0}function $t(e,t,n){Ft(e)&&n.delete(t)}function Wt(){Mt=!1,null!==Pt&&Ft(Pt)&&(Pt=null),null!==Dt&&Ft(Dt)&&(Dt=null),null!==At&&Ft(At)&&(At=null),Et.forEach($t),Rt.forEach($t)}function jt(e,n){e.blockedOn===n&&(e.blockedOn=null,Mt||(Mt=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Wt)))}function Vt(e){function t(t){return jt(t,e)}if(0<It.length){jt(It[0],e);for(var n=1;n<It.length;n++){var r=It[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Pt&&jt(Pt,e),null!==Dt&&jt(Dt,e),null!==At&&jt(At,e),Et.forEach(t),Rt.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)Bt(n),null===n.blockedOn&&Ot.shift()}var Ht=x.ReactCurrentBatchConfig,Gt=!0;function Ut(e,t,n,r){var i=bt,o=Ht.transition;Ht.transition=null;try{bt=1,Yt(e,t,n,r)}finally{bt=i,Ht.transition=o}}function Xt(e,t,n,r){var i=bt,o=Ht.transition;Ht.transition=null;try{bt=4,Yt(e,t,n,r)}finally{bt=i,Ht.transition=o}}function Yt(e,t,n,r){if(Gt){var i=Kt(e,t,n,r);if(null===i)Gr(e,t,r,qt,n),Nt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Pt=zt(Pt,e,t,n,r,i),!0;case"dragenter":return Dt=zt(Dt,e,t,n,r,i),!0;case"mouseover":return At=zt(At,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Et.set(o,zt(Et.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Rt.set(o,zt(Rt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Nt(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&wt(o),null===(o=Kt(e,t,n,r))&&Gr(e,t,r,qt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Gr(e,t,r,null,n)}}var qt=null;function Kt(e,t,n,r){if(qt=null,null!==(e=xi(e=we(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return qt=e,null}function Zt(e){switch(e){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(Je()){case et:return 1;case tt:return 4;case nt:case rt:return 16;case it:return 536870912;default:return 16}default:return 16}}var Qt=null,Jt=null,en=null;function tn(){if(en)return en;var e,t,n=Jt,r=n.length,i="value"in Qt?Qt.value:Qt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return en=i.slice(e,1<t?1-t:void 0)}function nn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rn(){return!0}function on(){return!1}function an(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?rn:on,this.isPropagationStopped=on,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rn)},persist:function(){},isPersistent:rn}),t}var sn,ln,un,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=an(cn),hn=B({},cn,{view:0,detail:0}),pn=an(hn),fn=B({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(sn=e.screenX-un.screenX,ln=e.screenY-un.screenY):ln=sn=0,un=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),gn=an(fn),mn=an(B({},fn,{dataTransfer:0})),yn=an(B({},hn,{relatedTarget:0})),vn=an(B({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),xn=B({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=an(xn),_n=an(B({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={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"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Tn(){return Cn}var Mn=B({},hn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=nn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?nn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?nn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),In=an(Mn),Pn=an(B({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Dn=an(B({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),An=an(B({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),En=B({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=an(En),On=[9,13,27,32],Ln=s&&"CompositionEvent"in window,Nn=null;s&&"documentMode"in document&&(Nn=document.documentMode);var zn=s&&"TextEvent"in window&&!Nn,Bn=s&&(!Ln||Nn&&8<Nn&&11>=Nn),Fn=String.fromCharCode(32),$n=!1;function Wn(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1;var Hn={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 Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Un(e,t,n,r){Me(r),0<(t=Xr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Xn=null,Yn=null;function qn(e){Fr(e,0)}function Kn(e){if(Y(_i(e)))return e}function Zn(e,t){if("change"===e)return t}var Qn=!1;if(s){var Jn;if(s){var er="oninput"in document;if(!er){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),er="function"==typeof tr.oninput}Jn=er}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function nr(){Xn&&(Xn.detachEvent("onpropertychange",rr),Yn=Xn=null)}function rr(e){if("value"===e.propertyName&&Kn(Yn)){var t=[];Un(t,Yn,e,we(e)),Ee(qn,t)}}function ir(e,t,n){"focusin"===e?(nr(),Yn=n,(Xn=t).attachEvent("onpropertychange",rr)):"focusout"===e&&nr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Yn)}function ar(e,t){if("click"===e)return Kn(t)}function sr(e,t){if("input"===e||"change"===e)return Kn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ur(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!lr(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function gr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&hr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=dr(n,o);var a=dr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=s&&"documentMode"in document&&11>=document.documentMode,yr=null,vr=null,xr=null,br=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==yr||yr!==q(r)||("selectionStart"in(r=yr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},xr&&ur(xr,r)||(xr=r,0<(r=Xr(vr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},kr={},Cr={};function Tr(e){if(kr[e])return kr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return kr[e]=n[t];return e}s&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Mr=Tr("animationend"),Ir=Tr("animationiteration"),Pr=Tr("animationstart"),Dr=Tr("transitionend"),Ar=new Map,Er="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 Rr(e,t){Ar.set(e,t),o(t,[e])}for(var Or=0;Or<Er.length;Or++){var Lr=Er[Or];Rr(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Rr(Mr,"onAnimationEnd"),Rr(Ir,"onAnimationIteration"),Rr(Pr,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Dr,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nr="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(" "),zr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nr));function Br(e,t,r){var i=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,i,o,a,s,l,u){if(je.apply(this,arguments),ze){if(!ze)throw Error(n(198));var c=Be;ze=!1,Be=null,Fe||(Fe=!0,$e=c)}}(i,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Br(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Br(i,s,u),o=l}}}if(Fe)throw e=$e,Fe=!1,$e=null,e}function $r(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function Wr(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var jr="_reactListening"+Math.random().toString(36).slice(2);function Vr(e){if(!e[jr]){e[jr]=!0,r.forEach(function(t){"selectionchange"!==t&&(zr.has(t)||Wr(t,!1,e),Wr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[jr]||(t[jr]=!0,Wr("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Zt(t)){case 1:var i=Ut;break;case 4:i=Xt;break;default:i=Yt}n=i.bind(null,t,n,e),i=void 0,!Oe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Gr(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=xi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Ee(function(){var r=o,i=we(n),a=[];e:{var s=Ar.get(e);if(void 0!==s){var l=dn,u=e;switch(e){case"keypress":if(0===nn(n))break e;case"keydown":case"keyup":l=In;break;case"focusin":u="focus",l=yn;break;case"focusout":u="blur",l=yn;break;case"beforeblur":case"afterblur":l=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Dn;break;case Mr:case Ir:case Pr:l=vn;break;case Dr:l=An;break;case"scroll":l=pn;break;case"wheel":l=Rn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Pn}var c=!!(4&t),d=!c&&"scroll"===e,h=c?null!==s?s+"Capture":null:s;c=[];for(var p,f=r;null!==f;){var g=(p=f).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==h&&(null!=(g=Re(f,h))&&c.push(Ur(f,g,p)))),d)break;f=f.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===_e||!(u=n.relatedTarget||n.fromElement)||!xi(u)&&!u[gi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?xi(u):null)&&(u!==(d=Ve(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=gn,g="onMouseLeave",h="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pn,g="onPointerLeave",h="onPointerEnter",f="pointer"),d=null==l?s:_i(l),p=null==u?s:_i(u),(s=new c(g,f+"leave",l,n,i)).target=d,s.relatedTarget=p,g=null,xi(i)===r&&((c=new c(h,f+"enter",u,n,i)).target=p,c.relatedTarget=d,g=c),d=g,l&&u)e:{for(h=u,f=0,p=c=l;p;p=Yr(p))f++;for(p=0,g=h;g;g=Yr(g))p++;for(;0<f-p;)c=Yr(c),f--;for(;0<p-f;)h=Yr(h),p--;for(;f--;){if(c===h||null!==h&&c===h.alternate)break e;c=Yr(c),h=Yr(h)}c=null}else c=null;null!==l&&qr(a,s,l,c,!1),null!==u&&null!==d&&qr(a,d,u,c,!0)}if("select"===(l=(s=r?_i(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Zn;else if(Gn(s))if(Qn)m=sr;else{m=or;var y=ir}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ar);switch(m&&(m=m(e,r))?Un(a,m,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&te(s,"number",s.value)),y=r?_i(r):window,e){case"focusin":(Gn(y)||"true"===y.contentEditable)&&(yr=y,vr=r,xr=null);break;case"focusout":xr=vr=yr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,_r(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":_r(a,n,i)}var v;if(Ln)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else Vn?Wn(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(Bn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==x?"onCompositionEnd"===x&&Vn&&(v=tn()):(Jt="value"in(Qt=i)?Qt.value:Qt.textContent,Vn=!0)),0<(y=Xr(r,x)).length&&(x=new _n(x,e,null,n,i),a.push({event:x,listeners:y}),v?x.data=v:null!==(v=jn(n))&&(x.data=v))),(v=zn?function(e,t){switch(e){case"compositionend":return jn(t);case"keypress":return 32!==t.which?null:($n=!0,Fn);case"textInput":return(e=t.data)===Fn&&$n?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!Ln&&Wn(e,t)?(e=tn(),en=Jt=Qt=null,Vn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Xr(r,"onBeforeInput")).length&&(i=new _n("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}Fr(a,t)})}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Re(e,n))&&r.unshift(Ur(e,o,i)),null!=(o=Re(e,t))&&r.push(Ur(e,o,i))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function qr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Re(n,o))&&a.unshift(Ur(n,l,s)):i||null!=(l=Re(n,o))&&a.push(Ur(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,Zr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(Kr,"\n").replace(Zr,"")}function Jr(e,t,r){if(t=Qr(t),Qr(e)!==t&&r)throw Error(n(425))}function ei(){}var ti=null,ni=null;function ri(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ii="function"==typeof setTimeout?setTimeout:void 0,oi="function"==typeof clearTimeout?clearTimeout:void 0,ai="function"==typeof Promise?Promise:void 0,si="function"==typeof queueMicrotask?queueMicrotask:void 0!==ai?function(e){return ai.resolve(null).then(e).catch(li)}:ii;function li(e){setTimeout(function(){throw e})}function ui(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Vt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Vt(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function di(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var hi=Math.random().toString(36).slice(2),pi="__reactFiber$"+hi,fi="__reactProps$"+hi,gi="__reactContainer$"+hi,mi="__reactEvents$"+hi,yi="__reactListeners$"+hi,vi="__reactHandles$"+hi;function xi(e){var t=e[pi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gi]||n[pi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=di(e);null!==e;){if(n=e[pi])return n;e=di(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[pi]||e[gi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _i(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function wi(e){return e[fi]||null}var Si=[],ki=-1;function Ci(e){return{current:e}}function Ti(e){0>ki||(e.current=Si[ki],Si[ki]=null,ki--)}function Mi(e,t){ki++,Si[ki]=e.current,e.current=t}var Ii={},Pi=Ci(Ii),Di=Ci(!1),Ai=Ii;function Ei(e,t){var n=e.type.contextTypes;if(!n)return Ii;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ri(e){return null!=(e=e.childContextTypes)}function Oi(){Ti(Di),Ti(Pi)}function Li(e,t,r){if(Pi.current!==Ii)throw Error(n(168));Mi(Pi,t),Mi(Di,r)}function Ni(e,t,r){var i=e.stateNode;if(t=t.childContextTypes,"function"!=typeof i.getChildContext)return r;for(var o in i=i.getChildContext())if(!(o in t))throw Error(n(108,H(e)||"Unknown",o));return B({},r,i)}function zi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ii,Ai=Pi.current,Mi(Pi,e),Mi(Di,Di.current),!0}function Bi(e,t,r){var i=e.stateNode;if(!i)throw Error(n(169));r?(e=Ni(e,t,Ai),i.__reactInternalMemoizedMergedChildContext=e,Ti(Di),Ti(Pi),Mi(Pi,e)):Ti(Di),Mi(Di,r)}var Fi=null,$i=!1,Wi=!1;function ji(e){null===Fi?Fi=[e]:Fi.push(e)}function Vi(){if(!Wi&&null!==Fi){Wi=!0;var e=0,t=bt;try{var n=Fi;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fi=null,$i=!1}catch(i){throw null!==Fi&&(Fi=Fi.slice(e+1)),Ye(et,Vi),i}finally{bt=t,Wi=!1}}return null}var Hi=[],Gi=0,Ui=null,Xi=0,Yi=[],qi=0,Ki=null,Zi=1,Qi="";function Ji(e,t){Hi[Gi++]=Xi,Hi[Gi++]=Ui,Ui=e,Xi=t}function eo(e,t,n){Yi[qi++]=Zi,Yi[qi++]=Qi,Yi[qi++]=Ki,Ki=e;var r=Zi;e=Qi;var i=32-st(r)-1;r&=~(1<<i),n+=1;var o=32-st(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Zi=1<<32-st(t)+i|n<<i|r,Qi=o+e}else Zi=1<<o|n<<i|r,Qi=e}function to(e){null!==e.return&&(Ji(e,1),eo(e,1,0))}function no(e){for(;e===Ui;)Ui=Hi[--Gi],Hi[Gi]=null,Xi=Hi[--Gi],Hi[Gi]=null;for(;e===Ki;)Ki=Yi[--qi],Yi[qi]=null,Qi=Yi[--qi],Yi[qi]=null,Zi=Yi[--qi],Yi[qi]=null}var ro=null,io=null,oo=!1,ao=null;function so(e,t){var n=Eu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function lo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ro=e,io=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ro=e,io=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ki?{id:Zi,overflow:Qi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Eu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ro=e,io=null,!0);default:return!1}}function uo(e){return!(!(1&e.mode)||128&e.flags)}function co(e){if(oo){var t=io;if(t){var r=t;if(!lo(e,t)){if(uo(e))throw Error(n(418));t=ci(r.nextSibling);var i=ro;t&&lo(e,t)?so(i,r):(e.flags=-4097&e.flags|2,oo=!1,ro=e)}}else{if(uo(e))throw Error(n(418));e.flags=-4097&e.flags|2,oo=!1,ro=e}}}function ho(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ro=e}function po(e){if(e!==ro)return!1;if(!oo)return ho(e),oo=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ri(e.type,e.memoizedProps)),t&&(t=io)){if(uo(e))throw fo(),Error(n(418));for(;t;)so(e,t),t=ci(t.nextSibling)}if(ho(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){io=ci(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}io=null}}else io=ro?ci(e.stateNode.nextSibling):null;return!0}function fo(){for(var e=io;e;)e=ci(e.nextSibling)}function go(){io=ro=null,oo=!1}function mo(e){null===ao?ao=[e]:ao.push(e)}var yo=x.ReactCurrentBatchConfig;function vo(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var i=r.stateNode}if(!i)throw Error(n(147,e));var o=i,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function xo(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bo(e){return(0,e._init)(e._payload)}function _o(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ou(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Bu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===R&&bo(i)===t.type)?((r=o(t,n.props)).ref=vo(e,t,n),r.return=e,r):((r=Lu(n.type,n.key,n.props,null,e.mode,r)).ref=vo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Nu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Bu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case b:return(n=Lu(t.type,t.key,t.props,null,e.mode,n)).ref=vo(e,null,t),n.return=e,n;case _:return(t=Fu(t,e.mode,n)).return=e,t;case R:return h(e,(0,t._init)(t._payload),n)}if(ne(t)||N(t))return(t=Nu(t,e.mode,n,null)).return=e,t;xo(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case b:return n.key===i?u(e,t,n,r):null;case _:return n.key===i?c(e,t,n,r):null;case R:return p(e,t,(i=n._init)(n._payload),r)}if(ne(n)||N(n))return null!==i?null:d(e,t,n,r,null);xo(e,n)}return null}function f(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case b:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case _:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case R:return f(e,t,n,(0,r._init)(r._payload),i)}if(ne(r)||N(r))return d(t,e=e.get(n)||null,r,i,null);xo(t,r)}return null}return function l(u,c,d,g){if("object"==typeof d&&null!==d&&d.type===S&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case b:e:{for(var m=d.key,y=c;null!==y;){if(y.key===m){if((m=d.type)===S){if(7===y.tag){r(u,y.sibling),(c=o(y,d.props.children)).return=u,u=c;break e}}else if(y.elementType===m||"object"==typeof m&&null!==m&&m.$$typeof===R&&bo(m)===y.type){r(u,y.sibling),(c=o(y,d.props)).ref=vo(u,y,d),c.return=u,u=c;break e}r(u,y);break}t(u,y),y=y.sibling}d.type===S?((c=Nu(d.props.children,u.mode,g,d.key)).return=u,u=c):((g=Lu(d.type,d.key,d.props,null,u.mode,g)).ref=vo(u,c,d),g.return=u,u=g)}return s(u);case _:e:{for(y=d.key;null!==c;){if(c.key===y){if(4===c.tag&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){r(u,c.sibling),(c=o(c,d.children||[])).return=u,u=c;break e}r(u,c);break}t(u,c),c=c.sibling}(c=Fu(d,u.mode,g)).return=u,u=c}return s(u);case R:return l(u,c,(y=d._init)(d._payload),g)}if(ne(d))return function(n,o,s,l){for(var u=null,c=null,d=o,g=o=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var y=p(n,d,s[g],l);if(null===y){null===d&&(d=m);break}e&&d&&null===y.alternate&&t(n,d),o=a(y,o,g),null===c?u=y:c.sibling=y,c=y,d=m}if(g===s.length)return r(n,d),oo&&Ji(n,g),u;if(null===d){for(;g<s.length;g++)null!==(d=h(n,s[g],l))&&(o=a(d,o,g),null===c?u=d:c.sibling=d,c=d);return oo&&Ji(n,g),u}for(d=i(n,d);g<s.length;g++)null!==(m=f(d,n,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),o=a(m,o,g),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach(function(e){return t(n,e)}),oo&&Ji(n,g),u}(u,c,d,g);if(N(d))return function(o,s,l,u){var c=N(l);if("function"!=typeof c)throw Error(n(150));if(null==(l=c.call(l)))throw Error(n(151));for(var d=c=null,g=s,m=s=0,y=null,v=l.next();null!==g&&!v.done;m++,v=l.next()){g.index>m?(y=g,g=null):y=g.sibling;var x=p(o,g,v.value,u);if(null===x){null===g&&(g=y);break}e&&g&&null===x.alternate&&t(o,g),s=a(x,s,m),null===d?c=x:d.sibling=x,d=x,g=y}if(v.done)return r(o,g),oo&&Ji(o,m),c;if(null===g){for(;!v.done;m++,v=l.next())null!==(v=h(o,v.value,u))&&(s=a(v,s,m),null===d?c=v:d.sibling=v,d=v);return oo&&Ji(o,m),c}for(g=i(o,g);!v.done;m++,v=l.next())null!==(v=f(g,o,m,v.value,u))&&(e&&null!==v.alternate&&g.delete(null===v.key?m:v.key),s=a(v,s,m),null===d?c=v:d.sibling=v,d=v);return e&&g.forEach(function(e){return t(o,e)}),oo&&Ji(o,m),c}(u,c,d,g);xo(u,d)}return"string"==typeof d&&""!==d||"number"==typeof d?(d=""+d,null!==c&&6===c.tag?(r(u,c.sibling),(c=o(c,d)).return=u,u=c):(r(u,c),(c=Bu(d,u.mode,g)).return=u,u=c),s(u)):r(u,c)}}var wo=_o(!0),So=_o(!1),ko=Ci(null),Co=null,To=null,Mo=null;function Io(){Mo=To=Co=null}function Po(e){var t=ko.current;Ti(ko),e._currentValue=t}function Do(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ao(e,t){Co=e,Mo=To=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Eo(e){var t=e._currentValue;if(Mo!==e)if(e={context:e,memoizedValue:t,next:null},null===To){if(null===Co)throw Error(n(308));To=e,Co.dependencies={lanes:0,firstContext:e}}else To=To.next=e;return t}var Ro=null;function Oo(e){null===Ro?Ro=[e]:Ro.push(e)}function Lo(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Oo(t)):(n.next=i.next,i.next=n),t.interleaved=n,No(e,r)}function No(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var zo=!1;function Bo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function $o(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Pl){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,No(e,n)}return null===(i=r.interleaved)?(t.next=t,Oo(r)):(t.next=i.next,i.next=t),r.interleaved=t,No(e,n)}function jo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,xt(e,n)}}function Vo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ho(e,t,n,r){var i=e.updateQueue;zo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var h=s.lane,p=s.eventTime;if((r&h)===h){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,g=s;switch(h=t,p=n,g.tag){case 1:if("function"==typeof(f=g.payload)){d=f.call(p,d,h);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(h="function"==typeof(f=g.payload)?f.call(p,d,h):f))break e;d=B({},d,h);break e;case 2:zo=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,a|=h;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);zl|=a,e.lanes=a,e.memoizedState=d}}function Go(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var i=e[t],o=i.callback;if(null!==o){if(i.callback=null,i=r,"function"!=typeof o)throw Error(n(191,o));o.call(i)}}}var Uo={},Xo=Ci(Uo),Yo=Ci(Uo),qo=Ci(Uo);function Ko(e){if(e===Uo)throw Error(n(174));return e}function Zo(e,t){switch(Mi(qo,t),Mi(Yo,e),Mi(Xo,Uo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ti(Xo),Mi(Xo,t)}function Qo(){Ti(Xo),Ti(Yo),Ti(qo)}function Jo(e){Ko(qo.current);var t=Ko(Xo.current),n=ue(t,e.type);t!==n&&(Mi(Yo,e),Mi(Xo,n))}function ea(e){Yo.current===e&&(Ti(Xo),Ti(Yo))}var ta=Ci(0);function na(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ra=[];function ia(){for(var e=0;e<ra.length;e++)ra[e]._workInProgressVersionPrimary=null;ra.length=0}var oa=x.ReactCurrentDispatcher,aa=x.ReactCurrentBatchConfig,sa=0,la=null,ua=null,ca=null,da=!1,ha=!1,pa=0,fa=0;function ga(){throw Error(n(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ya(e,t,r,i,o,a){if(sa=a,la=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?es:ts,e=r(i,o),ha){a=0;do{if(ha=!1,pa=0,25<=a)throw Error(n(301));a+=1,ca=ua=null,t.updateQueue=null,oa.current=ns,e=r(i,o)}while(ha)}if(oa.current=Ja,t=null!==ua&&null!==ua.next,sa=0,ca=ua=la=null,da=!1,t)throw Error(n(300));return e}function va(){var e=0!==pa;return pa=0,e}function xa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?la.memoizedState=ca=e:ca=ca.next=e,ca}function ba(){if(null===ua){var e=la.alternate;e=null!==e?e.memoizedState:null}else e=ua.next;var t=null===ca?la.memoizedState:ca.next;if(null!==t)ca=t,ua=e;else{if(null===e)throw Error(n(310));e={memoizedState:(ua=e).memoizedState,baseState:ua.baseState,baseQueue:ua.baseQueue,queue:ua.queue,next:null},null===ca?la.memoizedState=ca=e:ca=ca.next=e}return ca}function _a(e,t){return"function"==typeof t?t(e):t}function wa(e){var t=ba(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var i=ua,o=i.baseQueue,a=r.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}i.baseQueue=o=a,r.pending=null}if(null!==o){a=o.next,i=i.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((sa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),i=c.hasEagerState?c.eagerState:e(i,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=h,s=i):u=u.next=h,la.lanes|=d,zl|=d}c=c.next}while(null!==c&&c!==a);null===u?s=i:u.next=l,lr(i,t.memoizedState)||(bs=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=u,r.lastRenderedState=i}if(null!==(e=r.interleaved)){o=e;do{a=o.lane,la.lanes|=a,zl|=a,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Sa(e){var t=ba(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var i=r.dispatch,o=r.pending,a=t.memoizedState;if(null!==o){r.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);lr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,i]}function ka(){}function Ca(e,t){var r=la,i=ba(),o=t(),a=!lr(i.memoizedState,o);if(a&&(i.memoizedState=o,bs=!0),i=i.queue,za(Ia.bind(null,r,i,e),[e]),i.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(r.flags|=2048,Ea(9,Ma.bind(null,r,i,o,t),void 0,null),null===Dl)throw Error(n(349));30&sa||Ta(r,t,o)}return o}function Ta(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ma(e,t,n,r){t.value=n,t.getSnapshot=r,Pa(t)&&Da(e)}function Ia(e,t,n){return n(function(){Pa(t)&&Da(e)})}function Pa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(r){return!0}}function Da(e){var t=No(e,1);null!==t&&ru(t,e,1,-1)}function Aa(e){var t=xa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:e},t.queue=e,e=e.dispatch=qa.bind(null,la,e),[t.memoizedState,e]}function Ea(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ra(){return ba().memoizedState}function Oa(e,t,n,r){var i=xa();la.flags|=e,i.memoizedState=Ea(1|t,n,void 0,void 0===r?null:r)}function La(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==ua){var a=ua.memoizedState;if(o=a.destroy,null!==r&&ma(r,a.deps))return void(i.memoizedState=Ea(t,n,o,r))}la.flags|=e,i.memoizedState=Ea(1|t,n,o,r)}function Na(e,t){return Oa(8390656,8,e,t)}function za(e,t){return La(2048,8,e,t)}function Ba(e,t){return La(4,2,e,t)}function Fa(e,t){return La(4,4,e,t)}function $a(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Wa(e,t,n){return n=null!=n?n.concat([e]):null,La(4,4,$a.bind(null,t,e),n)}function ja(){}function Va(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ha(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ga(e,t,n){return 21&sa?(lr(n,t)||(n=mt(),la.lanes|=n,zl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function Ua(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=aa.transition;aa.transition={};try{e(!1),t()}finally{bt=n,aa.transition=r}}function Xa(){return ba().memoizedState}function Ya(e,t,n){var r=nu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ka(e))Za(t,n);else if(null!==(n=Lo(e,t,n,r))){ru(n,e,r,tu()),Qa(n,t,r)}}function qa(e,t,n){var r=nu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ka(e))Za(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,lr(s,a)){var l=t.interleaved;return null===l?(i.next=i,Oo(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(u){}null!==(n=Lo(e,t,i,r))&&(ru(n,e,r,i=tu()),Qa(n,t,r))}}function Ka(e){var t=e.alternate;return e===la||null!==t&&t===la}function Za(e,t){ha=da=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,xt(e,n)}}var Ja={readContext:Eo,useCallback:ga,useContext:ga,useEffect:ga,useImperativeHandle:ga,useInsertionEffect:ga,useLayoutEffect:ga,useMemo:ga,useReducer:ga,useRef:ga,useState:ga,useDebugValue:ga,useDeferredValue:ga,useTransition:ga,useMutableSource:ga,useSyncExternalStore:ga,useId:ga,unstable_isNewReconciler:!1},es={readContext:Eo,useCallback:function(e,t){return xa().memoizedState=[e,void 0===t?null:t],e},useContext:Eo,useEffect:Na,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Oa(4194308,4,$a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oa(4,2,e,t)},useMemo:function(e,t){var n=xa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ya.bind(null,la,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},xa().memoizedState=e},useState:Aa,useDebugValue:ja,useDeferredValue:function(e){return xa().memoizedState=e},useTransition:function(){var e=Aa(!1),t=e[0];return e=Ua.bind(null,e[1]),xa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var i=la,o=xa();if(oo){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Dl)throw Error(n(349));30&sa||Ta(i,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,Na(Ia.bind(null,i,a,e),[e]),i.flags|=2048,Ea(9,Ma.bind(null,i,a,r,t),void 0,null),r},useId:function(){var e=xa(),t=Dl.identifierPrefix;if(oo){var n=Qi;t=":"+t+"R"+(n=(Zi&~(1<<32-st(Zi)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ts={readContext:Eo,useCallback:Va,useContext:Eo,useEffect:za,useImperativeHandle:Wa,useInsertionEffect:Ba,useLayoutEffect:Fa,useMemo:Ha,useReducer:wa,useRef:Ra,useState:function(){return wa(_a)},useDebugValue:ja,useDeferredValue:function(e){return Ga(ba(),ua.memoizedState,e)},useTransition:function(){return[wa(_a)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Ca,useId:Xa,unstable_isNewReconciler:!1},ns={readContext:Eo,useCallback:Va,useContext:Eo,useEffect:za,useImperativeHandle:Wa,useInsertionEffect:Ba,useLayoutEffect:Fa,useMemo:Ha,useReducer:Sa,useRef:Ra,useState:function(){return Sa(_a)},useDebugValue:ja,useDeferredValue:function(e){var t=ba();return null===ua?t.memoizedState=e:Ga(t,ua.memoizedState,e)},useTransition:function(){return[Sa(_a)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Ca,useId:Xa,unstable_isNewReconciler:!1};function rs(e,t){if(e&&e.defaultProps){for(var n in t=B({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function is(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:B({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),i=nu(e),o=$o(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=Wo(e,o,i))&&(ru(t,e,i,r),jo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),i=nu(e),o=$o(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Wo(e,o,i))&&(ru(t,e,i,r),jo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),i=$o(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=Wo(e,i,r))&&(ru(t,e,r,n),jo(t,e,r))}};function as(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(i,o))}function ss(e,t,n){var r=!1,i=Ii,o=t.contextType;return"object"==typeof o&&null!==o?o=Eo(o):(i=Ri(t)?Ai:Pi.current,o=(r=null!=(r=t.contextTypes))?Ei(e,i):Ii),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ls(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function us(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Bo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=Eo(o):(o=Ri(t)?Ai:Pi.current,i.context=Ei(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(is(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&os.enqueueReplaceState(i,i.state,null),Ho(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=j(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function hs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ps="function"==typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=$o(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gl||(Gl=!0,Ul=r),hs(0,t)},n}function gs(e,t,n){(n=$o(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){hs(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){hs(0,t),"function"!=typeof r&&(null===Xl?Xl=new Set([this]):Xl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Tu.bind(null,e,t,n),t.then(e,e))}function ys(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=$o(-1,1)).tag=2,Wo(n,t,1))),n.lanes|=1),e)}var xs=x.ReactCurrentOwner,bs=!1;function _s(e,t,n,r){t.child=null===e?So(t,null,n,r):wo(t,e.child,n,r)}function ws(e,t,n,r,i){n=n.render;var o=t.ref;return Ao(t,i),r=ya(e,t,n,r,o,i),n=va(),null===e||bs?(oo&&n&&to(t),t.flags|=1,_s(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gs(e,t,i))}function Ss(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Ru(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Lu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,ks(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)return Gs(e,t,i)}return t.flags|=1,(e=Ou(o,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(ur(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Gs(e,t,i);131072&e.flags&&(bs=!0)}}return Ms(e,t,n,r,i)}function Cs(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Mi(Ol,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Mi(Ol,Rl),Rl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mi(Ol,Rl),Rl|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Mi(Ol,Rl),Rl|=r;return _s(e,t,i,n),t.child}function Ts(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ms(e,t,n,r,i){var o=Ri(n)?Ai:Pi.current;return o=Ei(t,o),Ao(t,i),n=ya(e,t,n,r,o,i),r=va(),null===e||bs?(oo&&r&&to(t),t.flags|=1,_s(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gs(e,t,i))}function Is(e,t,n,r,i){if(Ri(n)){var o=!0;zi(t)}else o=!1;if(Ao(t,i),null===t.stateNode)Hs(e,t),ss(t,n,r),us(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Eo(u):u=Ei(t,u=Ri(n)?Ai:Pi.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ls(t,a,r,u),zo=!1;var h=t.memoizedState;a.state=h,Ho(t,r,a,i),l=t.memoizedState,s!==r||h!==l||Di.current||zo?("function"==typeof c&&(is(t,n,c,r),l=t.memoizedState),(s=zo||as(t,n,s,r,h,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Fo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:rs(t.type,s),a.props=u,d=t.pendingProps,h=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Eo(l):l=Ei(t,l=Ri(n)?Ai:Pi.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||h!==l)&&ls(t,a,r,l),zo=!1,h=t.memoizedState,a.state=h,Ho(t,r,a,i);var f=t.memoizedState;s!==d||h!==f||Di.current||zo?("function"==typeof p&&(is(t,n,p,r),f=t.memoizedState),(u=zo||as(t,n,u,r,h,f,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Ps(e,t,n,r,o,i)}function Ps(e,t,n,r,i,o){Ts(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&Bi(t,n,!1),Gs(e,t,o);r=t.stateNode,xs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=wo(t,e.child,null,o),t.child=wo(t,null,s,o)):_s(e,t,s,o),t.memoizedState=r.state,i&&Bi(t,n,!0),t.child}function Ds(e){var t=e.stateNode;t.pendingContext?Li(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Li(0,t.context,!1),Zo(e,t.containerInfo)}function As(e,t,n,r,i){return go(),mo(i),t.flags|=256,_s(e,t,n,r),t.child}var Es,Rs,Os,Ls,Ns={dehydrated:null,treeContext:null,retryLane:0};function zs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Bs(e,t,r){var i,o=t.pendingProps,a=ta.current,s=!1,l=!!(128&t.flags);if((i=l)||(i=(null===e||null!==e.memoizedState)&&!!(2&a)),i?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Mi(ta,1&a),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=zu(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=Nu(e,o,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=zs(r),t.memoizedState=Ns,e):Fs(t,l));if(null!==(a=e.memoizedState)&&null!==(i=a.dehydrated))return function(e,t,r,i,o,a,s){if(r)return 256&t.flags?(t.flags&=-257,$s(e,t,s,i=ds(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=i.fallback,o=t.mode,i=zu({mode:"visible",children:i.children},o,0,null),(a=Nu(a,o,s,null)).flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,1&t.mode&&wo(t,e.child,null,s),t.child.memoizedState=zs(s),t.memoizedState=Ns,a);if(!(1&t.mode))return $s(e,t,s,null);if("$!"===o.data){if(i=o.nextSibling&&o.nextSibling.dataset)var l=i.dgst;return i=l,$s(e,t,s,i=ds(a=Error(n(419)),i,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(i=Dl)){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(i.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,No(e,o),ru(i,e,o,-1))}return mu(),$s(e,t,s,i=ds(Error(n(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Iu.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,io=ci(o.nextSibling),ro=t,oo=!0,ao=null,null!==e&&(Yi[qi++]=Zi,Yi[qi++]=Qi,Yi[qi++]=Ki,Zi=e.id,Qi=e.overflow,Ki=t),t=Fs(t,i.children),t.flags|=4096,t)}(e,t,l,o,i,a,r);if(s){s=o.fallback,l=t.mode,i=(a=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&l||t.child===a?(o=Ou(a,u)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==i?s=Ou(i,s):(s=Nu(s,l,r,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?zs(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Ns,o}return e=(s=e.child).sibling,o=Ou(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Fs(e,t){return(t=zu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function $s(e,t,n,r){return null!==r&&mo(r),wo(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ws(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Do(e.return,t,n)}function js(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Vs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(_s(e,t,r.children,n),2&(r=ta.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ws(e,n,t);else if(19===e.tag)Ws(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Mi(ta,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===na(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),js(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===na(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}js(t,!0,n,null,o);break;case"together":js(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Hs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),zl|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Ou(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ou(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Us(e,t){if(!oo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ys(e,t,r){var o=t.pendingProps;switch(no(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xs(t),null;case 1:case 17:return Ri(t.type)&&Oi(),Xs(t),null;case 3:return o=t.stateNode,Qo(),Ti(Di),Ti(Pi),ia(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(po(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ao&&(su(ao),ao=null))),Rs(e,t),Xs(t),null;case 5:ea(t);var a=Ko(qo.current);if(r=t.type,null!==e&&null!=t.stateNode)Os(e,t,r,o,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(n(166));return Xs(t),null}if(e=Ko(Xo.current),po(t)){o=t.stateNode,r=t.type;var s=t.memoizedProps;switch(o[pi]=t,o[fi]=s,e=!!(1&t.mode),r){case"dialog":$r("cancel",o),$r("close",o);break;case"iframe":case"object":case"embed":$r("load",o);break;case"video":case"audio":for(a=0;a<Nr.length;a++)$r(Nr[a],o);break;case"source":$r("error",o);break;case"img":case"image":case"link":$r("error",o),$r("load",o);break;case"details":$r("toggle",o);break;case"input":Z(o,s),$r("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!s.multiple},$r("invalid",o);break;case"textarea":oe(o,s),$r("invalid",o)}for(var l in xe(r,s),a=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?o.textContent!==u&&(!0!==s.suppressHydrationWarning&&Jr(o.textContent,u,e),a=["children",u]):"number"==typeof u&&o.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Jr(o.textContent,u,e),a=["children",""+u]):i.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&$r("scroll",o)}switch(r){case"input":X(o),ee(o,s,!0);break;case"textarea":X(o),se(o);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(o.onclick=ei)}o=a,t.updateQueue=o,null!==o&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=l.createElement(r,{is:o.is}):(e=l.createElement(r),"select"===r&&(l=e,o.multiple?l.multiple=!0:o.size&&(l.size=o.size))):e=l.createElementNS(e,r),e[pi]=t,e[fi]=o,Es(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(r,o),r){case"dialog":$r("cancel",e),$r("close",e),a=o;break;case"iframe":case"object":case"embed":$r("load",e),a=o;break;case"video":case"audio":for(a=0;a<Nr.length;a++)$r(Nr[a],e);a=o;break;case"source":$r("error",e),a=o;break;case"img":case"image":case"link":$r("error",e),$r("load",e),a=o;break;case"details":$r("toggle",e),a=o;break;case"input":Z(e,o),a=K(e,o),$r("invalid",e);break;case"option":default:a=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},a=B({},o,{value:void 0}),$r("invalid",e);break;case"textarea":oe(e,o),a=ie(e,o),$r("invalid",e)}for(s in xe(r,a),u=a)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?ye(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&he(e,c):"children"===s?"string"==typeof c?("textarea"!==r||""!==c)&&pe(e,c):"number"==typeof c&&pe(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(i.hasOwnProperty(s)?null!=c&&"onScroll"===s&&$r("scroll",e):null!=c&&v(e,s,c,l))}switch(r){case"input":X(e),ee(e,o,!1);break;case"textarea":X(e),se(e);break;case"option":null!=o.value&&e.setAttribute("value",""+G(o.value));break;case"select":e.multiple=!!o.multiple,null!=(s=o.value)?re(e,!!o.multiple,s,!1):null!=o.defaultValue&&re(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=ei)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Xs(t),null;case 6:if(e&&null!=t.stateNode)Ls(e,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(n(166));if(r=Ko(qo.current),Ko(Xo.current),po(t)){if(o=t.stateNode,r=t.memoizedProps,o[pi]=t,(s=o.nodeValue!==r)&&null!==(e=ro))switch(e.tag){case 3:Jr(o.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(o.nodeValue,r,!!(1&e.mode))}s&&(t.flags|=4)}else(o=(9===r.nodeType?r:r.ownerDocument).createTextNode(o))[pi]=t,t.stateNode=o}return Xs(t),null;case 13:if(Ti(ta),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(oo&&null!==io&&1&t.mode&&!(128&t.flags))fo(),go(),t.flags|=98560,s=!1;else if(s=po(t),null!==o&&null!==o.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[pi]=t}else go(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Xs(t),s=!1}else null!==ao&&(su(ao),ao=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((o=null!==o)!==(null!==e&&null!==e.memoizedState)&&o&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ta.current?0===Ll&&(Ll=3):mu())),null!==t.updateQueue&&(t.flags|=4),Xs(t),null);case 4:return Qo(),Rs(e,t),null===e&&Vr(t.stateNode.containerInfo),Xs(t),null;case 10:return Po(t.type._context),Xs(t),null;case 19:if(Ti(ta),null===(s=t.memoizedState))return Xs(t),null;if(o=!!(128&t.flags),null===(l=s.rendering))if(o)Us(s,!1);else{if(0!==Ll||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=na(e))){for(t.flags|=128,Us(s,!1),null!==(o=l.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;null!==r;)e=o,(s=r).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Mi(ta,1&ta.current|2),t.child}e=e.sibling}null!==s.tail&&Qe()>Vl&&(t.flags|=128,o=!0,Us(s,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=na(l))){if(t.flags|=128,o=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Us(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!oo)return Xs(t),null}else 2*Qe()-s.renderingStartTime>Vl&&1073741824!==r&&(t.flags|=128,o=!0,Us(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Qe(),t.sibling=null,r=ta.current,Mi(ta,o?1&r|2:1&r),t):(Xs(t),null);case 22:case 23:return hu(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&1&t.mode?!!(1073741824&Rl)&&(Xs(t),6&t.subtreeFlags&&(t.flags|=8192)):Xs(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function qs(e,t){switch(no(t),t.tag){case 1:return Ri(t.type)&&Oi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qo(),Ti(Di),Ti(Pi),ia(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ea(t),null;case 13:if(Ti(ta),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));go()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ti(ta),null;case 4:return Qo(),null;case 10:return Po(t.type._context),null;case 22:case 23:return hu(),null;default:return null}}Es=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Rs=function(){},Os=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ko(Xo.current);var a,s=null;switch(n){case"input":o=K(e,o),r=K(e,r),s=[];break;case"select":o=B({},o,{value:void 0}),r=B({},r,{value:void 0}),s=[];break;case"textarea":o=ie(e,o),r=ie(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=ei)}for(c in xe(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(i.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(i.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&$r("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Ls=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ks=!1,Zs=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Js=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Cu(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){Cu(e,t,r)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&tl(t,n,o)}i=i.next}while(i!==r)}}function il(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pi],delete t[fi],delete t[mi],delete t[yi],delete t[vi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=ei));else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var dl=null,hl=!1;function pl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(s){}switch(n.tag){case 5:Zs||el(n,t);case 6:var r=dl,i=hl;dl=null,pl(e,t,n),hl=i,null!==(dl=r)&&(hl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(hl?(e=dl,n=n.stateNode,8===e.nodeType?ui(e.parentNode,n):1===e.nodeType&&ui(e,n),Vt(e)):ui(dl,n.stateNode));break;case 4:r=dl,i=hl,dl=n.stateNode.containerInfo,hl=!0,pl(e,t,n),dl=r,hl=i;break;case 0:case 11:case 14:case 15:if(!Zs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&tl(n,t,a),i=i.next}while(i!==r)}pl(e,t,n);break;case 1:if(!Zs&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Cu(n,t,s)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Zs=(r=Zs)||null!==n.memoizedState,pl(e,t,n),Zs=r):pl(e,t,n);break;default:pl(e,t,n)}}function gl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach(function(t){var r=Pu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ml(e,t){var r=t.deletions;if(null!==r)for(var i=0;i<r.length;i++){var o=r[i];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,hl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,hl=!0;break e}l=l.return}if(null===dl)throw Error(n(160));fl(a,s,o),dl=null,hl=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(c){Cu(o,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)yl(t,e),t=t.sibling}function yl(e,t){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&i){try{rl(3,e,e.return),il(3,e)}catch(m){Cu(e,e.return,m)}try{rl(5,e,e.return)}catch(m){Cu(e,e.return,m)}}break;case 1:ml(t,e),vl(e),512&i&&null!==r&&el(r,r.return);break;case 5:if(ml(t,e),vl(e),512&i&&null!==r&&el(r,r.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(m){Cu(e,e.return,m)}}if(4&i&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&Q(o,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var d=u[s],h=u[s+1];"style"===d?ye(o,h):"dangerouslySetInnerHTML"===d?he(o,h):"children"===d?pe(o,h):v(o,d,h,c)}switch(l){case"input":J(o,a);break;case"textarea":ae(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?re(o,!!a.multiple,f,!1):p!==!!a.multiple&&(null!=a.defaultValue?re(o,!!a.multiple,a.defaultValue,!0):re(o,!!a.multiple,a.multiple?[]:"",!1))}o[fi]=a}catch(m){Cu(e,e.return,m)}}break;case 6:if(ml(t,e),vl(e),4&i){if(null===e.stateNode)throw Error(n(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(m){Cu(e,e.return,m)}}break;case 3:if(ml(t,e),vl(e),4&i&&null!==r&&r.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(m){Cu(e,e.return,m)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(jl=Qe())),4&i&&gl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Zs=(c=Zs)||d,ml(t,e),Zs=c):ml(t,e),vl(e),8192&i){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Js=e,d=e.child;null!==d;){for(h=Js=d;null!==Js;){switch(f=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:rl(4,p,p.return);break;case 1:el(p,p.return);var g=p.stateNode;if("function"==typeof g.componentWillUnmount){i=p,r=p.return;try{t=i,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Cu(i,r,m)}}break;case 5:el(p,p.return);break;case 22:if(null!==p.memoizedState){wl(h);continue}}null!==f?(f.return=p,Js=f):wl(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{o=h.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=h.stateNode,s=null!=(u=h.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(m){Cu(e,e.return,m)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(m){Cu(e,e.return,m)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ml(t,e),vl(e),4&i&&gl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(sl(r)){var i=r;break e}r=r.return}throw Error(n(160))}switch(i.tag){case 5:var o=i.stateNode;32&i.flags&&(pe(o,""),i.flags&=-33),cl(e,ll(e),o);break;case 3:case 4:var a=i.stateNode.containerInfo;ul(e,ll(e),a);break;default:throw Error(n(161))}}catch(s){Cu(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function xl(e,t,n){Js=e,bl(e)}function bl(e,t,n){for(var r=!!(1&e.mode);null!==Js;){var i=Js,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Ks;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Zs;s=Ks;var u=Zs;if(Ks=a,(Zs=l)&&!u)for(Js=i;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?Sl(i):null!==l?(l.return=a,Js=l):Sl(i);for(;null!==o;)Js=o,bl(o),o=o.sibling;Js=i,Ks=s,Zs=u}_l(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,Js=o):_l(e)}}function _l(e){for(;null!==Js;){var t=Js;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Zs||il(5,t);break;case 1:var i=t.stateNode;if(4&t.flags&&!Zs)if(null===r)i.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:rs(t.type,r.memoizedProps);i.componentDidUpdate(o,r.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Go(t,a,i);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Go(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&Vt(h)}}}break;default:throw Error(n(163))}Zs||512&t.flags&&ol(t)}catch(p){Cu(t,t.return,p)}}if(t===e){Js=null;break}if(null!==(r=t.sibling)){r.return=t.return,Js=r;break}Js=t.return}}function wl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function Sl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{il(4,t)}catch(l){Cu(t,n,l)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){Cu(t,i,l)}}var o=t.return;try{ol(t)}catch(l){Cu(t,o,l)}break;case 5:var a=t.return;try{ol(t)}catch(l){Cu(t,a,l)}}}catch(l){Cu(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var kl,Cl=Math.ceil,Tl=x.ReactCurrentDispatcher,Ml=x.ReactCurrentOwner,Il=x.ReactCurrentBatchConfig,Pl=0,Dl=null,Al=null,El=0,Rl=0,Ol=Ci(0),Ll=0,Nl=null,zl=0,Bl=0,Fl=0,$l=null,Wl=null,jl=0,Vl=1/0,Hl=null,Gl=!1,Ul=null,Xl=null,Yl=!1,ql=null,Kl=0,Zl=0,Ql=null,Jl=-1,eu=0;function tu(){return 6&Pl?Qe():-1!==Jl?Jl:Jl=Qe()}function nu(e){return 1&e.mode?2&Pl&&0!==El?El&-El:null!==yo.transition?(0===eu&&(eu=mt()),eu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Zt(e.type):1}function ru(e,t,r,i){if(50<Zl)throw Zl=0,Ql=null,Error(n(185));vt(e,r,i),2&Pl&&e===Dl||(e===Dl&&(!(2&Pl)&&(Bl|=r),4===Ll&&lu(e,El)),iu(e,i),1===r&&0===Pl&&!(1&t.mode)&&(Vl=Qe()+500,$i&&Vi()))}function iu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-st(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=ft(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=pt(e,e===Dl?El:0);if(0===r)null!==n&&qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&qe(n),1===t)0===e.tag?function(e){$i=!0,ji(e)}(uu.bind(null,e)):ji(uu.bind(null,e)),si(function(){!(6&Pl)&&Vi()}),n=null;else{switch(_t(r)){case 1:n=et;break;case 4:n=tt;break;case 16:default:n=nt;break;case 536870912:n=it}n=Du(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Jl=-1,eu=0,6&Pl)throw Error(n(327));var r=e.callbackNode;if(Su()&&e.callbackNode!==r)return null;var i=pt(e,e===Dl?El:0);if(0===i)return null;if(30&i||0!==(i&e.expiredLanes)||t)t=yu(e,i);else{t=i;var o=Pl;Pl|=2;var a=gu();for(Dl===e&&El===t||(Hl=null,Vl=Qe()+500,pu(e,t));;)try{xu();break}catch(l){fu(e,l)}Io(),Tl.current=a,Pl=o,null!==Al?t=0:(Dl=null,El=0,t=Ll)}if(0!==t){if(2===t&&(0!==(o=gt(e))&&(i=o,t=au(e,o))),1===t)throw r=Nl,pu(e,0),lu(e,i),iu(e,Qe()),r;if(6===t)lu(e,i);else{if(o=e.current.alternate,!(30&i||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!lr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=yu(e,i),2===t&&(a=gt(e),0!==a&&(i=a,t=au(e,a))),1!==t)))throw r=Nl,pu(e,0),lu(e,i),iu(e,Qe()),r;switch(e.finishedWork=o,e.finishedLanes=i,t){case 0:case 1:throw Error(n(345));case 2:case 5:wu(e,Wl,Hl);break;case 3:if(lu(e,i),(130023424&i)===i&&10<(t=jl+500-Qe())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&i)!==i){tu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ii(wu.bind(null,e,Wl,Hl),t);break}wu(e,Wl,Hl);break;case 4:if(lu(e,i),(4194240&i)===i)break;for(t=e.eventTimes,o=-1;0<i;){var s=31-st(i);a=1<<s,(s=t[s])>o&&(o=s),i&=~a}if(i=o,10<(i=(120>(i=Qe()-i)?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Cl(i/1960))-i)){e.timeoutHandle=ii(wu.bind(null,e,Wl,Hl),i);break}wu(e,Wl,Hl);break;default:throw Error(n(329))}}}return iu(e,Qe()),e.callbackNode===r?ou.bind(null,e):null}function au(e,t){var n=$l;return e.current.memoizedState.isDehydrated&&(pu(e,t).flags|=256),2!==(e=yu(e,t))&&(t=Wl,Wl=n,null!==t&&su(t)),e}function su(e){null===Wl?Wl=e:Wl.push.apply(Wl,e)}function lu(e,t){for(t&=~Fl,t&=~Bl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(6&Pl)throw Error(n(327));Su();var t=pt(e,0);if(!(1&t))return iu(e,Qe()),null;var r=yu(e,t);if(0!==e.tag&&2===r){var i=gt(e);0!==i&&(t=i,r=au(e,i))}if(1===r)throw r=Nl,pu(e,0),lu(e,t),iu(e,Qe()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,Wl,Hl),iu(e,Qe()),null}function cu(e,t){var n=Pl;Pl|=1;try{return e(t)}finally{0===(Pl=n)&&(Vl=Qe()+500,$i&&Vi())}}function du(e){null!==ql&&0===ql.tag&&!(6&Pl)&&Su();var t=Pl;Pl|=1;var n=Il.transition,r=bt;try{if(Il.transition=null,bt=1,e)return e()}finally{bt=r,Il.transition=n,!(6&(Pl=t))&&Vi()}}function hu(){Rl=Ol.current,Ti(Ol)}function pu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oi(n)),null!==Al)for(n=Al.return;null!==n;){var r=n;switch(no(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Oi();break;case 3:Qo(),Ti(Di),Ti(Pi),ia();break;case 5:ea(r);break;case 4:Qo();break;case 13:case 19:Ti(ta);break;case 10:Po(r.type._context);break;case 22:case 23:hu()}n=n.return}if(Dl=e,Al=e=Ou(e.current,null),El=Rl=t,Ll=0,Nl=null,Fl=Bl=zl=0,Wl=$l=null,null!==Ro){for(t=0;t<Ro.length;t++)if(null!==(r=(n=Ro[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Ro=null}return e}function fu(e,t){for(;;){var r=Al;try{if(Io(),oa.current=Ja,da){for(var i=la.memoizedState;null!==i;){var o=i.queue;null!==o&&(o.pending=null),i=i.next}da=!1}if(sa=0,ca=ua=la=null,ha=!1,pa=0,Ml.current=null,null===r||null===r.return){Ll=1,Nl=t,Al=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=El,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,h=d.tag;if(!(1&d.mode||0!==h&&11!==h&&15!==h)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=ys(s);if(null!==f){f.flags&=-257,vs(f,s,l,0,t),1&f.mode&&ms(a,c,t),u=c;var g=(t=f).updateQueue;if(null===g){var m=new Set;m.add(u),t.updateQueue=m}else g.add(u);break e}if(!(1&t)){ms(a,c,t),mu();break e}u=Error(n(426))}else if(oo&&1&l.mode){var y=ys(s);if(null!==y){!(65536&y.flags)&&(y.flags|=256),vs(y,s,l,0,t),mo(cs(u,l));break e}}a=u=cs(u,l),4!==Ll&&(Ll=2),null===$l?$l=[a]:$l.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Vo(a,fs(0,u,t));break e;case 1:l=u;var v=a.type,x=a.stateNode;if(!(128&a.flags||"function"!=typeof v.getDerivedStateFromError&&(null===x||"function"!=typeof x.componentDidCatch||null!==Xl&&Xl.has(x)))){a.flags|=65536,t&=-t,a.lanes|=t,Vo(a,gs(a,l,t));break e}}a=a.return}while(null!==a)}_u(r)}catch(b){t=b,Al===r&&null!==r&&(Al=r=r.return);continue}break}}function gu(){var e=Tl.current;return Tl.current=Ja,null===e?Ja:e}function mu(){0!==Ll&&3!==Ll&&2!==Ll||(Ll=4),null===Dl||!(268435455&zl)&&!(268435455&Bl)||lu(Dl,El)}function yu(e,t){var r=Pl;Pl|=2;var i=gu();for(Dl===e&&El===t||(Hl=null,pu(e,t));;)try{vu();break}catch(o){fu(e,o)}if(Io(),Pl=r,Tl.current=i,null!==Al)throw Error(n(261));return Dl=null,El=0,Ll}function vu(){for(;null!==Al;)bu(Al)}function xu(){for(;null!==Al&&!Ke();)bu(Al)}function bu(e){var t=kl(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?_u(e):Al=t,Ml.current=null}function _u(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=qs(n,t)))return n.flags&=32767,void(Al=n);if(null===e)return Ll=6,void(Al=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ys(n,t,Rl)))return void(Al=n);if(null!==(t=t.sibling))return void(Al=t);Al=t=e}while(null!==t);0===Ll&&(Ll=5)}function wu(e,t,r){var i=bt,o=Il.transition;try{Il.transition=null,bt=1,function(e,t,r,i){do{Su()}while(null!==ql);if(6&Pl)throw Error(n(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-st(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Dl&&(Al=Dl=null,El=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Yl||(Yl=!0,Du(nt,function(){return Su(),null})),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=Il.transition,Il.transition=null;var s=bt;bt=1;var l=Pl;Pl|=4,Ml.current=null,function(e,t){if(ti=Gt,fr(e=pr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var i=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(i&&0!==i.rangeCount){r=i.anchorNode;var o=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{r.nodeType,a.nodeType}catch(_){r=null;break e}var s=0,l=-1,u=-1,c=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==r||0!==o&&3!==h.nodeType||(l=s+o),h!==a||0!==i&&3!==h.nodeType||(u=s+i),3===h.nodeType&&(s+=h.nodeValue.length),null!==(f=h.firstChild);)p=h,h=f;for(;;){if(h===e)break t;if(p===r&&++c===o&&(l=s),p===a&&++d===i&&(u=s),null!==(f=h.nextSibling))break;p=(h=p).parentNode}h=f}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(ni={focusedElem:e,selectionRange:r},Gt=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var g=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,y=g.memoizedState,v=t.stateNode,x=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:rs(t.type,m),y);v.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(n(163))}}catch(_){Cu(t,t.return,_)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}g=nl,nl=!1}(e,r),yl(r,e),gr(ni),Gt=!!ti,ni=ti=null,e.current=r,xl(r),Ze(),Pl=l,bt=s,Il.transition=a}else e.current=r;if(Yl&&(Yl=!1,ql=e,Kl=o),a=e.pendingLanes,0===a&&(Xl=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(t){}}(r.stateNode),iu(e,Qe()),null!==t)for(i=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],i(o.value,{componentStack:o.stack,digest:o.digest});if(Gl)throw Gl=!1,e=Ul,Ul=null,e;!!(1&Kl)&&0!==e.tag&&Su(),a=e.pendingLanes,1&a?e===Ql?Zl++:(Zl=0,Ql=e):Zl=0,Vi()}(e,t,r,i)}finally{Il.transition=o,bt=i}return null}function Su(){if(null!==ql){var e=_t(Kl),t=Il.transition,r=bt;try{if(Il.transition=null,bt=16>e?16:e,null===ql)var i=!1;else{if(e=ql,ql=null,Kl=0,6&Pl)throw Error(n(331));var o=Pl;for(Pl|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(16&Js.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Js=c;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:rl(8,d,a)}var h=d.child;if(null!==h)h.return=d,Js=h;else for(;null!==Js;){var p=(d=Js).sibling,f=d.return;if(al(d),d===c){Js=null;break}if(null!==p){p.return=f,Js=p;break}Js=f}}}var g=a.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(null!==m)}}Js=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(2048&(a=Js).flags)switch(a.tag){case 0:case 11:case 15:rl(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,Js=v;break e}Js=a.return}}var x=e.current;for(Js=x;null!==Js;){var b=(s=Js).child;if(2064&s.subtreeFlags&&null!==b)b.return=s,Js=b;else e:for(s=x;null!==Js;){if(2048&(l=Js).flags)try{switch(l.tag){case 0:case 11:case 15:il(9,l)}}catch(w){Cu(l,l.return,w)}if(l===s){Js=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,Js=_;break e}Js=l.return}}if(Pl=o,Vi(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(w){}i=!0}return i}finally{bt=r,Il.transition=t}}return!1}function ku(e,t,n){e=Wo(e,t=fs(0,t=cs(n,t),1),1),t=tu(),null!==e&&(vt(e,1,t),iu(e,t))}function Cu(e,t,n){if(3===e.tag)ku(e,e,n);else for(;null!==t;){if(3===t.tag){ku(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Xl||!Xl.has(r))){t=Wo(t,e=gs(t,e=cs(n,e),1),1),e=tu(),null!==t&&(vt(t,1,e),iu(t,e));break}}t=t.return}}function Tu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,Dl===e&&(El&n)===n&&(4===Ll||3===Ll&&(130023424&El)===El&&500>Qe()-jl?pu(e,0):Fl|=n),iu(e,t)}function Mu(e,t){0===t&&(1&e.mode?(t=dt,!(130023424&(dt<<=1))&&(dt=4194304)):t=1);var n=tu();null!==(e=No(e,t))&&(vt(e,t,n),iu(e,n))}function Iu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Mu(e,n)}function Pu(e,t){var r=0;switch(e.tag){case 13:var i=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(n(314))}null!==i&&i.delete(t),Mu(e,r)}function Du(e,t){return Ye(e,t)}function Au(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Eu(e,t,n,r){return new Au(e,t,n,r)}function Ru(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ou(e,t){var n=e.alternate;return null===n?((n=Eu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lu(e,t,r,i,o,a){var s=2;if(i=e,"function"==typeof e)Ru(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Nu(r.children,o,a,t);case k:s=8,o|=8;break;case T:return(e=Eu(12,r,t,2|o)).elementType=T,e.lanes=a,e;case D:return(e=Eu(13,r,t,o)).elementType=D,e.lanes=a,e;case A:return(e=Eu(19,r,t,o)).elementType=A,e.lanes=a,e;case O:return zu(r,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case M:s=10;break e;case I:s=9;break e;case P:s=11;break e;case E:s=14;break e;case R:s=16,i=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Eu(s,r,t,o)).elementType=e,t.type=i,t.lanes=a,t}function Nu(e,t,n,r){return(e=Eu(7,e,r,t)).lanes=n,e}function zu(e,t,n,r){return(e=Eu(22,e,r,t)).elementType=O,e.lanes=n,e.stateNode={isHidden:!1},e}function Bu(e,t,n){return(e=Eu(6,e,null,t)).lanes=n,e}function Fu(e,t,n){return(t=Eu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $u(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yt(0),this.expirationTimes=yt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Wu(e,t,n,r,i,o,a,s,l){return e=new $u(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Eu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bo(o),e}function ju(e){if(!e)return Ii;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ri(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Ri(r))return Ni(e,r,t)}return t}function Vu(e,t,n,r,i,o,a,s,l){return(e=Wu(n,r,!0,e,0,o,0,s,l)).context=ju(null),n=e.current,(o=$o(r=tu(),i=nu(n))).callback=null!=t?t:null,Wo(n,o,i),e.current.lanes=i,vt(e,i,r),iu(e,r),e}function Hu(e,t,n,r){var i=t.current,o=tu(),a=nu(i);return n=ju(n),null===t.context?t.context=n:t.pendingContext=n,(t=$o(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Wo(i,t,a))&&(ru(e,i,a,o),jo(e,i,a)),a}function Gu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Uu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Xu(e,t){Uu(e,t),(e=e.alternate)&&Uu(e,t)}kl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Di.current)bs=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ds(t),go();break;case 5:Jo(t);break;case 1:Ri(t.type)&&zi(t);break;case 4:Zo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Mi(ko,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Mi(ta,1&ta.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Bs(e,t,n):(Mi(ta,1&ta.current),null!==(e=Gs(e,t,n))?e.sibling:null);Mi(ta,1&ta.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Vs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Mi(ta,ta.current),r)break;return null;case 22:case 23:return t.lanes=0,Cs(e,t,n)}return Gs(e,t,n)}(e,t,r);bs=!!(131072&e.flags)}else bs=!1,oo&&1048576&t.flags&&eo(t,Xi,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Hs(e,t),e=t.pendingProps;var o=Ei(t,Pi.current);Ao(t,r),o=ya(null,t,i,e,o,r);var a=va();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ri(i)?(a=!0,zi(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Bo(t),o.updater=os,t.stateNode=o,o._reactInternals=t,us(t,i,e,r),t=Ps(null,t,i,!0,a,r)):(t.tag=0,oo&&a&&to(t),_s(null,t,o,r),t=t.child),t;case 16:i=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return Ru(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===E)return 14}return 2}(i),e=rs(i,e),o){case 0:t=Ms(null,t,i,e,r);break e;case 1:t=Is(null,t,i,e,r);break e;case 11:t=ws(null,t,i,e,r);break e;case 14:t=Ss(null,t,i,rs(i.type,e),r);break e}throw Error(n(306,i,""))}return t;case 0:return i=t.type,o=t.pendingProps,Ms(e,t,i,o=t.elementType===i?o:rs(i,o),r);case 1:return i=t.type,o=t.pendingProps,Is(e,t,i,o=t.elementType===i?o:rs(i,o),r);case 3:e:{if(Ds(t),null===e)throw Error(n(387));i=t.pendingProps,o=(a=t.memoizedState).element,Fo(e,t),Ho(t,i,null,r);var s=t.memoizedState;if(i=s.element,a.isDehydrated){if(a={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=As(e,t,i,r,o=cs(Error(n(423)),t));break e}if(i!==o){t=As(e,t,i,r,o=cs(Error(n(424)),t));break e}for(io=ci(t.stateNode.containerInfo.firstChild),ro=t,oo=!0,ao=null,r=So(t,null,i,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(go(),i===o){t=Gs(e,t,r);break e}_s(e,t,i,r)}t=t.child}return t;case 5:return Jo(t),null===e&&co(t),i=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,ri(i,o)?s=null:null!==a&&ri(i,a)&&(t.flags|=32),Ts(e,t),_s(e,t,s,r),t.child;case 6:return null===e&&co(t),null;case 13:return Bs(e,t,r);case 4:return Zo(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=wo(t,null,i,r):_s(e,t,i,r),t.child;case 11:return i=t.type,o=t.pendingProps,ws(e,t,i,o=t.elementType===i?o:rs(i,o),r);case 7:return _s(e,t,t.pendingProps,r),t.child;case 8:case 12:return _s(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(i=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Mi(ko,i._currentValue),i._currentValue=s,null!==a)if(lr(a.value,s)){if(a.children===o.children&&!Di.current){t=Gs(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===i){if(1===a.tag){(u=$o(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=r,null!==(u=a.alternate)&&(u.lanes|=r),Do(a.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(n(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Do(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}_s(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,i=t.pendingProps.children,Ao(t,r),i=i(o=Eo(o)),t.flags|=1,_s(e,t,i,r),t.child;case 14:return o=rs(i=t.type,t.pendingProps),Ss(e,t,i,o=rs(i.type,o),r);case 15:return ks(e,t,t.type,t.pendingProps,r);case 17:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:rs(i,o),Hs(e,t),t.tag=1,Ri(i)?(e=!0,zi(t)):e=!1,Ao(t,r),ss(t,i,o),us(t,i,o,r),Ps(null,t,i,!0,e,r);case 19:return Vs(e,t,r);case 22:return Cs(e,t,r)}throw Error(n(156,t.tag))};var Yu="function"==typeof reportError?reportError:function(e){console.error(e)};function qu(e){this._internalRoot=e}function Ku(e){this._internalRoot=e}function Zu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function ec(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=Gu(a);s.call(e)}}Hu(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=Gu(a);o.call(e)}}var a=Vu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=a,e[gi]=a.current,Vr(8===e.nodeType?e.parentNode:e),du(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=Gu(l);s.call(e)}}var l=Wu(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=l,e[gi]=l.current,Vr(8===e.nodeType?e.parentNode:e),du(function(){Hu(t,l,n,r)}),l}(n,t,e,i,r);return Gu(a)}Ku.prototype.render=qu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Hu(e,t,null,null)},Ku.prototype.unmount=qu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du(function(){Hu(null,e,null,null)}),t[gi]=null}},Ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&0!==t&&t<Ot[n].priority;n++);Ot.splice(n,0,e),0===n&&Bt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ht(t.pendingLanes);0!==n&&(xt(t,1|n),iu(t,Qe()),!(6&Pl)&&(Vl=Qe()+500,Vi()))}break;case 13:du(function(){var t=No(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}}),Xu(e,1)}},St=function(e){if(13===e.tag){var t=No(e,134217728);if(null!==t)ru(t,e,134217728,tu());Xu(e,134217728)}},kt=function(e){if(13===e.tag){var t=nu(e),n=No(e,t);if(null!==n)ru(n,e,t,tu());Xu(e,t)}},Ct=function(){return bt},Tt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,r){switch(t){case"input":if(J(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var i=r[t];if(i!==e&&i.form===e.form){var o=wi(i);if(!o)throw Error(n(90));Y(i),J(i,o)}}}break;case"textarea":ae(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Pe=cu,De=du;var tc={usingClientEntryPoint:!1,Events:[bi,_i,wi,Me,Ie,cu]},nc={findFiberByHostInstance:xi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ic.isDisabled&&ic.supportsFiber)try{ot=ic.inject(rc),at=ic}catch(de){}}return w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,w.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zu(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},w.createRoot=function(e,t){if(!Zu(e))throw Error(n(299));var r=!1,i="",o=Yu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Wu(e,1,!1,null,0,r,0,i,o),e[gi]=t.current,Vr(8===e.nodeType?e.parentNode:e),new qu(t)},w.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=Ue(t))?null:e.stateNode},w.flushSync=function(e){return du(e)},w.hydrate=function(e,t,r){if(!Qu(t))throw Error(n(200));return ec(null,e,t,!0,r)},w.hydrateRoot=function(e,t,r){if(!Zu(e))throw Error(n(405));var i=null!=r&&r.hydratedSources||null,o=!1,a="",s=Yu;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Vu(t,null,e,1,null!=r?r:null,o,0,a,s),e[gi]=t.current,Vr(e),i)for(e=0;e<i.length;e++)o=(o=(r=i[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Ku(t)},w.render=function(e,t,r){if(!Qu(t))throw Error(n(200));return ec(null,e,t,!1,r)},w.unmountComponentAtNode=function(e){if(!Qu(e))throw Error(n(40));return!!e._reactRootContainer&&(du(function(){ec(null,null,e,!1,function(){e._reactRootContainer=null,e[gi]=null})}),!0)},w.unstable_batchedUpdates=cu,w.unstable_renderSubtreeIntoContainer=function(e,t,r,i){if(!Qu(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return ec(e,t,r,!1,i)},w.version="18.3.1-next-f1338f8080-20240426",w}function M(){if(y)return _.exports;return y=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),_.exports=T(),_.exports}const I=r(function(){if(v)return b;v=1;var e=M();return b.createRoot=e.createRoot,b.hydrateRoot=e.hydrateRoot,b}());var P=p();const D=r(P),A=n({__proto__:null,default:D},[P]),E=P.createContext(null),R={didCatch:!1,error:null};class O extends P.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=R}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:i,reason:"imperative-api"}),this.setState(R)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var i,o;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)&&(null===(i=(o=this.props).onReset)||void 0===i||i.call(o,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(R))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:i,error:o}=this.state;let a=e;if(i){const e={error:o,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=P.createElement(n,e);else{if(null!==r&&!P.isValidElement(r))throw o;a=r}}return P.createElement(E.Provider,{value:{didCatch:i,error:o,resetErrorBoundary:this.resetErrorBoundary}},a)}}function L(e,t,n){return t?Array.isArray(t)?t.map(t=>L(e,t,n)):"object"==typeof t?N(t,n):t:t}const N=(e,t)=>Object.entries(e).reduce((n,[r,i])=>({...n,[t(r)]:L(e,i,t)}),{}),z=e=>e.replace(/_([a-z0-9])/g,(e,t)=>t.toUpperCase()),B=window.templateArgs?(F=window.templateArgs,N(F,z)):{};var F;const $=!!B.isReport&&{...B,charts:(B.history||[]).reduce((e,{currentResponseTimePercentiles:t,...n})=>{return r=e,i={...t,...n},Object.entries(i).reduce((e,[t,n])=>({...e,[t]:[...e[t]||[],n]}),r);var r,i},{})},W={black:"#000",white:"#fff"},j="#e57373",V="#ef5350",H="#f44336",G="#d32f2f",U="#c62828",X="#f3e5f5",Y="#ce93d8",q="#ba68c8",K="#ab47bc",Z="#9c27b0",Q="#7b1fa2",J="#e3f2fd",ee="#90caf9",te="#42a5f5",ne="#1976d2",re="#1565c0",ie="#4fc3f7",oe="#29b6f6",ae="#03a9f4",se="#0288d1",le="#01579b",ue="#81c784",ce="#66bb6a",de="#4caf50",he="#388e3c",pe="#2e7d32",fe="#1b5e20",ge="#ffb74d",me="#ffa726",ye="#ff9800",ve="#f57c00",xe="#e65100",be={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 _e(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}const we="$$material";function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Se.apply(null,arguments)}var ke=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(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]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Ce="-ms-",Te="-moz-",Me="-webkit-",Ie="comm",Pe="rule",De="decl",Ae="@keyframes",Ee=Math.abs,Re=String.fromCharCode,Oe=Object.assign;function Le(e){return e.trim()}function Ne(e,t,n){return e.replace(t,n)}function ze(e,t){return e.indexOf(t)}function Be(e,t){return 0|e.charCodeAt(t)}function Fe(e,t,n){return e.slice(t,n)}function $e(e){return e.length}function We(e){return e.length}function je(e,t){return t.push(e),e}var Ve=1,He=1,Ge=0,Ue=0,Xe=0,Ye="";function qe(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Ve,column:He,length:a,return:""}}function Ke(e,t){return Oe(qe("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ze(){return Xe=Ue>0?Be(Ye,--Ue):0,He--,10===Xe&&(He=1,Ve--),Xe}function Qe(){return Xe=Ue<Ge?Be(Ye,Ue++):0,He++,10===Xe&&(He=1,Ve++),Xe}function Je(){return Be(Ye,Ue)}function et(){return Ue}function tt(e,t){return Fe(Ye,e,t)}function nt(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 rt(e){return Ve=He=1,Ge=$e(Ye=e),Ue=0,[]}function it(e){return Ye="",e}function ot(e){return Le(tt(Ue-1,lt(91===e?e+2:40===e?e+1:e)))}function at(e){for(;(Xe=Je())&&Xe<33;)Qe();return nt(e)>2||nt(Xe)>3?"":" "}function st(e,t){for(;--t&&Qe()&&!(Xe<48||Xe>102||Xe>57&&Xe<65||Xe>70&&Xe<97););return tt(e,et()+(t<6&&32==Je()&&32==Qe()))}function lt(e){for(;Qe();)switch(Xe){case e:return Ue;case 34:case 39:34!==e&&39!==e&<(Xe);break;case 40:41===e&<(e);break;case 92:Qe()}return Ue}function ut(e,t){for(;Qe()&&e+Xe!==57&&(e+Xe!==84||47!==Je()););return"/*"+tt(t,Ue-1)+"*"+Re(47===e?e:Qe())}function ct(e){for(;!nt(Je());)Qe();return tt(e,Ue)}function dt(e){return it(ht("",null,null,null,[""],e=rt(e),0,[0],e))}function ht(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,h=0,p=0,f=0,g=1,m=1,y=1,v=0,x="",b=i,_=o,w=r,S=x;m;)switch(f=v,v=Qe()){case 40:if(108!=f&&58==Be(S,d-1)){-1!=ze(S+=Ne(ot(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=ot(v);break;case 9:case 10:case 13:case 32:S+=at(f);break;case 92:S+=st(et()-1,7);continue;case 47:switch(Je()){case 42:case 47:je(ft(ut(Qe(),et()),t,n),l);break;default:S+="/"}break;case 123*g:s[u++]=$e(S)*y;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+c:-1==y&&(S=Ne(S,/\f/g,"")),p>0&&$e(S)-d&&je(p>32?gt(S+";",r,n,d-1):gt(Ne(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(je(w=pt(S,t,n,u,c,i,s,x,b=[],_=[],d),o),123===v)if(0===c)ht(S,t,w,w,b,o,d,s,_);else switch(99===h&&110===Be(S,3)?100:h){case 100:case 108:case 109:case 115:ht(e,w,w,r&&je(pt(e,w,w,0,0,i,s,x,i,b=[],d),_),i,_,d,s,r?b:_);break;default:ht(S,w,w,w,[""],_,0,s,_)}}u=c=p=0,g=y=1,x=S="",d=a;break;case 58:d=1+$e(S),p=f;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==Ze())continue;switch(S+=Re(v),v*g){case 38:y=c>0?1:(S+="\f",-1);break;case 44:s[u++]=($e(S)-1)*y,y=1;break;case 64:45===Je()&&(S+=ot(Qe())),h=Je(),c=d=$e(x=S+=ct(et())),v++;break;case 45:45===f&&2==$e(S)&&(g=0)}}return o}function pt(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,h=0===i?o:[""],p=We(h),f=0,g=0,m=0;f<r;++f)for(var y=0,v=Fe(e,d+1,d=Ee(g=a[f])),x=e;y<p;++y)(x=Le(g>0?h[y]+" "+v:Ne(v,/&\f/g,h[y])))&&(l[m++]=x);return qe(e,t,n,0===i?Pe:s,l,u,c)}function ft(e,t,n){return qe(e,t,n,Ie,Re(Xe),Fe(e,2,-2),0)}function gt(e,t,n,r){return qe(e,t,n,De,Fe(e,0,r),Fe(e,r+1,-1),r)}function mt(e,t){for(var n="",r=We(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function yt(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case De:return e.return=e.return||e.value;case Ie:return"";case Ae:return e.return=e.value+"{"+mt(e.children,r)+"}";case Pe:e.value=e.props.join(",")}return $e(n=mt(e.children,r))?e.return=e.value+"{"+n+"}":""}function vt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var xt=function(e,t,n){for(var r=0,i=0;r=i,i=Je(),38===r&&12===i&&(t[n]=1),!nt(i);)Qe();return tt(e,Ue)},bt=function(e,t){return it(function(e,t){var n=-1,r=44;do{switch(nt(r)){case 0:38===r&&12===Je()&&(t[n]=1),e[n]+=xt(Ue-1,t,n);break;case 2:e[n]+=ot(r);break;case 4:if(44===r){e[++n]=58===Je()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Re(r)}}while(r=Qe());return e}(rt(e),t))},_t=new WeakMap,wt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||_t.get(n))&&!r){_t.set(e,!0);for(var i=[],o=bt(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},St=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function kt(e,t){switch(function(e,t){return 45^Be(e,0)?(((t<<2^Be(e,0))<<2^Be(e,1))<<2^Be(e,2))<<2^Be(e,3):0}(e,t)){case 5103:return Me+"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 Me+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Me+e+Te+e+Ce+e+e;case 6828:case 4268:return Me+e+Ce+e+e;case 6165:return Me+e+Ce+"flex-"+e+e;case 5187:return Me+e+Ne(e,/(\w+).+(:[^]+)/,Me+"box-$1$2"+Ce+"flex-$1$2")+e;case 5443:return Me+e+Ce+"flex-item-"+Ne(e,/flex-|-self/,"")+e;case 4675:return Me+e+Ce+"flex-line-pack"+Ne(e,/align-content|flex-|-self/,"")+e;case 5548:return Me+e+Ce+Ne(e,"shrink","negative")+e;case 5292:return Me+e+Ce+Ne(e,"basis","preferred-size")+e;case 6060:return Me+"box-"+Ne(e,"-grow","")+Me+e+Ce+Ne(e,"grow","positive")+e;case 4554:return Me+Ne(e,/([^-])(transform)/g,"$1"+Me+"$2")+e;case 6187:return Ne(Ne(Ne(e,/(zoom-|grab)/,Me+"$1"),/(image-set)/,Me+"$1"),e,"")+e;case 5495:case 3959:return Ne(e,/(image-set\([^]*)/,Me+"$1$`$1");case 4968:return Ne(Ne(e,/(.+:)(flex-)?(.*)/,Me+"box-pack:$3"+Ce+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Me+e+e;case 4095:case 3583:case 4068:case 2532:return Ne(e,/(.+)-inline(.+)/,Me+"$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($e(e)-1-t>6)switch(Be(e,t+1)){case 109:if(45!==Be(e,t+4))break;case 102:return Ne(e,/(.+:)(.+)-([^]+)/,"$1"+Me+"$2-$3$1"+Te+(108==Be(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ze(e,"stretch")?kt(Ne(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Be(e,t+1))break;case 6444:switch(Be(e,$e(e)-3-(~ze(e,"!important")&&10))){case 107:return Ne(e,":",":"+Me)+e;case 101:return Ne(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Me+(45===Be(e,14)?"inline-":"")+"box$3$1"+Me+"$2$3$1"+Ce+"$2box$3")+e}break;case 5936:switch(Be(e,t+11)){case 114:return Me+e+Ce+Ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Me+e+Ce+Ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Me+e+Ce+Ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Me+e+Ce+e+e}return e}var Ct,Tt,Mt,It,Pt=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case De:e.return=kt(e.value,e.length);break;case Ae:return mt([Ke(e,{value:Ne(e.value,"@","@"+Me)})],r);case Pe:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return mt([Ke(e,{props:[Ne(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return mt([Ke(e,{props:[Ne(t,/:(plac\w+)/,":"+Me+"input-$1")]}),Ke(e,{props:[Ne(t,/:(plac\w+)/,":-moz-$1")]}),Ke(e,{props:[Ne(t,/:(plac\w+)/,Ce+"input-$1")]})],r)}return""})}}],Dt=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,i,o=e.stylisPlugins||Pt,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,u,c,d,h=[yt,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[wt,St].concat(o,h),c=We(u),function(e,t,n,r){for(var i="",o=0;o<c;o++)i+=u[o](e,t,n,r)||"";return i});i=function(e,t,n,r){l=n,mt(dt(e?e+"{"+t.styles+"}":t.styles),p),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new ke({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return f.sheet.hydrate(s),f},At={exports:{}},Et={};function Rt(){return Tt||(Tt=1,At.exports=function(){if(Ct)return Et;Ct=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case l:case u:case r:case o:case i:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case f:case p:case a:return e;default:return h}}case n:return h}}}function b(e){return x(e)===u}return Et.AsyncMode=l,Et.ConcurrentMode=u,Et.ContextConsumer=s,Et.ContextProvider=a,Et.Element=t,Et.ForwardRef=c,Et.Fragment=r,Et.Lazy=f,Et.Memo=p,Et.Portal=n,Et.Profiler=o,Et.StrictMode=i,Et.Suspense=d,Et.isAsyncMode=function(e){return b(e)||x(e)===l},Et.isConcurrentMode=b,Et.isContextConsumer=function(e){return x(e)===s},Et.isContextProvider=function(e){return x(e)===a},Et.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Et.isForwardRef=function(e){return x(e)===c},Et.isFragment=function(e){return x(e)===r},Et.isLazy=function(e){return x(e)===f},Et.isMemo=function(e){return x(e)===p},Et.isPortal=function(e){return x(e)===n},Et.isProfiler=function(e){return x(e)===o},Et.isStrictMode=function(e){return x(e)===i},Et.isSuspense=function(e){return x(e)===d},Et.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===o||e===i||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===m||e.$$typeof===y||e.$$typeof===v||e.$$typeof===g)},Et.typeOf=x,Et}()),At.exports}!function(){if(It)return Mt;It=1;var e=Rt(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function o(n){return e.isMemo(n)?r:i[n.$$typeof]||t}i[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;Mt=function e(t,r,i){if("string"!=typeof r){if(d){var h=c(r);h&&h!==d&&e(t,h,i)}var p=s(r);l&&(p=p.concat(l(r)));for(var f=o(t),g=o(r),m=0;m<p.length;++m){var y=p[m];if(!(n[y]||i&&i[y]||g&&g[y]||f&&f[y])){var v=u(r,y);try{a(t,y,v)}catch(x){}}}}return t}}();function Ot(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var Lt=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Nt=function(e,t,n){Lt(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var zt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Bt=/[A-Z]|^ms/g,Ft=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$t=function(e){return 45===e.charCodeAt(1)},Wt=function(e){return null!=e&&"boolean"!=typeof e},jt=vt(function(e){return $t(e)?e:e.replace(Bt,"-$&").toLowerCase()}),Vt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ft,function(e,t,n){return Gt={name:t,styles:n,next:Gt},t})}return 1===zt[e]||$t(e)||"number"!=typeof t||0===t?t:t+"px"};function Ht(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return Gt={name:i.name,styles:i.styles,next:Gt},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)Gt={name:a.name,styles:a.styles,next:Gt},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Ht(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":Wt(s)&&(r+=jt(o)+":"+Vt(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Ht(e,t,a);switch(o){case"animation":case"animationName":r+=jt(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var u=0;u<a.length;u++)Wt(a[u])&&(r+=jt(o)+":"+Vt(o,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Gt,l=n(e);return Gt=s,Ht(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var Gt,Ut=/label:\s*([^\s;{]+)\s*(;|$)/g;function Xt(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Gt=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=Ht(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=Ht(n,t,e[a]),r)i+=o[a]}Ut.lastIndex=0;for(var s,l="";null!==(s=Ut.exec(i));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:u,styles:i,next:Gt}}var Yt=!!A.useInsertionEffect&&A.useInsertionEffect,qt=Yt||function(e){return e()},Kt=Yt||P.useLayoutEffect,Zt=P.createContext("undefined"!=typeof HTMLElement?Dt({key:"css"}):null);Zt.Provider;var Qt,Jt,en=function(e){return P.forwardRef(function(t,n){var r=P.useContext(Zt);return e(t,r,n)})},tn=P.createContext({}),nn={}.hasOwnProperty,rn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",on=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Lt(t,n,r),qt(function(){return Nt(t,n,r)}),null},an=en(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[rn],o=[r],a="";"string"==typeof e.className?a=Ot(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=Xt(o,void 0,P.useContext(tn));a+=t.key+"-"+s.name;var l={};for(var u in e)nn.call(e,u)&&"css"!==u&&u!==rn&&(l[u]=e[u]);return l.className=a,n&&(l.ref=n),P.createElement(P.Fragment,null,P.createElement(on,{cache:t,serialized:s,isStringTag:"string"==typeof i}),P.createElement(i,l))}),sn=function(e,t){var n=arguments;if(null==t||!nn.call(t,"css"))return P.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=an,i[1]=function(e,t){var n={};for(var r in t)nn.call(t,r)&&(n[r]=t[r]);return n[rn]=e,n}(e,t);for(var o=2;o<r;o++)i[o]=n[o];return P.createElement.apply(null,i)};Qt=sn||(sn={}),Jt||(Jt=Qt.JSX||(Qt.JSX={}));var ln=en(function(e,t){var n=Xt([e.styles],void 0,P.useContext(tn)),r=P.useRef();return Kt(function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}},[t]),Kt(function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Nt(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)}},[t,n.name]),null});function un(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Xt(t)}function cn(){var e=un.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var dn=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|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)-.*))$/,hn=vt(function(e){return dn.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),pn=function(e){return"theme"!==e},fn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?hn:pn},gn=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},mn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Lt(t,n,r),qt(function(){return Nt(t,n,r)}),null},yn=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=gn(t,n,o),l=s||fn(a),u=!l("as");return function(){var c=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{var h=c[0];d.push(h[0]);for(var p=c.length,f=1;f<p;f++)d.push(c[f],h[f])}var g=en(function(e,t,n){var r=u&&e.as||a,o="",c=[],h=e;if(null==e.theme){for(var p in h={},e)h[p]=e[p];h.theme=P.useContext(tn)}"string"==typeof e.className?o=Ot(t.registered,c,e.className):null!=e.className&&(o=e.className+" ");var f=Xt(d.concat(c),t.registered,h);o+=t.key+"-"+f.name,void 0!==i&&(o+=" "+i);var g=u&&void 0===s?fn(r):l,m={};for(var y in e)u&&"as"===y||g(y)&&(m[y]=e[y]);return m.className=o,n&&(m.ref=n),P.createElement(P.Fragment,null,P.createElement(mn,{cache:t,serialized:f,isStringTag:"string"==typeof r}),P.createElement(r,m))});return g.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=d,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+i}}),g.withComponent=function(t,r){return e(t,Se({},n,r,{shouldForwardProp:gn(g,r,!0)})).apply(void 0,d)},g}}.bind(null);function vn(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return x.jsx(ln,{styles:r})}function xn(e,t){return yn(e,t)}["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"].forEach(function(e){yn[e]=yn(e)});const bn=[];function _n(e){return bn[0]=e,Xt(bn)}var wn,Sn,kn={exports:{}},Cn={};function Tn(){if(wn)return Cn;wn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function f(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:switch(p=p.type){case n:case i:case r:case l:case u:case h:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case c:case o:return p;default:return f}}case t:return f}}}return Cn.ContextConsumer=o,Cn.ContextProvider=a,Cn.Element=e,Cn.ForwardRef=s,Cn.Fragment=n,Cn.Lazy=d,Cn.Memo=c,Cn.Portal=t,Cn.Profiler=i,Cn.StrictMode=r,Cn.Suspense=l,Cn.SuspenseList=u,Cn.isContextConsumer=function(e){return f(e)===o},Cn.isContextProvider=function(e){return f(e)===a},Cn.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Cn.isForwardRef=function(e){return f(e)===s},Cn.isFragment=function(e){return f(e)===n},Cn.isLazy=function(e){return f(e)===d},Cn.isMemo=function(e){return f(e)===c},Cn.isPortal=function(e){return f(e)===t},Cn.isProfiler=function(e){return f(e)===i},Cn.isStrictMode=function(e){return f(e)===r},Cn.isSuspense=function(e){return f(e)===l},Cn.isSuspenseList=function(e){return f(e)===u},Cn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===i||e===r||e===l||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===a||e.$$typeof===o||e.$$typeof===s||e.$$typeof===p||void 0!==e.getModuleId)},Cn.typeOf=f,Cn}function Mn(){return Sn||(Sn=1,kn.exports=Tn()),kn.exports}var In=Mn();function Pn(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Dn(e){if(P.isValidElement(e)||In.isValidElementType(e)||!Pn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Dn(e[n])}),t}function An(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Pn(e)&&Pn(t)&&Object.keys(t).forEach(i=>{P.isValidElement(t[i])||In.isValidElementType(t[i])?r[i]=t[i]:Pn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Pn(e[i])?r[i]=An(e[i],t[i],n):n.clone?r[i]=Pn(t[i])?Dn(t[i]):t[i]:r[i]=t[i]}),r}function En(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,o=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return{keys:a,values:o,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...i}}const Rn={borderRadius:4};function On(e,t){return t?An(e,t,{clone:!1}):e}const Ln={xs:0,sm:600,md:900,lg:1200,xl:1536},Nn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ln[e]}px)`},zn={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:Ln[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Bn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Nn;return t.reduce((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r),{})}if("object"==typeof t){const e=r.breakpoints||Nn;return Object.keys(t).reduce((i,o)=>{if(a=e.keys,"@"===(s=o)||s.startsWith("@")&&(a.some(e=>s.startsWith(`@${e}`))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(o)}(r.containerQueries?r:zn,o);e&&(i[e]=n(t[o],o))}else if(Object.keys(e.values||Ln).includes(o)){i[e.up(o)]=n(t[o],o)}else{const e=o;i[e]=t[e]}var a,s;return i},{})}return n(t)}function Fn(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}function $n(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function Wn({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{null!=e[t]&&(n[t]=!0)}),n}(e,t),i=Object.keys(r);if(0===i.length)return e;let o;return i.reduce((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[o],o=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[o],o=n):t[n]=e,t),{})}function jn(e){if("string"!=typeof e)throw new Error(_e(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Vn(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function Hn(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Vn(e,n)||r,t&&(i=t(i,r,e)),i}function Gn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=Vn(e.theme,r)||{};return Bn(e,o,e=>{let r=Hn(a,i,e);return e===r&&"string"==typeof e&&(r=Hn(a,i,`${t}${"default"===e?"":jn(e)}`,e)),!1===n?r:{[n]:r}})};return o.propTypes={},o.filterProps=[t],o}const Un={m:"margin",p:"padding"},Xn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},qn=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!Yn[e])return[e];e=Yn[e]}const[t,n]=e.split(""),r=Un[t],i=Xn[n]||"";return Array.isArray(i)?i.map(e=>r+e):[r+i]}),Kn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Zn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Qn(e,t,n,r){const i=Vn(e,t,!0)??n;return"number"==typeof i||"string"==typeof i?e=>"string"==typeof e?e:"string"==typeof i?i.startsWith("var(")&&0===e?0:i.startsWith("var(")&&1===e?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=i[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof i?i:()=>{}}function Jn(e){return Qn(e,"spacing",8)}function er(e,t){return"string"==typeof t||null==t?t:e(t)}function tr(e,t,n,r){if(!t.includes(n))return null;const i=function(e,t){return n=>e.reduce((e,r)=>(e[r]=er(t,n),e),{})}(qn(n),r);return Bn(e,e[n],i)}function nr(e,t){const n=Jn(e.theme);return Object.keys(e).map(r=>tr(e,t,r,n)).reduce(On,{})}function rr(e){return nr(e,Kn)}function ir(e){return nr(e,Zn)}function or(e=8,t=Jn({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}function ar(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?On(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function sr(e){return"number"!=typeof e?e:`${e}px solid`}function lr(e,t){return Gn({prop:e,themeKey:"borders",transform:t})}rr.propTypes={},rr.filterProps=Kn,ir.propTypes={},ir.filterProps=Zn;const ur=lr("border",sr),cr=lr("borderTop",sr),dr=lr("borderRight",sr),hr=lr("borderBottom",sr),pr=lr("borderLeft",sr),fr=lr("borderColor"),gr=lr("borderTopColor"),mr=lr("borderRightColor"),yr=lr("borderBottomColor"),vr=lr("borderLeftColor"),xr=lr("outline",sr),br=lr("outlineColor"),_r=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Qn(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:er(t,e)});return Bn(e,e.borderRadius,n)}return null};_r.propTypes={},_r.filterProps=["borderRadius"],ar(ur,cr,dr,hr,pr,fr,gr,mr,yr,vr,_r,xr,br);const wr=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Qn(e.theme,"spacing",8),n=e=>({gap:er(t,e)});return Bn(e,e.gap,n)}return null};wr.propTypes={},wr.filterProps=["gap"];const Sr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Qn(e.theme,"spacing",8),n=e=>({columnGap:er(t,e)});return Bn(e,e.columnGap,n)}return null};Sr.propTypes={},Sr.filterProps=["columnGap"];const kr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Qn(e.theme,"spacing",8),n=e=>({rowGap:er(t,e)});return Bn(e,e.rowGap,n)}return null};kr.propTypes={},kr.filterProps=["rowGap"];function Cr(e,t){return"grey"===t?t:e}ar(wr,Sr,kr,Gn({prop:"gridColumn"}),Gn({prop:"gridRow"}),Gn({prop:"gridAutoFlow"}),Gn({prop:"gridAutoColumns"}),Gn({prop:"gridAutoRows"}),Gn({prop:"gridTemplateColumns"}),Gn({prop:"gridTemplateRows"}),Gn({prop:"gridTemplateAreas"}),Gn({prop:"gridArea"}));function Tr(e){return e<=1&&0!==e?100*e+"%":e}ar(Gn({prop:"color",themeKey:"palette",transform:Cr}),Gn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Cr}),Gn({prop:"backgroundColor",themeKey:"palette",transform:Cr}));const Mr=Gn({prop:"width",transform:Tr}),Ir=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,i,o,a;const s=(null==(i=null==(r=null==(n=e.theme)?void 0:n.breakpoints)?void 0:r.values)?void 0:i[t])||Ln[t];return s?"px"!==(null==(a=null==(o=e.theme)?void 0:o.breakpoints)?void 0:a.unit)?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Tr(t)}};return Bn(e,e.maxWidth,t)}return null};Ir.filterProps=["maxWidth"];const Pr=Gn({prop:"minWidth",transform:Tr}),Dr=Gn({prop:"height",transform:Tr}),Ar=Gn({prop:"maxHeight",transform:Tr}),Er=Gn({prop:"minHeight",transform:Tr});Gn({prop:"size",cssProperty:"width",transform:Tr}),Gn({prop:"size",cssProperty:"height",transform:Tr});ar(Mr,Ir,Pr,Dr,Ar,Er,Gn({prop:"boxSizing"}));const Rr={border:{themeKey:"borders",transform:sr},borderTop:{themeKey:"borders",transform:sr},borderRight:{themeKey:"borders",transform:sr},borderBottom:{themeKey:"borders",transform:sr},borderLeft:{themeKey:"borders",transform:sr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:sr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:_r},color:{themeKey:"palette",transform:Cr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Cr},backgroundColor:{themeKey:"palette",transform:Cr},p:{style:ir},pt:{style:ir},pr:{style:ir},pb:{style:ir},pl:{style:ir},px:{style:ir},py:{style:ir},padding:{style:ir},paddingTop:{style:ir},paddingRight:{style:ir},paddingBottom:{style:ir},paddingLeft:{style:ir},paddingX:{style:ir},paddingY:{style:ir},paddingInline:{style:ir},paddingInlineStart:{style:ir},paddingInlineEnd:{style:ir},paddingBlock:{style:ir},paddingBlockStart:{style:ir},paddingBlockEnd:{style:ir},m:{style:rr},mt:{style:rr},mr:{style:rr},mb:{style:rr},ml:{style:rr},mx:{style:rr},my:{style:rr},margin:{style:rr},marginTop:{style:rr},marginRight:{style:rr},marginBottom:{style:rr},marginLeft:{style:rr},marginX:{style:rr},marginY:{style:rr},marginInline:{style:rr},marginInlineStart:{style:rr},marginInlineEnd:{style:rr},marginBlock:{style:rr},marginBlockStart:{style:rr},marginBlockEnd:{style:rr},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:wr},rowGap:{style:kr},columnGap:{style:Sr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Tr},maxWidth:{style:Ir},minWidth:{transform:Tr},height:{transform:Tr},maxHeight:{transform:Tr},minHeight:{transform:Tr},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Or=function(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=Vn(n,s)||{};if(u)return u(i);return Bn(i,t,t=>{let n=Hn(c,l,t);return t===n&&"string"==typeof t&&(n=Hn(c,l,`${e}${"default"===t?"":jn(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){const{sx:r,theme:i={}}=n||{};if(!r)return null;const o=i.unstable_sxConfig??Rr;function a(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const a=Fn(i.breakpoints),s=Object.keys(a);let l=a;return Object.keys(r).forEach(n=>{const a=(s=r[n],u=i,"function"==typeof s?s(u):s);var s,u;if(null!=a)if("object"==typeof a)if(o[n])l=On(l,e(n,a,i,o));else{const e=Bn({theme:i},a,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,a)?l=On(l,e):l[n]=t({sx:a,theme:i})}else l=On(l,e(n,a,i,o))}),function(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{var n,r;const i=/min-width:\s*([0-9.]+)/;return+((null==(n=e.match(i))?void 0:n[1])||0)-+((null==(r=t.match(i))?void 0:r[1])||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}(i,$n(s,l))}return Array.isArray(r)?r.map(a):a(r)}}();function Lr(e,t){var n;const r=this;if(r.vars){if(!(null==(n=r.colorSchemes)?void 0:n[e])||"function"!=typeof r.getColorSchemeSelector)return{};let i=r.getColorSchemeSelector(e);return"&"===i?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return r.palette.mode===e?t:{}}function Nr(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={},...a}=e;let s=An({breakpoints:En(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:or(i),shape:{...Rn,...o}},a);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const i=t(e.breakpoints.not(...n),r);return i.includes("not all and")?i.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):i}}const r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}(s),s.applyStyles=Lr,s=t.reduce((e,t)=>An(e,t),s),s.unstable_sxConfig={...Rr,...null==a?void 0:a.unstable_sxConfig},s.unstable_sx=function(e){return Or({sx:e,theme:this})},s}function zr(e=null){const t=P.useContext(tn);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}Or.filterProps=["sx"];const Br=Nr();function Fr(e=Br){return zr(e)}function $r({styles:e,themeId:t,defaultTheme:n={}}){const r=Fr(n),i="function"==typeof e?e(t&&r[t]||r):e;return x.jsx(vn,{styles:i})}function Wr(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=(e=>{var t;const n={systemProps:{},otherProps:{}},r=(null==(t=null==e?void 0:e.theme)?void 0:t.unstable_sxConfig)??Rr;return Object.keys(e).forEach(t=>{r[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n})(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Pn(n)?{...r,...n}:r}:{...r,...t},{...i,sx:o}}const jr=e=>e,Vr=(()=>{let e=jr;return{configure(t){e=t},generate:t=>e(t),reset(){e=jr}}})();function Hr(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Hr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Gr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Hr(e))&&(r&&(r+=" "),r+=t);return r}const Ur={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 Xr(e,t,n="Mui"){const r=Ur[t];return r?`${n}-${r}`:`${Vr.generate(e)}-${t}`}function Yr(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Xr(e,t,n)}),r}function qr(e){const{variants:t,...n}=e,r={variants:t,style:_n(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=_n(e.style))}),r}const Kr=Nr();function Zr(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Qr(e){return e?(t,n)=>n[e]:null}function Jr(e,t){const n="function"==typeof t?t(e):t;if(Array.isArray(n))return n.flatMap(t=>Jr(e,t));if(Array.isArray(null==n?void 0:n.variants)){let t;if(n.isProcessed)t=n.style;else{const{variants:e,...r}=n;t=r}return ei(e,n.variants,[t])}return(null==n?void 0:n.isProcessed)?n.style:n}function ei(e,t,n=[]){var r;let i;e:for(let o=0;o<t.length;o+=1){const a=t[o];if("function"==typeof a.props){if(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(i))continue}else for(const t in a.props)if(e[t]!==a.props[t]&&(null==(r=e.ownerState)?void 0:r[t])!==a.props[t])continue e;"function"==typeof a.style?(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),n.push(a.style(i))):n.push(a.style)}return n}function ti(e={}){const{themeId:t,defaultTheme:n=Kr,rootShouldForwardProp:r=Zr,slotShouldForwardProp:i=Zr}=e;function o(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,e=>e.filter(e=>e!==Or));const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:u=Qr(ri(a)),...c}=t,d=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,h=l||!1;let p=Zr;"Root"===a||"root"===a?p=r:a?p=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(p=void 0);const f=xn(e,{shouldForwardProp:p,label:ni(),...c}),g=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return Jr(t,e)};if(Pn(e)){const t=qr(e);return t.variants?function(e){return Jr(e,t)}:t.style}return e},m=(...t)=>{const r=[],i=t.map(g),a=[];if(r.push(o),n&&u&&a.push(function(e){var t,r;const i=null==(r=null==(t=e.theme.components)?void 0:t[n])?void 0:r.styleOverrides;if(!i)return null;const o={};for(const n in i)o[n]=Jr(e,i[n]);return u(e,o)}),n&&!d&&a.push(function(e){var t,r;const i=e.theme,o=null==(r=null==(t=null==i?void 0:i.components)?void 0:t[n])?void 0:r.variants;return o?ei(e,o):null}),h||a.push(Or),Array.isArray(i[0])){const e=i.shift(),t=new Array(r.length).fill(""),n=new Array(a.length).fill("");let o;o=[...t,...e,...n],o.raw=[...t,...e.raw,...n],r.unshift(o)}const s=[...r,...i,...a],l=f(...s);return e.muiName&&(l.muiName=e.muiName),l};return f.withConfig&&(m.withConfig=f.withConfig),m}}function ni(e,t){}function ri(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}const ii=ti();function oi(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=r;if("components"===i||"slots"===i)n[i]={...e[i],...n[i]};else if("componentsProps"===i||"slotProps"===i){const r=e[i],o=t[i];if(o)if(r){n[i]={...o};for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const t=e;n[i][t]=oi(r[t],o[t])}}else n[i]=o;else n[i]=r||{}}else void 0===n[i]&&(n[i]=e[i])}return n}function ai({props:e,name:t,defaultTheme:n,themeId:r}){let i=Fr(n);return r&&(i=i[r]||i),function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?oi(t.components[n].defaultProps,r):r}({theme:i,name:t,props:e})}const si="undefined"!=typeof window?P.useLayoutEffect:P.useEffect;function li(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function ui(e){if(e.type)return e;if("#"===e.charAt(0))return ui(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(_e(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(_e(10,r))}else i=i.split(",");return i=i.map(e=>parseFloat(e)),{type:n,values:i,colorSpace:r}}const ci=(e,t)=>{try{return(e=>{const t=ui(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(n){return e}};function di(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function hi(e){e=ui(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),di({type:s,values:l})}function pi(e){let t="hsl"===(e=ui(e)).type||"hsla"===e.type?ui(hi(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function fi(e,t){return e=ui(e),t=li(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,di(e)}function gi(e,t,n){try{return fi(e,t)}catch(r){return e}}function mi(e,t){if(e=ui(e),t=li(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return di(e)}function yi(e,t,n){try{return mi(e,t)}catch(r){return e}}function vi(e,t){if(e=ui(e),t=li(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return di(e)}function xi(e,t,n){try{return vi(e,t)}catch(r){return e}}function bi(e,t,n){try{return function(e,t=.15){return pi(e)>.5?mi(e,t):vi(e,t)}(e,t)}catch(r){return e}}const _i=P.createContext(null);function wi(){return P.useContext(_i)}const Si="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function ki(e){const{children:t,theme:n}=e,r=wi(),i=P.useMemo(()=>{const e=null===r?{...n}:function(e,t){if("function"==typeof t)return t(e);return{...e,...t}}(r,n);return null!=e&&(e[Si]=null!==r),e},[n,r]);return x.jsx(_i.Provider,{value:i,children:t})}const Ci=P.createContext();function Ti({value:e,...t}){return x.jsx(Ci.Provider,{value:e??!0,...t})}const Mi=P.createContext(void 0);function Ii({value:e,children:t}){return x.jsx(Mi.Provider,{value:e,children:t})}function Pi({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?oi(i.defaultProps,r):i.styleOverrides||i.variants?r:oi(i,r)}({props:e,name:t,theme:{components:P.useContext(Mi)}})}const Di={};function Ai(e,t,n,r=!1){return P.useMemo(()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?{...t,[e]:o}:o;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Ei(e){const{children:t,theme:n,themeId:r}=e,i=zr(Di),o=wi()||Di,a=Ai(r,i,n),s=Ai(r,o,n,!0),l="rtl"===(r?a[r]:a).direction;return x.jsx(ki,{theme:s,children:x.jsx(tn.Provider,{value:a,children:x.jsx(Ti,{value:l,children:x.jsx(Ii,{value:r?a[r].components:a.components,children:t})})})})}const Ri={theme:void 0};const Oi="mode",Li="color-scheme",Ni="data-color-scheme";function zi(){}const Bi=({key:e,storageWindow:t})=>(t||"undefined"==typeof window||(t=window),{get(n){if("undefined"==typeof window)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return zi;const r=t=>{const r=t.newValue;t.key===e&&n(r)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function Fi(){}function $i(e){if("undefined"!=typeof window&&"function"==typeof window.matchMedia&&"system"===e){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}}function Wi(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function ji(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:o=Oi,colorSchemeStorageKey:a=Li,storageWindow:s=("undefined"==typeof window?void 0:window),storageManager:l=Bi,noSsr:u=!1}=e,c=i.join(","),d=i.length>1,h=P.useMemo(()=>null==l?void 0:l({key:o,storageWindow:s}),[l,o,s]),p=P.useMemo(()=>null==l?void 0:l({key:`${a}-light`,storageWindow:s}),[l,a,s]),f=P.useMemo(()=>null==l?void 0:l({key:`${a}-dark`,storageWindow:s}),[l,a,s]),[g,m]=P.useState(()=>{const e=(null==h?void 0:h.get(t))||t,i=(null==p?void 0:p.get(n))||n,o=(null==f?void 0:f.get(r))||r;return{mode:e,systemMode:$i(e),lightColorScheme:i,darkColorScheme:o}}),[y,v]=P.useState(u||!d);P.useEffect(()=>{v(!0)},[]);const x=function(e){return Wi(e,t=>"light"===t?e.lightColorScheme:"dark"===t?e.darkColorScheme:void 0)}(g),b=P.useCallback(e=>{m(n=>{if(e===n.mode)return n;const r=e??t;return null==h||h.set(r),{...n,mode:r,systemMode:$i(r)}})},[h,t]),_=P.useCallback(e=>{e?"string"==typeof e?e&&!c.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):m(t=>{const n={...t};return Wi(t,t=>{"light"===t&&(null==p||p.set(e),n.lightColorScheme=e),"dark"===t&&(null==f||f.set(e),n.darkColorScheme=e)}),n}):m(t=>{const i={...t},o=null===e.light?n:e.light,a=null===e.dark?r:e.dark;return o&&(c.includes(o)?(i.lightColorScheme=o,null==p||p.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),a&&(c.includes(a)?(i.darkColorScheme=a,null==f||f.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),i}):m(e=>(null==p||p.set(n),null==f||f.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[c,p,f,n,r]),w=P.useCallback(e=>{"system"===g.mode&&m(t=>{const n=(null==e?void 0:e.matches)?"dark":"light";return t.systemMode===n?t:{...t,systemMode:n}})},[g.mode]),S=P.useRef(w);return S.current=w,P.useEffect(()=>{if("function"!=typeof window.matchMedia||!d)return;const e=(...e)=>S.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),P.useEffect(()=>{if(d){const e=(null==h?void 0:h.subscribe(e=>{e&&!["light","dark","system"].includes(e)||b(e||t)}))||Fi,n=(null==p?void 0:p.subscribe(e=>{e&&!c.match(e)||_({light:e})}))||Fi,r=(null==f?void 0:f.subscribe(e=>{e&&!c.match(e)||_({dark:e})}))||Fi;return()=>{e(),n(),r()}}},[_,b,c,t,s,d,h,p,f]),{...g,mode:y?g.mode:void 0,systemMode:y?g.systemMode:void 0,colorScheme:y?x:void 0,setMode:b,setColorScheme:_}}function Vi(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const Hi=(e,t,n,r=[])=>{let i=e;t.forEach((e,o)=>{o===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&"object"==typeof i&&(i[e]=n):i&&"object"==typeof i&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})};function Gi(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},o={},a={};var s,l;return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(i,{[r]:l}),Hi(o,e,`var(${r})`,s),Hi(a,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,i])=>{(!l||l&&!l([...n,t]))&&null!=i&&("object"==typeof i&&Object.keys(i).length>0?e(i,[...n,t],Array.isArray(i)?[...r,t]:r):s([...n,t],i,r))})}(e),{css:i,vars:o,varsWithDefaults:a}}function Ui(e,t,n=void 0){const r={};for(const i in e){const o=e[i];let a="",s=!0;for(let e=0;e<o.length;e+=1){const r=o[e];r&&(a+=(!0===s?"":" ")+t(r),s=!1,n&&n[r]&&(a+=" "+n[r]))}r[i]=a}return r}const Xi=Nr(),Yi=ii("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${jn(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),qi=e=>ai({props:e,name:"MuiContainer",defaultTheme:Xi});const Ki=Nr(),Zi=ii("div",{name:"MuiStack",slot:"Root"});function Qi(e){return ai({props:e,name:"MuiStack",defaultTheme:Ki})}function Ji(e,t){const n=P.Children.toArray(e).filter(Boolean);return n.reduce((e,r,i)=>(e.push(r),i<n.length-1&&e.push(P.cloneElement(t,{key:`separator-${i}`})),e),[])}const eo=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Bn({theme:t},Wn({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){const r=Jn(t),i=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),o=Wn({values:e.direction,base:i}),a=Wn({values:e.spacing,base:i});"object"==typeof o&&Object.keys(o).forEach((e,t,n)=>{if(!o[e]){const r=t>0?o[n[t-1]]:"column";o[e]=r}});n=An(n,Bn({theme:t},a,(t,n)=>{return e.useFlexGap?{gap:er(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${i=n?o[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[i]}`]:er(r,t)}};var i}))}return n=function(e,...t){const n=Fn(e),r=[n,...t].reduce((e,t)=>An(e,t),{});return $n(Object.keys(n),r)}(t.breakpoints,n),n};function to(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:W.white,default:W.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const no=to();function ro(){return{text:{primary:W.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:W.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const io=ro();function oo(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=vi(e.main,i):"dark"===t&&(e.dark=mi(e.main,o)))}function ao(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...i}=e,o=e.primary||function(e="light"){return"dark"===e?{main:ee,light:J,dark:te}:{main:ne,light:te,dark:re}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Y,light:X,dark:K}:{main:Z,light:q,dark:Q}}(t),s=e.error||function(e="light"){return"dark"===e?{main:H,light:j,dark:G}:{main:G,light:V,dark:U}}(t),l=e.info||function(e="light"){return"dark"===e?{main:oe,light:ie,dark:se}:{main:se,light:ae,dark:le}}(t),u=e.success||function(e="light"){return"dark"===e?{main:ce,light:ue,dark:he}:{main:pe,light:de,dark:fe}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:me,light:ge,dark:ve}:{main:"#ed6c02",light:ye,dark:xe}}(t);function d(e){const t=function(e,t){const n=pi(e),r=pi(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,io.text.primary)>=n?io.text.primary:no.text.primary;return t}const h=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(_e(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(_e(12,t?` (${t})`:"",JSON.stringify(e.main)));return oo(e,"light",i,r),oo(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e};let p;"light"===t?p=to():"dark"===t&&(p=ro());return An({common:{...W},mode:t,primary:h({color:o,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:c,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:u,name:"success"}),grey:be,contrastThreshold:n,getContrastText:d,augmentColor:h,tonalOffset:r,...p},i)}function so(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const lo={textTransform:"uppercase"},uo='"Roboto", "Helvetica", "Arial", sans-serif';function co(e,t){const{fontFamily:n=uo,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:u,pxToRem:c,...d}="function"==typeof t?t(e):t,h=r/14,p=c||(e=>e/l*h+"rem"),f=(e,t,r,i,o)=>{return{fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===uo?{letterSpacing:(a=i/t,Math.round(1e5*a)/1e5)+"em"}:{},...o,...u};var a},g={h1:f(i,96,1.167,-1.5),h2:f(i,60,1.2,-.5),h3:f(o,48,1.167,0),h4:f(o,34,1.235,.25),h5:f(o,24,1.334,0),h6:f(a,20,1.6,.15),subtitle1:f(o,16,1.75,.15),subtitle2:f(a,14,1.57,.1),body1:f(o,16,1.5,.15),body2:f(o,14,1.43,.15),button:f(a,14,1.75,.4,lo),caption:f(o,12,1.66,.4),overline:f(o,12,2.66,1,lo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return An({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:s,...g},d,{clone:!1})}function ho(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const po=["none",ho(0,2,1,-1,0,1,1,0,0,1,3,0),ho(0,3,1,-2,0,2,2,0,0,1,5,0),ho(0,3,3,-2,0,3,4,0,0,1,8,0),ho(0,2,4,-1,0,4,5,0,0,1,10,0),ho(0,3,5,-1,0,5,8,0,0,1,14,0),ho(0,3,5,-1,0,6,10,0,0,1,18,0),ho(0,4,5,-2,0,7,10,1,0,2,16,1),ho(0,5,5,-3,0,8,10,1,0,3,14,2),ho(0,5,6,-3,0,9,12,1,0,3,16,2),ho(0,6,6,-3,0,10,14,1,0,4,18,3),ho(0,6,7,-4,0,11,15,1,0,4,20,3),ho(0,7,8,-4,0,12,17,2,0,5,22,4),ho(0,7,8,-4,0,13,19,2,0,5,24,4),ho(0,7,9,-4,0,14,21,2,0,5,26,4),ho(0,8,9,-5,0,15,22,2,0,6,28,5),ho(0,8,10,-5,0,16,24,2,0,6,30,5),ho(0,8,11,-5,0,17,26,2,0,6,32,5),ho(0,9,11,-5,0,18,28,2,0,7,34,6),ho(0,9,12,-6,0,19,29,2,0,7,36,6),ho(0,10,13,-6,0,20,31,3,0,8,38,7),ho(0,10,13,-6,0,21,33,3,0,8,40,7),ho(0,10,14,-6,0,22,35,3,0,8,42,7),ho(0,11,14,-7,0,23,36,3,0,9,44,8),ho(0,11,15,-7,0,24,38,3,0,9,46,8)],fo={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)"},go={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function mo(e){return`${Math.round(e)}ms`}function yo(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function vo(e){const t={...fo,...e.easing},n={...go,...e.duration};return{getAutoHeightDuration:yo,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof i?i:mo(i)} ${o} ${"string"==typeof a?a:mo(a)}`).join(",")},...e,easing:t,duration:n}}const xo={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function bo(e){return Pn(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function _o(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;r<n.length;r++){const[i,o]=n[r];!bo(o)||i.startsWith("unstable_")?delete t[i]:Pn(o)&&(t[i]={...o},e(t[i]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function wo(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:o={},transitions:a={},typography:s={},shape:l,...u}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(_e(20));const c=ao(o),d=Nr(e);let h=An(d,{mixins:(p=d.breakpoints,f=r,{toolbar:{minHeight:56,[p.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[p.up("sm")]:{minHeight:64}},...f}),palette:c,shadows:po.slice(),typography:co(c,s),transitions:vo(a),zIndex:{...xo}});var p,f;return h=An(h,u),h=t.reduce((e,t)=>An(e,t),h),h.unstable_sxConfig={...Rr,...null==u?void 0:u.unstable_sxConfig},h.unstable_sx=function(e){return Or({sx:e,theme:this})},h.toRuntimeSource=_o,h}function So(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const ko=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=So(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Co(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function To(e){return"dark"===e?ko:[]}function Mo(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!(null==(t=e[1])?void 0:t.match(/(mode|contrastThreshold|tonalOffset)/))}const Io=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let o=i;if("class"===i&&(o=".%s"),"data"===i&&(o="[data-%s]"),(null==i?void 0:i.startsWith("data-"))&&!i.includes("%s")&&(o=`[${i}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const i={};return(a=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${a?`${a}-`:""}overlays-${t}`),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach(e=>{i[e]=n[e],delete n[e]}),"media"===o?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:o?{[o.replace("%s",t)]:i,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(o&&"media"!==o)return`${r}, ${o.replace("%s",String(t))}`}else if(t){if("media"===o)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(o)return o.replace("%s",String(t))}var a;return r};function Po(e,t,n){!e[t]&&n&&(e[t]=n)}function Do(e){return"string"==typeof e&&e.startsWith("hsl")?hi(e):e}function Ao(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ci(Do(e[t])))}const Eo=e=>{try{return e()}catch(t){}};function Ro(e,t,n,r){if(!t)return;t=!0===t?{}:t;const i="dark"===r?"dark":"light";if(!n)return void(e[r]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...i}=e,o=ao(t);return{palette:o,opacity:{...Co(o.mode),...n},overlays:r||To(o.mode),...i}}({...t,palette:{mode:i,...null==t?void 0:t.palette}}));const{palette:o,...a}=wo({...n,palette:{mode:i,...null==t?void 0:t.palette}});return e[r]={...t,palette:o,opacity:{...Co(i),...null==t?void 0:t.opacity},overlays:(null==t?void 0:t.overlays)||To(i)},a}function Oo(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:a=Mo,colorSchemeSelector:s=(n.light&&n.dark?"media":void 0),rootSelector:l=":root",...u}=e,c=Object.keys(n)[0],d=r||(n.light&&"light"!==c?"light":c),h=((e="mui")=>Vi(e))(o),{[d]:p,light:f,dark:g,...m}=n,y={...m};let v=p;if(("dark"===d&&!("dark"in n)||"light"===d&&!("light"in n))&&(v=!0),!v)throw new Error(_e(21,d));const x=Ro(y,v,u,d);f&&!y.light&&Ro(y,f,void 0,"light"),g&&!y.dark&&Ro(y,g,void 0,"dark");let b={defaultColorScheme:d,...x,cssVarPrefix:o,colorSchemeSelector:s,rootSelector:l,getCssVar:h,colorSchemes:y,font:{...so(x.typography),...x.font},spacing:(_=u.spacing,"number"==typeof _?`${_}px`:"string"==typeof _||"function"==typeof _||Array.isArray(_)?_:"8px")};var _;Object.keys(b.colorSchemes).forEach(e=>{const t=b.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],i=n[2];return h(e,t[r][i])};var r;if("light"===t.mode&&(Po(t.common,"background","#fff"),Po(t.common,"onBackground","#000")),"dark"===t.mode&&(Po(t.common,"background","#000"),Po(t.common,"onBackground","#fff")),r=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{r[e]||(r[e]={})}),"light"===t.mode){Po(t.Alert,"errorColor",yi(t.error.light,.6)),Po(t.Alert,"infoColor",yi(t.info.light,.6)),Po(t.Alert,"successColor",yi(t.success.light,.6)),Po(t.Alert,"warningColor",yi(t.warning.light,.6)),Po(t.Alert,"errorFilledBg",n("palette-error-main")),Po(t.Alert,"infoFilledBg",n("palette-info-main")),Po(t.Alert,"successFilledBg",n("palette-success-main")),Po(t.Alert,"warningFilledBg",n("palette-warning-main")),Po(t.Alert,"errorFilledColor",Eo(()=>t.getContrastText(t.error.main))),Po(t.Alert,"infoFilledColor",Eo(()=>t.getContrastText(t.info.main))),Po(t.Alert,"successFilledColor",Eo(()=>t.getContrastText(t.success.main))),Po(t.Alert,"warningFilledColor",Eo(()=>t.getContrastText(t.warning.main))),Po(t.Alert,"errorStandardBg",xi(t.error.light,.9)),Po(t.Alert,"infoStandardBg",xi(t.info.light,.9)),Po(t.Alert,"successStandardBg",xi(t.success.light,.9)),Po(t.Alert,"warningStandardBg",xi(t.warning.light,.9)),Po(t.Alert,"errorIconColor",n("palette-error-main")),Po(t.Alert,"infoIconColor",n("palette-info-main")),Po(t.Alert,"successIconColor",n("palette-success-main")),Po(t.Alert,"warningIconColor",n("palette-warning-main")),Po(t.AppBar,"defaultBg",n("palette-grey-100")),Po(t.Avatar,"defaultBg",n("palette-grey-400")),Po(t.Button,"inheritContainedBg",n("palette-grey-300")),Po(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),Po(t.Chip,"defaultBorder",n("palette-grey-400")),Po(t.Chip,"defaultAvatarColor",n("palette-grey-700")),Po(t.Chip,"defaultIconColor",n("palette-grey-700")),Po(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Po(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Po(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Po(t.LinearProgress,"primaryBg",xi(t.primary.main,.62)),Po(t.LinearProgress,"secondaryBg",xi(t.secondary.main,.62)),Po(t.LinearProgress,"errorBg",xi(t.error.main,.62)),Po(t.LinearProgress,"infoBg",xi(t.info.main,.62)),Po(t.LinearProgress,"successBg",xi(t.success.main,.62)),Po(t.LinearProgress,"warningBg",xi(t.warning.main,.62)),Po(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),Po(t.Slider,"primaryTrack",xi(t.primary.main,.62)),Po(t.Slider,"secondaryTrack",xi(t.secondary.main,.62)),Po(t.Slider,"errorTrack",xi(t.error.main,.62)),Po(t.Slider,"infoTrack",xi(t.info.main,.62)),Po(t.Slider,"successTrack",xi(t.success.main,.62)),Po(t.Slider,"warningTrack",xi(t.warning.main,.62));const e=bi(t.background.default,.8);Po(t.SnackbarContent,"bg",e),Po(t.SnackbarContent,"color",Eo(()=>t.getContrastText(e))),Po(t.SpeedDialAction,"fabHoverBg",bi(t.background.paper,.15)),Po(t.StepConnector,"border",n("palette-grey-400")),Po(t.StepContent,"border",n("palette-grey-400")),Po(t.Switch,"defaultColor",n("palette-common-white")),Po(t.Switch,"defaultDisabledColor",n("palette-grey-100")),Po(t.Switch,"primaryDisabledColor",xi(t.primary.main,.62)),Po(t.Switch,"secondaryDisabledColor",xi(t.secondary.main,.62)),Po(t.Switch,"errorDisabledColor",xi(t.error.main,.62)),Po(t.Switch,"infoDisabledColor",xi(t.info.main,.62)),Po(t.Switch,"successDisabledColor",xi(t.success.main,.62)),Po(t.Switch,"warningDisabledColor",xi(t.warning.main,.62)),Po(t.TableCell,"border",xi(gi(t.divider,1),.88)),Po(t.Tooltip,"bg",gi(t.grey[700],.92))}if("dark"===t.mode){Po(t.Alert,"errorColor",xi(t.error.light,.6)),Po(t.Alert,"infoColor",xi(t.info.light,.6)),Po(t.Alert,"successColor",xi(t.success.light,.6)),Po(t.Alert,"warningColor",xi(t.warning.light,.6)),Po(t.Alert,"errorFilledBg",n("palette-error-dark")),Po(t.Alert,"infoFilledBg",n("palette-info-dark")),Po(t.Alert,"successFilledBg",n("palette-success-dark")),Po(t.Alert,"warningFilledBg",n("palette-warning-dark")),Po(t.Alert,"errorFilledColor",Eo(()=>t.getContrastText(t.error.dark))),Po(t.Alert,"infoFilledColor",Eo(()=>t.getContrastText(t.info.dark))),Po(t.Alert,"successFilledColor",Eo(()=>t.getContrastText(t.success.dark))),Po(t.Alert,"warningFilledColor",Eo(()=>t.getContrastText(t.warning.dark))),Po(t.Alert,"errorStandardBg",yi(t.error.light,.9)),Po(t.Alert,"infoStandardBg",yi(t.info.light,.9)),Po(t.Alert,"successStandardBg",yi(t.success.light,.9)),Po(t.Alert,"warningStandardBg",yi(t.warning.light,.9)),Po(t.Alert,"errorIconColor",n("palette-error-main")),Po(t.Alert,"infoIconColor",n("palette-info-main")),Po(t.Alert,"successIconColor",n("palette-success-main")),Po(t.Alert,"warningIconColor",n("palette-warning-main")),Po(t.AppBar,"defaultBg",n("palette-grey-900")),Po(t.AppBar,"darkBg",n("palette-background-paper")),Po(t.AppBar,"darkColor",n("palette-text-primary")),Po(t.Avatar,"defaultBg",n("palette-grey-600")),Po(t.Button,"inheritContainedBg",n("palette-grey-800")),Po(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),Po(t.Chip,"defaultBorder",n("palette-grey-700")),Po(t.Chip,"defaultAvatarColor",n("palette-grey-300")),Po(t.Chip,"defaultIconColor",n("palette-grey-300")),Po(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Po(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Po(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Po(t.LinearProgress,"primaryBg",yi(t.primary.main,.5)),Po(t.LinearProgress,"secondaryBg",yi(t.secondary.main,.5)),Po(t.LinearProgress,"errorBg",yi(t.error.main,.5)),Po(t.LinearProgress,"infoBg",yi(t.info.main,.5)),Po(t.LinearProgress,"successBg",yi(t.success.main,.5)),Po(t.LinearProgress,"warningBg",yi(t.warning.main,.5)),Po(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),Po(t.Slider,"primaryTrack",yi(t.primary.main,.5)),Po(t.Slider,"secondaryTrack",yi(t.secondary.main,.5)),Po(t.Slider,"errorTrack",yi(t.error.main,.5)),Po(t.Slider,"infoTrack",yi(t.info.main,.5)),Po(t.Slider,"successTrack",yi(t.success.main,.5)),Po(t.Slider,"warningTrack",yi(t.warning.main,.5));const e=bi(t.background.default,.98);Po(t.SnackbarContent,"bg",e),Po(t.SnackbarContent,"color",Eo(()=>t.getContrastText(e))),Po(t.SpeedDialAction,"fabHoverBg",bi(t.background.paper,.15)),Po(t.StepConnector,"border",n("palette-grey-600")),Po(t.StepContent,"border",n("palette-grey-600")),Po(t.Switch,"defaultColor",n("palette-grey-300")),Po(t.Switch,"defaultDisabledColor",n("palette-grey-600")),Po(t.Switch,"primaryDisabledColor",yi(t.primary.main,.55)),Po(t.Switch,"secondaryDisabledColor",yi(t.secondary.main,.55)),Po(t.Switch,"errorDisabledColor",yi(t.error.main,.55)),Po(t.Switch,"infoDisabledColor",yi(t.info.main,.55)),Po(t.Switch,"successDisabledColor",yi(t.success.main,.55)),Po(t.Switch,"warningDisabledColor",yi(t.warning.main,.55)),Po(t.TableCell,"border",yi(gi(t.divider,1),.68)),Po(t.Tooltip,"bg",gi(t.grey[700],.92))}Ao(t.background,"default"),Ao(t.background,"paper"),Ao(t.common,"background"),Ao(t.common,"onBackground"),Ao(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&Po(t[e],"mainChannel",ci(Do(n.main))),n.light&&Po(t[e],"lightChannel",ci(Do(n.light))),n.dark&&Po(t[e],"darkChannel",ci(Do(n.dark))),n.contrastText&&Po(t[e],"contrastTextChannel",ci(Do(n.contrastText))),"text"===e&&(Ao(t[e],"primary"),Ao(t[e],"secondary")),"action"===e&&(n.active&&Ao(t[e],"active"),n.selected&&Ao(t[e],"selected")))})}),b=t.reduce((e,t)=>An(e,t),b);const w={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:a,getSelector:Io(b)},{vars:S,generateThemeVars:k,generateStyleSheets:C}=function(e,t={}){const{getSelector:n=m,disableCssColorScheme:r,colorSchemeSelector:i}=t,{colorSchemes:o={},components:a,defaultColorScheme:s="light",...l}=e,{vars:u,css:c,varsWithDefaults:d}=Gi(l,t);let h=d;const p={},{[s]:f,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{const{vars:r,css:i,varsWithDefaults:o}=Gi(n,t);h=An(h,o),p[e]={css:i,vars:r}}),f){const{css:e,vars:n,varsWithDefaults:r}=Gi(f,t);h=An(h,r),p[s]={css:e,vars:n}}function m(t,n){var r,a;let s=i;if("class"===i&&(s=".%s"),"data"===i&&(s="[data-%s]"),(null==i?void 0:i.startsWith("data-"))&&!i.includes("%s")&&(s=`[${i}="%s"]`),t){if("media"===s){if(e.defaultColorScheme===t)return":root";const i=(null==(a=null==(r=o[t])?void 0:r.palette)?void 0:a.mode)||t;return{[`@media (prefers-color-scheme: ${i})`]:{":root":n}}}if(s)return e.defaultColorScheme===t?`:root, ${s.replace("%s",String(t))}`:s.replace("%s",String(t))}return":root"}return{vars:h,generateThemeVars:()=>{let e={...u};return Object.entries(p).forEach(([,{vars:t}])=>{e=An(e,t)}),e},generateStyleSheets:()=>{var t,i;const a=[],s=e.defaultColorScheme||"light";function l(e,t){Object.keys(t).length&&a.push("string"==typeof e?{[e]:{...t}}:e)}l(n(void 0,{...c}),c);const{[s]:u,...d}=p;if(u){const{css:e}=u,a=null==(i=null==(t=o[s])?void 0:t.palette)?void 0:i.mode,c=!r&&a?{colorScheme:a,...e}:{...e};l(n(s,{...c}),c)}return Object.entries(d).forEach(([e,{css:t}])=>{var i,a;const s=null==(a=null==(i=o[e])?void 0:i.palette)?void 0:a.mode,u=!r&&s?{colorScheme:s,...t}:{...t};l(n(e,{...u}),u)}),a}}}(b,w);return b.vars=S,Object.entries(b.colorSchemes[b.defaultColorScheme]).forEach(([e,t])=>{b[e]=t}),b.generateThemeVars=k,b.generateStyleSheets=C,b.generateSpacing=function(){return or(u.spacing,Jn(this))},b.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(s),b.spacing=b.generateSpacing(),b.shouldSkipGeneratingVar=a,b.unstable_sxConfig={...Rr,...null==u?void 0:u.unstable_sxConfig},b.unstable_sx=function(e){return Or({sx:e,theme:this})},b.toRuntimeSource=_o,b}function Lo(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:ao({...!0===n?{}:n.palette,mode:t})})}function No(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=(n?void 0:{light:!0}),defaultColorScheme:o=(null==n?void 0:n.mode),...a}=e,s=o||"light",l=null==i?void 0:i[s],u={...i,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return wo(e,...t);let r=n;"palette"in e||u[s]&&(!0!==u[s]?r=u[s].palette:"dark"===s&&(r={mode:"dark"}));const i=wo({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=u,"light"===i.palette.mode&&(i.colorSchemes.light={...!0!==u.light&&u.light,palette:i.palette},Lo(i,"dark",u.dark)),"dark"===i.palette.mode&&(i.colorSchemes.dark={...!0!==u.dark&&u.dark,palette:i.palette},Lo(i,"light",u.light)),i}return n||"light"in u||"light"!==s||(u.light=!0),Oo({...a,colorSchemes:u,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}const zo=No();function Bo(){const e=Fr(zo);return e[we]||e}const Fo=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,$o=ti({themeId:we,defaultTheme:zo,rootShouldForwardProp:Fo});function Wo({theme:e,...t}){const n=we in e?e[we]:void 0;return x.jsx(Ei,{...t,themeId:n?we:void 0,theme:n||e})}const jo="mui-color-scheme",Vo="light",Ho="dark",Go="mui-mode",{CssVarsProvider:Uo}=function(e){const{themeId:t,theme:n={},modeStorageKey:r=Oi,colorSchemeStorageKey:i=Li,disableTransitionOnChange:o=!1,defaultColorScheme:a,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},u=P.createContext(void 0),c={},d={},h="string"==typeof a?a:a.light,p="string"==typeof a?a:a.dark;return{CssVarsProvider:function(e){var l,h,p,f;const{children:g,theme:m,modeStorageKey:y=r,colorSchemeStorageKey:v=i,disableTransitionOnChange:b=o,storageManager:_,storageWindow:w=("undefined"==typeof window?void 0:window),documentNode:S=("undefined"==typeof document?void 0:document),colorSchemeNode:k=("undefined"==typeof document?void 0:document.documentElement),disableNestedContext:C=!1,disableStyleSheetGeneration:T=!1,defaultMode:M="system",forceThemeRerender:I=!1,noSsr:D}=e,A=P.useRef(!1),E=wi(),R=P.useContext(u),O=!!R&&!C,L=P.useMemo(()=>m||("function"==typeof n?n():n),[m]),N=L[t],z=N||L,{colorSchemes:B=c,components:F=d,cssVarPrefix:$}=z,W=Object.keys(B).filter(e=>!!B[e]).join(","),j=P.useMemo(()=>W.split(","),[W]),V="string"==typeof a?a:a.light,H="string"==typeof a?a:a.dark,G=B[V]&&B[H]?M:(null==(h=null==(l=B[z.defaultColorScheme])?void 0:l.palette)?void 0:h.mode)||(null==(p=z.palette)?void 0:p.mode),{mode:U,setMode:X,systemMode:Y,lightColorScheme:q,darkColorScheme:K,colorScheme:Z,setColorScheme:Q}=ji({supportedColorSchemes:j,defaultLightColorScheme:V,defaultDarkColorScheme:H,modeStorageKey:y,colorSchemeStorageKey:v,defaultMode:G,storageManager:_,storageWindow:w,noSsr:D});let J=U,ee=Z;O&&(J=R.mode,ee=R.colorScheme);let te=ee||z.defaultColorScheme;z.vars&&!I&&(te=z.defaultColorScheme);const ne=P.useMemo(()=>{var e;const t=(null==(e=z.generateThemeVars)?void 0:e.call(z))||z.vars,n={...z,components:F,colorSchemes:B,cssVarPrefix:$,vars:t};if("function"==typeof n.generateSpacing&&(n.spacing=n.generateSpacing()),te){const e=B[te];e&&"object"==typeof e&&Object.keys(e).forEach(t=>{e[t]&&"object"==typeof e[t]?n[t]={...n[t],...e[t]}:n[t]=e[t]})}return s?s(n):n},[z,te,F,B,$]),re=z.colorSchemeSelector;si(()=>{if(ee&&k&&re&&"media"!==re){const e=re;let t=re;if("class"===e&&(t=".%s"),"data"===e&&(t="[data-%s]"),(null==e?void 0:e.startsWith("data-"))&&!e.includes("%s")&&(t=`[${e}="%s"]`),t.startsWith("."))k.classList.remove(...j.map(e=>t.substring(1).replace("%s",e))),k.classList.add(t.substring(1).replace("%s",ee));else{const e=t.replace("%s",ee).match(/\[([^\]]+)\]/);if(e){const[t,n]=e[1].split("=");n||j.forEach(e=>{k.removeAttribute(t.replace(ee,e))}),k.setAttribute(t,n?n.replace(/"|'/g,""):"")}else k.setAttribute(t,ee)}}},[ee,re,k,j]),P.useEffect(()=>{let e;if(b&&A.current&&S){const t=S.createElement("style");t.appendChild(S.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),S.head.appendChild(t),window.getComputedStyle(S.body),e=setTimeout(()=>{S.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[ee,b,S]),P.useEffect(()=>(A.current=!0,()=>{A.current=!1}),[]);const ie=P.useMemo(()=>({allColorSchemes:j,colorScheme:ee,darkColorScheme:K,lightColorScheme:q,mode:J,setColorScheme:Q,setMode:X,systemMode:Y}),[j,ee,K,q,J,Q,X,Y,ne.colorSchemeSelector]);let oe=!0;(T||!1===z.cssVariables||O&&(null==E?void 0:E.cssVarPrefix)===$)&&(oe=!1);const ae=x.jsxs(P.Fragment,{children:[x.jsx(Ei,{themeId:N?t:void 0,theme:ne,children:g}),oe&&x.jsx(vn,{styles:(null==(f=ne.generateStyleSheets)?void 0:f.call(ne))||[]})]});return O?ae:x.jsx(u.Provider,{value:ie,children:ae})},useColorScheme:()=>P.useContext(u)||l,getInitColorSchemeScript:e=>function(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:i=Oi,colorSchemeStorageKey:o=Li,attribute:a=Ni,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};let u="",c=a;if("class"===a&&(c=".%s"),"data"===a&&(c="[data-%s]"),c.startsWith(".")){const e=c.substring(1);u+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));\n ${s}.classList.add('${e}'.replace('%s', colorScheme));`}const d=c.match(/\[([^\]]+)\]/);if(d){const[e,t]=d[1].split("=");t||(u+=`${s}.removeAttribute('${e}'.replace('%s', light));\n ${s}.removeAttribute('${e}'.replace('%s', dark));`),u+=`\n ${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:'""'});`}else u+=`${s}.setAttribute('${c}', colorScheme);`;return x.jsx("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?l:"",dangerouslySetInnerHTML:{__html:`(function() {\ntry {\n let colorScheme = '';\n const mode = localStorage.getItem('${i}') || '${t}';\n const dark = localStorage.getItem('${o}-dark') || '${r}';\n const light = localStorage.getItem('${o}-light') || '${n}';\n if (mode === 'system') {\n // handle system mode\n const mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = dark\n } else {\n colorScheme = light\n }\n }\n if (mode === 'light') {\n colorScheme = light;\n }\n if (mode === 'dark') {\n colorScheme = dark;\n }\n if (colorScheme) {\n ${u}\n }\n} catch(e){}})();`}},"mui-color-scheme-init")}({colorSchemeStorageKey:i,defaultLightColorScheme:h,defaultDarkColorScheme:p,modeStorageKey:r,...e})}}({themeId:we,theme:()=>No({cssVariables:!0}),colorSchemeStorageKey:jo,modeStorageKey:Go,defaultColorScheme:{light:Vo,dark:Ho},resolveTheme:e=>{const t={...e,typography:co(e.palette,e.typography)};return t.unstable_sx=function(e){return Or({sx:e,theme:this})},t}}),Xo=Uo;function Yo({theme:e,...t}){const n=P.useMemo(()=>{if("function"==typeof e)return e;const t=we in e?e[we]:e;return"colorSchemes"in t?null:"vars"in t?e:{...e,vars:null}},[e]);return n?x.jsx(Wo,{theme:n,...t}):x.jsx(Xo,{theme:e,...t})}function qo(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Ko(e){return x.jsx($r,{...e,defaultTheme:zo,themeId:we})}function Zo(e){return function(t){return x.jsx(Ko,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}const Qo=function(e){let t,n;return function(r){let i=t;return void 0!==i&&r.theme===n||(Ri.theme=r.theme,i=qr(e(Ri)),t=i,n=r.theme),i}};function Jo(e){return Pi(e)}function ea(e){return Xr("MuiSvgIcon",e)}Yr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ta=$o("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${jn(n.color)}`],t[`fontSize${jn(n.fontSize)}`]]}})(Qo(({theme:e})=>{var t,n,r,i,o,a,s,l,u,c,d,h,p,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:null==(i=null==(t=e.transitions)?void 0:t.create)?void 0:i.call(t,"fill",{duration:null==(r=null==(n=(e.vars??e).transitions)?void 0:n.duration)?void 0:r.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:(null==(a=null==(o=e.typography)?void 0:o.pxToRem)?void 0:a.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:(null==(l=null==(s=e.typography)?void 0:s.pxToRem)?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:(null==(c=null==(u=e.typography)?void 0:u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>{var n,r;return{props:{color:t},style:{color:null==(r=null==(n=(e.vars??e).palette)?void 0:n[t])?void 0:r.main}}}),{props:{color:"action"},style:{color:null==(h=null==(d=(e.vars??e).palette)?void 0:d.action)?void 0:h.active}},{props:{color:"disabled"},style:{color:null==(f=null==(p=(e.vars??e).palette)?void 0:p.action)?void 0:f.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),na=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24",...h}=n,p=P.isValidElement(r)&&"svg"===r.type,f={...n,color:o,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:p},g={};u||(g.viewBox=d);const m=(e=>{const{color:t,fontSize:n,classes:r}=e;return Ui({root:["root","inherit"!==t&&`color${jn(t)}`,`fontSize${jn(n)}`]},ea,r)})(f);return x.jsxs(ta,{as:a,className:Gr(m.root,i),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t,...g,...h,...p&&r.props,ownerState:f,children:[p?r.props.children:r,c?x.jsx("title",{children:c}):null]})});function ra(e){return e&&e.ownerDocument||document}function ia(e){return ra(e).defaultView||window}function oa(e,t){"function"==typeof e?e(t):e&&(e.current=t)}na.muiName="SvgIcon";let aa=0;const sa={...A}.useId;function la(e){if(void 0!==sa){const t=sa();return e??t}return function(e){const[t,n]=P.useState(e),r=e||t;return P.useEffect(()=>{null==t&&(aa+=1,n(`mui-${aa}`))},[t]),r}(e)}function ua(e){const t=P.useRef(e);return si(()=>{t.current=e}),P.useRef((...e)=>(0,t.current)(...e)).current}function ca(...e){const t=P.useRef(void 0),n=P.useCallback(t=>{const n=e.map(e=>{if(null==e)return null;if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>null==e?void 0:e())}},e);return P.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function da(e,t){if(!e)return t;function n(e,t){const n={};return Object.keys(t).forEach(r=>{(function(e,t){const n=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&n>=65&&n<=90&&"function"==typeof t})(r,t[r])&&"function"==typeof e[r]&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if("function"==typeof e||"function"==typeof t)return r=>{const i="function"==typeof t?t(r):t,o="function"==typeof e?e({...r,...i}):e,a=Gr(null==r?void 0:r.className,null==i?void 0:i.className,null==o?void 0:o.className),s=n(o,i);return{...i,...o,...s,...!!a&&{className:a},...(null==i?void 0:i.style)&&(null==o?void 0:o.style)&&{style:{...i.style,...o.style}},...(null==i?void 0:i.sx)&&(null==o?void 0:o.sx)&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(o.sx)?o.sx:[o.sx]]}}};const r=t,i=n(e,r),o=Gr(null==r?void 0:r.className,null==e?void 0:e.className);return{...t,...e,...i,...!!o&&{className:o},...(null==r?void 0:r.style)&&(null==e?void 0:e.style)&&{style:{...r.style,...e.style}},...(null==r?void 0:r.sx)&&(null==e?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function ha(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function pa(e,t){return(pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function fa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,pa(e,t)}var ga=M();const ma=r(ga),ya=!1,va=D.createContext(null);var xa="unmounted",ba="exited",_a="entering",wa="entered",Sa="exiting",ka=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=ba,r.appearStatus=_a):i=wa:i=t.unmountOnExit||t.mountOnEnter?xa:ba,r.state={status:i},r.nextCallback=null,r}fa(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===xa?{status:ba}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==_a&&n!==wa&&(t=_a):n!==_a&&n!==wa||(t=Sa)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===_a){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ma.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ba&&this.setState({status:xa})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[ma.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||ya?this.safeSetState({status:wa},function(){t.props.onEntered(o)}):(this.props.onEnter(o,a),this.safeSetState({status:_a},function(){t.props.onEntering(o,a),t.onTransitionEnd(l,function(){t.safeSetState({status:wa},function(){t.props.onEntered(o,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ma.findDOMNode(this);t&&!ya?(this.props.onExit(r),this.safeSetState({status:Sa},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:ba},function(){e.props.onExited(r)})})})):this.safeSetState({status:ba},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ma.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===xa)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=ha(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return D.createElement(va.Provider,{value:null},"function"==typeof n?n(e,r):D.cloneElement(D.Children.only(n),r))},t}(D.Component);function Ca(){}function Ta(e,t){var n=Object.create(null);return e&&P.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&P.isValidElement(e)?t(e):e}(e)}),n}function Ma(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Ia(e,t,n){var r=Ta(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach(function(o){var a=i[o];if(P.isValidElement(a)){var s=o in t,l=o in r,u=t[o],c=P.isValidElement(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&P.isValidElement(u)&&(i[o]=P.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Ma(a,"exit",e),enter:Ma(a,"enter",e)})):i[o]=P.cloneElement(a,{in:!1}):i[o]=P.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Ma(a,"exit",e),enter:Ma(a,"enter",e)})}}),i}ka.contextType=va,ka.propTypes={},ka.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ca,onEntering:Ca,onEntered:Ca,onExit:Ca,onExiting:Ca,onExited:Ca},ka.UNMOUNTED=xa,ka.EXITED=ba,ka.ENTERING=_a,ka.ENTERED=wa,ka.EXITING=Sa;var Pa=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Da=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}fa(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,Ta(n.children,function(e){return P.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Ma(e,"appear",n),enter:Ma(e,"enter",n),exit:Ma(e,"exit",n)})})):Ia(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=Ta(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Se({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=ha(e,["component","childFactory"]),i=this.state.contextValue,o=Pa(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?D.createElement(va.Provider,{value:i},o):D.createElement(va.Provider,{value:i},D.createElement(t,r,o))},t}(D.Component);Da.propTypes={},Da.defaultProps={component:"div",childFactory:function(e){return e}};const Aa={};function Ea(e,t){const n=P.useRef(Aa);return n.current===Aa&&(n.current=e(t)),n}const Ra=[];class Oa{constructor(){t(this,"currentId",null),t(this,"clear",()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)}),t(this,"disposeEffect",()=>this.clear)}static create(){return new Oa}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function La(){const e=Ea(Oa.create).current;var t;return t=e.disposeEffect,P.useEffect(t,Ra),e}const Na=e=>e.scrollTop;function za(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:i.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:i.transitionDelay}}function Ba(e){return Xr("MuiPaper",e)}Yr("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 Fa=$o("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(Qo(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),$a=P.forwardRef(function(e,t){var n;const r=Jo({props:e,name:"MuiPaper"}),i=Bo(),{className:o,component:a="div",elevation:s=1,square:l=!1,variant:u="elevation",...c}=r,d={...r,component:a,elevation:s,square:l,variant:u},h=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e;return Ui({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Ba,i)})(d);return x.jsx(Fa,{as:a,ownerState:d,className:Gr(h.root,o),ref:t,...c,style:{..."elevation"===u&&{"--Paper-shadow":(i.vars||i).shadows[s],...i.vars&&{"--Paper-overlay":null==(n=i.vars.overlays)?void 0:n[s]},...!i.vars&&"dark"===i.palette.mode&&{"--Paper-overlay":`linear-gradient(${fi("#fff",So(s))}, ${fi("#fff",So(s))})`}},...c.style}})});function Wa(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function ja(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function Va(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...h}=o,p=c[e]||r,f=function(e,t,n){return"function"==typeof e?e(t,n):e}(d[e],i),{props:{component:g,...m},internalRef:y}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=Gr(null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),t={...null==n?void 0:n.style,...null==i?void 0:i.style,...null==r?void 0:r.style},a={...n,...i,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Wa({...i,...r}),s=ja(r),l=ja(i),u=t(a),c=Gr(null==u?void 0:u.className,null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),d={...null==u?void 0:u.style,...null==n?void 0:n.style,...null==i?void 0:i.style,...null==r?void 0:r.style},h={...u,...n,...l,...s};return c.length>0&&(h.className=c),Object.keys(d).length>0&&(h.style=d),{props:h,internalRef:u.ref}}({className:n,...l,externalForwardedProps:"root"===e?h:void 0,externalSlotProps:f}),v=ca(y,null==f?void 0:f.ref,t.ref),x="root"===e?g||u:g,b=function(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}}(p,{..."root"===e&&!u&&!c[e]&&a,..."root"!==e&&!c[e]&&a,...m,...x&&!s&&{as:x},...x&&s&&{component:x},ref:v},i);return[p,b]}function Ha(e){try{return e.matches(":focus-visible")}catch(t){}return!1}class Ga{constructor(){t(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())}),this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Ga}static use(){const e=Ea(Ga.create).current,[t,n]=P.useState(!1);return e.shouldMount=t,e.setShouldMount=n,P.useEffect(e.mountEffect,[t]),e}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var t;return null==(t=this.ref.current)?void 0:t.start(...e)})}stop(...e){this.mount().then(()=>{var t;return null==(t=this.ref.current)?void 0:t.stop(...e)})}pulsate(...e){this.mount().then(()=>{var t;return null==(t=this.ref.current)?void 0:t.pulsate(...e)})}}const Ua=Yr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xa=cn`
|
30
|
+
*/function M(){if(m)return w;m=1;var e=p(),t=C();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function o(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(i[e]=t,e=0;e<t.length;e++)r.add(t[e])}var s=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),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={},d={};function h(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var f={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){f[e]=new h(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];f[t]=new h(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){f[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){f[e]=new h(e,2,!1,e,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(e){f[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){f[e]=new h(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){f[e]=new h(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){f[e]=new h(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){f[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)});var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function v(e,t,n,r){var i=f.hasOwnProperty(t)?f[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!l.call(d,e)||!l.call(c,e)&&(u.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(e){var t=e.replace(g,y);f[t]=new h(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(g,y);f[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(g,y);f[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){f[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)}),f.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){f[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)});var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),b=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),I=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),L=Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var N,B=Object.assign;function F(e){if(void 0===N)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return"\n"+N+e}var V=!1;function $(e,t){if(!e||V)return"";V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"==typeof u.stack){for(var i=u.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function W(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=$(e.type,!1);case 11:return e=$(e.type.render,!1);case 1:return e=$(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case b:return"Portal";case M:return"Profiler";case k:return"StrictMode";case D:return"Suspense";case A:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case I:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case E:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return H(e(t))}catch(n){}}return null}function j(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function G(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function q(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function J(e,t){Q(e,t);var n=G(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?te(e,t.type,n):t.hasOwnProperty("defaultValue")&&te(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function te(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ne=Array.isArray;function re(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(ne(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:G(r)}}function ae(e,t){var n=G(t.value),r=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){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 ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,de,he=(de=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return de(e,t)})}:de);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={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"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ye(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(fe).forEach(function(e){ge.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]})});var ve=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xe(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function _e(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){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 be=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,ke=null,Ce=null;function Me(e){if(e=_i(e)){if("function"!=typeof Se)throw Error(n(280));var t=e.stateNode;t&&(t=wi(t),Se(e.stateNode,e.type,t))}}function Te(e){ke?Ce?Ce.push(e):Ce=[e]:ke=e}function Ie(){if(ke){var e=ke,t=Ce;if(Ce=ke=null,Me(e),t)for(e=0;e<t.length;e++)Me(t[e])}}function Pe(e,t){return e(t)}function De(){}var Ae=!1;function Ee(e,t,n){if(Ae)return e(t,n);Ae=!0;try{return Pe(e,t,n)}finally{Ae=!1,(null!==ke||null!==Ce)&&(De(),Ie())}}function Re(e,t){var r=e.stateNode;if(null===r)return null;var i=wi(r);if(null===i)return null;r=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Oe=!1;if(s)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(de){Oe=!1}function ze(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ne=!1,Be=null,Fe=!1,Ve=null,$e={onError:function(e){Ne=!0,Be=e}};function We(e,t,n,r,i,o,a,s,l){Ne=!1,Be=null,ze.apply($e,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function je(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ge(e){if(He(e)!==e)throw Error(n(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,i=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(i=o.return)){r=i;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return Ge(o),e;if(a===i)return Ge(o),t;a=a.sibling}throw Error(n(188))}if(r.return!==i.return)r=o,i=a;else{for(var s=!1,l=o.child;l;){if(l===r){s=!0,r=o,i=a;break}if(l===i){s=!0,i=o,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,i=o;break}if(l===i){s=!0,i=a,r=o;break}l=l.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==i)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?Xe(e):null}function Xe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Xe(e);if(null!==t)return t;e=e.sibling}return null}var Ye=t.unstable_scheduleCallback,Ze=t.unstable_cancelCallback,qe=t.unstable_shouldYield,Ke=t.unstable_requestPaint,Qe=t.unstable_now,Je=t.unstable_getCurrentPriorityLevel,et=t.unstable_ImmediatePriority,tt=t.unstable_UserBlockingPriority,nt=t.unstable_NormalPriority,rt=t.unstable_LowPriority,it=t.unstable_IdlePriority,ot=null,at=null;var st=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/ut|0)|0},lt=Math.log,ut=Math.LN2;var ct=64,dt=4194304;function ht(e){switch(e&-e){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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=ht(s):0!==(o&=a)&&(r=ht(o))}else 0!==(a=n&~i)?r=ht(a):0!==o&&(r=ht(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-st(t)),r|=e[n],t&=~i;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+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 t+5e3;default:return-1}}function gt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return!(4194240&(ct<<=1))&&(ct=64),e}function yt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function xt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var _t=0;function bt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,St,kt,Ct,Mt,Tt=!1,It=[],Pt=null,Dt=null,At=null,Et=new Map,Rt=new Map,Ot=[],Lt="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 zt(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":Dt=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":Et.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Nt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=_i(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Bt(e){var t=xi(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=je(n)))return e.blockedOn=t,void Mt(e.priority,function(){kt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=_i(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);be=r,n.target.dispatchEvent(r),be=null,t.shift()}return!0}function Vt(e,t,n){Ft(e)&&n.delete(t)}function $t(){Tt=!1,null!==Pt&&Ft(Pt)&&(Pt=null),null!==Dt&&Ft(Dt)&&(Dt=null),null!==At&&Ft(At)&&(At=null),Et.forEach(Vt),Rt.forEach(Vt)}function Wt(e,n){e.blockedOn===n&&(e.blockedOn=null,Tt||(Tt=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,$t)))}function Ht(e){function t(t){return Wt(t,e)}if(0<It.length){Wt(It[0],e);for(var n=1;n<It.length;n++){var r=It[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Pt&&Wt(Pt,e),null!==Dt&&Wt(Dt,e),null!==At&&Wt(At,e),Et.forEach(t),Rt.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)Bt(n),null===n.blockedOn&&Ot.shift()}var jt=x.ReactCurrentBatchConfig,Gt=!0;function Ut(e,t,n,r){var i=_t,o=jt.transition;jt.transition=null;try{_t=1,Yt(e,t,n,r)}finally{_t=i,jt.transition=o}}function Xt(e,t,n,r){var i=_t,o=jt.transition;jt.transition=null;try{_t=4,Yt(e,t,n,r)}finally{_t=i,jt.transition=o}}function Yt(e,t,n,r){if(Gt){var i=qt(e,t,n,r);if(null===i)Gr(e,t,r,Zt,n),zt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Pt=Nt(Pt,e,t,n,r,i),!0;case"dragenter":return Dt=Nt(Dt,e,t,n,r,i),!0;case"mouseover":return At=Nt(At,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Et.set(o,Nt(Et.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Rt.set(o,Nt(Rt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(zt(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==i;){var o=_i(i);if(null!==o&&wt(o),null===(o=qt(e,t,n,r))&&Gr(e,t,r,Zt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Gr(e,t,r,null,n)}}var Zt=null;function qt(e,t,n,r){if(Zt=null,null!==(e=xi(e=we(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=je(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Zt=e,null}function Kt(e){switch(e){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(Je()){case et:return 1;case tt:return 4;case nt:case rt:return 16;case it:return 536870912;default:return 16}default:return 16}}var Qt=null,Jt=null,en=null;function tn(){if(en)return en;var e,t,n=Jt,r=n.length,i="value"in Qt?Qt.value:Qt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return en=i.slice(e,1<t?1-t:void 0)}function nn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rn(){return!0}function on(){return!1}function an(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?rn:on,this.isPropagationStopped=on,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rn)},persist:function(){},isPersistent:rn}),t}var sn,ln,un,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=an(cn),hn=B({},cn,{view:0,detail:0}),pn=an(hn),fn=B({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(sn=e.screenX-un.screenX,ln=e.screenY-un.screenY):ln=sn=0,un=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),gn=an(fn),mn=an(B({},fn,{dataTransfer:0})),yn=an(B({},hn,{relatedTarget:0})),vn=an(B({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),xn=B({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_n=an(xn),bn=an(B({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={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"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Mn(){return Cn}var Tn=B({},hn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=nn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mn,charCode:function(e){return"keypress"===e.type?nn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?nn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),In=an(Tn),Pn=an(B({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Dn=an(B({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mn})),An=an(B({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),En=B({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=an(En),On=[9,13,27,32],Ln=s&&"CompositionEvent"in window,zn=null;s&&"documentMode"in document&&(zn=document.documentMode);var Nn=s&&"TextEvent"in window&&!zn,Bn=s&&(!Ln||zn&&8<zn&&11>=zn),Fn=String.fromCharCode(32),Vn=!1;function $n(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var jn={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 Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!jn[e.type]:"textarea"===t}function Un(e,t,n,r){Te(r),0<(t=Xr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Xn=null,Yn=null;function Zn(e){Fr(e,0)}function qn(e){if(Y(bi(e)))return e}function Kn(e,t){if("change"===e)return t}var Qn=!1;if(s){var Jn;if(s){var er="oninput"in document;if(!er){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),er="function"==typeof tr.oninput}Jn=er}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function nr(){Xn&&(Xn.detachEvent("onpropertychange",rr),Yn=Xn=null)}function rr(e){if("value"===e.propertyName&&qn(Yn)){var t=[];Un(t,Yn,e,we(e)),Ee(Zn,t)}}function ir(e,t,n){"focusin"===e?(nr(),Yn=n,(Xn=t).attachEvent("onpropertychange",rr)):"focusout"===e&&nr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Yn)}function ar(e,t){if("click"===e)return qn(t)}function sr(e,t){if("input"===e||"change"===e)return qn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ur(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!lr(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function gr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&hr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=dr(n,o);var a=dr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=s&&"documentMode"in document&&11>=document.documentMode,yr=null,vr=null,xr=null,_r=!1;function br(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;_r||null==yr||yr!==Z(r)||("selectionStart"in(r=yr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},xr&&ur(xr,r)||(xr=r,0<(r=Xr(vr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},kr={},Cr={};function Mr(e){if(kr[e])return kr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return kr[e]=n[t];return e}s&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Tr=Mr("animationend"),Ir=Mr("animationiteration"),Pr=Mr("animationstart"),Dr=Mr("transitionend"),Ar=new Map,Er="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 Rr(e,t){Ar.set(e,t),o(t,[e])}for(var Or=0;Or<Er.length;Or++){var Lr=Er[Or];Rr(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Rr(Tr,"onAnimationEnd"),Rr(Ir,"onAnimationIteration"),Rr(Pr,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Dr,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zr="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(" "),Nr=new Set("cancel close invalid load scroll toggle".split(" ").concat(zr));function Br(e,t,r){var i=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,i,o,a,s,l,u){if(We.apply(this,arguments),Ne){if(!Ne)throw Error(n(198));var c=Be;Ne=!1,Be=null,Fe||(Fe=!0,Ve=c)}}(i,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Br(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Br(i,s,u),o=l}}}if(Fe)throw e=Ve,Fe=!1,Ve=null,e}function Vr(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||(jr(t,e,2,!1),n.add(r))}function $r(e,t,n){var r=0;t&&(r|=4),jr(n,e,r,t)}var Wr="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Wr]){e[Wr]=!0,r.forEach(function(t){"selectionchange"!==t&&(Nr.has(t)||$r(t,!1,e),$r(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Wr]||(t[Wr]=!0,$r("selectionchange",!1,t))}}function jr(e,t,n,r){switch(Kt(t)){case 1:var i=Ut;break;case 4:i=Xt;break;default:i=Yt}n=i.bind(null,t,n,e),i=void 0,!Oe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Gr(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=xi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Ee(function(){var r=o,i=we(n),a=[];e:{var s=Ar.get(e);if(void 0!==s){var l=dn,u=e;switch(e){case"keypress":if(0===nn(n))break e;case"keydown":case"keyup":l=In;break;case"focusin":u="focus",l=yn;break;case"focusout":u="blur",l=yn;break;case"beforeblur":case"afterblur":l=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Dn;break;case Tr:case Ir:case Pr:l=vn;break;case Dr:l=An;break;case"scroll":l=pn;break;case"wheel":l=Rn;break;case"copy":case"cut":case"paste":l=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Pn}var c=!!(4&t),d=!c&&"scroll"===e,h=c?null!==s?s+"Capture":null:s;c=[];for(var p,f=r;null!==f;){var g=(p=f).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==h&&(null!=(g=Re(f,h))&&c.push(Ur(f,g,p)))),d)break;f=f.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===be||!(u=n.relatedTarget||n.fromElement)||!xi(u)&&!u[gi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?xi(u):null)&&(u!==(d=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=gn,g="onMouseLeave",h="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pn,g="onPointerLeave",h="onPointerEnter",f="pointer"),d=null==l?s:bi(l),p=null==u?s:bi(u),(s=new c(g,f+"leave",l,n,i)).target=d,s.relatedTarget=p,g=null,xi(i)===r&&((c=new c(h,f+"enter",u,n,i)).target=p,c.relatedTarget=d,g=c),d=g,l&&u)e:{for(h=u,f=0,p=c=l;p;p=Yr(p))f++;for(p=0,g=h;g;g=Yr(g))p++;for(;0<f-p;)c=Yr(c),f--;for(;0<p-f;)h=Yr(h),p--;for(;f--;){if(c===h||null!==h&&c===h.alternate)break e;c=Yr(c),h=Yr(h)}c=null}else c=null;null!==l&&Zr(a,s,l,c,!1),null!==u&&null!==d&&Zr(a,d,u,c,!0)}if("select"===(l=(s=r?bi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Kn;else if(Gn(s))if(Qn)m=sr;else{m=or;var y=ir}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ar);switch(m&&(m=m(e,r))?Un(a,m,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&te(s,"number",s.value)),y=r?bi(r):window,e){case"focusin":(Gn(y)||"true"===y.contentEditable)&&(yr=y,vr=r,xr=null);break;case"focusout":xr=vr=yr=null;break;case"mousedown":_r=!0;break;case"contextmenu":case"mouseup":case"dragend":_r=!1,br(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":br(a,n,i)}var v;if(Ln)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else Hn?$n(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(Bn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==x?"onCompositionEnd"===x&&Hn&&(v=tn()):(Jt="value"in(Qt=i)?Qt.value:Qt.textContent,Hn=!0)),0<(y=Xr(r,x)).length&&(x=new bn(x,e,null,n,i),a.push({event:x,listeners:y}),v?x.data=v:null!==(v=Wn(n))&&(x.data=v))),(v=Nn?function(e,t){switch(e){case"compositionend":return Wn(t);case"keypress":return 32!==t.which?null:(Vn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Vn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Ln&&$n(e,t)?(e=tn(),en=Jt=Qt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Xr(r,"onBeforeInput")).length&&(i=new bn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}Fr(a,t)})}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Re(e,n))&&r.unshift(Ur(e,o,i)),null!=(o=Re(e,t))&&r.push(Ur(e,o,i))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Zr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Re(n,o))&&a.unshift(Ur(n,l,s)):i||null!=(l=Re(n,o))&&a.push(Ur(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var qr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(qr,"\n").replace(Kr,"")}function Jr(e,t,r){if(t=Qr(t),Qr(e)!==t&&r)throw Error(n(425))}function ei(){}var ti=null,ni=null;function ri(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ii="function"==typeof setTimeout?setTimeout:void 0,oi="function"==typeof clearTimeout?clearTimeout:void 0,ai="function"==typeof Promise?Promise:void 0,si="function"==typeof queueMicrotask?queueMicrotask:void 0!==ai?function(e){return ai.resolve(null).then(e).catch(li)}:ii;function li(e){setTimeout(function(){throw e})}function ui(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ht(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function di(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var hi=Math.random().toString(36).slice(2),pi="__reactFiber$"+hi,fi="__reactProps$"+hi,gi="__reactContainer$"+hi,mi="__reactEvents$"+hi,yi="__reactListeners$"+hi,vi="__reactHandles$"+hi;function xi(e){var t=e[pi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gi]||n[pi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=di(e);null!==e;){if(n=e[pi])return n;e=di(e)}return t}n=(e=n).parentNode}return null}function _i(e){return!(e=e[pi]||e[gi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function bi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function wi(e){return e[fi]||null}var Si=[],ki=-1;function Ci(e){return{current:e}}function Mi(e){0>ki||(e.current=Si[ki],Si[ki]=null,ki--)}function Ti(e,t){ki++,Si[ki]=e.current,e.current=t}var Ii={},Pi=Ci(Ii),Di=Ci(!1),Ai=Ii;function Ei(e,t){var n=e.type.contextTypes;if(!n)return Ii;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ri(e){return null!=(e=e.childContextTypes)}function Oi(){Mi(Di),Mi(Pi)}function Li(e,t,r){if(Pi.current!==Ii)throw Error(n(168));Ti(Pi,t),Ti(Di,r)}function zi(e,t,r){var i=e.stateNode;if(t=t.childContextTypes,"function"!=typeof i.getChildContext)return r;for(var o in i=i.getChildContext())if(!(o in t))throw Error(n(108,j(e)||"Unknown",o));return B({},r,i)}function Ni(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ii,Ai=Pi.current,Ti(Pi,e),Ti(Di,Di.current),!0}function Bi(e,t,r){var i=e.stateNode;if(!i)throw Error(n(169));r?(e=zi(e,t,Ai),i.__reactInternalMemoizedMergedChildContext=e,Mi(Di),Mi(Pi),Ti(Pi,e)):Mi(Di),Ti(Di,r)}var Fi=null,Vi=!1,$i=!1;function Wi(e){null===Fi?Fi=[e]:Fi.push(e)}function Hi(){if(!$i&&null!==Fi){$i=!0;var e=0,t=_t;try{var n=Fi;for(_t=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fi=null,Vi=!1}catch(i){throw null!==Fi&&(Fi=Fi.slice(e+1)),Ye(et,Hi),i}finally{_t=t,$i=!1}}return null}var ji=[],Gi=0,Ui=null,Xi=0,Yi=[],Zi=0,qi=null,Ki=1,Qi="";function Ji(e,t){ji[Gi++]=Xi,ji[Gi++]=Ui,Ui=e,Xi=t}function eo(e,t,n){Yi[Zi++]=Ki,Yi[Zi++]=Qi,Yi[Zi++]=qi,qi=e;var r=Ki;e=Qi;var i=32-st(r)-1;r&=~(1<<i),n+=1;var o=32-st(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Ki=1<<32-st(t)+i|n<<i|r,Qi=o+e}else Ki=1<<o|n<<i|r,Qi=e}function to(e){null!==e.return&&(Ji(e,1),eo(e,1,0))}function no(e){for(;e===Ui;)Ui=ji[--Gi],ji[Gi]=null,Xi=ji[--Gi],ji[Gi]=null;for(;e===qi;)qi=Yi[--Zi],Yi[Zi]=null,Qi=Yi[--Zi],Yi[Zi]=null,Ki=Yi[--Zi],Yi[Zi]=null}var ro=null,io=null,oo=!1,ao=null;function so(e,t){var n=Eu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function lo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ro=e,io=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ro=e,io=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==qi?{id:Ki,overflow:Qi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Eu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ro=e,io=null,!0);default:return!1}}function uo(e){return!(!(1&e.mode)||128&e.flags)}function co(e){if(oo){var t=io;if(t){var r=t;if(!lo(e,t)){if(uo(e))throw Error(n(418));t=ci(r.nextSibling);var i=ro;t&&lo(e,t)?so(i,r):(e.flags=-4097&e.flags|2,oo=!1,ro=e)}}else{if(uo(e))throw Error(n(418));e.flags=-4097&e.flags|2,oo=!1,ro=e}}}function ho(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ro=e}function po(e){if(e!==ro)return!1;if(!oo)return ho(e),oo=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ri(e.type,e.memoizedProps)),t&&(t=io)){if(uo(e))throw fo(),Error(n(418));for(;t;)so(e,t),t=ci(t.nextSibling)}if(ho(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){io=ci(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}io=null}}else io=ro?ci(e.stateNode.nextSibling):null;return!0}function fo(){for(var e=io;e;)e=ci(e.nextSibling)}function go(){io=ro=null,oo=!1}function mo(e){null===ao?ao=[e]:ao.push(e)}var yo=x.ReactCurrentBatchConfig;function vo(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var i=r.stateNode}if(!i)throw Error(n(147,e));var o=i,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function xo(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function _o(e){return(0,e._init)(e._payload)}function bo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ou(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Bu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===R&&_o(i)===t.type)?((r=o(t,n.props)).ref=vo(e,t,n),r.return=e,r):((r=Lu(n.type,n.key,n.props,null,e.mode,r)).ref=vo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=zu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Bu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Lu(t.type,t.key,t.props,null,e.mode,n)).ref=vo(e,null,t),n.return=e,n;case b:return(t=Fu(t,e.mode,n)).return=e,t;case R:return h(e,(0,t._init)(t._payload),n)}if(ne(t)||z(t))return(t=zu(t,e.mode,n,null)).return=e,t;xo(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===i?u(e,t,n,r):null;case b:return n.key===i?c(e,t,n,r):null;case R:return p(e,t,(i=n._init)(n._payload),r)}if(ne(n)||z(n))return null!==i?null:d(e,t,n,r,null);xo(e,n)}return null}function f(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case _:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case b:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case R:return f(e,t,n,(0,r._init)(r._payload),i)}if(ne(r)||z(r))return d(t,e=e.get(n)||null,r,i,null);xo(t,r)}return null}return function l(u,c,d,g){if("object"==typeof d&&null!==d&&d.type===S&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case _:e:{for(var m=d.key,y=c;null!==y;){if(y.key===m){if((m=d.type)===S){if(7===y.tag){r(u,y.sibling),(c=o(y,d.props.children)).return=u,u=c;break e}}else if(y.elementType===m||"object"==typeof m&&null!==m&&m.$$typeof===R&&_o(m)===y.type){r(u,y.sibling),(c=o(y,d.props)).ref=vo(u,y,d),c.return=u,u=c;break e}r(u,y);break}t(u,y),y=y.sibling}d.type===S?((c=zu(d.props.children,u.mode,g,d.key)).return=u,u=c):((g=Lu(d.type,d.key,d.props,null,u.mode,g)).ref=vo(u,c,d),g.return=u,u=g)}return s(u);case b:e:{for(y=d.key;null!==c;){if(c.key===y){if(4===c.tag&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){r(u,c.sibling),(c=o(c,d.children||[])).return=u,u=c;break e}r(u,c);break}t(u,c),c=c.sibling}(c=Fu(d,u.mode,g)).return=u,u=c}return s(u);case R:return l(u,c,(y=d._init)(d._payload),g)}if(ne(d))return function(n,o,s,l){for(var u=null,c=null,d=o,g=o=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var y=p(n,d,s[g],l);if(null===y){null===d&&(d=m);break}e&&d&&null===y.alternate&&t(n,d),o=a(y,o,g),null===c?u=y:c.sibling=y,c=y,d=m}if(g===s.length)return r(n,d),oo&&Ji(n,g),u;if(null===d){for(;g<s.length;g++)null!==(d=h(n,s[g],l))&&(o=a(d,o,g),null===c?u=d:c.sibling=d,c=d);return oo&&Ji(n,g),u}for(d=i(n,d);g<s.length;g++)null!==(m=f(d,n,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),o=a(m,o,g),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach(function(e){return t(n,e)}),oo&&Ji(n,g),u}(u,c,d,g);if(z(d))return function(o,s,l,u){var c=z(l);if("function"!=typeof c)throw Error(n(150));if(null==(l=c.call(l)))throw Error(n(151));for(var d=c=null,g=s,m=s=0,y=null,v=l.next();null!==g&&!v.done;m++,v=l.next()){g.index>m?(y=g,g=null):y=g.sibling;var x=p(o,g,v.value,u);if(null===x){null===g&&(g=y);break}e&&g&&null===x.alternate&&t(o,g),s=a(x,s,m),null===d?c=x:d.sibling=x,d=x,g=y}if(v.done)return r(o,g),oo&&Ji(o,m),c;if(null===g){for(;!v.done;m++,v=l.next())null!==(v=h(o,v.value,u))&&(s=a(v,s,m),null===d?c=v:d.sibling=v,d=v);return oo&&Ji(o,m),c}for(g=i(o,g);!v.done;m++,v=l.next())null!==(v=f(g,o,m,v.value,u))&&(e&&null!==v.alternate&&g.delete(null===v.key?m:v.key),s=a(v,s,m),null===d?c=v:d.sibling=v,d=v);return e&&g.forEach(function(e){return t(o,e)}),oo&&Ji(o,m),c}(u,c,d,g);xo(u,d)}return"string"==typeof d&&""!==d||"number"==typeof d?(d=""+d,null!==c&&6===c.tag?(r(u,c.sibling),(c=o(c,d)).return=u,u=c):(r(u,c),(c=Bu(d,u.mode,g)).return=u,u=c),s(u)):r(u,c)}}var wo=bo(!0),So=bo(!1),ko=Ci(null),Co=null,Mo=null,To=null;function Io(){To=Mo=Co=null}function Po(e){var t=ko.current;Mi(ko),e._currentValue=t}function Do(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ao(e,t){Co=e,To=Mo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(_s=!0),e.firstContext=null)}function Eo(e){var t=e._currentValue;if(To!==e)if(e={context:e,memoizedValue:t,next:null},null===Mo){if(null===Co)throw Error(n(308));Mo=e,Co.dependencies={lanes:0,firstContext:e}}else Mo=Mo.next=e;return t}var Ro=null;function Oo(e){null===Ro?Ro=[e]:Ro.push(e)}function Lo(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Oo(t)):(n.next=i.next,i.next=n),t.interleaved=n,zo(e,r)}function zo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var No=!1;function Bo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Vo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $o(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Pl){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,zo(e,n)}return null===(i=r.interleaved)?(t.next=t,Oo(r)):(t.next=i.next,i.next=t),r.interleaved=t,zo(e,n)}function Wo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,xt(e,n)}}function Ho(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function jo(e,t,n,r){var i=e.updateQueue;No=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var h=s.lane,p=s.eventTime;if((r&h)===h){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,g=s;switch(h=t,p=n,g.tag){case 1:if("function"==typeof(f=g.payload)){d=f.call(p,d,h);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(h="function"==typeof(f=g.payload)?f.call(p,d,h):f))break e;d=B({},d,h);break e;case 2:No=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,a|=h;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Nl|=a,e.lanes=a,e.memoizedState=d}}function Go(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var i=e[t],o=i.callback;if(null!==o){if(i.callback=null,i=r,"function"!=typeof o)throw Error(n(191,o));o.call(i)}}}var Uo={},Xo=Ci(Uo),Yo=Ci(Uo),Zo=Ci(Uo);function qo(e){if(e===Uo)throw Error(n(174));return e}function Ko(e,t){switch(Ti(Zo,t),Ti(Yo,e),Ti(Xo,Uo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Mi(Xo),Ti(Xo,t)}function Qo(){Mi(Xo),Mi(Yo),Mi(Zo)}function Jo(e){qo(Zo.current);var t=qo(Xo.current),n=ue(t,e.type);t!==n&&(Ti(Yo,e),Ti(Xo,n))}function ea(e){Yo.current===e&&(Mi(Xo),Mi(Yo))}var ta=Ci(0);function na(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ra=[];function ia(){for(var e=0;e<ra.length;e++)ra[e]._workInProgressVersionPrimary=null;ra.length=0}var oa=x.ReactCurrentDispatcher,aa=x.ReactCurrentBatchConfig,sa=0,la=null,ua=null,ca=null,da=!1,ha=!1,pa=0,fa=0;function ga(){throw Error(n(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ya(e,t,r,i,o,a){if(sa=a,la=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?es:ts,e=r(i,o),ha){a=0;do{if(ha=!1,pa=0,25<=a)throw Error(n(301));a+=1,ca=ua=null,t.updateQueue=null,oa.current=ns,e=r(i,o)}while(ha)}if(oa.current=Ja,t=null!==ua&&null!==ua.next,sa=0,ca=ua=la=null,da=!1,t)throw Error(n(300));return e}function va(){var e=0!==pa;return pa=0,e}function xa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?la.memoizedState=ca=e:ca=ca.next=e,ca}function _a(){if(null===ua){var e=la.alternate;e=null!==e?e.memoizedState:null}else e=ua.next;var t=null===ca?la.memoizedState:ca.next;if(null!==t)ca=t,ua=e;else{if(null===e)throw Error(n(310));e={memoizedState:(ua=e).memoizedState,baseState:ua.baseState,baseQueue:ua.baseQueue,queue:ua.queue,next:null},null===ca?la.memoizedState=ca=e:ca=ca.next=e}return ca}function ba(e,t){return"function"==typeof t?t(e):t}function wa(e){var t=_a(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var i=ua,o=i.baseQueue,a=r.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}i.baseQueue=o=a,r.pending=null}if(null!==o){a=o.next,i=i.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((sa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),i=c.hasEagerState?c.eagerState:e(i,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=h,s=i):u=u.next=h,la.lanes|=d,Nl|=d}c=c.next}while(null!==c&&c!==a);null===u?s=i:u.next=l,lr(i,t.memoizedState)||(_s=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=u,r.lastRenderedState=i}if(null!==(e=r.interleaved)){o=e;do{a=o.lane,la.lanes|=a,Nl|=a,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Sa(e){var t=_a(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var i=r.dispatch,o=r.pending,a=t.memoizedState;if(null!==o){r.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);lr(a,t.memoizedState)||(_s=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,i]}function ka(){}function Ca(e,t){var r=la,i=_a(),o=t(),a=!lr(i.memoizedState,o);if(a&&(i.memoizedState=o,_s=!0),i=i.queue,Na(Ia.bind(null,r,i,e),[e]),i.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(r.flags|=2048,Ea(9,Ta.bind(null,r,i,o,t),void 0,null),null===Dl)throw Error(n(349));30&sa||Ma(r,t,o)}return o}function Ma(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ta(e,t,n,r){t.value=n,t.getSnapshot=r,Pa(t)&&Da(e)}function Ia(e,t,n){return n(function(){Pa(t)&&Da(e)})}function Pa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(r){return!0}}function Da(e){var t=zo(e,1);null!==t&&ru(t,e,1,-1)}function Aa(e){var t=xa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:e},t.queue=e,e=e.dispatch=Za.bind(null,la,e),[t.memoizedState,e]}function Ea(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ra(){return _a().memoizedState}function Oa(e,t,n,r){var i=xa();la.flags|=e,i.memoizedState=Ea(1|t,n,void 0,void 0===r?null:r)}function La(e,t,n,r){var i=_a();r=void 0===r?null:r;var o=void 0;if(null!==ua){var a=ua.memoizedState;if(o=a.destroy,null!==r&&ma(r,a.deps))return void(i.memoizedState=Ea(t,n,o,r))}la.flags|=e,i.memoizedState=Ea(1|t,n,o,r)}function za(e,t){return Oa(8390656,8,e,t)}function Na(e,t){return La(2048,8,e,t)}function Ba(e,t){return La(4,2,e,t)}function Fa(e,t){return La(4,4,e,t)}function Va(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function $a(e,t,n){return n=null!=n?n.concat([e]):null,La(4,4,Va.bind(null,t,e),n)}function Wa(){}function Ha(e,t){var n=_a();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ja(e,t){var n=_a();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ga(e,t,n){return 21&sa?(lr(n,t)||(n=mt(),la.lanes|=n,Nl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,_s=!0),e.memoizedState=n)}function Ua(e,t){var n=_t;_t=0!==n&&4>n?n:4,e(!0);var r=aa.transition;aa.transition={};try{e(!1),t()}finally{_t=n,aa.transition=r}}function Xa(){return _a().memoizedState}function Ya(e,t,n){var r=nu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qa(e))Ka(t,n);else if(null!==(n=Lo(e,t,n,r))){ru(n,e,r,tu()),Qa(n,t,r)}}function Za(e,t,n){var r=nu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qa(e))Ka(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,lr(s,a)){var l=t.interleaved;return null===l?(i.next=i,Oo(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(u){}null!==(n=Lo(e,t,i,r))&&(ru(n,e,r,i=tu()),Qa(n,t,r))}}function qa(e){var t=e.alternate;return e===la||null!==t&&t===la}function Ka(e,t){ha=da=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,xt(e,n)}}var Ja={readContext:Eo,useCallback:ga,useContext:ga,useEffect:ga,useImperativeHandle:ga,useInsertionEffect:ga,useLayoutEffect:ga,useMemo:ga,useReducer:ga,useRef:ga,useState:ga,useDebugValue:ga,useDeferredValue:ga,useTransition:ga,useMutableSource:ga,useSyncExternalStore:ga,useId:ga,unstable_isNewReconciler:!1},es={readContext:Eo,useCallback:function(e,t){return xa().memoizedState=[e,void 0===t?null:t],e},useContext:Eo,useEffect:za,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Oa(4194308,4,Va.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oa(4,2,e,t)},useMemo:function(e,t){var n=xa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ya.bind(null,la,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},xa().memoizedState=e},useState:Aa,useDebugValue:Wa,useDeferredValue:function(e){return xa().memoizedState=e},useTransition:function(){var e=Aa(!1),t=e[0];return e=Ua.bind(null,e[1]),xa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var i=la,o=xa();if(oo){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Dl)throw Error(n(349));30&sa||Ma(i,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,za(Ia.bind(null,i,a,e),[e]),i.flags|=2048,Ea(9,Ta.bind(null,i,a,r,t),void 0,null),r},useId:function(){var e=xa(),t=Dl.identifierPrefix;if(oo){var n=Qi;t=":"+t+"R"+(n=(Ki&~(1<<32-st(Ki)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ts={readContext:Eo,useCallback:Ha,useContext:Eo,useEffect:Na,useImperativeHandle:$a,useInsertionEffect:Ba,useLayoutEffect:Fa,useMemo:ja,useReducer:wa,useRef:Ra,useState:function(){return wa(ba)},useDebugValue:Wa,useDeferredValue:function(e){return Ga(_a(),ua.memoizedState,e)},useTransition:function(){return[wa(ba)[0],_a().memoizedState]},useMutableSource:ka,useSyncExternalStore:Ca,useId:Xa,unstable_isNewReconciler:!1},ns={readContext:Eo,useCallback:Ha,useContext:Eo,useEffect:Na,useImperativeHandle:$a,useInsertionEffect:Ba,useLayoutEffect:Fa,useMemo:ja,useReducer:Sa,useRef:Ra,useState:function(){return Sa(ba)},useDebugValue:Wa,useDeferredValue:function(e){var t=_a();return null===ua?t.memoizedState=e:Ga(t,ua.memoizedState,e)},useTransition:function(){return[Sa(ba)[0],_a().memoizedState]},useMutableSource:ka,useSyncExternalStore:Ca,useId:Xa,unstable_isNewReconciler:!1};function rs(e,t){if(e&&e.defaultProps){for(var n in t=B({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function is(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:B({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),i=nu(e),o=Vo(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=$o(e,o,i))&&(ru(t,e,i,r),Wo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),i=nu(e),o=Vo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=$o(e,o,i))&&(ru(t,e,i,r),Wo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),i=Vo(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=$o(e,i,r))&&(ru(t,e,r,n),Wo(t,e,r))}};function as(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(i,o))}function ss(e,t,n){var r=!1,i=Ii,o=t.contextType;return"object"==typeof o&&null!==o?o=Eo(o):(i=Ri(t)?Ai:Pi.current,o=(r=null!=(r=t.contextTypes))?Ei(e,i):Ii),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ls(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function us(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Bo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=Eo(o):(o=Ri(t)?Ai:Pi.current,i.context=Ei(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(is(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&os.enqueueReplaceState(i,i.state,null),jo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=W(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function hs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ps="function"==typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=Vo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gl||(Gl=!0,Ul=r),hs(0,t)},n}function gs(e,t,n){(n=Vo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){hs(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){hs(0,t),"function"!=typeof r&&(null===Xl?Xl=new Set([this]):Xl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Mu.bind(null,e,t,n),t.then(e,e))}function ys(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Vo(-1,1)).tag=2,$o(n,t,1))),n.lanes|=1),e)}var xs=x.ReactCurrentOwner,_s=!1;function bs(e,t,n,r){t.child=null===e?So(t,null,n,r):wo(t,e.child,n,r)}function ws(e,t,n,r,i){n=n.render;var o=t.ref;return Ao(t,i),r=ya(e,t,n,r,o,i),n=va(),null===e||_s?(oo&&n&&to(t),t.flags|=1,bs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gs(e,t,i))}function Ss(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Ru(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Lu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,ks(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)return Gs(e,t,i)}return t.flags|=1,(e=Ou(o,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(ur(o,r)&&e.ref===t.ref){if(_s=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Gs(e,t,i);131072&e.flags&&(_s=!0)}}return Ts(e,t,n,r,i)}function Cs(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ti(Ol,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ti(Ol,Rl),Rl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ti(Ol,Rl),Rl|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ti(Ol,Rl),Rl|=r;return bs(e,t,i,n),t.child}function Ms(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,n,r,i){var o=Ri(n)?Ai:Pi.current;return o=Ei(t,o),Ao(t,i),n=ya(e,t,n,r,o,i),r=va(),null===e||_s?(oo&&r&&to(t),t.flags|=1,bs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gs(e,t,i))}function Is(e,t,n,r,i){if(Ri(n)){var o=!0;Ni(t)}else o=!1;if(Ao(t,i),null===t.stateNode)js(e,t),ss(t,n,r),us(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Eo(u):u=Ei(t,u=Ri(n)?Ai:Pi.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ls(t,a,r,u),No=!1;var h=t.memoizedState;a.state=h,jo(t,r,a,i),l=t.memoizedState,s!==r||h!==l||Di.current||No?("function"==typeof c&&(is(t,n,c,r),l=t.memoizedState),(s=No||as(t,n,s,r,h,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Fo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:rs(t.type,s),a.props=u,d=t.pendingProps,h=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Eo(l):l=Ei(t,l=Ri(n)?Ai:Pi.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||h!==l)&&ls(t,a,r,l),No=!1,h=t.memoizedState,a.state=h,jo(t,r,a,i);var f=t.memoizedState;s!==d||h!==f||Di.current||No?("function"==typeof p&&(is(t,n,p,r),f=t.memoizedState),(u=No||as(t,n,u,r,h,f,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Ps(e,t,n,r,o,i)}function Ps(e,t,n,r,i,o){Ms(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&Bi(t,n,!1),Gs(e,t,o);r=t.stateNode,xs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=wo(t,e.child,null,o),t.child=wo(t,null,s,o)):bs(e,t,s,o),t.memoizedState=r.state,i&&Bi(t,n,!0),t.child}function Ds(e){var t=e.stateNode;t.pendingContext?Li(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Li(0,t.context,!1),Ko(e,t.containerInfo)}function As(e,t,n,r,i){return go(),mo(i),t.flags|=256,bs(e,t,n,r),t.child}var Es,Rs,Os,Ls,zs={dehydrated:null,treeContext:null,retryLane:0};function Ns(e){return{baseLanes:e,cachePool:null,transitions:null}}function Bs(e,t,r){var i,o=t.pendingProps,a=ta.current,s=!1,l=!!(128&t.flags);if((i=l)||(i=(null===e||null!==e.memoizedState)&&!!(2&a)),i?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ti(ta,1&a),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=Nu(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=zu(e,o,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ns(r),t.memoizedState=zs,e):Fs(t,l));if(null!==(a=e.memoizedState)&&null!==(i=a.dehydrated))return function(e,t,r,i,o,a,s){if(r)return 256&t.flags?(t.flags&=-257,Vs(e,t,s,i=ds(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=i.fallback,o=t.mode,i=Nu({mode:"visible",children:i.children},o,0,null),(a=zu(a,o,s,null)).flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,1&t.mode&&wo(t,e.child,null,s),t.child.memoizedState=Ns(s),t.memoizedState=zs,a);if(!(1&t.mode))return Vs(e,t,s,null);if("$!"===o.data){if(i=o.nextSibling&&o.nextSibling.dataset)var l=i.dgst;return i=l,Vs(e,t,s,i=ds(a=Error(n(419)),i,void 0))}if(l=0!==(s&e.childLanes),_s||l){if(null!==(i=Dl)){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(i.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,zo(e,o),ru(i,e,o,-1))}return mu(),Vs(e,t,s,i=ds(Error(n(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Iu.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,io=ci(o.nextSibling),ro=t,oo=!0,ao=null,null!==e&&(Yi[Zi++]=Ki,Yi[Zi++]=Qi,Yi[Zi++]=qi,Ki=e.id,Qi=e.overflow,qi=t),t=Fs(t,i.children),t.flags|=4096,t)}(e,t,l,o,i,a,r);if(s){s=o.fallback,l=t.mode,i=(a=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&l||t.child===a?(o=Ou(a,u)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==i?s=Ou(i,s):(s=zu(s,l,r,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Ns(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=zs,o}return e=(s=e.child).sibling,o=Ou(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Fs(e,t){return(t=Nu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Vs(e,t,n,r){return null!==r&&mo(r),wo(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function $s(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Do(e.return,t,n)}function Ws(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Hs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(bs(e,t,r.children,n),2&(r=ta.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$s(e,n,t);else if(19===e.tag)$s(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ti(ta,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===na(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ws(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===na(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ws(t,!0,n,null,o);break;case"together":Ws(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function js(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Nl|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Ou(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ou(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Us(e,t){if(!oo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ys(e,t,r){var o=t.pendingProps;switch(no(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xs(t),null;case 1:case 17:return Ri(t.type)&&Oi(),Xs(t),null;case 3:return o=t.stateNode,Qo(),Mi(Di),Mi(Pi),ia(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(po(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ao&&(su(ao),ao=null))),Rs(e,t),Xs(t),null;case 5:ea(t);var a=qo(Zo.current);if(r=t.type,null!==e&&null!=t.stateNode)Os(e,t,r,o,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(n(166));return Xs(t),null}if(e=qo(Xo.current),po(t)){o=t.stateNode,r=t.type;var s=t.memoizedProps;switch(o[pi]=t,o[fi]=s,e=!!(1&t.mode),r){case"dialog":Vr("cancel",o),Vr("close",o);break;case"iframe":case"object":case"embed":Vr("load",o);break;case"video":case"audio":for(a=0;a<zr.length;a++)Vr(zr[a],o);break;case"source":Vr("error",o);break;case"img":case"image":case"link":Vr("error",o),Vr("load",o);break;case"details":Vr("toggle",o);break;case"input":K(o,s),Vr("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!s.multiple},Vr("invalid",o);break;case"textarea":oe(o,s),Vr("invalid",o)}for(var l in xe(r,s),a=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?o.textContent!==u&&(!0!==s.suppressHydrationWarning&&Jr(o.textContent,u,e),a=["children",u]):"number"==typeof u&&o.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Jr(o.textContent,u,e),a=["children",""+u]):i.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Vr("scroll",o)}switch(r){case"input":X(o),ee(o,s,!0);break;case"textarea":X(o),se(o);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(o.onclick=ei)}o=a,t.updateQueue=o,null!==o&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=l.createElement(r,{is:o.is}):(e=l.createElement(r),"select"===r&&(l=e,o.multiple?l.multiple=!0:o.size&&(l.size=o.size))):e=l.createElementNS(e,r),e[pi]=t,e[fi]=o,Es(e,t,!1,!1),t.stateNode=e;e:{switch(l=_e(r,o),r){case"dialog":Vr("cancel",e),Vr("close",e),a=o;break;case"iframe":case"object":case"embed":Vr("load",e),a=o;break;case"video":case"audio":for(a=0;a<zr.length;a++)Vr(zr[a],e);a=o;break;case"source":Vr("error",e),a=o;break;case"img":case"image":case"link":Vr("error",e),Vr("load",e),a=o;break;case"details":Vr("toggle",e),a=o;break;case"input":K(e,o),a=q(e,o),Vr("invalid",e);break;case"option":default:a=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},a=B({},o,{value:void 0}),Vr("invalid",e);break;case"textarea":oe(e,o),a=ie(e,o),Vr("invalid",e)}for(s in xe(r,a),u=a)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?ye(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&he(e,c):"children"===s?"string"==typeof c?("textarea"!==r||""!==c)&&pe(e,c):"number"==typeof c&&pe(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(i.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Vr("scroll",e):null!=c&&v(e,s,c,l))}switch(r){case"input":X(e),ee(e,o,!1);break;case"textarea":X(e),se(e);break;case"option":null!=o.value&&e.setAttribute("value",""+G(o.value));break;case"select":e.multiple=!!o.multiple,null!=(s=o.value)?re(e,!!o.multiple,s,!1):null!=o.defaultValue&&re(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=ei)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Xs(t),null;case 6:if(e&&null!=t.stateNode)Ls(e,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(n(166));if(r=qo(Zo.current),qo(Xo.current),po(t)){if(o=t.stateNode,r=t.memoizedProps,o[pi]=t,(s=o.nodeValue!==r)&&null!==(e=ro))switch(e.tag){case 3:Jr(o.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(o.nodeValue,r,!!(1&e.mode))}s&&(t.flags|=4)}else(o=(9===r.nodeType?r:r.ownerDocument).createTextNode(o))[pi]=t,t.stateNode=o}return Xs(t),null;case 13:if(Mi(ta),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(oo&&null!==io&&1&t.mode&&!(128&t.flags))fo(),go(),t.flags|=98560,s=!1;else if(s=po(t),null!==o&&null!==o.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[pi]=t}else go(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Xs(t),s=!1}else null!==ao&&(su(ao),ao=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((o=null!==o)!==(null!==e&&null!==e.memoizedState)&&o&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ta.current?0===Ll&&(Ll=3):mu())),null!==t.updateQueue&&(t.flags|=4),Xs(t),null);case 4:return Qo(),Rs(e,t),null===e&&Hr(t.stateNode.containerInfo),Xs(t),null;case 10:return Po(t.type._context),Xs(t),null;case 19:if(Mi(ta),null===(s=t.memoizedState))return Xs(t),null;if(o=!!(128&t.flags),null===(l=s.rendering))if(o)Us(s,!1);else{if(0!==Ll||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=na(e))){for(t.flags|=128,Us(s,!1),null!==(o=l.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;null!==r;)e=o,(s=r).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ti(ta,1&ta.current|2),t.child}e=e.sibling}null!==s.tail&&Qe()>Hl&&(t.flags|=128,o=!0,Us(s,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=na(l))){if(t.flags|=128,o=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Us(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!oo)return Xs(t),null}else 2*Qe()-s.renderingStartTime>Hl&&1073741824!==r&&(t.flags|=128,o=!0,Us(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Qe(),t.sibling=null,r=ta.current,Ti(ta,o?1&r|2:1&r),t):(Xs(t),null);case 22:case 23:return hu(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&1&t.mode?!!(1073741824&Rl)&&(Xs(t),6&t.subtreeFlags&&(t.flags|=8192)):Xs(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Zs(e,t){switch(no(t),t.tag){case 1:return Ri(t.type)&&Oi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qo(),Mi(Di),Mi(Pi),ia(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ea(t),null;case 13:if(Mi(ta),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));go()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Mi(ta),null;case 4:return Qo(),null;case 10:return Po(t.type._context),null;case 22:case 23:return hu(),null;default:return null}}Es=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Rs=function(){},Os=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,qo(Xo.current);var a,s=null;switch(n){case"input":o=q(e,o),r=q(e,r),s=[];break;case"select":o=B({},o,{value:void 0}),r=B({},r,{value:void 0}),s=[];break;case"textarea":o=ie(e,o),r=ie(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=ei)}for(c in xe(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(i.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(i.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Vr("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Ls=function(e,t,n,r){n!==r&&(t.flags|=4)};var qs=!1,Ks=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Js=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Cu(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){Cu(e,t,r)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&tl(t,n,o)}i=i.next}while(i!==r)}}function il(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pi],delete t[fi],delete t[mi],delete t[yi],delete t[vi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=ei));else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var dl=null,hl=!1;function pl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(s){}switch(n.tag){case 5:Ks||el(n,t);case 6:var r=dl,i=hl;dl=null,pl(e,t,n),hl=i,null!==(dl=r)&&(hl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(hl?(e=dl,n=n.stateNode,8===e.nodeType?ui(e.parentNode,n):1===e.nodeType&&ui(e,n),Ht(e)):ui(dl,n.stateNode));break;case 4:r=dl,i=hl,dl=n.stateNode.containerInfo,hl=!0,pl(e,t,n),dl=r,hl=i;break;case 0:case 11:case 14:case 15:if(!Ks&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&tl(n,t,a),i=i.next}while(i!==r)}pl(e,t,n);break;case 1:if(!Ks&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Cu(n,t,s)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Ks=(r=Ks)||null!==n.memoizedState,pl(e,t,n),Ks=r):pl(e,t,n);break;default:pl(e,t,n)}}function gl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach(function(t){var r=Pu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ml(e,t){var r=t.deletions;if(null!==r)for(var i=0;i<r.length;i++){var o=r[i];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,hl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,hl=!0;break e}l=l.return}if(null===dl)throw Error(n(160));fl(a,s,o),dl=null,hl=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(c){Cu(o,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)yl(t,e),t=t.sibling}function yl(e,t){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&i){try{rl(3,e,e.return),il(3,e)}catch(m){Cu(e,e.return,m)}try{rl(5,e,e.return)}catch(m){Cu(e,e.return,m)}}break;case 1:ml(t,e),vl(e),512&i&&null!==r&&el(r,r.return);break;case 5:if(ml(t,e),vl(e),512&i&&null!==r&&el(r,r.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(m){Cu(e,e.return,m)}}if(4&i&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&Q(o,a),_e(l,s);var c=_e(l,a);for(s=0;s<u.length;s+=2){var d=u[s],h=u[s+1];"style"===d?ye(o,h):"dangerouslySetInnerHTML"===d?he(o,h):"children"===d?pe(o,h):v(o,d,h,c)}switch(l){case"input":J(o,a);break;case"textarea":ae(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?re(o,!!a.multiple,f,!1):p!==!!a.multiple&&(null!=a.defaultValue?re(o,!!a.multiple,a.defaultValue,!0):re(o,!!a.multiple,a.multiple?[]:"",!1))}o[fi]=a}catch(m){Cu(e,e.return,m)}}break;case 6:if(ml(t,e),vl(e),4&i){if(null===e.stateNode)throw Error(n(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(m){Cu(e,e.return,m)}}break;case 3:if(ml(t,e),vl(e),4&i&&null!==r&&r.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(m){Cu(e,e.return,m)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Wl=Qe())),4&i&&gl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Ks=(c=Ks)||d,ml(t,e),Ks=c):ml(t,e),vl(e),8192&i){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Js=e,d=e.child;null!==d;){for(h=Js=d;null!==Js;){switch(f=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:rl(4,p,p.return);break;case 1:el(p,p.return);var g=p.stateNode;if("function"==typeof g.componentWillUnmount){i=p,r=p.return;try{t=i,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Cu(i,r,m)}}break;case 5:el(p,p.return);break;case 22:if(null!==p.memoizedState){wl(h);continue}}null!==f?(f.return=p,Js=f):wl(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{o=h.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=h.stateNode,s=null!=(u=h.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(m){Cu(e,e.return,m)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(m){Cu(e,e.return,m)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ml(t,e),vl(e),4&i&&gl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(sl(r)){var i=r;break e}r=r.return}throw Error(n(160))}switch(i.tag){case 5:var o=i.stateNode;32&i.flags&&(pe(o,""),i.flags&=-33),cl(e,ll(e),o);break;case 3:case 4:var a=i.stateNode.containerInfo;ul(e,ll(e),a);break;default:throw Error(n(161))}}catch(s){Cu(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function xl(e,t,n){Js=e,_l(e)}function _l(e,t,n){for(var r=!!(1&e.mode);null!==Js;){var i=Js,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||qs;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Ks;s=qs;var u=Ks;if(qs=a,(Ks=l)&&!u)for(Js=i;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?Sl(i):null!==l?(l.return=a,Js=l):Sl(i);for(;null!==o;)Js=o,_l(o),o=o.sibling;Js=i,qs=s,Ks=u}bl(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,Js=o):bl(e)}}function bl(e){for(;null!==Js;){var t=Js;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ks||il(5,t);break;case 1:var i=t.stateNode;if(4&t.flags&&!Ks)if(null===r)i.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:rs(t.type,r.memoizedProps);i.componentDidUpdate(o,r.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Go(t,a,i);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Go(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&Ht(h)}}}break;default:throw Error(n(163))}Ks||512&t.flags&&ol(t)}catch(p){Cu(t,t.return,p)}}if(t===e){Js=null;break}if(null!==(r=t.sibling)){r.return=t.return,Js=r;break}Js=t.return}}function wl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function Sl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{il(4,t)}catch(l){Cu(t,n,l)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){Cu(t,i,l)}}var o=t.return;try{ol(t)}catch(l){Cu(t,o,l)}break;case 5:var a=t.return;try{ol(t)}catch(l){Cu(t,a,l)}}}catch(l){Cu(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var kl,Cl=Math.ceil,Ml=x.ReactCurrentDispatcher,Tl=x.ReactCurrentOwner,Il=x.ReactCurrentBatchConfig,Pl=0,Dl=null,Al=null,El=0,Rl=0,Ol=Ci(0),Ll=0,zl=null,Nl=0,Bl=0,Fl=0,Vl=null,$l=null,Wl=0,Hl=1/0,jl=null,Gl=!1,Ul=null,Xl=null,Yl=!1,Zl=null,ql=0,Kl=0,Ql=null,Jl=-1,eu=0;function tu(){return 6&Pl?Qe():-1!==Jl?Jl:Jl=Qe()}function nu(e){return 1&e.mode?2&Pl&&0!==El?El&-El:null!==yo.transition?(0===eu&&(eu=mt()),eu):0!==(e=_t)?e:e=void 0===(e=window.event)?16:Kt(e.type):1}function ru(e,t,r,i){if(50<Kl)throw Kl=0,Ql=null,Error(n(185));vt(e,r,i),2&Pl&&e===Dl||(e===Dl&&(!(2&Pl)&&(Bl|=r),4===Ll&&lu(e,El)),iu(e,i),1===r&&0===Pl&&!(1&t.mode)&&(Hl=Qe()+500,Vi&&Hi()))}function iu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-st(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=ft(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=pt(e,e===Dl?El:0);if(0===r)null!==n&&Ze(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ze(n),1===t)0===e.tag?function(e){Vi=!0,Wi(e)}(uu.bind(null,e)):Wi(uu.bind(null,e)),si(function(){!(6&Pl)&&Hi()}),n=null;else{switch(bt(r)){case 1:n=et;break;case 4:n=tt;break;case 16:default:n=nt;break;case 536870912:n=it}n=Du(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Jl=-1,eu=0,6&Pl)throw Error(n(327));var r=e.callbackNode;if(Su()&&e.callbackNode!==r)return null;var i=pt(e,e===Dl?El:0);if(0===i)return null;if(30&i||0!==(i&e.expiredLanes)||t)t=yu(e,i);else{t=i;var o=Pl;Pl|=2;var a=gu();for(Dl===e&&El===t||(jl=null,Hl=Qe()+500,pu(e,t));;)try{xu();break}catch(l){fu(e,l)}Io(),Ml.current=a,Pl=o,null!==Al?t=0:(Dl=null,El=0,t=Ll)}if(0!==t){if(2===t&&(0!==(o=gt(e))&&(i=o,t=au(e,o))),1===t)throw r=zl,pu(e,0),lu(e,i),iu(e,Qe()),r;if(6===t)lu(e,i);else{if(o=e.current.alternate,!(30&i||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!lr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=yu(e,i),2===t&&(a=gt(e),0!==a&&(i=a,t=au(e,a))),1!==t)))throw r=zl,pu(e,0),lu(e,i),iu(e,Qe()),r;switch(e.finishedWork=o,e.finishedLanes=i,t){case 0:case 1:throw Error(n(345));case 2:case 5:wu(e,$l,jl);break;case 3:if(lu(e,i),(130023424&i)===i&&10<(t=Wl+500-Qe())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&i)!==i){tu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ii(wu.bind(null,e,$l,jl),t);break}wu(e,$l,jl);break;case 4:if(lu(e,i),(4194240&i)===i)break;for(t=e.eventTimes,o=-1;0<i;){var s=31-st(i);a=1<<s,(s=t[s])>o&&(o=s),i&=~a}if(i=o,10<(i=(120>(i=Qe()-i)?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Cl(i/1960))-i)){e.timeoutHandle=ii(wu.bind(null,e,$l,jl),i);break}wu(e,$l,jl);break;default:throw Error(n(329))}}}return iu(e,Qe()),e.callbackNode===r?ou.bind(null,e):null}function au(e,t){var n=Vl;return e.current.memoizedState.isDehydrated&&(pu(e,t).flags|=256),2!==(e=yu(e,t))&&(t=$l,$l=n,null!==t&&su(t)),e}function su(e){null===$l?$l=e:$l.push.apply($l,e)}function lu(e,t){for(t&=~Fl,t&=~Bl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(6&Pl)throw Error(n(327));Su();var t=pt(e,0);if(!(1&t))return iu(e,Qe()),null;var r=yu(e,t);if(0!==e.tag&&2===r){var i=gt(e);0!==i&&(t=i,r=au(e,i))}if(1===r)throw r=zl,pu(e,0),lu(e,t),iu(e,Qe()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,$l,jl),iu(e,Qe()),null}function cu(e,t){var n=Pl;Pl|=1;try{return e(t)}finally{0===(Pl=n)&&(Hl=Qe()+500,Vi&&Hi())}}function du(e){null!==Zl&&0===Zl.tag&&!(6&Pl)&&Su();var t=Pl;Pl|=1;var n=Il.transition,r=_t;try{if(Il.transition=null,_t=1,e)return e()}finally{_t=r,Il.transition=n,!(6&(Pl=t))&&Hi()}}function hu(){Rl=Ol.current,Mi(Ol)}function pu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oi(n)),null!==Al)for(n=Al.return;null!==n;){var r=n;switch(no(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Oi();break;case 3:Qo(),Mi(Di),Mi(Pi),ia();break;case 5:ea(r);break;case 4:Qo();break;case 13:case 19:Mi(ta);break;case 10:Po(r.type._context);break;case 22:case 23:hu()}n=n.return}if(Dl=e,Al=e=Ou(e.current,null),El=Rl=t,Ll=0,zl=null,Fl=Bl=Nl=0,$l=Vl=null,null!==Ro){for(t=0;t<Ro.length;t++)if(null!==(r=(n=Ro[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Ro=null}return e}function fu(e,t){for(;;){var r=Al;try{if(Io(),oa.current=Ja,da){for(var i=la.memoizedState;null!==i;){var o=i.queue;null!==o&&(o.pending=null),i=i.next}da=!1}if(sa=0,ca=ua=la=null,ha=!1,pa=0,Tl.current=null,null===r||null===r.return){Ll=1,zl=t,Al=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=El,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,h=d.tag;if(!(1&d.mode||0!==h&&11!==h&&15!==h)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=ys(s);if(null!==f){f.flags&=-257,vs(f,s,l,0,t),1&f.mode&&ms(a,c,t),u=c;var g=(t=f).updateQueue;if(null===g){var m=new Set;m.add(u),t.updateQueue=m}else g.add(u);break e}if(!(1&t)){ms(a,c,t),mu();break e}u=Error(n(426))}else if(oo&&1&l.mode){var y=ys(s);if(null!==y){!(65536&y.flags)&&(y.flags|=256),vs(y,s,l,0,t),mo(cs(u,l));break e}}a=u=cs(u,l),4!==Ll&&(Ll=2),null===Vl?Vl=[a]:Vl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,fs(0,u,t));break e;case 1:l=u;var v=a.type,x=a.stateNode;if(!(128&a.flags||"function"!=typeof v.getDerivedStateFromError&&(null===x||"function"!=typeof x.componentDidCatch||null!==Xl&&Xl.has(x)))){a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,gs(a,l,t));break e}}a=a.return}while(null!==a)}bu(r)}catch(_){t=_,Al===r&&null!==r&&(Al=r=r.return);continue}break}}function gu(){var e=Ml.current;return Ml.current=Ja,null===e?Ja:e}function mu(){0!==Ll&&3!==Ll&&2!==Ll||(Ll=4),null===Dl||!(268435455&Nl)&&!(268435455&Bl)||lu(Dl,El)}function yu(e,t){var r=Pl;Pl|=2;var i=gu();for(Dl===e&&El===t||(jl=null,pu(e,t));;)try{vu();break}catch(o){fu(e,o)}if(Io(),Pl=r,Ml.current=i,null!==Al)throw Error(n(261));return Dl=null,El=0,Ll}function vu(){for(;null!==Al;)_u(Al)}function xu(){for(;null!==Al&&!qe();)_u(Al)}function _u(e){var t=kl(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?bu(e):Al=t,Tl.current=null}function bu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Zs(n,t)))return n.flags&=32767,void(Al=n);if(null===e)return Ll=6,void(Al=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ys(n,t,Rl)))return void(Al=n);if(null!==(t=t.sibling))return void(Al=t);Al=t=e}while(null!==t);0===Ll&&(Ll=5)}function wu(e,t,r){var i=_t,o=Il.transition;try{Il.transition=null,_t=1,function(e,t,r,i){do{Su()}while(null!==Zl);if(6&Pl)throw Error(n(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-st(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Dl&&(Al=Dl=null,El=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Yl||(Yl=!0,Du(nt,function(){return Su(),null})),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=Il.transition,Il.transition=null;var s=_t;_t=1;var l=Pl;Pl|=4,Tl.current=null,function(e,t){if(ti=Gt,fr(e=pr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var i=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(i&&0!==i.rangeCount){r=i.anchorNode;var o=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{r.nodeType,a.nodeType}catch(b){r=null;break e}var s=0,l=-1,u=-1,c=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==r||0!==o&&3!==h.nodeType||(l=s+o),h!==a||0!==i&&3!==h.nodeType||(u=s+i),3===h.nodeType&&(s+=h.nodeValue.length),null!==(f=h.firstChild);)p=h,h=f;for(;;){if(h===e)break t;if(p===r&&++c===o&&(l=s),p===a&&++d===i&&(u=s),null!==(f=h.nextSibling))break;p=(h=p).parentNode}h=f}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(ni={focusedElem:e,selectionRange:r},Gt=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var g=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,y=g.memoizedState,v=t.stateNode,x=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:rs(t.type,m),y);v.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(n(163))}}catch(b){Cu(t,t.return,b)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}g=nl,nl=!1}(e,r),yl(r,e),gr(ni),Gt=!!ti,ni=ti=null,e.current=r,xl(r),Ke(),Pl=l,_t=s,Il.transition=a}else e.current=r;if(Yl&&(Yl=!1,Zl=e,ql=o),a=e.pendingLanes,0===a&&(Xl=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(t){}}(r.stateNode),iu(e,Qe()),null!==t)for(i=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],i(o.value,{componentStack:o.stack,digest:o.digest});if(Gl)throw Gl=!1,e=Ul,Ul=null,e;!!(1&ql)&&0!==e.tag&&Su(),a=e.pendingLanes,1&a?e===Ql?Kl++:(Kl=0,Ql=e):Kl=0,Hi()}(e,t,r,i)}finally{Il.transition=o,_t=i}return null}function Su(){if(null!==Zl){var e=bt(ql),t=Il.transition,r=_t;try{if(Il.transition=null,_t=16>e?16:e,null===Zl)var i=!1;else{if(e=Zl,Zl=null,ql=0,6&Pl)throw Error(n(331));var o=Pl;for(Pl|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(16&Js.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Js=c;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:rl(8,d,a)}var h=d.child;if(null!==h)h.return=d,Js=h;else for(;null!==Js;){var p=(d=Js).sibling,f=d.return;if(al(d),d===c){Js=null;break}if(null!==p){p.return=f,Js=p;break}Js=f}}}var g=a.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(null!==m)}}Js=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(2048&(a=Js).flags)switch(a.tag){case 0:case 11:case 15:rl(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,Js=v;break e}Js=a.return}}var x=e.current;for(Js=x;null!==Js;){var _=(s=Js).child;if(2064&s.subtreeFlags&&null!==_)_.return=s,Js=_;else e:for(s=x;null!==Js;){if(2048&(l=Js).flags)try{switch(l.tag){case 0:case 11:case 15:il(9,l)}}catch(w){Cu(l,l.return,w)}if(l===s){Js=null;break e}var b=l.sibling;if(null!==b){b.return=l.return,Js=b;break e}Js=l.return}}if(Pl=o,Hi(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(w){}i=!0}return i}finally{_t=r,Il.transition=t}}return!1}function ku(e,t,n){e=$o(e,t=fs(0,t=cs(n,t),1),1),t=tu(),null!==e&&(vt(e,1,t),iu(e,t))}function Cu(e,t,n){if(3===e.tag)ku(e,e,n);else for(;null!==t;){if(3===t.tag){ku(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Xl||!Xl.has(r))){t=$o(t,e=gs(t,e=cs(n,e),1),1),e=tu(),null!==t&&(vt(t,1,e),iu(t,e));break}}t=t.return}}function Mu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,Dl===e&&(El&n)===n&&(4===Ll||3===Ll&&(130023424&El)===El&&500>Qe()-Wl?pu(e,0):Fl|=n),iu(e,t)}function Tu(e,t){0===t&&(1&e.mode?(t=dt,!(130023424&(dt<<=1))&&(dt=4194304)):t=1);var n=tu();null!==(e=zo(e,t))&&(vt(e,t,n),iu(e,n))}function Iu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tu(e,n)}function Pu(e,t){var r=0;switch(e.tag){case 13:var i=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(n(314))}null!==i&&i.delete(t),Tu(e,r)}function Du(e,t){return Ye(e,t)}function Au(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Eu(e,t,n,r){return new Au(e,t,n,r)}function Ru(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ou(e,t){var n=e.alternate;return null===n?((n=Eu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lu(e,t,r,i,o,a){var s=2;if(i=e,"function"==typeof e)Ru(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return zu(r.children,o,a,t);case k:s=8,o|=8;break;case M:return(e=Eu(12,r,t,2|o)).elementType=M,e.lanes=a,e;case D:return(e=Eu(13,r,t,o)).elementType=D,e.lanes=a,e;case A:return(e=Eu(19,r,t,o)).elementType=A,e.lanes=a,e;case O:return Nu(r,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case I:s=9;break e;case P:s=11;break e;case E:s=14;break e;case R:s=16,i=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Eu(s,r,t,o)).elementType=e,t.type=i,t.lanes=a,t}function zu(e,t,n,r){return(e=Eu(7,e,r,t)).lanes=n,e}function Nu(e,t,n,r){return(e=Eu(22,e,r,t)).elementType=O,e.lanes=n,e.stateNode={isHidden:!1},e}function Bu(e,t,n){return(e=Eu(6,e,null,t)).lanes=n,e}function Fu(e,t,n){return(t=Eu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yt(0),this.expirationTimes=yt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function $u(e,t,n,r,i,o,a,s,l){return e=new Vu(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Eu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bo(o),e}function Wu(e){if(!e)return Ii;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ri(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Ri(r))return zi(e,r,t)}return t}function Hu(e,t,n,r,i,o,a,s,l){return(e=$u(n,r,!0,e,0,o,0,s,l)).context=Wu(null),n=e.current,(o=Vo(r=tu(),i=nu(n))).callback=null!=t?t:null,$o(n,o,i),e.current.lanes=i,vt(e,i,r),iu(e,r),e}function ju(e,t,n,r){var i=t.current,o=tu(),a=nu(i);return n=Wu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Vo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=$o(i,t,a))&&(ru(e,i,a,o),Wo(e,i,a)),a}function Gu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Uu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Xu(e,t){Uu(e,t),(e=e.alternate)&&Uu(e,t)}kl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Di.current)_s=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return _s=!1,function(e,t,n){switch(t.tag){case 3:Ds(t),go();break;case 5:Jo(t);break;case 1:Ri(t.type)&&Ni(t);break;case 4:Ko(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ti(ko,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ti(ta,1&ta.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Bs(e,t,n):(Ti(ta,1&ta.current),null!==(e=Gs(e,t,n))?e.sibling:null);Ti(ta,1&ta.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Hs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ti(ta,ta.current),r)break;return null;case 22:case 23:return t.lanes=0,Cs(e,t,n)}return Gs(e,t,n)}(e,t,r);_s=!!(131072&e.flags)}else _s=!1,oo&&1048576&t.flags&&eo(t,Xi,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;js(e,t),e=t.pendingProps;var o=Ei(t,Pi.current);Ao(t,r),o=ya(null,t,i,e,o,r);var a=va();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ri(i)?(a=!0,Ni(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Bo(t),o.updater=os,t.stateNode=o,o._reactInternals=t,us(t,i,e,r),t=Ps(null,t,i,!0,a,r)):(t.tag=0,oo&&a&&to(t),bs(null,t,o,r),t=t.child),t;case 16:i=t.elementType;e:{switch(js(e,t),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return Ru(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===E)return 14}return 2}(i),e=rs(i,e),o){case 0:t=Ts(null,t,i,e,r);break e;case 1:t=Is(null,t,i,e,r);break e;case 11:t=ws(null,t,i,e,r);break e;case 14:t=Ss(null,t,i,rs(i.type,e),r);break e}throw Error(n(306,i,""))}return t;case 0:return i=t.type,o=t.pendingProps,Ts(e,t,i,o=t.elementType===i?o:rs(i,o),r);case 1:return i=t.type,o=t.pendingProps,Is(e,t,i,o=t.elementType===i?o:rs(i,o),r);case 3:e:{if(Ds(t),null===e)throw Error(n(387));i=t.pendingProps,o=(a=t.memoizedState).element,Fo(e,t),jo(t,i,null,r);var s=t.memoizedState;if(i=s.element,a.isDehydrated){if(a={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=As(e,t,i,r,o=cs(Error(n(423)),t));break e}if(i!==o){t=As(e,t,i,r,o=cs(Error(n(424)),t));break e}for(io=ci(t.stateNode.containerInfo.firstChild),ro=t,oo=!0,ao=null,r=So(t,null,i,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(go(),i===o){t=Gs(e,t,r);break e}bs(e,t,i,r)}t=t.child}return t;case 5:return Jo(t),null===e&&co(t),i=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,ri(i,o)?s=null:null!==a&&ri(i,a)&&(t.flags|=32),Ms(e,t),bs(e,t,s,r),t.child;case 6:return null===e&&co(t),null;case 13:return Bs(e,t,r);case 4:return Ko(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=wo(t,null,i,r):bs(e,t,i,r),t.child;case 11:return i=t.type,o=t.pendingProps,ws(e,t,i,o=t.elementType===i?o:rs(i,o),r);case 7:return bs(e,t,t.pendingProps,r),t.child;case 8:case 12:return bs(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(i=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Ti(ko,i._currentValue),i._currentValue=s,null!==a)if(lr(a.value,s)){if(a.children===o.children&&!Di.current){t=Gs(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===i){if(1===a.tag){(u=Vo(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=r,null!==(u=a.alternate)&&(u.lanes|=r),Do(a.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(n(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Do(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}bs(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,i=t.pendingProps.children,Ao(t,r),i=i(o=Eo(o)),t.flags|=1,bs(e,t,i,r),t.child;case 14:return o=rs(i=t.type,t.pendingProps),Ss(e,t,i,o=rs(i.type,o),r);case 15:return ks(e,t,t.type,t.pendingProps,r);case 17:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:rs(i,o),js(e,t),t.tag=1,Ri(i)?(e=!0,Ni(t)):e=!1,Ao(t,r),ss(t,i,o),us(t,i,o,r),Ps(null,t,i,!0,e,r);case 19:return Hs(e,t,r);case 22:return Cs(e,t,r)}throw Error(n(156,t.tag))};var Yu="function"==typeof reportError?reportError:function(e){console.error(e)};function Zu(e){this._internalRoot=e}function qu(e){this._internalRoot=e}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function ec(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=Gu(a);s.call(e)}}ju(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=Gu(a);o.call(e)}}var a=Hu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=a,e[gi]=a.current,Hr(8===e.nodeType?e.parentNode:e),du(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=Gu(l);s.call(e)}}var l=$u(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=l,e[gi]=l.current,Hr(8===e.nodeType?e.parentNode:e),du(function(){ju(t,l,n,r)}),l}(n,t,e,i,r);return Gu(a)}qu.prototype.render=Zu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));ju(e,t,null,null)},qu.prototype.unmount=Zu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du(function(){ju(null,e,null,null)}),t[gi]=null}},qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&0!==t&&t<Ot[n].priority;n++);Ot.splice(n,0,e),0===n&&Bt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ht(t.pendingLanes);0!==n&&(xt(t,1|n),iu(t,Qe()),!(6&Pl)&&(Hl=Qe()+500,Hi()))}break;case 13:du(function(){var t=zo(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}}),Xu(e,1)}},St=function(e){if(13===e.tag){var t=zo(e,134217728);if(null!==t)ru(t,e,134217728,tu());Xu(e,134217728)}},kt=function(e){if(13===e.tag){var t=nu(e),n=zo(e,t);if(null!==n)ru(n,e,t,tu());Xu(e,t)}},Ct=function(){return _t},Mt=function(e,t){var n=_t;try{return _t=e,t()}finally{_t=n}},Se=function(e,t,r){switch(t){case"input":if(J(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var i=r[t];if(i!==e&&i.form===e.form){var o=wi(i);if(!o)throw Error(n(90));Y(i),J(i,o)}}}break;case"textarea":ae(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Pe=cu,De=du;var tc={usingClientEntryPoint:!1,Events:[_i,bi,wi,Te,Ie,cu]},nc={findFiberByHostInstance:xi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ic.isDisabled&&ic.supportsFiber)try{ot=ic.inject(rc),at=ic}catch(de){}}return w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,w.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ku(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},w.createRoot=function(e,t){if(!Ku(e))throw Error(n(299));var r=!1,i="",o=Yu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=$u(e,1,!1,null,0,r,0,i,o),e[gi]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Zu(t)},w.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=Ue(t))?null:e.stateNode},w.flushSync=function(e){return du(e)},w.hydrate=function(e,t,r){if(!Qu(t))throw Error(n(200));return ec(null,e,t,!0,r)},w.hydrateRoot=function(e,t,r){if(!Ku(e))throw Error(n(405));var i=null!=r&&r.hydratedSources||null,o=!1,a="",s=Yu;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Hu(t,null,e,1,null!=r?r:null,o,0,a,s),e[gi]=t.current,Hr(e),i)for(e=0;e<i.length;e++)o=(o=(r=i[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new qu(t)},w.render=function(e,t,r){if(!Qu(t))throw Error(n(200));return ec(null,e,t,!1,r)},w.unmountComponentAtNode=function(e){if(!Qu(e))throw Error(n(40));return!!e._reactRootContainer&&(du(function(){ec(null,null,e,!1,function(){e._reactRootContainer=null,e[gi]=null})}),!0)},w.unstable_batchedUpdates=cu,w.unstable_renderSubtreeIntoContainer=function(e,t,r,i){if(!Qu(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return ec(e,t,r,!1,i)},w.version="18.3.1-next-f1338f8080-20240426",w}function T(){if(y)return b.exports;return y=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),b.exports=M(),b.exports}const I=r(function(){if(v)return _;v=1;var e=T();return _.createRoot=e.createRoot,_.hydrateRoot=e.hydrateRoot,_}());var P=p();const D=r(P),A=n({__proto__:null,default:D},[P]),E=P.createContext(null),R={didCatch:!1,error:null};class O extends P.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=R}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:i,reason:"imperative-api"}),this.setState(R)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var i,o;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)&&(null===(i=(o=this.props).onReset)||void 0===i||i.call(o,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(R))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:i,error:o}=this.state;let a=e;if(i){const e={error:o,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=P.createElement(n,e);else{if(null!==r&&!P.isValidElement(r))throw o;a=r}}return P.createElement(E.Provider,{value:{didCatch:i,error:o,resetErrorBoundary:this.resetErrorBoundary}},a)}}function L(e,t,n){return t?Array.isArray(t)?t.map(t=>L(e,t,n)):"object"==typeof t?z(t,n):t:t}const z=(e,t)=>Object.entries(e).reduce((n,[r,i])=>({...n,[t(r)]:L(e,i,t)}),{}),N=e=>e.replace(/_([a-z0-9])/g,(e,t)=>t.toUpperCase()),B=window.templateArgs?(F=window.templateArgs,z(F,N)):{};var F;const V=!!B.isReport&&{...B,charts:(B.history||[]).reduce((e,{currentResponseTimePercentiles:t,...n})=>{return r=e,i={...t,...n},Object.entries(i).reduce((e,[t,n])=>({...e,[t]:[...e[t]||[],n]}),r);var r,i},{})},$={black:"#000",white:"#fff"},W="#e57373",H="#ef5350",j="#f44336",G="#d32f2f",U="#c62828",X="#f3e5f5",Y="#ce93d8",Z="#ba68c8",q="#ab47bc",K="#9c27b0",Q="#7b1fa2",J="#e3f2fd",ee="#90caf9",te="#42a5f5",ne="#1976d2",re="#1565c0",ie="#4fc3f7",oe="#29b6f6",ae="#03a9f4",se="#0288d1",le="#01579b",ue="#81c784",ce="#66bb6a",de="#4caf50",he="#388e3c",pe="#2e7d32",fe="#1b5e20",ge="#ffb74d",me="#ffa726",ye="#ff9800",ve="#f57c00",xe="#e65100",_e={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 be(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}const we="$$material";function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Se.apply(null,arguments)}var ke=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(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]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Ce="-ms-",Me="-moz-",Te="-webkit-",Ie="comm",Pe="rule",De="decl",Ae="@keyframes",Ee=Math.abs,Re=String.fromCharCode,Oe=Object.assign;function Le(e){return e.trim()}function ze(e,t,n){return e.replace(t,n)}function Ne(e,t){return e.indexOf(t)}function Be(e,t){return 0|e.charCodeAt(t)}function Fe(e,t,n){return e.slice(t,n)}function Ve(e){return e.length}function $e(e){return e.length}function We(e,t){return t.push(e),e}var He=1,je=1,Ge=0,Ue=0,Xe=0,Ye="";function Ze(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:He,column:je,length:a,return:""}}function qe(e,t){return Oe(Ze("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ke(){return Xe=Ue>0?Be(Ye,--Ue):0,je--,10===Xe&&(je=1,He--),Xe}function Qe(){return Xe=Ue<Ge?Be(Ye,Ue++):0,je++,10===Xe&&(je=1,He++),Xe}function Je(){return Be(Ye,Ue)}function et(){return Ue}function tt(e,t){return Fe(Ye,e,t)}function nt(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 rt(e){return He=je=1,Ge=Ve(Ye=e),Ue=0,[]}function it(e){return Ye="",e}function ot(e){return Le(tt(Ue-1,lt(91===e?e+2:40===e?e+1:e)))}function at(e){for(;(Xe=Je())&&Xe<33;)Qe();return nt(e)>2||nt(Xe)>3?"":" "}function st(e,t){for(;--t&&Qe()&&!(Xe<48||Xe>102||Xe>57&&Xe<65||Xe>70&&Xe<97););return tt(e,et()+(t<6&&32==Je()&&32==Qe()))}function lt(e){for(;Qe();)switch(Xe){case e:return Ue;case 34:case 39:34!==e&&39!==e&<(Xe);break;case 40:41===e&<(e);break;case 92:Qe()}return Ue}function ut(e,t){for(;Qe()&&e+Xe!==57&&(e+Xe!==84||47!==Je()););return"/*"+tt(t,Ue-1)+"*"+Re(47===e?e:Qe())}function ct(e){for(;!nt(Je());)Qe();return tt(e,Ue)}function dt(e){return it(ht("",null,null,null,[""],e=rt(e),0,[0],e))}function ht(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,h=0,p=0,f=0,g=1,m=1,y=1,v=0,x="",_=i,b=o,w=r,S=x;m;)switch(f=v,v=Qe()){case 40:if(108!=f&&58==Be(S,d-1)){-1!=Ne(S+=ze(ot(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=ot(v);break;case 9:case 10:case 13:case 32:S+=at(f);break;case 92:S+=st(et()-1,7);continue;case 47:switch(Je()){case 42:case 47:We(ft(ut(Qe(),et()),t,n),l);break;default:S+="/"}break;case 123*g:s[u++]=Ve(S)*y;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+c:-1==y&&(S=ze(S,/\f/g,"")),p>0&&Ve(S)-d&&We(p>32?gt(S+";",r,n,d-1):gt(ze(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(We(w=pt(S,t,n,u,c,i,s,x,_=[],b=[],d),o),123===v)if(0===c)ht(S,t,w,w,_,o,d,s,b);else switch(99===h&&110===Be(S,3)?100:h){case 100:case 108:case 109:case 115:ht(e,w,w,r&&We(pt(e,w,w,0,0,i,s,x,i,_=[],d),b),i,b,d,s,r?_:b);break;default:ht(S,w,w,w,[""],b,0,s,b)}}u=c=p=0,g=y=1,x=S="",d=a;break;case 58:d=1+Ve(S),p=f;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==Ke())continue;switch(S+=Re(v),v*g){case 38:y=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(Ve(S)-1)*y,y=1;break;case 64:45===Je()&&(S+=ot(Qe())),h=Je(),c=d=Ve(x=S+=ct(et())),v++;break;case 45:45===f&&2==Ve(S)&&(g=0)}}return o}function pt(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,h=0===i?o:[""],p=$e(h),f=0,g=0,m=0;f<r;++f)for(var y=0,v=Fe(e,d+1,d=Ee(g=a[f])),x=e;y<p;++y)(x=Le(g>0?h[y]+" "+v:ze(v,/&\f/g,h[y])))&&(l[m++]=x);return Ze(e,t,n,0===i?Pe:s,l,u,c)}function ft(e,t,n){return Ze(e,t,n,Ie,Re(Xe),Fe(e,2,-2),0)}function gt(e,t,n,r){return Ze(e,t,n,De,Fe(e,0,r),Fe(e,r+1,-1),r)}function mt(e,t){for(var n="",r=$e(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function yt(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case De:return e.return=e.return||e.value;case Ie:return"";case Ae:return e.return=e.value+"{"+mt(e.children,r)+"}";case Pe:e.value=e.props.join(",")}return Ve(n=mt(e.children,r))?e.return=e.value+"{"+n+"}":""}function vt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var xt=function(e,t,n){for(var r=0,i=0;r=i,i=Je(),38===r&&12===i&&(t[n]=1),!nt(i);)Qe();return tt(e,Ue)},_t=function(e,t){return it(function(e,t){var n=-1,r=44;do{switch(nt(r)){case 0:38===r&&12===Je()&&(t[n]=1),e[n]+=xt(Ue-1,t,n);break;case 2:e[n]+=ot(r);break;case 4:if(44===r){e[++n]=58===Je()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Re(r)}}while(r=Qe());return e}(rt(e),t))},bt=new WeakMap,wt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||bt.get(n))&&!r){bt.set(e,!0);for(var i=[],o=_t(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},St=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function kt(e,t){switch(function(e,t){return 45^Be(e,0)?(((t<<2^Be(e,0))<<2^Be(e,1))<<2^Be(e,2))<<2^Be(e,3):0}(e,t)){case 5103:return Te+"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 Te+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Te+e+Me+e+Ce+e+e;case 6828:case 4268:return Te+e+Ce+e+e;case 6165:return Te+e+Ce+"flex-"+e+e;case 5187:return Te+e+ze(e,/(\w+).+(:[^]+)/,Te+"box-$1$2"+Ce+"flex-$1$2")+e;case 5443:return Te+e+Ce+"flex-item-"+ze(e,/flex-|-self/,"")+e;case 4675:return Te+e+Ce+"flex-line-pack"+ze(e,/align-content|flex-|-self/,"")+e;case 5548:return Te+e+Ce+ze(e,"shrink","negative")+e;case 5292:return Te+e+Ce+ze(e,"basis","preferred-size")+e;case 6060:return Te+"box-"+ze(e,"-grow","")+Te+e+Ce+ze(e,"grow","positive")+e;case 4554:return Te+ze(e,/([^-])(transform)/g,"$1"+Te+"$2")+e;case 6187:return ze(ze(ze(e,/(zoom-|grab)/,Te+"$1"),/(image-set)/,Te+"$1"),e,"")+e;case 5495:case 3959:return ze(e,/(image-set\([^]*)/,Te+"$1$`$1");case 4968:return ze(ze(e,/(.+:)(flex-)?(.*)/,Te+"box-pack:$3"+Ce+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Te+e+e;case 4095:case 3583:case 4068:case 2532:return ze(e,/(.+)-inline(.+)/,Te+"$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(Ve(e)-1-t>6)switch(Be(e,t+1)){case 109:if(45!==Be(e,t+4))break;case 102:return ze(e,/(.+:)(.+)-([^]+)/,"$1"+Te+"$2-$3$1"+Me+(108==Be(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ne(e,"stretch")?kt(ze(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Be(e,t+1))break;case 6444:switch(Be(e,Ve(e)-3-(~Ne(e,"!important")&&10))){case 107:return ze(e,":",":"+Te)+e;case 101:return ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Te+(45===Be(e,14)?"inline-":"")+"box$3$1"+Te+"$2$3$1"+Ce+"$2box$3")+e}break;case 5936:switch(Be(e,t+11)){case 114:return Te+e+Ce+ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Te+e+Ce+ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Te+e+Ce+ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Te+e+Ce+e+e}return e}var Ct,Mt,Tt,It,Pt=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case De:e.return=kt(e.value,e.length);break;case Ae:return mt([qe(e,{value:ze(e.value,"@","@"+Te)})],r);case Pe:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return mt([qe(e,{props:[ze(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return mt([qe(e,{props:[ze(t,/:(plac\w+)/,":"+Te+"input-$1")]}),qe(e,{props:[ze(t,/:(plac\w+)/,":-moz-$1")]}),qe(e,{props:[ze(t,/:(plac\w+)/,Ce+"input-$1")]})],r)}return""})}}],Dt=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,i,o=e.stylisPlugins||Pt,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,u,c,d,h=[yt,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[wt,St].concat(o,h),c=$e(u),function(e,t,n,r){for(var i="",o=0;o<c;o++)i+=u[o](e,t,n,r)||"";return i});i=function(e,t,n,r){l=n,mt(dt(e?e+"{"+t.styles+"}":t.styles),p),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new ke({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return f.sheet.hydrate(s),f},At={exports:{}},Et={};function Rt(){return Mt||(Mt=1,At.exports=function(){if(Ct)return Et;Ct=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case l:case u:case r:case o:case i:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case f:case p:case a:return e;default:return h}}case n:return h}}}function _(e){return x(e)===u}return Et.AsyncMode=l,Et.ConcurrentMode=u,Et.ContextConsumer=s,Et.ContextProvider=a,Et.Element=t,Et.ForwardRef=c,Et.Fragment=r,Et.Lazy=f,Et.Memo=p,Et.Portal=n,Et.Profiler=o,Et.StrictMode=i,Et.Suspense=d,Et.isAsyncMode=function(e){return _(e)||x(e)===l},Et.isConcurrentMode=_,Et.isContextConsumer=function(e){return x(e)===s},Et.isContextProvider=function(e){return x(e)===a},Et.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Et.isForwardRef=function(e){return x(e)===c},Et.isFragment=function(e){return x(e)===r},Et.isLazy=function(e){return x(e)===f},Et.isMemo=function(e){return x(e)===p},Et.isPortal=function(e){return x(e)===n},Et.isProfiler=function(e){return x(e)===o},Et.isStrictMode=function(e){return x(e)===i},Et.isSuspense=function(e){return x(e)===d},Et.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===o||e===i||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===m||e.$$typeof===y||e.$$typeof===v||e.$$typeof===g)},Et.typeOf=x,Et}()),At.exports}!function(){if(It)return Tt;It=1;var e=Rt(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function o(n){return e.isMemo(n)?r:i[n.$$typeof]||t}i[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;Tt=function e(t,r,i){if("string"!=typeof r){if(d){var h=c(r);h&&h!==d&&e(t,h,i)}var p=s(r);l&&(p=p.concat(l(r)));for(var f=o(t),g=o(r),m=0;m<p.length;++m){var y=p[m];if(!(n[y]||i&&i[y]||g&&g[y]||f&&f[y])){var v=u(r,y);try{a(t,y,v)}catch(x){}}}}return t}}();function Ot(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var Lt=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},zt=function(e,t,n){Lt(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var Nt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Bt=/[A-Z]|^ms/g,Ft=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Vt=function(e){return 45===e.charCodeAt(1)},$t=function(e){return null!=e&&"boolean"!=typeof e},Wt=vt(function(e){return Vt(e)?e:e.replace(Bt,"-$&").toLowerCase()}),Ht=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ft,function(e,t,n){return Gt={name:t,styles:n,next:Gt},t})}return 1===Nt[e]||Vt(e)||"number"!=typeof t||0===t?t:t+"px"};function jt(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return Gt={name:i.name,styles:i.styles,next:Gt},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)Gt={name:a.name,styles:a.styles,next:Gt},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=jt(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":$t(s)&&(r+=Wt(o)+":"+Ht(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=jt(e,t,a);switch(o){case"animation":case"animationName":r+=Wt(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var u=0;u<a.length;u++)$t(a[u])&&(r+=Wt(o)+":"+Ht(o,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Gt,l=n(e);return Gt=s,jt(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var Gt,Ut=/label:\s*([^\s;{]+)\s*(;|$)/g;function Xt(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Gt=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=jt(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=jt(n,t,e[a]),r)i+=o[a]}Ut.lastIndex=0;for(var s,l="";null!==(s=Ut.exec(i));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:u,styles:i,next:Gt}}var Yt=!!A.useInsertionEffect&&A.useInsertionEffect,Zt=Yt||function(e){return e()},qt=Yt||P.useLayoutEffect,Kt=P.createContext("undefined"!=typeof HTMLElement?Dt({key:"css"}):null);Kt.Provider;var Qt,Jt,en=function(e){return P.forwardRef(function(t,n){var r=P.useContext(Kt);return e(t,r,n)})},tn=P.createContext({}),nn={}.hasOwnProperty,rn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",on=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Lt(t,n,r),Zt(function(){return zt(t,n,r)}),null},an=en(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[rn],o=[r],a="";"string"==typeof e.className?a=Ot(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=Xt(o,void 0,P.useContext(tn));a+=t.key+"-"+s.name;var l={};for(var u in e)nn.call(e,u)&&"css"!==u&&u!==rn&&(l[u]=e[u]);return l.className=a,n&&(l.ref=n),P.createElement(P.Fragment,null,P.createElement(on,{cache:t,serialized:s,isStringTag:"string"==typeof i}),P.createElement(i,l))}),sn=function(e,t){var n=arguments;if(null==t||!nn.call(t,"css"))return P.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=an,i[1]=function(e,t){var n={};for(var r in t)nn.call(t,r)&&(n[r]=t[r]);return n[rn]=e,n}(e,t);for(var o=2;o<r;o++)i[o]=n[o];return P.createElement.apply(null,i)};Qt=sn||(sn={}),Jt||(Jt=Qt.JSX||(Qt.JSX={}));var ln=en(function(e,t){var n=Xt([e.styles],void 0,P.useContext(tn)),r=P.useRef();return qt(function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}},[t]),qt(function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&zt(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)}},[t,n.name]),null});function un(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Xt(t)}function cn(){var e=un.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var dn=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|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)-.*))$/,hn=vt(function(e){return dn.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),pn=function(e){return"theme"!==e},fn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?hn:pn},gn=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},mn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Lt(t,n,r),Zt(function(){return zt(t,n,r)}),null},yn=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=gn(t,n,o),l=s||fn(a),u=!l("as");return function(){var c=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{var h=c[0];d.push(h[0]);for(var p=c.length,f=1;f<p;f++)d.push(c[f],h[f])}var g=en(function(e,t,n){var r=u&&e.as||a,o="",c=[],h=e;if(null==e.theme){for(var p in h={},e)h[p]=e[p];h.theme=P.useContext(tn)}"string"==typeof e.className?o=Ot(t.registered,c,e.className):null!=e.className&&(o=e.className+" ");var f=Xt(d.concat(c),t.registered,h);o+=t.key+"-"+f.name,void 0!==i&&(o+=" "+i);var g=u&&void 0===s?fn(r):l,m={};for(var y in e)u&&"as"===y||g(y)&&(m[y]=e[y]);return m.className=o,n&&(m.ref=n),P.createElement(P.Fragment,null,P.createElement(mn,{cache:t,serialized:f,isStringTag:"string"==typeof r}),P.createElement(r,m))});return g.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=d,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+i}}),g.withComponent=function(t,r){return e(t,Se({},n,r,{shouldForwardProp:gn(g,r,!0)})).apply(void 0,d)},g}}.bind(null);function vn(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return x.jsx(ln,{styles:r})}function xn(e,t){return yn(e,t)}["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"].forEach(function(e){yn[e]=yn(e)});const _n=[];function bn(e){return _n[0]=e,Xt(_n)}var wn,Sn,kn={exports:{}},Cn={};function Mn(){if(wn)return Cn;wn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function f(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:switch(p=p.type){case n:case i:case r:case l:case u:case h:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case c:case o:return p;default:return f}}case t:return f}}}return Cn.ContextConsumer=o,Cn.ContextProvider=a,Cn.Element=e,Cn.ForwardRef=s,Cn.Fragment=n,Cn.Lazy=d,Cn.Memo=c,Cn.Portal=t,Cn.Profiler=i,Cn.StrictMode=r,Cn.Suspense=l,Cn.SuspenseList=u,Cn.isContextConsumer=function(e){return f(e)===o},Cn.isContextProvider=function(e){return f(e)===a},Cn.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Cn.isForwardRef=function(e){return f(e)===s},Cn.isFragment=function(e){return f(e)===n},Cn.isLazy=function(e){return f(e)===d},Cn.isMemo=function(e){return f(e)===c},Cn.isPortal=function(e){return f(e)===t},Cn.isProfiler=function(e){return f(e)===i},Cn.isStrictMode=function(e){return f(e)===r},Cn.isSuspense=function(e){return f(e)===l},Cn.isSuspenseList=function(e){return f(e)===u},Cn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===i||e===r||e===l||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===a||e.$$typeof===o||e.$$typeof===s||e.$$typeof===p||void 0!==e.getModuleId)},Cn.typeOf=f,Cn}function Tn(){return Sn||(Sn=1,kn.exports=Mn()),kn.exports}var In=Tn();function Pn(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Dn(e){if(P.isValidElement(e)||In.isValidElementType(e)||!Pn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Dn(e[n])}),t}function An(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Pn(e)&&Pn(t)&&Object.keys(t).forEach(i=>{P.isValidElement(t[i])||In.isValidElementType(t[i])?r[i]=t[i]:Pn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Pn(e[i])?r[i]=An(e[i],t[i],n):n.clone?r[i]=Pn(t[i])?Dn(t[i]):t[i]:r[i]=t[i]}),r}function En(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,o=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return{keys:a,values:o,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...i}}const Rn={borderRadius:4};function On(e,t){return t?An(e,t,{clone:!1}):e}const Ln={xs:0,sm:600,md:900,lg:1200,xl:1536},zn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ln[e]}px)`},Nn={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:Ln[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Bn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||zn;return t.reduce((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r),{})}if("object"==typeof t){const e=r.breakpoints||zn;return Object.keys(t).reduce((i,o)=>{if(a=e.keys,"@"===(s=o)||s.startsWith("@")&&(a.some(e=>s.startsWith(`@${e}`))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(o)}(r.containerQueries?r:Nn,o);e&&(i[e]=n(t[o],o))}else if(Object.keys(e.values||Ln).includes(o)){i[e.up(o)]=n(t[o],o)}else{const e=o;i[e]=t[e]}var a,s;return i},{})}return n(t)}function Fn(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}function Vn(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function $n({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{null!=e[t]&&(n[t]=!0)}),n}(e,t),i=Object.keys(r);if(0===i.length)return e;let o;return i.reduce((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[o],o=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[o],o=n):t[n]=e,t),{})}function Wn(e){if("string"!=typeof e)throw new Error(be(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Hn(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function jn(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Hn(e,n)||r,t&&(i=t(i,r,e)),i}function Gn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=Hn(e.theme,r)||{};return Bn(e,o,e=>{let r=jn(a,i,e);return e===r&&"string"==typeof e&&(r=jn(a,i,`${t}${"default"===e?"":Wn(e)}`,e)),!1===n?r:{[n]:r}})};return o.propTypes={},o.filterProps=[t],o}const Un={m:"margin",p:"padding"},Xn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Zn=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!Yn[e])return[e];e=Yn[e]}const[t,n]=e.split(""),r=Un[t],i=Xn[n]||"";return Array.isArray(i)?i.map(e=>r+e):[r+i]}),qn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Kn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Qn(e,t,n,r){const i=Hn(e,t,!0)??n;return"number"==typeof i||"string"==typeof i?e=>"string"==typeof e?e:"string"==typeof i?i.startsWith("var(")&&0===e?0:i.startsWith("var(")&&1===e?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=i[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof i?i:()=>{}}function Jn(e){return Qn(e,"spacing",8)}function er(e,t){return"string"==typeof t||null==t?t:e(t)}function tr(e,t,n,r){if(!t.includes(n))return null;const i=function(e,t){return n=>e.reduce((e,r)=>(e[r]=er(t,n),e),{})}(Zn(n),r);return Bn(e,e[n],i)}function nr(e,t){const n=Jn(e.theme);return Object.keys(e).map(r=>tr(e,t,r,n)).reduce(On,{})}function rr(e){return nr(e,qn)}function ir(e){return nr(e,Kn)}function or(e=8,t=Jn({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}function ar(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?On(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function sr(e){return"number"!=typeof e?e:`${e}px solid`}function lr(e,t){return Gn({prop:e,themeKey:"borders",transform:t})}rr.propTypes={},rr.filterProps=qn,ir.propTypes={},ir.filterProps=Kn;const ur=lr("border",sr),cr=lr("borderTop",sr),dr=lr("borderRight",sr),hr=lr("borderBottom",sr),pr=lr("borderLeft",sr),fr=lr("borderColor"),gr=lr("borderTopColor"),mr=lr("borderRightColor"),yr=lr("borderBottomColor"),vr=lr("borderLeftColor"),xr=lr("outline",sr),_r=lr("outlineColor"),br=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Qn(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:er(t,e)});return Bn(e,e.borderRadius,n)}return null};br.propTypes={},br.filterProps=["borderRadius"],ar(ur,cr,dr,hr,pr,fr,gr,mr,yr,vr,br,xr,_r);const wr=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Qn(e.theme,"spacing",8),n=e=>({gap:er(t,e)});return Bn(e,e.gap,n)}return null};wr.propTypes={},wr.filterProps=["gap"];const Sr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Qn(e.theme,"spacing",8),n=e=>({columnGap:er(t,e)});return Bn(e,e.columnGap,n)}return null};Sr.propTypes={},Sr.filterProps=["columnGap"];const kr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Qn(e.theme,"spacing",8),n=e=>({rowGap:er(t,e)});return Bn(e,e.rowGap,n)}return null};kr.propTypes={},kr.filterProps=["rowGap"];function Cr(e,t){return"grey"===t?t:e}ar(wr,Sr,kr,Gn({prop:"gridColumn"}),Gn({prop:"gridRow"}),Gn({prop:"gridAutoFlow"}),Gn({prop:"gridAutoColumns"}),Gn({prop:"gridAutoRows"}),Gn({prop:"gridTemplateColumns"}),Gn({prop:"gridTemplateRows"}),Gn({prop:"gridTemplateAreas"}),Gn({prop:"gridArea"}));function Mr(e){return e<=1&&0!==e?100*e+"%":e}ar(Gn({prop:"color",themeKey:"palette",transform:Cr}),Gn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Cr}),Gn({prop:"backgroundColor",themeKey:"palette",transform:Cr}));const Tr=Gn({prop:"width",transform:Mr}),Ir=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,i,o,a;const s=(null==(i=null==(r=null==(n=e.theme)?void 0:n.breakpoints)?void 0:r.values)?void 0:i[t])||Ln[t];return s?"px"!==(null==(a=null==(o=e.theme)?void 0:o.breakpoints)?void 0:a.unit)?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Mr(t)}};return Bn(e,e.maxWidth,t)}return null};Ir.filterProps=["maxWidth"];const Pr=Gn({prop:"minWidth",transform:Mr}),Dr=Gn({prop:"height",transform:Mr}),Ar=Gn({prop:"maxHeight",transform:Mr}),Er=Gn({prop:"minHeight",transform:Mr});Gn({prop:"size",cssProperty:"width",transform:Mr}),Gn({prop:"size",cssProperty:"height",transform:Mr});ar(Tr,Ir,Pr,Dr,Ar,Er,Gn({prop:"boxSizing"}));const Rr={border:{themeKey:"borders",transform:sr},borderTop:{themeKey:"borders",transform:sr},borderRight:{themeKey:"borders",transform:sr},borderBottom:{themeKey:"borders",transform:sr},borderLeft:{themeKey:"borders",transform:sr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:sr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:br},color:{themeKey:"palette",transform:Cr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Cr},backgroundColor:{themeKey:"palette",transform:Cr},p:{style:ir},pt:{style:ir},pr:{style:ir},pb:{style:ir},pl:{style:ir},px:{style:ir},py:{style:ir},padding:{style:ir},paddingTop:{style:ir},paddingRight:{style:ir},paddingBottom:{style:ir},paddingLeft:{style:ir},paddingX:{style:ir},paddingY:{style:ir},paddingInline:{style:ir},paddingInlineStart:{style:ir},paddingInlineEnd:{style:ir},paddingBlock:{style:ir},paddingBlockStart:{style:ir},paddingBlockEnd:{style:ir},m:{style:rr},mt:{style:rr},mr:{style:rr},mb:{style:rr},ml:{style:rr},mx:{style:rr},my:{style:rr},margin:{style:rr},marginTop:{style:rr},marginRight:{style:rr},marginBottom:{style:rr},marginLeft:{style:rr},marginX:{style:rr},marginY:{style:rr},marginInline:{style:rr},marginInlineStart:{style:rr},marginInlineEnd:{style:rr},marginBlock:{style:rr},marginBlockStart:{style:rr},marginBlockEnd:{style:rr},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:wr},rowGap:{style:kr},columnGap:{style:Sr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Mr},maxWidth:{style:Ir},minWidth:{transform:Mr},height:{transform:Mr},maxHeight:{transform:Mr},minHeight:{transform:Mr},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Or=function(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=Hn(n,s)||{};if(u)return u(i);return Bn(i,t,t=>{let n=jn(c,l,t);return t===n&&"string"==typeof t&&(n=jn(c,l,`${e}${"default"===t?"":Wn(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){const{sx:r,theme:i={}}=n||{};if(!r)return null;const o=i.unstable_sxConfig??Rr;function a(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const a=Fn(i.breakpoints),s=Object.keys(a);let l=a;return Object.keys(r).forEach(n=>{const a=(s=r[n],u=i,"function"==typeof s?s(u):s);var s,u;if(null!=a)if("object"==typeof a)if(o[n])l=On(l,e(n,a,i,o));else{const e=Bn({theme:i},a,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,a)?l=On(l,e):l[n]=t({sx:a,theme:i})}else l=On(l,e(n,a,i,o))}),function(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{var n,r;const i=/min-width:\s*([0-9.]+)/;return+((null==(n=e.match(i))?void 0:n[1])||0)-+((null==(r=t.match(i))?void 0:r[1])||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}(i,Vn(s,l))}return Array.isArray(r)?r.map(a):a(r)}}();function Lr(e,t){var n;const r=this;if(r.vars){if(!(null==(n=r.colorSchemes)?void 0:n[e])||"function"!=typeof r.getColorSchemeSelector)return{};let i=r.getColorSchemeSelector(e);return"&"===i?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return r.palette.mode===e?t:{}}function zr(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={},...a}=e;let s=An({breakpoints:En(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:or(i),shape:{...Rn,...o}},a);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const i=t(e.breakpoints.not(...n),r);return i.includes("not all and")?i.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):i}}const r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}(s),s.applyStyles=Lr,s=t.reduce((e,t)=>An(e,t),s),s.unstable_sxConfig={...Rr,...null==a?void 0:a.unstable_sxConfig},s.unstable_sx=function(e){return Or({sx:e,theme:this})},s}function Nr(e=null){const t=P.useContext(tn);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}Or.filterProps=["sx"];const Br=zr();function Fr(e=Br){return Nr(e)}function Vr({styles:e,themeId:t,defaultTheme:n={}}){const r=Fr(n),i="function"==typeof e?e(t&&r[t]||r):e;return x.jsx(vn,{styles:i})}function $r(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=(e=>{var t;const n={systemProps:{},otherProps:{}},r=(null==(t=null==e?void 0:e.theme)?void 0:t.unstable_sxConfig)??Rr;return Object.keys(e).forEach(t=>{r[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n})(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Pn(n)?{...r,...n}:r}:{...r,...t},{...i,sx:o}}const Wr=e=>e,Hr=(()=>{let e=Wr;return{configure(t){e=t},generate:t=>e(t),reset(){e=Wr}}})();function jr(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=jr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Gr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=jr(e))&&(r&&(r+=" "),r+=t);return r}const Ur={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 Xr(e,t,n="Mui"){const r=Ur[t];return r?`${n}-${r}`:`${Hr.generate(e)}-${t}`}function Yr(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Xr(e,t,n)}),r}function Zr(e){const{variants:t,...n}=e,r={variants:t,style:bn(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=bn(e.style))}),r}const qr=zr();function Kr(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Qr(e){return e?(t,n)=>n[e]:null}function Jr(e,t){const n="function"==typeof t?t(e):t;if(Array.isArray(n))return n.flatMap(t=>Jr(e,t));if(Array.isArray(null==n?void 0:n.variants)){let t;if(n.isProcessed)t=n.style;else{const{variants:e,...r}=n;t=r}return ei(e,n.variants,[t])}return(null==n?void 0:n.isProcessed)?n.style:n}function ei(e,t,n=[]){var r;let i;e:for(let o=0;o<t.length;o+=1){const a=t[o];if("function"==typeof a.props){if(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(i))continue}else for(const t in a.props)if(e[t]!==a.props[t]&&(null==(r=e.ownerState)?void 0:r[t])!==a.props[t])continue e;"function"==typeof a.style?(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),n.push(a.style(i))):n.push(a.style)}return n}function ti(e={}){const{themeId:t,defaultTheme:n=qr,rootShouldForwardProp:r=Kr,slotShouldForwardProp:i=Kr}=e;function o(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,e=>e.filter(e=>e!==Or));const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:u=Qr(ri(a)),...c}=t,d=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,h=l||!1;let p=Kr;"Root"===a||"root"===a?p=r:a?p=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(p=void 0);const f=xn(e,{shouldForwardProp:p,label:ni(),...c}),g=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return Jr(t,e)};if(Pn(e)){const t=Zr(e);return t.variants?function(e){return Jr(e,t)}:t.style}return e},m=(...t)=>{const r=[],i=t.map(g),a=[];if(r.push(o),n&&u&&a.push(function(e){var t,r;const i=null==(r=null==(t=e.theme.components)?void 0:t[n])?void 0:r.styleOverrides;if(!i)return null;const o={};for(const n in i)o[n]=Jr(e,i[n]);return u(e,o)}),n&&!d&&a.push(function(e){var t,r;const i=e.theme,o=null==(r=null==(t=null==i?void 0:i.components)?void 0:t[n])?void 0:r.variants;return o?ei(e,o):null}),h||a.push(Or),Array.isArray(i[0])){const e=i.shift(),t=new Array(r.length).fill(""),n=new Array(a.length).fill("");let o;o=[...t,...e,...n],o.raw=[...t,...e.raw,...n],r.unshift(o)}const s=[...r,...i,...a],l=f(...s);return e.muiName&&(l.muiName=e.muiName),l};return f.withConfig&&(m.withConfig=f.withConfig),m}}function ni(e,t){}function ri(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}const ii=ti();function oi(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=r;if("components"===i||"slots"===i)n[i]={...e[i],...n[i]};else if("componentsProps"===i||"slotProps"===i){const r=e[i],o=t[i];if(o)if(r){n[i]={...o};for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const t=e;n[i][t]=oi(r[t],o[t])}}else n[i]=o;else n[i]=r||{}}else void 0===n[i]&&(n[i]=e[i])}return n}function ai({props:e,name:t,defaultTheme:n,themeId:r}){let i=Fr(n);return r&&(i=i[r]||i),function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?oi(t.components[n].defaultProps,r):r}({theme:i,name:t,props:e})}const si="undefined"!=typeof window?P.useLayoutEffect:P.useEffect;function li(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function ui(e){if(e.type)return e;if("#"===e.charAt(0))return ui(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(be(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(be(10,r))}else i=i.split(",");return i=i.map(e=>parseFloat(e)),{type:n,values:i,colorSpace:r}}const ci=(e,t)=>{try{return(e=>{const t=ui(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(n){return e}};function di(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function hi(e){e=ui(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),di({type:s,values:l})}function pi(e){let t="hsl"===(e=ui(e)).type||"hsla"===e.type?ui(hi(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function fi(e,t){return e=ui(e),t=li(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,di(e)}function gi(e,t,n){try{return fi(e,t)}catch(r){return e}}function mi(e,t){if(e=ui(e),t=li(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return di(e)}function yi(e,t,n){try{return mi(e,t)}catch(r){return e}}function vi(e,t){if(e=ui(e),t=li(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return di(e)}function xi(e,t,n){try{return vi(e,t)}catch(r){return e}}function _i(e,t,n){try{return function(e,t=.15){return pi(e)>.5?mi(e,t):vi(e,t)}(e,t)}catch(r){return e}}const bi=P.createContext(null);function wi(){return P.useContext(bi)}const Si="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function ki(e){const{children:t,theme:n}=e,r=wi(),i=P.useMemo(()=>{const e=null===r?{...n}:function(e,t){if("function"==typeof t)return t(e);return{...e,...t}}(r,n);return null!=e&&(e[Si]=null!==r),e},[n,r]);return x.jsx(bi.Provider,{value:i,children:t})}const Ci=P.createContext();function Mi({value:e,...t}){return x.jsx(Ci.Provider,{value:e??!0,...t})}const Ti=P.createContext(void 0);function Ii({value:e,children:t}){return x.jsx(Ti.Provider,{value:e,children:t})}function Pi({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?oi(i.defaultProps,r):i.styleOverrides||i.variants?r:oi(i,r)}({props:e,name:t,theme:{components:P.useContext(Ti)}})}const Di={};function Ai(e,t,n,r=!1){return P.useMemo(()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?{...t,[e]:o}:o;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Ei(e){const{children:t,theme:n,themeId:r}=e,i=Nr(Di),o=wi()||Di,a=Ai(r,i,n),s=Ai(r,o,n,!0),l="rtl"===(r?a[r]:a).direction;return x.jsx(ki,{theme:s,children:x.jsx(tn.Provider,{value:a,children:x.jsx(Mi,{value:l,children:x.jsx(Ii,{value:r?a[r].components:a.components,children:t})})})})}const Ri={theme:void 0};const Oi="mode",Li="color-scheme",zi="data-color-scheme";function Ni(){}const Bi=({key:e,storageWindow:t})=>(t||"undefined"==typeof window||(t=window),{get(n){if("undefined"==typeof window)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return Ni;const r=t=>{const r=t.newValue;t.key===e&&n(r)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function Fi(){}function Vi(e){if("undefined"!=typeof window&&"function"==typeof window.matchMedia&&"system"===e){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}}function $i(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function Wi(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:o=Oi,colorSchemeStorageKey:a=Li,storageWindow:s=("undefined"==typeof window?void 0:window),storageManager:l=Bi,noSsr:u=!1}=e,c=i.join(","),d=i.length>1,h=P.useMemo(()=>null==l?void 0:l({key:o,storageWindow:s}),[l,o,s]),p=P.useMemo(()=>null==l?void 0:l({key:`${a}-light`,storageWindow:s}),[l,a,s]),f=P.useMemo(()=>null==l?void 0:l({key:`${a}-dark`,storageWindow:s}),[l,a,s]),[g,m]=P.useState(()=>{const e=(null==h?void 0:h.get(t))||t,i=(null==p?void 0:p.get(n))||n,o=(null==f?void 0:f.get(r))||r;return{mode:e,systemMode:Vi(e),lightColorScheme:i,darkColorScheme:o}}),[y,v]=P.useState(u||!d);P.useEffect(()=>{v(!0)},[]);const x=function(e){return $i(e,t=>"light"===t?e.lightColorScheme:"dark"===t?e.darkColorScheme:void 0)}(g),_=P.useCallback(e=>{m(n=>{if(e===n.mode)return n;const r=e??t;return null==h||h.set(r),{...n,mode:r,systemMode:Vi(r)}})},[h,t]),b=P.useCallback(e=>{e?"string"==typeof e?e&&!c.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):m(t=>{const n={...t};return $i(t,t=>{"light"===t&&(null==p||p.set(e),n.lightColorScheme=e),"dark"===t&&(null==f||f.set(e),n.darkColorScheme=e)}),n}):m(t=>{const i={...t},o=null===e.light?n:e.light,a=null===e.dark?r:e.dark;return o&&(c.includes(o)?(i.lightColorScheme=o,null==p||p.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),a&&(c.includes(a)?(i.darkColorScheme=a,null==f||f.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),i}):m(e=>(null==p||p.set(n),null==f||f.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[c,p,f,n,r]),w=P.useCallback(e=>{"system"===g.mode&&m(t=>{const n=(null==e?void 0:e.matches)?"dark":"light";return t.systemMode===n?t:{...t,systemMode:n}})},[g.mode]),S=P.useRef(w);return S.current=w,P.useEffect(()=>{if("function"!=typeof window.matchMedia||!d)return;const e=(...e)=>S.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),P.useEffect(()=>{if(d){const e=(null==h?void 0:h.subscribe(e=>{e&&!["light","dark","system"].includes(e)||_(e||t)}))||Fi,n=(null==p?void 0:p.subscribe(e=>{e&&!c.match(e)||b({light:e})}))||Fi,r=(null==f?void 0:f.subscribe(e=>{e&&!c.match(e)||b({dark:e})}))||Fi;return()=>{e(),n(),r()}}},[b,_,c,t,s,d,h,p,f]),{...g,mode:y?g.mode:void 0,systemMode:y?g.systemMode:void 0,colorScheme:y?x:void 0,setMode:_,setColorScheme:b}}function Hi(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const ji=(e,t,n,r=[])=>{let i=e;t.forEach((e,o)=>{o===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&"object"==typeof i&&(i[e]=n):i&&"object"==typeof i&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})};function Gi(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},o={},a={};var s,l;return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(i,{[r]:l}),ji(o,e,`var(${r})`,s),ji(a,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,i])=>{(!l||l&&!l([...n,t]))&&null!=i&&("object"==typeof i&&Object.keys(i).length>0?e(i,[...n,t],Array.isArray(i)?[...r,t]:r):s([...n,t],i,r))})}(e),{css:i,vars:o,varsWithDefaults:a}}function Ui(e,t,n=void 0){const r={};for(const i in e){const o=e[i];let a="",s=!0;for(let e=0;e<o.length;e+=1){const r=o[e];r&&(a+=(!0===s?"":" ")+t(r),s=!1,n&&n[r]&&(a+=" "+n[r]))}r[i]=a}return r}const Xi=zr(),Yi=ii("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Wn(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Zi=e=>ai({props:e,name:"MuiContainer",defaultTheme:Xi});const qi=zr(),Ki=ii("div",{name:"MuiStack",slot:"Root"});function Qi(e){return ai({props:e,name:"MuiStack",defaultTheme:qi})}function Ji(e,t){const n=P.Children.toArray(e).filter(Boolean);return n.reduce((e,r,i)=>(e.push(r),i<n.length-1&&e.push(P.cloneElement(t,{key:`separator-${i}`})),e),[])}const eo=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Bn({theme:t},$n({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){const r=Jn(t),i=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),o=$n({values:e.direction,base:i}),a=$n({values:e.spacing,base:i});"object"==typeof o&&Object.keys(o).forEach((e,t,n)=>{if(!o[e]){const r=t>0?o[n[t-1]]:"column";o[e]=r}});n=An(n,Bn({theme:t},a,(t,n)=>{return e.useFlexGap?{gap:er(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${i=n?o[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[i]}`]:er(r,t)}};var i}))}return n=function(e,...t){const n=Fn(e),r=[n,...t].reduce((e,t)=>An(e,t),{});return Vn(Object.keys(n),r)}(t.breakpoints,n),n};function to(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:$.white,default:$.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const no=to();function ro(){return{text:{primary:$.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:$.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const io=ro();function oo(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=vi(e.main,i):"dark"===t&&(e.dark=mi(e.main,o)))}function ao(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...i}=e,o=e.primary||function(e="light"){return"dark"===e?{main:ee,light:J,dark:te}:{main:ne,light:te,dark:re}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Y,light:X,dark:q}:{main:K,light:Z,dark:Q}}(t),s=e.error||function(e="light"){return"dark"===e?{main:j,light:W,dark:G}:{main:G,light:H,dark:U}}(t),l=e.info||function(e="light"){return"dark"===e?{main:oe,light:ie,dark:se}:{main:se,light:ae,dark:le}}(t),u=e.success||function(e="light"){return"dark"===e?{main:ce,light:ue,dark:he}:{main:pe,light:de,dark:fe}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:me,light:ge,dark:ve}:{main:"#ed6c02",light:ye,dark:xe}}(t);function d(e){const t=function(e,t){const n=pi(e),r=pi(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,io.text.primary)>=n?io.text.primary:no.text.primary;return t}const h=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(be(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(be(12,t?` (${t})`:"",JSON.stringify(e.main)));return oo(e,"light",i,r),oo(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e};let p;"light"===t?p=to():"dark"===t&&(p=ro());return An({common:{...$},mode:t,primary:h({color:o,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:c,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:u,name:"success"}),grey:_e,contrastThreshold:n,getContrastText:d,augmentColor:h,tonalOffset:r,...p},i)}function so(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const lo={textTransform:"uppercase"},uo='"Roboto", "Helvetica", "Arial", sans-serif';function co(e,t){const{fontFamily:n=uo,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:u,pxToRem:c,...d}="function"==typeof t?t(e):t,h=r/14,p=c||(e=>e/l*h+"rem"),f=(e,t,r,i,o)=>{return{fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===uo?{letterSpacing:(a=i/t,Math.round(1e5*a)/1e5)+"em"}:{},...o,...u};var a},g={h1:f(i,96,1.167,-1.5),h2:f(i,60,1.2,-.5),h3:f(o,48,1.167,0),h4:f(o,34,1.235,.25),h5:f(o,24,1.334,0),h6:f(a,20,1.6,.15),subtitle1:f(o,16,1.75,.15),subtitle2:f(a,14,1.57,.1),body1:f(o,16,1.5,.15),body2:f(o,14,1.43,.15),button:f(a,14,1.75,.4,lo),caption:f(o,12,1.66,.4),overline:f(o,12,2.66,1,lo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return An({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:s,...g},d,{clone:!1})}function ho(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const po=["none",ho(0,2,1,-1,0,1,1,0,0,1,3,0),ho(0,3,1,-2,0,2,2,0,0,1,5,0),ho(0,3,3,-2,0,3,4,0,0,1,8,0),ho(0,2,4,-1,0,4,5,0,0,1,10,0),ho(0,3,5,-1,0,5,8,0,0,1,14,0),ho(0,3,5,-1,0,6,10,0,0,1,18,0),ho(0,4,5,-2,0,7,10,1,0,2,16,1),ho(0,5,5,-3,0,8,10,1,0,3,14,2),ho(0,5,6,-3,0,9,12,1,0,3,16,2),ho(0,6,6,-3,0,10,14,1,0,4,18,3),ho(0,6,7,-4,0,11,15,1,0,4,20,3),ho(0,7,8,-4,0,12,17,2,0,5,22,4),ho(0,7,8,-4,0,13,19,2,0,5,24,4),ho(0,7,9,-4,0,14,21,2,0,5,26,4),ho(0,8,9,-5,0,15,22,2,0,6,28,5),ho(0,8,10,-5,0,16,24,2,0,6,30,5),ho(0,8,11,-5,0,17,26,2,0,6,32,5),ho(0,9,11,-5,0,18,28,2,0,7,34,6),ho(0,9,12,-6,0,19,29,2,0,7,36,6),ho(0,10,13,-6,0,20,31,3,0,8,38,7),ho(0,10,13,-6,0,21,33,3,0,8,40,7),ho(0,10,14,-6,0,22,35,3,0,8,42,7),ho(0,11,14,-7,0,23,36,3,0,9,44,8),ho(0,11,15,-7,0,24,38,3,0,9,46,8)],fo={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)"},go={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function mo(e){return`${Math.round(e)}ms`}function yo(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function vo(e){const t={...fo,...e.easing},n={...go,...e.duration};return{getAutoHeightDuration:yo,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof i?i:mo(i)} ${o} ${"string"==typeof a?a:mo(a)}`).join(",")},...e,easing:t,duration:n}}const xo={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function _o(e){return Pn(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function bo(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;r<n.length;r++){const[i,o]=n[r];!_o(o)||i.startsWith("unstable_")?delete t[i]:Pn(o)&&(t[i]={...o},e(t[i]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function wo(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:o={},transitions:a={},typography:s={},shape:l,...u}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(be(20));const c=ao(o),d=zr(e);let h=An(d,{mixins:(p=d.breakpoints,f=r,{toolbar:{minHeight:56,[p.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[p.up("sm")]:{minHeight:64}},...f}),palette:c,shadows:po.slice(),typography:co(c,s),transitions:vo(a),zIndex:{...xo}});var p,f;return h=An(h,u),h=t.reduce((e,t)=>An(e,t),h),h.unstable_sxConfig={...Rr,...null==u?void 0:u.unstable_sxConfig},h.unstable_sx=function(e){return Or({sx:e,theme:this})},h.toRuntimeSource=bo,h}function So(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const ko=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=So(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Co(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function Mo(e){return"dark"===e?ko:[]}function To(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!(null==(t=e[1])?void 0:t.match(/(mode|contrastThreshold|tonalOffset)/))}const Io=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let o=i;if("class"===i&&(o=".%s"),"data"===i&&(o="[data-%s]"),(null==i?void 0:i.startsWith("data-"))&&!i.includes("%s")&&(o=`[${i}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const i={};return(a=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${a?`${a}-`:""}overlays-${t}`),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach(e=>{i[e]=n[e],delete n[e]}),"media"===o?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:o?{[o.replace("%s",t)]:i,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(o&&"media"!==o)return`${r}, ${o.replace("%s",String(t))}`}else if(t){if("media"===o)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(o)return o.replace("%s",String(t))}var a;return r};function Po(e,t,n){!e[t]&&n&&(e[t]=n)}function Do(e){return"string"==typeof e&&e.startsWith("hsl")?hi(e):e}function Ao(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ci(Do(e[t])))}const Eo=e=>{try{return e()}catch(t){}};function Ro(e,t,n,r){if(!t)return;t=!0===t?{}:t;const i="dark"===r?"dark":"light";if(!n)return void(e[r]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...i}=e,o=ao(t);return{palette:o,opacity:{...Co(o.mode),...n},overlays:r||Mo(o.mode),...i}}({...t,palette:{mode:i,...null==t?void 0:t.palette}}));const{palette:o,...a}=wo({...n,palette:{mode:i,...null==t?void 0:t.palette}});return e[r]={...t,palette:o,opacity:{...Co(i),...null==t?void 0:t.opacity},overlays:(null==t?void 0:t.overlays)||Mo(i)},a}function Oo(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:a=To,colorSchemeSelector:s=(n.light&&n.dark?"media":void 0),rootSelector:l=":root",...u}=e,c=Object.keys(n)[0],d=r||(n.light&&"light"!==c?"light":c),h=((e="mui")=>Hi(e))(o),{[d]:p,light:f,dark:g,...m}=n,y={...m};let v=p;if(("dark"===d&&!("dark"in n)||"light"===d&&!("light"in n))&&(v=!0),!v)throw new Error(be(21,d));const x=Ro(y,v,u,d);f&&!y.light&&Ro(y,f,void 0,"light"),g&&!y.dark&&Ro(y,g,void 0,"dark");let _={defaultColorScheme:d,...x,cssVarPrefix:o,colorSchemeSelector:s,rootSelector:l,getCssVar:h,colorSchemes:y,font:{...so(x.typography),...x.font},spacing:(b=u.spacing,"number"==typeof b?`${b}px`:"string"==typeof b||"function"==typeof b||Array.isArray(b)?b:"8px")};var b;Object.keys(_.colorSchemes).forEach(e=>{const t=_.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],i=n[2];return h(e,t[r][i])};var r;if("light"===t.mode&&(Po(t.common,"background","#fff"),Po(t.common,"onBackground","#000")),"dark"===t.mode&&(Po(t.common,"background","#000"),Po(t.common,"onBackground","#fff")),r=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{r[e]||(r[e]={})}),"light"===t.mode){Po(t.Alert,"errorColor",yi(t.error.light,.6)),Po(t.Alert,"infoColor",yi(t.info.light,.6)),Po(t.Alert,"successColor",yi(t.success.light,.6)),Po(t.Alert,"warningColor",yi(t.warning.light,.6)),Po(t.Alert,"errorFilledBg",n("palette-error-main")),Po(t.Alert,"infoFilledBg",n("palette-info-main")),Po(t.Alert,"successFilledBg",n("palette-success-main")),Po(t.Alert,"warningFilledBg",n("palette-warning-main")),Po(t.Alert,"errorFilledColor",Eo(()=>t.getContrastText(t.error.main))),Po(t.Alert,"infoFilledColor",Eo(()=>t.getContrastText(t.info.main))),Po(t.Alert,"successFilledColor",Eo(()=>t.getContrastText(t.success.main))),Po(t.Alert,"warningFilledColor",Eo(()=>t.getContrastText(t.warning.main))),Po(t.Alert,"errorStandardBg",xi(t.error.light,.9)),Po(t.Alert,"infoStandardBg",xi(t.info.light,.9)),Po(t.Alert,"successStandardBg",xi(t.success.light,.9)),Po(t.Alert,"warningStandardBg",xi(t.warning.light,.9)),Po(t.Alert,"errorIconColor",n("palette-error-main")),Po(t.Alert,"infoIconColor",n("palette-info-main")),Po(t.Alert,"successIconColor",n("palette-success-main")),Po(t.Alert,"warningIconColor",n("palette-warning-main")),Po(t.AppBar,"defaultBg",n("palette-grey-100")),Po(t.Avatar,"defaultBg",n("palette-grey-400")),Po(t.Button,"inheritContainedBg",n("palette-grey-300")),Po(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),Po(t.Chip,"defaultBorder",n("palette-grey-400")),Po(t.Chip,"defaultAvatarColor",n("palette-grey-700")),Po(t.Chip,"defaultIconColor",n("palette-grey-700")),Po(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Po(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Po(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Po(t.LinearProgress,"primaryBg",xi(t.primary.main,.62)),Po(t.LinearProgress,"secondaryBg",xi(t.secondary.main,.62)),Po(t.LinearProgress,"errorBg",xi(t.error.main,.62)),Po(t.LinearProgress,"infoBg",xi(t.info.main,.62)),Po(t.LinearProgress,"successBg",xi(t.success.main,.62)),Po(t.LinearProgress,"warningBg",xi(t.warning.main,.62)),Po(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),Po(t.Slider,"primaryTrack",xi(t.primary.main,.62)),Po(t.Slider,"secondaryTrack",xi(t.secondary.main,.62)),Po(t.Slider,"errorTrack",xi(t.error.main,.62)),Po(t.Slider,"infoTrack",xi(t.info.main,.62)),Po(t.Slider,"successTrack",xi(t.success.main,.62)),Po(t.Slider,"warningTrack",xi(t.warning.main,.62));const e=_i(t.background.default,.8);Po(t.SnackbarContent,"bg",e),Po(t.SnackbarContent,"color",Eo(()=>t.getContrastText(e))),Po(t.SpeedDialAction,"fabHoverBg",_i(t.background.paper,.15)),Po(t.StepConnector,"border",n("palette-grey-400")),Po(t.StepContent,"border",n("palette-grey-400")),Po(t.Switch,"defaultColor",n("palette-common-white")),Po(t.Switch,"defaultDisabledColor",n("palette-grey-100")),Po(t.Switch,"primaryDisabledColor",xi(t.primary.main,.62)),Po(t.Switch,"secondaryDisabledColor",xi(t.secondary.main,.62)),Po(t.Switch,"errorDisabledColor",xi(t.error.main,.62)),Po(t.Switch,"infoDisabledColor",xi(t.info.main,.62)),Po(t.Switch,"successDisabledColor",xi(t.success.main,.62)),Po(t.Switch,"warningDisabledColor",xi(t.warning.main,.62)),Po(t.TableCell,"border",xi(gi(t.divider,1),.88)),Po(t.Tooltip,"bg",gi(t.grey[700],.92))}if("dark"===t.mode){Po(t.Alert,"errorColor",xi(t.error.light,.6)),Po(t.Alert,"infoColor",xi(t.info.light,.6)),Po(t.Alert,"successColor",xi(t.success.light,.6)),Po(t.Alert,"warningColor",xi(t.warning.light,.6)),Po(t.Alert,"errorFilledBg",n("palette-error-dark")),Po(t.Alert,"infoFilledBg",n("palette-info-dark")),Po(t.Alert,"successFilledBg",n("palette-success-dark")),Po(t.Alert,"warningFilledBg",n("palette-warning-dark")),Po(t.Alert,"errorFilledColor",Eo(()=>t.getContrastText(t.error.dark))),Po(t.Alert,"infoFilledColor",Eo(()=>t.getContrastText(t.info.dark))),Po(t.Alert,"successFilledColor",Eo(()=>t.getContrastText(t.success.dark))),Po(t.Alert,"warningFilledColor",Eo(()=>t.getContrastText(t.warning.dark))),Po(t.Alert,"errorStandardBg",yi(t.error.light,.9)),Po(t.Alert,"infoStandardBg",yi(t.info.light,.9)),Po(t.Alert,"successStandardBg",yi(t.success.light,.9)),Po(t.Alert,"warningStandardBg",yi(t.warning.light,.9)),Po(t.Alert,"errorIconColor",n("palette-error-main")),Po(t.Alert,"infoIconColor",n("palette-info-main")),Po(t.Alert,"successIconColor",n("palette-success-main")),Po(t.Alert,"warningIconColor",n("palette-warning-main")),Po(t.AppBar,"defaultBg",n("palette-grey-900")),Po(t.AppBar,"darkBg",n("palette-background-paper")),Po(t.AppBar,"darkColor",n("palette-text-primary")),Po(t.Avatar,"defaultBg",n("palette-grey-600")),Po(t.Button,"inheritContainedBg",n("palette-grey-800")),Po(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),Po(t.Chip,"defaultBorder",n("palette-grey-700")),Po(t.Chip,"defaultAvatarColor",n("palette-grey-300")),Po(t.Chip,"defaultIconColor",n("palette-grey-300")),Po(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Po(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Po(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Po(t.LinearProgress,"primaryBg",yi(t.primary.main,.5)),Po(t.LinearProgress,"secondaryBg",yi(t.secondary.main,.5)),Po(t.LinearProgress,"errorBg",yi(t.error.main,.5)),Po(t.LinearProgress,"infoBg",yi(t.info.main,.5)),Po(t.LinearProgress,"successBg",yi(t.success.main,.5)),Po(t.LinearProgress,"warningBg",yi(t.warning.main,.5)),Po(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),Po(t.Slider,"primaryTrack",yi(t.primary.main,.5)),Po(t.Slider,"secondaryTrack",yi(t.secondary.main,.5)),Po(t.Slider,"errorTrack",yi(t.error.main,.5)),Po(t.Slider,"infoTrack",yi(t.info.main,.5)),Po(t.Slider,"successTrack",yi(t.success.main,.5)),Po(t.Slider,"warningTrack",yi(t.warning.main,.5));const e=_i(t.background.default,.98);Po(t.SnackbarContent,"bg",e),Po(t.SnackbarContent,"color",Eo(()=>t.getContrastText(e))),Po(t.SpeedDialAction,"fabHoverBg",_i(t.background.paper,.15)),Po(t.StepConnector,"border",n("palette-grey-600")),Po(t.StepContent,"border",n("palette-grey-600")),Po(t.Switch,"defaultColor",n("palette-grey-300")),Po(t.Switch,"defaultDisabledColor",n("palette-grey-600")),Po(t.Switch,"primaryDisabledColor",yi(t.primary.main,.55)),Po(t.Switch,"secondaryDisabledColor",yi(t.secondary.main,.55)),Po(t.Switch,"errorDisabledColor",yi(t.error.main,.55)),Po(t.Switch,"infoDisabledColor",yi(t.info.main,.55)),Po(t.Switch,"successDisabledColor",yi(t.success.main,.55)),Po(t.Switch,"warningDisabledColor",yi(t.warning.main,.55)),Po(t.TableCell,"border",yi(gi(t.divider,1),.68)),Po(t.Tooltip,"bg",gi(t.grey[700],.92))}Ao(t.background,"default"),Ao(t.background,"paper"),Ao(t.common,"background"),Ao(t.common,"onBackground"),Ao(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&Po(t[e],"mainChannel",ci(Do(n.main))),n.light&&Po(t[e],"lightChannel",ci(Do(n.light))),n.dark&&Po(t[e],"darkChannel",ci(Do(n.dark))),n.contrastText&&Po(t[e],"contrastTextChannel",ci(Do(n.contrastText))),"text"===e&&(Ao(t[e],"primary"),Ao(t[e],"secondary")),"action"===e&&(n.active&&Ao(t[e],"active"),n.selected&&Ao(t[e],"selected")))})}),_=t.reduce((e,t)=>An(e,t),_);const w={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:a,getSelector:Io(_)},{vars:S,generateThemeVars:k,generateStyleSheets:C}=function(e,t={}){const{getSelector:n=m,disableCssColorScheme:r,colorSchemeSelector:i}=t,{colorSchemes:o={},components:a,defaultColorScheme:s="light",...l}=e,{vars:u,css:c,varsWithDefaults:d}=Gi(l,t);let h=d;const p={},{[s]:f,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{const{vars:r,css:i,varsWithDefaults:o}=Gi(n,t);h=An(h,o),p[e]={css:i,vars:r}}),f){const{css:e,vars:n,varsWithDefaults:r}=Gi(f,t);h=An(h,r),p[s]={css:e,vars:n}}function m(t,n){var r,a;let s=i;if("class"===i&&(s=".%s"),"data"===i&&(s="[data-%s]"),(null==i?void 0:i.startsWith("data-"))&&!i.includes("%s")&&(s=`[${i}="%s"]`),t){if("media"===s){if(e.defaultColorScheme===t)return":root";const i=(null==(a=null==(r=o[t])?void 0:r.palette)?void 0:a.mode)||t;return{[`@media (prefers-color-scheme: ${i})`]:{":root":n}}}if(s)return e.defaultColorScheme===t?`:root, ${s.replace("%s",String(t))}`:s.replace("%s",String(t))}return":root"}return{vars:h,generateThemeVars:()=>{let e={...u};return Object.entries(p).forEach(([,{vars:t}])=>{e=An(e,t)}),e},generateStyleSheets:()=>{var t,i;const a=[],s=e.defaultColorScheme||"light";function l(e,t){Object.keys(t).length&&a.push("string"==typeof e?{[e]:{...t}}:e)}l(n(void 0,{...c}),c);const{[s]:u,...d}=p;if(u){const{css:e}=u,a=null==(i=null==(t=o[s])?void 0:t.palette)?void 0:i.mode,c=!r&&a?{colorScheme:a,...e}:{...e};l(n(s,{...c}),c)}return Object.entries(d).forEach(([e,{css:t}])=>{var i,a;const s=null==(a=null==(i=o[e])?void 0:i.palette)?void 0:a.mode,u=!r&&s?{colorScheme:s,...t}:{...t};l(n(e,{...u}),u)}),a}}}(_,w);return _.vars=S,Object.entries(_.colorSchemes[_.defaultColorScheme]).forEach(([e,t])=>{_[e]=t}),_.generateThemeVars=k,_.generateStyleSheets=C,_.generateSpacing=function(){return or(u.spacing,Jn(this))},_.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(s),_.spacing=_.generateSpacing(),_.shouldSkipGeneratingVar=a,_.unstable_sxConfig={...Rr,...null==u?void 0:u.unstable_sxConfig},_.unstable_sx=function(e){return Or({sx:e,theme:this})},_.toRuntimeSource=bo,_}function Lo(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:ao({...!0===n?{}:n.palette,mode:t})})}function zo(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=(n?void 0:{light:!0}),defaultColorScheme:o=(null==n?void 0:n.mode),...a}=e,s=o||"light",l=null==i?void 0:i[s],u={...i,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return wo(e,...t);let r=n;"palette"in e||u[s]&&(!0!==u[s]?r=u[s].palette:"dark"===s&&(r={mode:"dark"}));const i=wo({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=u,"light"===i.palette.mode&&(i.colorSchemes.light={...!0!==u.light&&u.light,palette:i.palette},Lo(i,"dark",u.dark)),"dark"===i.palette.mode&&(i.colorSchemes.dark={...!0!==u.dark&&u.dark,palette:i.palette},Lo(i,"light",u.light)),i}return n||"light"in u||"light"!==s||(u.light=!0),Oo({...a,colorSchemes:u,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}const No=zo();function Bo(){const e=Fr(No);return e[we]||e}const Fo=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,Vo=ti({themeId:we,defaultTheme:No,rootShouldForwardProp:Fo});function $o({theme:e,...t}){const n=we in e?e[we]:void 0;return x.jsx(Ei,{...t,themeId:n?we:void 0,theme:n||e})}const Wo="mui-color-scheme",Ho="light",jo="dark",Go="mui-mode",{CssVarsProvider:Uo}=function(e){const{themeId:t,theme:n={},modeStorageKey:r=Oi,colorSchemeStorageKey:i=Li,disableTransitionOnChange:o=!1,defaultColorScheme:a,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},u=P.createContext(void 0),c={},d={},h="string"==typeof a?a:a.light,p="string"==typeof a?a:a.dark;return{CssVarsProvider:function(e){var l,h,p,f;const{children:g,theme:m,modeStorageKey:y=r,colorSchemeStorageKey:v=i,disableTransitionOnChange:_=o,storageManager:b,storageWindow:w=("undefined"==typeof window?void 0:window),documentNode:S=("undefined"==typeof document?void 0:document),colorSchemeNode:k=("undefined"==typeof document?void 0:document.documentElement),disableNestedContext:C=!1,disableStyleSheetGeneration:M=!1,defaultMode:T="system",forceThemeRerender:I=!1,noSsr:D}=e,A=P.useRef(!1),E=wi(),R=P.useContext(u),O=!!R&&!C,L=P.useMemo(()=>m||("function"==typeof n?n():n),[m]),z=L[t],N=z||L,{colorSchemes:B=c,components:F=d,cssVarPrefix:V}=N,$=Object.keys(B).filter(e=>!!B[e]).join(","),W=P.useMemo(()=>$.split(","),[$]),H="string"==typeof a?a:a.light,j="string"==typeof a?a:a.dark,G=B[H]&&B[j]?T:(null==(h=null==(l=B[N.defaultColorScheme])?void 0:l.palette)?void 0:h.mode)||(null==(p=N.palette)?void 0:p.mode),{mode:U,setMode:X,systemMode:Y,lightColorScheme:Z,darkColorScheme:q,colorScheme:K,setColorScheme:Q}=Wi({supportedColorSchemes:W,defaultLightColorScheme:H,defaultDarkColorScheme:j,modeStorageKey:y,colorSchemeStorageKey:v,defaultMode:G,storageManager:b,storageWindow:w,noSsr:D});let J=U,ee=K;O&&(J=R.mode,ee=R.colorScheme);let te=ee||N.defaultColorScheme;N.vars&&!I&&(te=N.defaultColorScheme);const ne=P.useMemo(()=>{var e;const t=(null==(e=N.generateThemeVars)?void 0:e.call(N))||N.vars,n={...N,components:F,colorSchemes:B,cssVarPrefix:V,vars:t};if("function"==typeof n.generateSpacing&&(n.spacing=n.generateSpacing()),te){const e=B[te];e&&"object"==typeof e&&Object.keys(e).forEach(t=>{e[t]&&"object"==typeof e[t]?n[t]={...n[t],...e[t]}:n[t]=e[t]})}return s?s(n):n},[N,te,F,B,V]),re=N.colorSchemeSelector;si(()=>{if(ee&&k&&re&&"media"!==re){const e=re;let t=re;if("class"===e&&(t=".%s"),"data"===e&&(t="[data-%s]"),(null==e?void 0:e.startsWith("data-"))&&!e.includes("%s")&&(t=`[${e}="%s"]`),t.startsWith("."))k.classList.remove(...W.map(e=>t.substring(1).replace("%s",e))),k.classList.add(t.substring(1).replace("%s",ee));else{const e=t.replace("%s",ee).match(/\[([^\]]+)\]/);if(e){const[t,n]=e[1].split("=");n||W.forEach(e=>{k.removeAttribute(t.replace(ee,e))}),k.setAttribute(t,n?n.replace(/"|'/g,""):"")}else k.setAttribute(t,ee)}}},[ee,re,k,W]),P.useEffect(()=>{let e;if(_&&A.current&&S){const t=S.createElement("style");t.appendChild(S.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),S.head.appendChild(t),window.getComputedStyle(S.body),e=setTimeout(()=>{S.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[ee,_,S]),P.useEffect(()=>(A.current=!0,()=>{A.current=!1}),[]);const ie=P.useMemo(()=>({allColorSchemes:W,colorScheme:ee,darkColorScheme:q,lightColorScheme:Z,mode:J,setColorScheme:Q,setMode:X,systemMode:Y}),[W,ee,q,Z,J,Q,X,Y,ne.colorSchemeSelector]);let oe=!0;(M||!1===N.cssVariables||O&&(null==E?void 0:E.cssVarPrefix)===V)&&(oe=!1);const ae=x.jsxs(P.Fragment,{children:[x.jsx(Ei,{themeId:z?t:void 0,theme:ne,children:g}),oe&&x.jsx(vn,{styles:(null==(f=ne.generateStyleSheets)?void 0:f.call(ne))||[]})]});return O?ae:x.jsx(u.Provider,{value:ie,children:ae})},useColorScheme:()=>P.useContext(u)||l,getInitColorSchemeScript:e=>function(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:i=Oi,colorSchemeStorageKey:o=Li,attribute:a=zi,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};let u="",c=a;if("class"===a&&(c=".%s"),"data"===a&&(c="[data-%s]"),c.startsWith(".")){const e=c.substring(1);u+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));\n ${s}.classList.add('${e}'.replace('%s', colorScheme));`}const d=c.match(/\[([^\]]+)\]/);if(d){const[e,t]=d[1].split("=");t||(u+=`${s}.removeAttribute('${e}'.replace('%s', light));\n ${s}.removeAttribute('${e}'.replace('%s', dark));`),u+=`\n ${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:'""'});`}else u+=`${s}.setAttribute('${c}', colorScheme);`;return x.jsx("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?l:"",dangerouslySetInnerHTML:{__html:`(function() {\ntry {\n let colorScheme = '';\n const mode = localStorage.getItem('${i}') || '${t}';\n const dark = localStorage.getItem('${o}-dark') || '${r}';\n const light = localStorage.getItem('${o}-light') || '${n}';\n if (mode === 'system') {\n // handle system mode\n const mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = dark\n } else {\n colorScheme = light\n }\n }\n if (mode === 'light') {\n colorScheme = light;\n }\n if (mode === 'dark') {\n colorScheme = dark;\n }\n if (colorScheme) {\n ${u}\n }\n} catch(e){}})();`}},"mui-color-scheme-init")}({colorSchemeStorageKey:i,defaultLightColorScheme:h,defaultDarkColorScheme:p,modeStorageKey:r,...e})}}({themeId:we,theme:()=>zo({cssVariables:!0}),colorSchemeStorageKey:Wo,modeStorageKey:Go,defaultColorScheme:{light:Ho,dark:jo},resolveTheme:e=>{const t={...e,typography:co(e.palette,e.typography)};return t.unstable_sx=function(e){return Or({sx:e,theme:this})},t}}),Xo=Uo;function Yo({theme:e,...t}){const n=P.useMemo(()=>{if("function"==typeof e)return e;const t=we in e?e[we]:e;return"colorSchemes"in t?null:"vars"in t?e:{...e,vars:null}},[e]);return n?x.jsx($o,{theme:n,...t}):x.jsx(Xo,{theme:e,...t})}function Zo(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function qo(e){return x.jsx(Vr,{...e,defaultTheme:No,themeId:we})}function Ko(e){return function(t){return x.jsx(qo,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}const Qo=function(e){let t,n;return function(r){let i=t;return void 0!==i&&r.theme===n||(Ri.theme=r.theme,i=Zr(e(Ri)),t=i,n=r.theme),i}};function Jo(e){return Pi(e)}function ea(e){return Xr("MuiSvgIcon",e)}Yr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ta=Vo("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Wn(n.color)}`],t[`fontSize${Wn(n.fontSize)}`]]}})(Qo(({theme:e})=>{var t,n,r,i,o,a,s,l,u,c,d,h,p,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:null==(i=null==(t=e.transitions)?void 0:t.create)?void 0:i.call(t,"fill",{duration:null==(r=null==(n=(e.vars??e).transitions)?void 0:n.duration)?void 0:r.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:(null==(a=null==(o=e.typography)?void 0:o.pxToRem)?void 0:a.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:(null==(l=null==(s=e.typography)?void 0:s.pxToRem)?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:(null==(c=null==(u=e.typography)?void 0:u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>{var n,r;return{props:{color:t},style:{color:null==(r=null==(n=(e.vars??e).palette)?void 0:n[t])?void 0:r.main}}}),{props:{color:"action"},style:{color:null==(h=null==(d=(e.vars??e).palette)?void 0:d.action)?void 0:h.active}},{props:{color:"disabled"},style:{color:null==(f=null==(p=(e.vars??e).palette)?void 0:p.action)?void 0:f.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),na=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24",...h}=n,p=P.isValidElement(r)&&"svg"===r.type,f={...n,color:o,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:p},g={};u||(g.viewBox=d);const m=(e=>{const{color:t,fontSize:n,classes:r}=e;return Ui({root:["root","inherit"!==t&&`color${Wn(t)}`,`fontSize${Wn(n)}`]},ea,r)})(f);return x.jsxs(ta,{as:a,className:Gr(m.root,i),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t,...g,...h,...p&&r.props,ownerState:f,children:[p?r.props.children:r,c?x.jsx("title",{children:c}):null]})});function ra(e){return e&&e.ownerDocument||document}function ia(e){return ra(e).defaultView||window}function oa(e,t){"function"==typeof e?e(t):e&&(e.current=t)}na.muiName="SvgIcon";let aa=0;const sa={...A}.useId;function la(e){if(void 0!==sa){const t=sa();return e??t}return function(e){const[t,n]=P.useState(e),r=e||t;return P.useEffect(()=>{null==t&&(aa+=1,n(`mui-${aa}`))},[t]),r}(e)}function ua(e){const t=P.useRef(e);return si(()=>{t.current=e}),P.useRef((...e)=>(0,t.current)(...e)).current}function ca(...e){const t=P.useRef(void 0),n=P.useCallback(t=>{const n=e.map(e=>{if(null==e)return null;if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>null==e?void 0:e())}},e);return P.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function da(e,t){if(!e)return t;function n(e,t){const n={};return Object.keys(t).forEach(r=>{(function(e,t){const n=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&n>=65&&n<=90&&"function"==typeof t})(r,t[r])&&"function"==typeof e[r]&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if("function"==typeof e||"function"==typeof t)return r=>{const i="function"==typeof t?t(r):t,o="function"==typeof e?e({...r,...i}):e,a=Gr(null==r?void 0:r.className,null==i?void 0:i.className,null==o?void 0:o.className),s=n(o,i);return{...i,...o,...s,...!!a&&{className:a},...(null==i?void 0:i.style)&&(null==o?void 0:o.style)&&{style:{...i.style,...o.style}},...(null==i?void 0:i.sx)&&(null==o?void 0:o.sx)&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(o.sx)?o.sx:[o.sx]]}}};const r=t,i=n(e,r),o=Gr(null==r?void 0:r.className,null==e?void 0:e.className);return{...t,...e,...i,...!!o&&{className:o},...(null==r?void 0:r.style)&&(null==e?void 0:e.style)&&{style:{...r.style,...e.style}},...(null==r?void 0:r.sx)&&(null==e?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function ha(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function pa(e,t){return(pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function fa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,pa(e,t)}var ga=T();const ma=r(ga),ya=!1,va=D.createContext(null);var xa="unmounted",_a="exited",ba="entering",wa="entered",Sa="exiting",ka=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=_a,r.appearStatus=ba):i=wa:i=t.unmountOnExit||t.mountOnEnter?xa:_a,r.state={status:i},r.nextCallback=null,r}fa(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===xa?{status:_a}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ba&&n!==wa&&(t=ba):n!==ba&&n!==wa||(t=Sa)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ba){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ma.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_a&&this.setState({status:xa})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[ma.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||ya?this.safeSetState({status:wa},function(){t.props.onEntered(o)}):(this.props.onEnter(o,a),this.safeSetState({status:ba},function(){t.props.onEntering(o,a),t.onTransitionEnd(l,function(){t.safeSetState({status:wa},function(){t.props.onEntered(o,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ma.findDOMNode(this);t&&!ya?(this.props.onExit(r),this.safeSetState({status:Sa},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:_a},function(){e.props.onExited(r)})})})):this.safeSetState({status:_a},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ma.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===xa)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=ha(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return D.createElement(va.Provider,{value:null},"function"==typeof n?n(e,r):D.cloneElement(D.Children.only(n),r))},t}(D.Component);function Ca(){}function Ma(e,t){var n=Object.create(null);return e&&P.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&P.isValidElement(e)?t(e):e}(e)}),n}function Ta(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Ia(e,t,n){var r=Ma(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach(function(o){var a=i[o];if(P.isValidElement(a)){var s=o in t,l=o in r,u=t[o],c=P.isValidElement(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&P.isValidElement(u)&&(i[o]=P.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Ta(a,"exit",e),enter:Ta(a,"enter",e)})):i[o]=P.cloneElement(a,{in:!1}):i[o]=P.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Ta(a,"exit",e),enter:Ta(a,"enter",e)})}}),i}ka.contextType=va,ka.propTypes={},ka.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ca,onEntering:Ca,onEntered:Ca,onExit:Ca,onExiting:Ca,onExited:Ca},ka.UNMOUNTED=xa,ka.EXITED=_a,ka.ENTERING=ba,ka.ENTERED=wa,ka.EXITING=Sa;var Pa=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Da=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}fa(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,Ma(n.children,function(e){return P.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Ta(e,"appear",n),enter:Ta(e,"enter",n),exit:Ta(e,"exit",n)})})):Ia(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=Ma(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Se({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=ha(e,["component","childFactory"]),i=this.state.contextValue,o=Pa(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?D.createElement(va.Provider,{value:i},o):D.createElement(va.Provider,{value:i},D.createElement(t,r,o))},t}(D.Component);Da.propTypes={},Da.defaultProps={component:"div",childFactory:function(e){return e}};const Aa={};function Ea(e,t){const n=P.useRef(Aa);return n.current===Aa&&(n.current=e(t)),n}const Ra=[];class Oa{constructor(){t(this,"currentId",null),t(this,"clear",()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)}),t(this,"disposeEffect",()=>this.clear)}static create(){return new Oa}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function La(){const e=Ea(Oa.create).current;var t;return t=e.disposeEffect,P.useEffect(t,Ra),e}const za=e=>e.scrollTop;function Na(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:i.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:i.transitionDelay}}function Ba(e){return Xr("MuiPaper",e)}Yr("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 Fa=Vo("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(Qo(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Va=P.forwardRef(function(e,t){var n;const r=Jo({props:e,name:"MuiPaper"}),i=Bo(),{className:o,component:a="div",elevation:s=1,square:l=!1,variant:u="elevation",...c}=r,d={...r,component:a,elevation:s,square:l,variant:u},h=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e;return Ui({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Ba,i)})(d);return x.jsx(Fa,{as:a,ownerState:d,className:Gr(h.root,o),ref:t,...c,style:{..."elevation"===u&&{"--Paper-shadow":(i.vars||i).shadows[s],...i.vars&&{"--Paper-overlay":null==(n=i.vars.overlays)?void 0:n[s]},...!i.vars&&"dark"===i.palette.mode&&{"--Paper-overlay":`linear-gradient(${fi("#fff",So(s))}, ${fi("#fff",So(s))})`}},...c.style}})});function $a(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function Wa(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function Ha(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...h}=o,p=c[e]||r,f=function(e,t,n){return"function"==typeof e?e(t,n):e}(d[e],i),{props:{component:g,...m},internalRef:y}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=Gr(null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),t={...null==n?void 0:n.style,...null==i?void 0:i.style,...null==r?void 0:r.style},a={...n,...i,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=$a({...i,...r}),s=Wa(r),l=Wa(i),u=t(a),c=Gr(null==u?void 0:u.className,null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),d={...null==u?void 0:u.style,...null==n?void 0:n.style,...null==i?void 0:i.style,...null==r?void 0:r.style},h={...u,...n,...l,...s};return c.length>0&&(h.className=c),Object.keys(d).length>0&&(h.style=d),{props:h,internalRef:u.ref}}({className:n,...l,externalForwardedProps:"root"===e?h:void 0,externalSlotProps:f}),v=ca(y,null==f?void 0:f.ref,t.ref),x="root"===e?g||u:g,_=function(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}}(p,{..."root"===e&&!u&&!c[e]&&a,..."root"!==e&&!c[e]&&a,...m,...x&&!s&&{as:x},...x&&s&&{component:x},ref:v},i);return[p,_]}function ja(e){try{return e.matches(":focus-visible")}catch(t){}return!1}class Ga{constructor(){t(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())}),this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Ga}static use(){const e=Ea(Ga.create).current,[t,n]=P.useState(!1);return e.shouldMount=t,e.setShouldMount=n,P.useEffect(e.mountEffect,[t]),e}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var t;return null==(t=this.ref.current)?void 0:t.start(...e)})}stop(...e){this.mount().then(()=>{var t;return null==(t=this.ref.current)?void 0:t.stop(...e)})}pulsate(...e){this.mount().then(()=>{var t;return null==(t=this.ref.current)?void 0:t.pulsate(...e)})}}const Ua=Yr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xa=cn`
|
31
31
|
0% {
|
32
32
|
transform: scale(0);
|
33
33
|
opacity: 0.1;
|
@@ -45,7 +45,7 @@
|
|
45
45
|
100% {
|
46
46
|
opacity: 0;
|
47
47
|
}
|
48
|
-
`,
|
48
|
+
`,Za=cn`
|
49
49
|
0% {
|
50
50
|
transform: scale(1);
|
51
51
|
}
|
@@ -57,7 +57,7 @@
|
|
57
57
|
100% {
|
58
58
|
transform: scale(1);
|
59
59
|
}
|
60
|
-
`,
|
60
|
+
`,qa=Vo("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ka=Vo(function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=P.useState(!1),h=Gr(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-a/2+o,left:-a/2+i},f=Gr(n.child,c&&n.childLeaving,r&&n.childPulsate);return s||c||d(!0),P.useEffect(()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}},[l,s,u]),x.jsx("span",{className:h,style:p,children:x.jsx("span",{className:f})})},{name:"MuiTouchRipple",slot:"Ripple"})`
|
61
61
|
opacity: 0;
|
62
62
|
position: absolute;
|
63
63
|
|
@@ -94,13 +94,13 @@
|
|
94
94
|
/* @noflip */
|
95
95
|
left: 0px;
|
96
96
|
top: 0;
|
97
|
-
animation-name: ${
|
97
|
+
animation-name: ${Za};
|
98
98
|
animation-duration: 2500ms;
|
99
99
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
100
100
|
animation-iteration-count: infinite;
|
101
101
|
animation-delay: 200ms;
|
102
102
|
}
|
103
|
-
`,Qa=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o,...a}=n,[s,l]=P.useState([]),u=P.useRef(0),c=P.useRef(null);P.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=P.useRef(!1),h=La(),p=P.useRef(null),f=P.useRef(null),g=P.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l(e=>[...e,x.jsx(
|
103
|
+
`,Qa=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o,...a}=n,[s,l]=P.useState([]),u=P.useRef(0),c=P.useRef(null);P.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=P.useRef(!1),h=La(),p=P.useRef(null),f=P.useRef(null),g=P.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l(e=>[...e,x.jsx(Ka,{classes:{ripple:Gr(i.ripple,Ua.ripple),rippleVisible:Gr(i.rippleVisible,Ua.rippleVisible),ripplePulsate:Gr(i.ripplePulsate,Ua.ripplePulsate),child:Gr(i.child,Ua.child),childLeaving:Gr(i.childLeaving,Ua.childLeaving),childPulsate:Gr(i.childPulsate,Ua.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},u.current)]),u.current+=1,c.current=a},[i]),m=P.useCallback((e={},t={},n=()=>{})=>{const{pulsate:i=!1,center:o=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:f.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,m;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(o)m=Math.sqrt((2*l.width**2+l.height**2)/3),m%2==0&&(m+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;m=Math.sqrt(e**2+t**2)}(null==e?void 0:e.touches)?null===p.current&&(p.current=()=>{g({pulsate:i,rippleX:u,rippleY:c,rippleSize:m,cb:n})},h.start(80,()=>{p.current&&(p.current(),p.current=null)})):g({pulsate:i,rippleX:u,rippleY:c,rippleSize:m,cb:n})},[r,g,h]),y=P.useCallback(()=>{m({},{pulsate:!0})},[m]),v=P.useCallback((e,t)=>{if(h.clear(),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void h.start(0,()=>{v(e,t)});p.current=null,l(e=>e.length>0?e.slice(1):e),c.current=t},[h]);return P.useImperativeHandle(t,()=>({pulsate:y,start:m,stop:v}),[y,m,v]),x.jsx(qa,{className:Gr(Ua.root,i.root,o),ref:f,...a,children:x.jsx(Da,{component:null,exit:!0,children:s})})});function Ja(e){return Xr("MuiButtonBase",e)}const es=Yr("MuiButtonBase",["root","disabled","focusVisible"]),ts=Vo("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${es.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ns=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,focusVisibleClassName:h,LinkComponent:p="a",onBlur:f,onClick:g,onContextMenu:m,onDragLeave:y,onFocus:v,onFocusVisible:_,onKeyDown:b,onKeyUp:w,onMouseDown:S,onMouseLeave:k,onMouseUp:C,onTouchEnd:M,onTouchMove:T,onTouchStart:I,tabIndex:D=0,TouchRippleProps:A,touchRippleRef:E,type:R,...O}=n,L=P.useRef(null),z=Ga.use(),N=ca(z.ref,E),[B,F]=P.useState(!1);l&&B&&F(!1),P.useImperativeHandle(r,()=>({focusVisible:()=>{F(!0),L.current.focus()}}),[]);const V=z.shouldMount&&!u&&!l;P.useEffect(()=>{B&&d&&!u&&z.pulsate()},[u,d,B,z]);const $=rs(z,"start",S,c),W=rs(z,"stop",m,c),H=rs(z,"stop",y,c),j=rs(z,"stop",C,c),G=rs(z,"stop",e=>{B&&e.preventDefault(),k&&k(e)},c),U=rs(z,"start",I,c),X=rs(z,"stop",M,c),Y=rs(z,"stop",T,c),Z=rs(z,"stop",e=>{ja(e.target)||F(!1),f&&f(e)},!1),q=ua(e=>{L.current||(L.current=e.currentTarget),ja(e.target)&&(F(!0),_&&_(e)),v&&v(e)}),K=()=>{const e=L.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},Q=ua(e=>{d&&!e.repeat&&B&&" "===e.key&&z.stop(e,()=>{z.start(e)}),e.target===e.currentTarget&&K()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&K()&&"Enter"===e.key&&!l&&(e.preventDefault(),g&&g(e))}),J=ua(e=>{d&&" "===e.key&&B&&!e.defaultPrevented&&z.stop(e,()=>{z.pulsate(e)}),w&&w(e),g&&e.target===e.currentTarget&&K()&&" "===e.key&&!e.defaultPrevented&&g(e)});let ee=s;"button"===ee&&(O.href||O.to)&&(ee=p);const te={};"button"===ee?(te.type=void 0===R?"button":R,te.disabled=l):(O.href||O.to||(te.role="button"),l&&(te["aria-disabled"]=l));const ne=ca(t,L),re={...n,centerRipple:i,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:D,focusVisible:B},ie=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=Ui({root:["root",t&&"disabled",n&&"focusVisible"]},Ja,i);return n&&r&&(o.root+=` ${r}`),o})(re);return x.jsxs(ts,{as:ee,className:Gr(ie.root,a),ownerState:re,onBlur:Z,onClick:g,onContextMenu:W,onFocus:q,onKeyDown:Q,onKeyUp:J,onMouseDown:$,onMouseLeave:G,onMouseUp:j,onDragLeave:H,onTouchEnd:X,onTouchMove:Y,onTouchStart:U,ref:ne,tabIndex:l?-1:D,type:R,...te,...O,children:[o,V?x.jsx(Qa,{ref:N,center:i,...A}):null]})});function rs(e,t,n,r=!1){return ua(i=>(n&&n(i),r||e[t](i),!0))}function is(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}function os(e){return Xr("MuiCircularProgress",e)}Yr("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const as=44,ss=cn`
|
104
104
|
0% {
|
105
105
|
transform: rotate(0deg);
|
106
106
|
}
|
@@ -127,7 +127,7 @@
|
|
127
127
|
animation: ${ss} 1.4s linear infinite;
|
128
128
|
`:null,cs="string"!=typeof ls?un`
|
129
129
|
animation: ${ls} 1.4s ease-in-out infinite;
|
130
|
-
`:null,ds=$o("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${jn(n.color)}`]]}})(Qo(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:us||{animation:`${ss} 1.4s linear infinite`}},...Object.entries(e.palette).filter(is()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),hs=$o("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),ps=$o("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${jn(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Qo(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:cs||{animation:`${ls} 1.4s ease-in-out infinite`}}]}))),fs=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:o=!1,size:a=40,style:s,thickness:l=3.6,value:u=0,variant:c="indeterminate",...d}=n,h={...n,color:i,disableShrink:o,size:a,thickness:l,value:u,variant:c},p=(e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e;return Ui({root:["root",n,`color${jn(r)}`],svg:["svg"],circle:["circle",`circle${jn(n)}`,i&&"circleDisableShrink"]},os,t)})(h),f={},g={},m={};if("determinate"===c){const e=2*Math.PI*((as-l)/2);f.strokeDasharray=e.toFixed(3),m["aria-valuenow"]=Math.round(u),f.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform="rotate(-90deg)"}return x.jsx(ds,{className:Gr(p.root,r),style:{width:a,height:a,...g,...s},ownerState:h,ref:t,role:"progressbar",...m,...d,children:x.jsx(hs,{className:p.svg,ownerState:h,viewBox:"22 22 44 44",children:x.jsx(ps,{className:p.circle,style:f,ownerState:h,cx:as,cy:as,r:(as-l)/2,fill:"none",strokeWidth:l})})})});function gs(e){return Xr("MuiTypography",e)}Yr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ms={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},ys=Wr,vs=$o("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${jn(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Qo(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([e,t])=>"inherit"!==e&&t&&"object"==typeof t).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(is()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries((null==(t=e.palette)?void 0:t.text)||{}).filter(([,e])=>"string"==typeof e).map(([t])=>({props:{color:`text${jn(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}})),xs={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bs=P.forwardRef(function(e,t){const{color:n,...r}=Jo({props:e,name:"MuiTypography"}),i=ys({...r,...!ms[n]&&{color:n}}),{align:o="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:h=xs,...p}=i,f={...i,align:o,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:h},g=s||(c?"p":h[d]||xs[d])||"span",m=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e;return Ui({root:["root",o,"inherit"!==e.align&&`align${jn(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]},gs,a)})(f);return x.jsx(vs,{as:g,ref:t,className:Gr(m.root,a),...p,ownerState:f,style:{..."inherit"!==o&&{"--Typography-textAlign":o},...p.style}})});function _s(e){var t;return parseInt(P.version,10)>=19?(null==(t=null==e?void 0:e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const ws=P.forwardRef(function(e,t){const{children:n,container:r,disablePortal:i=!1}=e,[o,a]=P.useState(null),s=ca(P.isValidElement(n)?_s(n):null,t);if(si(()=>{i||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,i]),si(()=>{if(o&&!i)return oa(t,o),()=>{oa(t,null)}},[t,o,i]),i){if(P.isValidElement(n)){const e={ref:s};return P.cloneElement(n,e)}return n}return o?ga.createPortal(n,o):o});function Ss({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}const ks=P.createContext(void 0);function Cs(){return P.useContext(ks)}const Ts={entering:{opacity:1},entered:{opacity:1}},Ms=P.forwardRef(function(e,t){const n=Bo(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:h,onExited:p,onExiting:f,style:g,timeout:m=r,TransitionComponent:y=ka,...v}=e,b=P.useRef(null),_=ca(b,_s(a),t),w=e=>t=>{if(e){const n=b.current;void 0===t?e(n):e(n,t)}},S=w(d),k=w((e,t)=>{Na(e);const r=za({style:g,timeout:m,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)}),C=w(c),T=w(f),M=w(e=>{const t=za({style:g,timeout:m,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),h&&h(e)}),I=w(p);return x.jsx(y,{appear:o,in:l,nodeRef:b,onEnter:k,onEntered:C,onEntering:S,onExit:M,onExited:I,onExiting:T,addEndListener:e=>{i&&i(b.current,e)},timeout:m,...v,children:(e,{ownerState:t,...n})=>P.cloneElement(a,{style:{opacity:0,visibility:"exited"!==e||l?void 0:"hidden",...Ts[e],...g,...a.props.style},ref:_,...n})})});function Is(e){return Xr("MuiBackdrop",e)}Yr("MuiBackdrop",["root","invisible"]);const Ps=$o("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Ds=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiBackdrop"}),{children:r,className:i,component:o="div",invisible:a=!1,open:s,components:l={},componentsProps:u={},slotProps:c={},slots:d={},TransitionComponent:h,transitionDuration:p,...f}=n,g={...n,component:o,invisible:a},m=(e=>{const{classes:t,invisible:n}=e;return Ui({root:["root",n&&"invisible"]},Is,t)})(g),y={slots:{transition:h,root:l.Root,...d},slotProps:{...u,...c}},[v,b]=Va("root",{elementType:Ps,externalForwardedProps:y,className:Gr(m.root,i),ownerState:g}),[_,w]=Va("transition",{elementType:Ms,externalForwardedProps:y,ownerState:g});return x.jsx(_,{in:s,timeout:p,...f,...w,children:x.jsx(v,{"aria-hidden":!0,...b,classes:m,ref:t,children:r})})}),As=Yr("MuiBox",["root"]),Es=No(),Rs=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,o=xn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Or);return P.forwardRef(function(e,a){const s=Fr(n),{className:l,component:u="div",...c}=Wr(e);return x.jsx(o,{as:u,ref:a,className:Gr(l,i?i(r):r),theme:t&&s[t]||s,...c})})}({themeId:we,defaultTheme:Es,defaultClassName:As.root,generateClassName:Vr.generate});function Os(e){return Xr("MuiButton",e)}const Ls=Yr("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Ns=P.createContext({}),zs=P.createContext(void 0),Bs=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Fs=$o(ns,{shouldForwardProp:e=>Fo(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${jn(n.color)}`],t[`size${jn(n.size)}`],t[`${n.variant}Size${jn(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Qo(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Ls.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Ls.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Ls.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Ls.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(is()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:fi(e.palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:fi(e.palette[t].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:fi(e.palette[t].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:fi(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:fi(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ls.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ls.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Ls.loading}`]:{color:"transparent"}}}]}})),$s=$o("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${jn(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Bs]})),Ws=$o("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${jn(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Bs]})),js=$o("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Vs=$o("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Hs=P.forwardRef(function(e,t){const n=P.useContext(Ns),r=P.useContext(zs),i=Jo({props:oi(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:h,focusVisibleClassName:p,fullWidth:f=!1,id:g,loading:m=null,loadingIndicator:y,loadingPosition:v="center",size:b="medium",startIcon:_,type:w,variant:S="text",...k}=i,C=la(g),T=y??x.jsx(fs,{"aria-labelledby":C,color:"inherit",size:16}),M={...i,color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:f,loading:m,loadingIndicator:T,loadingPosition:v,size:b,type:w,variant:S},I=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,loading:a,loadingPosition:s,classes:l}=e,u=Ui({root:["root",a&&"loading",o,`${o}${jn(t)}`,`size${jn(i)}`,`${o}Size${jn(i)}`,`color${jn(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${jn(s)}`],startIcon:["icon","startIcon",`iconSize${jn(i)}`],endIcon:["icon","endIcon",`iconSize${jn(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Os,l);return{...l,...u}})(M),D=(_||m&&"start"===v)&&x.jsx($s,{className:I.startIcon,ownerState:M,children:_||x.jsx(Vs,{className:I.loadingIconPlaceholder,ownerState:M})}),A=(h||m&&"end"===v)&&x.jsx(Ws,{className:I.endIcon,ownerState:M,children:h||x.jsx(Vs,{className:I.loadingIconPlaceholder,ownerState:M})}),E=r||"",R="boolean"==typeof m?x.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:m&&x.jsx(js,{className:I.loadingIndicator,ownerState:M,children:T})}):null;return x.jsxs(Fs,{ownerState:M,className:Gr(n.className,I.root,l,E),component:s,disabled:u||m,focusRipple:!d,focusVisibleClassName:Gr(I.focusVisible,p),ref:t,type:w,id:m?C:g,...k,classes:I,children:[D,"end"!==v&&R,o,"end"===v&&R,A]})});function Gs(e){return Xr("PrivateSwitchBase",e)}Yr("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Us=$o(ns)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),Xs=$o("input",{shouldForwardProp:Fo})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ys=P.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:i,defaultChecked:o,disabled:a,disableFocusRipple:s=!1,edge:l=!1,icon:u,id:c,inputProps:d,inputRef:h,name:p,onBlur:f,onChange:g,onFocus:m,readOnly:y,required:v=!1,tabIndex:b,type:_,value:w,slots:S={},slotProps:k={},...C}=e,[T,M]=function(e){const{controlled:t,default:n}=e,{current:r}=P.useRef(void 0!==t),[i,o]=P.useState(n);return[r?t:i,P.useCallback(e=>{r||o(e)},[])]}({controlled:r,default:Boolean(o)}),I=Cs();let D=a;I&&void 0===D&&(D=I.disabled);const A="checkbox"===_||"radio"===_,E={...e,checked:T,disabled:D,disableFocusRipple:s,edge:l},R=(e=>{const{classes:t,checked:n,disabled:r,edge:i}=e;return Ui({root:["root",n&&"checked",r&&"disabled",i&&`edge${jn(i)}`],input:["input"]},Gs,t)})(E),O={slots:S,slotProps:{input:d,...k}},[L,N]=Va("root",{ref:t,elementType:Us,className:R.root,shouldForwardComponentProp:!0,externalForwardedProps:{...O,component:"span",...C},getSlotProps:e=>({...e,onFocus:t=>{var n;null==(n=e.onFocus)||n.call(e,t),(e=>{m&&m(e),I&&I.onFocus&&I.onFocus(e)})(t)},onBlur:t=>{var n;null==(n=e.onBlur)||n.call(e,t),(e=>{f&&f(e),I&&I.onBlur&&I.onBlur(e)})(t)}}),ownerState:E,additionalProps:{centerRipple:!0,focusRipple:!s,disabled:D,role:void 0,tabIndex:null}}),[z,B]=Va("input",{ref:h,elementType:Xs,className:R.input,externalForwardedProps:O,getSlotProps:e=>({...e,onChange:t=>{var n;null==(n=e.onChange)||n.call(e,t),(e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;M(t),g&&g(e,t)})(t)}}),ownerState:E,additionalProps:{autoFocus:n,checked:r,defaultChecked:o,disabled:D,id:A?c:void 0,name:p,readOnly:y,required:v,tabIndex:b,type:_,..."checkbox"===_&&void 0===w?{}:{value:w}}});return x.jsxs(L,{...N,children:[x.jsx(z,{...B}),T?i:u]})}),qs=function(e={}){const{createStyledComponent:t=Yi,useThemeProps:n=qi,componentName:r="MuiContainer"}=e,i=t(({theme:e,ownerState:t})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}}),({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce((t,n)=>{const r=n,i=e.breakpoints.values[r];return 0!==i&&(t[e.breakpoints.up(r)]={maxWidth:`${i}${e.breakpoints.unit}`}),t},{}),({theme:e,ownerState:t})=>({..."xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},...t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}}));return P.forwardRef(function(e,t){const o=n(e),{className:a,component:s="div",disableGutters:l=!1,fixed:u=!1,maxWidth:c="lg",classes:d,...h}=o,p={...o,component:s,disableGutters:l,fixed:u,maxWidth:c},f=((e,t)=>{const{classes:n,fixed:r,disableGutters:i,maxWidth:o}=e;return Ui({root:["root",o&&`maxWidth${jn(String(o))}`,r&&"fixed",i&&"disableGutters"]},e=>Xr(t,e),n)})(p,r);return x.jsx(i,{as:s,ownerState:p,className:Gr(f.root,a),ref:t,...h})})}({createStyledComponent:$o("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${jn(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Jo({props:e,name:"MuiContainer"})}),Ks="function"==typeof Zo({}),Zs=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),Qs=e=>({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}}),Js=(e,t=!1)=>{var n,r;const i={};t&&e.colorSchemes&&"function"==typeof e.getColorSchemeSelector&&Object.entries(e.colorSchemes).forEach(([t,n])=>{var r,o;const a=e.getColorSchemeSelector(t);a.startsWith("@")?i[a]={":root":{colorScheme:null==(r=n.palette)?void 0:r.mode}}:i[a.replace(/\s*&/,"")]={colorScheme:null==(o=n.palette)?void 0:o.mode}});let o={html:Zs(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Qs(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...i};const a=null==(r=null==(n=e.components)?void 0:n.MuiCssBaseline)?void 0:r.styleOverrides;return a&&(o=[o,a]),o},el="mui-ecs",tl=Zo(Ks?({theme:e,enableColorScheme:t})=>Js(e,t):({theme:e})=>(e=>{const t=Js(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${el})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{var i,o;const a=e.getColorSchemeSelector(t);a.startsWith("@")?n[a]={[`:root:not(:has(.${el}))`]:{colorScheme:null==(i=r.palette)?void 0:i.mode}}:n[a.replace(/\s*&/,"")]={[`&:not(:has(.${el}))`]:{colorScheme:null==(o=r.palette)?void 0:o.mode}}}),t})(e));function nl(e){const t=Jo({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return x.jsxs(P.Fragment,{children:[Ks&&x.jsx(tl,{enableColorScheme:r}),!Ks&&!r&&x.jsx("span",{className:el,style:{display:"none"}}),n]})}function rl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function il(e){return parseInt(ia(e).getComputedStyle(e).paddingRight,10)||0}function ol(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,e=>{const t=!o.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&rl(e,i)})}function al(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function sl(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=ra(e);return t.body===e?ia(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}(ia(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${il(r)+e}px`;const t=ra(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${il(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=ra(r).body;else{const t=r.parentElement,n=ia(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}const ll=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ul(e){const t=[],n=[];return Array.from(e.querySelectorAll(ll)).forEach((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function cl(){return!0}function dl(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=ul,isEnabled:a=cl,open:s}=e,l=P.useRef(!1),u=P.useRef(null),c=P.useRef(null),d=P.useRef(null),h=P.useRef(null),p=P.useRef(!1),f=P.useRef(null),g=ca(_s(t),f),m=P.useRef(null);P.useEffect(()=>{s&&f.current&&(p.current=!n)},[n,s]),P.useEffect(()=>{if(!s||!f.current)return;const e=ra(f.current);return f.current.contains(e.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),p.current&&f.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),P.useEffect(()=>{if(!s||!f.current)return;const e=ra(f.current),t=t=>{m.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},n=()=>{var t,n;const i=f.current;if(null===i)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(i.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!p.current)return;let s=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(s=o(f.current)),s.length>0){const e=Boolean((null==(t=m.current)?void 0:t.shiftKey)&&"Tab"===(null==(n=m.current)?void 0:n.key)),r=s[0],i=s[s.length-1];"string"!=typeof r&&"string"!=typeof i&&(e?i.focus():r.focus())}else i.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,i,a,s,o]);const y=e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0};return x.jsxs(P.Fragment,{children:[x.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),P.cloneElement(t,{ref:g,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0,h.current=e.target;const n=t.props.onFocus;n&&n(e)}}),x.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}const hl=()=>{},pl=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&rl(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);ol(t,e.mount,e.modalRef,r,!0);const i=al(this.containers,e=>e.container===t);return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=al(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=sl(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=al(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&rl(e.modalRef,t),ol(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&rl(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function fl(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:a,children:s,onClose:l,open:u,rootRef:c}=e,d=P.useRef({}),h=P.useRef(null),p=P.useRef(null),f=ca(p,c),[g,m]=P.useState(!u),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let v=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(v=!1);const x=()=>(d.current.modalRef=p.current,d.current.mount=h.current,d.current),b=()=>{pl.mount(x(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},_=ua(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ra(h.current).body;pl.add(x(),e),p.current&&b()}),w=()=>pl.isTopModal(x()),S=ua(e=>{h.current=e,e&&(u&&w()?b():p.current&&rl(p.current,v))}),k=P.useCallback(()=>{pl.remove(x(),v)},[v]);P.useEffect(()=>()=>{k()},[k]),P.useEffect(()=>{u?_():y&&i||k()},[u,k,y,i,_]);const C=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),l&&l(t,"escapeKeyDown")))},T=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&l&&l(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Wa(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:C(r),ref:f}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:T(t),open:u}},getTransitionProps:()=>({onEnter:qo(()=>{m(!1),o&&o()},(null==s?void 0:s.props.onEnter)??hl),onExited:qo(()=>{m(!0),a&&a(),i&&k()},(null==s?void 0:s.props.onExited)??hl)}),rootRef:f,portalRef:S,isTopModal:w,exited:g,hasTransition:y}}function gl(e){return Xr("MuiModal",e)}Yr("MuiModal",["root","hidden","backdrop"]);const ml=$o("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Qo(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),yl=$o(Ds,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),vl=P.forwardRef(function(e,t){const n=Jo({name:"MuiModal",props:e}),{BackdropComponent:r=yl,BackdropProps:i,classes:o,className:a,closeAfterTransition:s=!1,children:l,container:u,component:c,components:d={},componentsProps:h={},disableAutoFocus:p=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:g=!1,disablePortal:m=!1,disableRestoreFocus:y=!1,disableScrollLock:v=!1,hideBackdrop:b=!1,keepMounted:_=!1,onClose:w,onTransitionEnter:S,onTransitionExited:k,open:C,slotProps:T={},slots:M={},theme:I,...D}=n,A={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:f,disableEscapeKeyDown:g,disablePortal:m,disableRestoreFocus:y,disableScrollLock:v,hideBackdrop:b,keepMounted:_},{getRootProps:E,getBackdropProps:R,getTransitionProps:O,portalRef:L,isTopModal:N,exited:z,hasTransition:B}=fl({...A,rootRef:t}),F={...A,exited:z},$=(e=>{const{open:t,exited:n,classes:r}=e;return Ui({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},gl,r)})(F),W={};if(void 0===l.props.tabIndex&&(W.tabIndex="-1"),B){const{onEnter:e,onExited:t}=O();W.onEnter=e,W.onExited=t}const j={slots:{root:d.Root,backdrop:d.Backdrop,...M},slotProps:{...h,...T}},[V,H]=Va("root",{ref:t,elementType:ml,externalForwardedProps:{...j,...D,component:c},getSlotProps:E,ownerState:F,className:Gr(a,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),[G,U]=Va("backdrop",{ref:null==i?void 0:i.ref,elementType:r,externalForwardedProps:j,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>R({...e,onClick:t=>{(null==e?void 0:e.onClick)&&e.onClick(t)}}),className:Gr(null==i?void 0:i.className,null==$?void 0:$.backdrop),ownerState:F});return _||C||B&&!z?x.jsx(ws,{ref:L,container:u,disablePortal:m,children:x.jsxs(V,{...H,children:[!b&&r?x.jsx(G,{...U}):null,x.jsx(dl,{disableEnforceFocus:f,disableAutoFocus:p,disableRestoreFocus:y,isEnabled:N,open:C,children:P.cloneElement(l,W)})]})}):null});function xl(e){return Xr("MuiFormControlLabel",e)}const bl=Yr("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),_l=$o("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bl.label}`]:t.label},t.root,t[`labelPlacement${jn(n.labelPlacement)}`]]}})(Qo(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${bl.disabled}`]:{cursor:"default"},[`& .${bl.label}`]:{[`&.${bl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>"start"===e||"top"===e||"bottom"===e,style:{marginLeft:16}}]}))),wl=$o("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Qo(({theme:e})=>({[`&.${bl.error}`]:{color:(e.vars||e).palette.error.main}}))),Sl=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiFormControlLabel"}),{checked:r,className:i,componentsProps:o={},control:a,disabled:s,disableTypography:l,inputRef:u,label:c,labelPlacement:d="end",name:h,onChange:p,required:f,slots:g={},slotProps:m={},value:y,...v}=n,b=Cs(),_=s??a.props.disabled??(null==b?void 0:b.disabled),w=f??a.props.required,S={disabled:_,required:w};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===a.props[e]&&void 0!==n[e]&&(S[e]=n[e])});const k=Ss({props:n,muiFormControl:b,states:["error"]}),C={...n,disabled:_,labelPlacement:d,required:w,error:k.error},T=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e;return Ui({root:["root",n&&"disabled",`labelPlacement${jn(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]},xl,t)})(C),M={slots:g,slotProps:{...o,...m}},[I,D]=Va("typography",{elementType:bs,externalForwardedProps:M,ownerState:C});let A=c;return null==A||A.type===bs||l||(A=x.jsx(I,{component:"span",...D,className:Gr(T.label,null==D?void 0:D.className),children:A})),x.jsxs(_l,{className:Gr(T.root,i),ownerState:C,ref:t,...v,children:[P.cloneElement(a,S),w?x.jsxs("div",{children:[A,x.jsxs(wl,{ownerState:C,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):A]})});function kl(e){return Xr("MuiFormGroup",e)}Yr("MuiFormGroup",["root","row","error"]);const Cl=$o("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Tl=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiFormGroup"}),{className:r,row:i=!1,...o}=n,a=Ss({props:n,muiFormControl:Cs(),states:["error"]}),s={...n,row:i,error:a.error},l=(e=>{const{classes:t,row:n,error:r}=e;return Ui({root:["root",n&&"row",r&&"error"]},kl,t)})(s);return x.jsx(Cl,{className:Gr(l.root,r),ownerState:s,ref:t,...o})});function Ml(e){return`scale(${e}, ${e**2})`}const Il={entering:{opacity:1,transform:Ml(1)},entered:{opacity:1,transform:"none"}},Pl="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Dl=P.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:i,easing:o,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:h,style:p,timeout:f="auto",TransitionComponent:g=ka,...m}=e,y=La(),v=P.useRef(),b=Bo(),_=P.useRef(null),w=ca(_,_s(i),t),S=e=>t=>{if(e){const n=_.current;void 0===t?e(n):e(n,t)}},k=S(u),C=S((e,t)=>{Na(e);const{duration:n,delay:r,easing:i}=za({style:p,timeout:f,easing:o},{mode:"enter"});let a;"auto"===f?(a=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[b.transitions.create("opacity",{duration:a,delay:r}),b.transitions.create("transform",{duration:Pl?a:.666*a,delay:r,easing:i})].join(","),s&&s(e,t)}),T=S(l),M=S(h),I=S(e=>{const{duration:t,delay:n,easing:r}=za({style:p,timeout:f,easing:o},{mode:"exit"});let i;"auto"===f?(i=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=i):i=t,e.style.transition=[b.transitions.create("opacity",{duration:i,delay:n}),b.transitions.create("transform",{duration:Pl?i:.666*i,delay:Pl?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=Ml(.75),c&&c(e)}),D=S(d);return x.jsx(g,{appear:r,in:a,nodeRef:_,onEnter:C,onEntered:T,onEntering:k,onExit:I,onExited:D,onExiting:M,addEndListener:e=>{"auto"===f&&y.start(v.current||0,e),n&&n(_.current,e)},timeout:"auto"===f?null:f,...m,children:(e,{ownerState:t,...n})=>P.cloneElement(i,{style:{opacity:0,transform:Ml(.75),visibility:"exited"!==e||a?void 0:"hidden",...Il[e],...p,...i.props.style},ref:w,...n})})});function Al(e){return Xr("MuiLink",e)}Dl&&(Dl.muiSupportAuto=!0);const El=Yr("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Rl=({theme:e,ownerState:t})=>{const n=t.color,r=Vn(e,`palette.${n}.main`,!1)||Vn(e,`palette.${n}`,!1)||t.color,i=Vn(e,`palette.${n}.mainChannel`)||Vn(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:fi(r,.4)},Ol={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Ll=$o(bs,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${jn(n.underline)}`],"button"===n.component&&t.button]}})(Qo(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:t})=>"always"===e&&"inherit"!==t.color,style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(is()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:fi(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:fi(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:fi(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{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"},[`&.${El.focusVisible}`]:{outline:"auto"}}}]}))),Nl=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiLink"}),r=Bo(),{className:i,color:o="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:h,...p}=n,[f,g]=P.useState(!1),m={...n,color:o,component:a,focusVisible:f,underline:c,variant:d},y=(e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e;return Ui({root:["root",`underline${jn(i)}`,"button"===n&&"button",r&&"focusVisible"]},Al,t)})(m);return x.jsx(Ll,{color:o,className:Gr(y.root,i),classes:u,component:a,onBlur:e=>{Ha(e.target)||g(!1),s&&s(e)},onFocus:e=>{Ha(e.target)&&g(!0),l&&l(e)},ref:t,ownerState:m,variant:d,...p,sx:[...void 0===Ol[o]?[{color:o}]:[],...Array.isArray(h)?h:[h]],style:{...p.style,..."always"===c&&"inherit"!==o&&!Ol[o]&&{"--Link-underlineColor":Rl({theme:r,ownerState:m})}}})});function zl(e){return Xr("MuiPopover",e)}function Bl(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Fl(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function $l(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Wl(e){return"function"==typeof e?e():e}Yr("MuiPopover",["root","paper"]);const jl=$o(vl,{name:"MuiPopover",slot:"Root"})({}),Vl=$o($a,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Hl=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiPopover"}),{action:r,anchorEl:i,anchorOrigin:o={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:s="anchorEl",children:l,className:u,container:c,elevation:d=8,marginThreshold:h=16,open:p,PaperProps:f={},slots:g={},slotProps:m={},transformOrigin:y={vertical:"top",horizontal:"left"},TransitionComponent:v,transitionDuration:b="auto",TransitionProps:_={},disableScrollLock:w=!1,...S}=n,k=P.useRef(),C={...n,anchorOrigin:o,anchorReference:s,elevation:d,marginThreshold:h,transformOrigin:y,TransitionComponent:v,transitionDuration:b,TransitionProps:_},T=(e=>{const{classes:t}=e;return Ui({root:["root"],paper:["paper"]},zl,t)})(C),M=P.useCallback(()=>{if("anchorPosition"===s)return a;const e=Wl(i),t=(e&&1===e.nodeType?e:ra(k.current).body).getBoundingClientRect();return{top:t.top+Bl(t,o.vertical),left:t.left+Fl(t,o.horizontal)}},[i,o.horizontal,o.vertical,a,s]),I=P.useCallback(e=>({vertical:Bl(e,y.vertical),horizontal:Fl(e,y.horizontal)}),[y.horizontal,y.vertical]),D=P.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=I(t);if("none"===s)return{top:null,left:null,transformOrigin:$l(n)};const r=M();let o=r.top-n.vertical,a=r.left-n.horizontal;const l=o+t.height,u=a+t.width,c=ia(Wl(i)),d=c.innerHeight-h,p=c.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&l>d){const e=l-d;o-=e,n.vertical+=e}if(null!==h&&a<h){const e=a-h;a-=e,n.horizontal+=e}else if(u>p){const e=u-p;a-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(a)}px`,transformOrigin:$l(n)}},[i,s,M,I,h]),[A,E]=P.useState(p),R=P.useCallback(()=>{const e=k.current;if(!e)return;const t=D(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,E(!0)},[D]);P.useEffect(()=>(w&&window.addEventListener("scroll",R),()=>window.removeEventListener("scroll",R)),[i,w,R]);P.useEffect(()=>{p&&R()}),P.useImperativeHandle(r,()=>p?{updatePosition:()=>{R()}}:null,[p,R]),P.useEffect(()=>{if(!p)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}(()=>{R()}),t=ia(Wl(i));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[i,p,R]);let O=b;const L={slots:{transition:v,...g},slotProps:{transition:_,paper:f,...m}},[N,z]=Va("transition",{elementType:Dl,externalForwardedProps:L,ownerState:C,getSlotProps:e=>({...e,onEntering:(t,n)=>{var r;null==(r=e.onEntering)||r.call(e,t,n),R()},onExited:t=>{var n;null==(n=e.onExited)||n.call(e,t),E(!1)}}),additionalProps:{appear:!0,in:p}});"auto"!==b||N.muiSupportAuto||(O=void 0);const B=c||(i?ra(Wl(i)).body:void 0),[F,{slots:$,slotProps:W,...j}]=Va("root",{ref:t,elementType:jl,externalForwardedProps:{...L,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:da("function"==typeof m.backdrop?m.backdrop(C):m.backdrop,{invisible:!0})},container:B,open:p},ownerState:C,className:Gr(T.root,u)}),[V,H]=Va("paper",{ref:k,className:T.paper,elementType:Vl,externalForwardedProps:L,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:A?void 0:{opacity:0}},ownerState:C});return x.jsx(F,{...j,...(G=F,!("string"==typeof G)&&{slots:$,slotProps:W,disableScrollLock:w}),children:x.jsx(N,{...z,timeout:O,children:x.jsx(V,{...H,children:l})})});var G}),Gl=function(e={}){const{createStyledComponent:t=Zi,useThemeProps:n=Qi,componentName:r="MuiStack"}=e,i=t(eo);return P.forwardRef(function(e,t){const o=Wr(n(e)),{component:a="div",direction:s="column",spacing:l=0,divider:u,children:c,className:d,useFlexGap:h=!1,...p}=o,f={direction:s,spacing:l,useFlexGap:h},g=Ui({root:["root"]},e=>Xr(r,e),{});return x.jsx(i,{as:a,ownerState:f,ref:t,className:Gr(g.root,d),...p,children:u?Ji(c,u):c})})}({createStyledComponent:$o("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Jo({props:e,name:"MuiStack"})});function Ul(e){return Xr("MuiSwitch",e)}const Xl=Yr("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Yl=$o("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${jn(n.edge)}`],t[`size${jn(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Xl.thumb}`]:{width:16,height:16},[`& .${Xl.switchBase}`]:{padding:4,[`&.${Xl.checked}`]:{transform:"translateX(16px)"}}}}]}),ql=$o(Ys,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Xl.input}`]:t.input},"default"!==n.color&&t[`color${jn(n.color)}`]]}})(Qo(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Xl.checked}`]:{transform:"translateX(20px)"},[`&.${Xl.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Xl.checked} + .${Xl.track}`]:{opacity:.5},[`&.${Xl.disabled} + .${Xl.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${Xl.input}`]:{left:"-100%",width:"300%"}})),Qo(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:fi(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(is(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Xl.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:fi(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xl.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?vi(e.palette[t].main,.62):mi(e.palette[t].main,.55)}`}},[`&.${Xl.checked} + .${Xl.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),Kl=$o("span",{name:"MuiSwitch",slot:"Track"})(Qo(({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),Zl=$o("span",{name:"MuiSwitch",slot:"Thumb"})(Qo(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Ql=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiSwitch"}),{className:r,color:i="primary",edge:o=!1,size:a="medium",sx:s,slots:l={},slotProps:u={},...c}=n,d={...n,color:i,edge:o,size:a},h=(e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:a}=e,s=Ui({root:["root",n&&`edge${jn(n)}`,`size${jn(r)}`],switchBase:["switchBase",`color${jn(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},Ul,t);return{...t,...s}})(d),p={slots:l,slotProps:u},[f,g]=Va("root",{className:Gr(h.root,r),elementType:Yl,externalForwardedProps:p,ownerState:d,additionalProps:{sx:s}}),[m,y]=Va("thumb",{className:h.thumb,elementType:Zl,externalForwardedProps:p,ownerState:d}),v=x.jsx(m,{...y}),[b,_]=Va("track",{className:h.track,elementType:Kl,externalForwardedProps:p,ownerState:d});return x.jsxs(f,{...g,children:[x.jsx(ql,{type:"checkbox",icon:v,checkedIcon:v,ref:t,ownerState:d,...c,classes:{...h,root:h.switchBase},slots:{...l.switchBase&&{root:l.switchBase},...l.input&&{input:l.input}},slotProps:{...u.switchBase&&{root:"function"==typeof u.switchBase?u.switchBase(d):u.switchBase},...u.input&&{input:"function"==typeof u.input?u.input(d):u.input}}}),x.jsx(b,{..._})]})}),Jl=P.createContext();function eu(e){return Xr("MuiTable",e)}Yr("MuiTable",["root","stickyHeader"]);const tu=$o("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Qo(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),nu="table",ru=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiTable"}),{className:r,component:i=nu,padding:o="normal",size:a="medium",stickyHeader:s=!1,...l}=n,u={...n,component:i,padding:o,size:a,stickyHeader:s},c=(e=>{const{classes:t,stickyHeader:n}=e;return Ui({root:["root",n&&"stickyHeader"]},eu,t)})(u),d=P.useMemo(()=>({padding:o,size:a,stickyHeader:s}),[o,a,s]);return x.jsx(Jl.Provider,{value:d,children:x.jsx(tu,{as:i,role:i===nu?null:"table",ref:t,className:Gr(c.root,r),ownerState:u,...l})})}),iu=P.createContext();function ou(e){return Xr("MuiTableBody",e)}Yr("MuiTableBody",["root"]);const au=$o("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),su={variant:"body"},lu="tbody",uu=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiTableBody"}),{className:r,component:i=lu,...o}=n,a={...n,component:i},s=(e=>{const{classes:t}=e;return Ui({root:["root"]},ou,t)})(a);return x.jsx(iu.Provider,{value:su,children:x.jsx(au,{className:Gr(s.root,r),as:i,ref:t,role:i===lu?null:"rowgroup",ownerState:a,...o})})});function cu(e){return Xr("MuiTableCell",e)}const du=Yr("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),hu=$o("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${jn(n.size)}`],"normal"!==n.padding&&t[`padding${jn(n.padding)}`],"inherit"!==n.align&&t[`align${jn(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Qo(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?vi(fi(e.palette.divider,1),.88):mi(fi(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${du.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),pu=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiTableCell"}),{align:r="inherit",className:i,component:o,padding:a,scope:s,size:l,sortDirection:u,variant:c,...d}=n,h=P.useContext(Jl),p=P.useContext(iu),f=p&&"head"===p.variant;let g;g=o||(f?"th":"td");let m=s;"td"===g?m=void 0:!m&&f&&(m="col");const y=c||p&&p.variant,v={...n,align:r,component:g,padding:a||(h&&h.padding?h.padding:"normal"),size:l||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:"head"===y&&h&&h.stickyHeader,variant:y},b=(e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:a}=e;return Ui({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${jn(r)}`,"normal"!==i&&`padding${jn(i)}`,`size${jn(o)}`]},cu,t)})(v);let _=null;return u&&(_="asc"===u?"ascending":"descending"),x.jsx(hu,{as:g,ref:t,className:Gr(b.root,i),"aria-sort":_,scope:m,ownerState:v,...d})});function fu(e){return Xr("MuiTableContainer",e)}Yr("MuiTableContainer",["root"]);const gu=$o("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),mu=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiTableContainer"}),{className:r,component:i="div",...o}=n,a={...n,component:i},s=(e=>{const{classes:t}=e;return Ui({root:["root"]},fu,t)})(a);return x.jsx(gu,{ref:t,as:i,className:Gr(s.root,r),ownerState:a,...o})});function yu(e){return Xr("MuiTableHead",e)}Yr("MuiTableHead",["root"]);const vu=$o("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),xu={variant:"head"},bu="thead",_u=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiTableHead"}),{className:r,component:i=bu,...o}=n,a={...n,component:i},s=(e=>{const{classes:t}=e;return Ui({root:["root"]},yu,t)})(a);return x.jsx(iu.Provider,{value:xu,children:x.jsx(vu,{as:i,className:Gr(s.root,r),ref:t,role:i===bu?null:"rowgroup",ownerState:a,...o})})});function wu(e){return Xr("MuiTableRow",e)}const Su=Yr("MuiTableRow",["root","selected","hover","head","footer"]),ku=$o("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Qo(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Su.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Su.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:fi(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}))`:fi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Cu="tr",Tu=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiTableRow"}),{className:r,component:i=Cu,hover:o=!1,selected:a=!1,...s}=n,l=P.useContext(iu),u={...n,component:i,hover:o,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant},c=(e=>{const{classes:t,selected:n,hover:r,head:i,footer:o}=e;return Ui({root:["root",n&&"selected",r&&"hover",i&&"head",o&&"footer"]},wu,t)})(u);return x.jsx(ku,{as:i,ref:t,className:Gr(c.root,r),role:i===Cu?null:"row",ownerState:u,...s})});function Mu({content:e,formatter:t,round:n}){return t?t(e):n?((e,t=0)=>{const n=Math.pow(10,t);return Math.round(e*n)/n})(e,n):e}function Iu({rows:e,structure:t,hasTotalRow:n,defaultSortKey:r}){const{onTableHeadClick:i,sortedRows:o,currentSortField:a}=function(e,{hasTotalRow:t=!1,defaultSortKey:n="name"}={hasTotalRow:!1,defaultSortKey:"name"}){const[r,i]=P.useState(e),[o,a]=P.useState(!1),s=P.useRef(),l=n=>{const r=(t?e.slice(0,-1):[...e]).sort(function(e,t){const n=t?-1:1;return function(t,r){const i=t[e],o=r[e];return i<o?-1*n:i>o?1*n:0}}(n,n===s.current&&!o));i(t?[...r,...e.slice(-1)]:r)},u=P.useCallback(e=>{s.current||(s.current=n);const t=e.target.getAttribute("data-sortkey");if(t===s.current){if(o)return a(!1),s.current=void 0,void l(n);a(!0)}else o&&a(!1);l(t),s.current=t},[s,e,o]);return P.useEffect(()=>{e.length?l(s.current||n):l.length&&i(e)},[e]),{onTableHeadClick:u,sortedRows:r,currentSortField:s.current}}(e,{hasTotalRow:n,defaultSortKey:r});return x.jsx(mu,{component:$a,children:x.jsxs(ru,{children:[x.jsx(_u,{sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper"},children:x.jsx(Tu,{children:t.map(({title:e,key:t})=>x.jsx(pu,{"data-sortkey":t,onClick:i,sx:{cursor:"pointer",color:a===t?"primary.main":"text.primary"},children:e},`table-head-${t}`))})}),x.jsx(uu,{children:o.map((e,n)=>x.jsx(Tu,{children:t.map(({key:t,...n},r)=>x.jsx(pu,{children:x.jsx(Mu,{content:e[t],...n})},`table-row=${r}`))},`${e.name}-${n}`))})]})})}const Pu=[{key:"count",title:"# occurrences"},{key:"msg",title:"Message"},{key:"traceback",title:"Traceback"}];function Du({exceptions:e}){return x.jsx(Iu,{rows:e,structure:Pu})}const Au=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message"}];function Eu({errors:e}){return x.jsx(Iu,{rows:e,structure:Au})}const Ru=[{key:"method",title:"Method"},{key:"name",title:"Name"}];function Ou({responseTimes:e}){const t=P.useMemo(()=>Object.keys(e[0]).filter(e=>Boolean(Number(e))).map(e=>({key:e,title:100*Number(e)+"%ile (ms)"})),[e]);return x.jsx(Iu,{hasTotalRow:!0,rows:e,structure:[...Ru,...t]})}const Lu=function(e){function t(t,n){return x.jsx(na,{"data-testid":void 0,ref:n,...t,children:e})}return t.muiName=na.muiName,P.memo(P.forwardRef(t))}(x.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}));function Nu({structure:e,selectedColumns:t,addColumn:n,removeColumn:r}){const[i,o]=P.useState(null);return x.jsxs(Gl,{sx:{alignSelf:{xs:"end",lg:"start"},my:2},children:[x.jsx(Hs,{onClick:e=>o(e.currentTarget),variant:"outlined",children:x.jsx(Lu,{})}),x.jsx(Hl,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"left"},onClose:()=>o(null),open:Boolean(i),children:x.jsx(Tl,{sx:{p:2},children:e.map(({key:e,title:i})=>x.jsx(Sl,{control:x.jsx(Ql,{checked:t.includes(e),onChange:()=>{t.includes(e)?r(e):n(e)}}),label:i},e))})})]})}const zu=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},...B.percentilesToStatistics?B.percentilesToStatistics.map(e=>({title:100*e+"%ile (ms)",key:`responseTimePercentile${e}`})):[],{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 Bu({stats:e,tableStructure:t=zu}){const{selectedColumns:n,addColumn:r,removeColumn:i,filteredStructure:o}=function(e){const[t,n]=P.useState(e.map(e=>e.key));return{selectedColumns:t,addColumn:e=>{n([...t,e])},removeColumn:e=>{n(t.filter(t=>t!==e))},filteredStructure:(r=e,r.filter(e=>t.includes(e.key)))};var r}(t);return x.jsxs(Rs,{sx:{display:"flex",flexDirection:{xs:"column",lg:"row-reverse",alignItems:"flex-start"},columnGap:1},children:[x.jsx(Nu,{addColumn:r,removeColumn:i,selectedColumns:n,structure:t}),x.jsx(Iu,{hasTotalRow:!0,rows:e,structure:o})]})}
|
130
|
+
`:null,ds=Vo("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Wn(n.color)}`]]}})(Qo(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:us||{animation:`${ss} 1.4s linear infinite`}},...Object.entries(e.palette).filter(is()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),hs=Vo("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),ps=Vo("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Wn(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Qo(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:cs||{animation:`${ls} 1.4s ease-in-out infinite`}}]}))),fs=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:o=!1,size:a=40,style:s,thickness:l=3.6,value:u=0,variant:c="indeterminate",...d}=n,h={...n,color:i,disableShrink:o,size:a,thickness:l,value:u,variant:c},p=(e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e;return Ui({root:["root",n,`color${Wn(r)}`],svg:["svg"],circle:["circle",`circle${Wn(n)}`,i&&"circleDisableShrink"]},os,t)})(h),f={},g={},m={};if("determinate"===c){const e=2*Math.PI*((as-l)/2);f.strokeDasharray=e.toFixed(3),m["aria-valuenow"]=Math.round(u),f.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform="rotate(-90deg)"}return x.jsx(ds,{className:Gr(p.root,r),style:{width:a,height:a,...g,...s},ownerState:h,ref:t,role:"progressbar",...m,...d,children:x.jsx(hs,{className:p.svg,ownerState:h,viewBox:"22 22 44 44",children:x.jsx(ps,{className:p.circle,style:f,ownerState:h,cx:as,cy:as,r:(as-l)/2,fill:"none",strokeWidth:l})})})});function gs(e){return Xr("MuiTypography",e)}Yr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ms={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},ys=$r,vs=Vo("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Wn(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Qo(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([e,t])=>"inherit"!==e&&t&&"object"==typeof t).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(is()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries((null==(t=e.palette)?void 0:t.text)||{}).filter(([,e])=>"string"==typeof e).map(([t])=>({props:{color:`text${Wn(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}})),xs={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},_s=P.forwardRef(function(e,t){const{color:n,...r}=Jo({props:e,name:"MuiTypography"}),i=ys({...r,...!ms[n]&&{color:n}}),{align:o="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:h=xs,...p}=i,f={...i,align:o,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:h},g=s||(c?"p":h[d]||xs[d])||"span",m=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e;return Ui({root:["root",o,"inherit"!==e.align&&`align${Wn(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]},gs,a)})(f);return x.jsx(vs,{as:g,ref:t,className:Gr(m.root,a),...p,ownerState:f,style:{..."inherit"!==o&&{"--Typography-textAlign":o},...p.style}})});function bs(e){var t;return parseInt(P.version,10)>=19?(null==(t=null==e?void 0:e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const ws=P.forwardRef(function(e,t){const{children:n,container:r,disablePortal:i=!1}=e,[o,a]=P.useState(null),s=ca(P.isValidElement(n)?bs(n):null,t);if(si(()=>{i||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,i]),si(()=>{if(o&&!i)return oa(t,o),()=>{oa(t,null)}},[t,o,i]),i){if(P.isValidElement(n)){const e={ref:s};return P.cloneElement(n,e)}return n}return o?ga.createPortal(n,o):o});function Ss({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}const ks=P.createContext(void 0);function Cs(){return P.useContext(ks)}const Ms={entering:{opacity:1},entered:{opacity:1}},Ts=P.forwardRef(function(e,t){const n=Bo(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:h,onExited:p,onExiting:f,style:g,timeout:m=r,TransitionComponent:y=ka,...v}=e,_=P.useRef(null),b=ca(_,bs(a),t),w=e=>t=>{if(e){const n=_.current;void 0===t?e(n):e(n,t)}},S=w(d),k=w((e,t)=>{za(e);const r=Na({style:g,timeout:m,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)}),C=w(c),M=w(f),T=w(e=>{const t=Na({style:g,timeout:m,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),h&&h(e)}),I=w(p);return x.jsx(y,{appear:o,in:l,nodeRef:_,onEnter:k,onEntered:C,onEntering:S,onExit:T,onExited:I,onExiting:M,addEndListener:e=>{i&&i(_.current,e)},timeout:m,...v,children:(e,{ownerState:t,...n})=>P.cloneElement(a,{style:{opacity:0,visibility:"exited"!==e||l?void 0:"hidden",...Ms[e],...g,...a.props.style},ref:b,...n})})});function Is(e){return Xr("MuiBackdrop",e)}Yr("MuiBackdrop",["root","invisible"]);const Ps=Vo("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Ds=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiBackdrop"}),{children:r,className:i,component:o="div",invisible:a=!1,open:s,components:l={},componentsProps:u={},slotProps:c={},slots:d={},TransitionComponent:h,transitionDuration:p,...f}=n,g={...n,component:o,invisible:a},m=(e=>{const{classes:t,invisible:n}=e;return Ui({root:["root",n&&"invisible"]},Is,t)})(g),y={slots:{transition:h,root:l.Root,...d},slotProps:{...u,...c}},[v,_]=Ha("root",{elementType:Ps,externalForwardedProps:y,className:Gr(m.root,i),ownerState:g}),[b,w]=Ha("transition",{elementType:Ts,externalForwardedProps:y,ownerState:g});return x.jsx(b,{in:s,timeout:p,...f,...w,children:x.jsx(v,{"aria-hidden":!0,..._,classes:m,ref:t,children:r})})}),As=Yr("MuiBox",["root"]),Es=zo(),Rs=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,o=xn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Or);return P.forwardRef(function(e,a){const s=Fr(n),{className:l,component:u="div",...c}=$r(e);return x.jsx(o,{as:u,ref:a,className:Gr(l,i?i(r):r),theme:t&&s[t]||s,...c})})}({themeId:we,defaultTheme:Es,defaultClassName:As.root,generateClassName:Hr.generate});function Os(e){return Xr("MuiButton",e)}const Ls=Yr("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),zs=P.createContext({}),Ns=P.createContext(void 0),Bs=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Fs=Vo(ns,{shouldForwardProp:e=>Fo(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Wn(n.color)}`],t[`size${Wn(n.size)}`],t[`${n.variant}Size${Wn(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Qo(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Ls.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Ls.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Ls.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Ls.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(is()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:fi(e.palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:fi(e.palette[t].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:fi(e.palette[t].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:fi(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:fi(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ls.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ls.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Ls.loading}`]:{color:"transparent"}}}]}})),Vs=Vo("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Wn(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Bs]})),$s=Vo("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Wn(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Bs]})),Ws=Vo("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Hs=Vo("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),js=P.forwardRef(function(e,t){const n=P.useContext(zs),r=P.useContext(Ns),i=Jo({props:oi(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:h,focusVisibleClassName:p,fullWidth:f=!1,id:g,loading:m=null,loadingIndicator:y,loadingPosition:v="center",size:_="medium",startIcon:b,type:w,variant:S="text",...k}=i,C=la(g),M=y??x.jsx(fs,{"aria-labelledby":C,color:"inherit",size:16}),T={...i,color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:f,loading:m,loadingIndicator:M,loadingPosition:v,size:_,type:w,variant:S},I=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,loading:a,loadingPosition:s,classes:l}=e,u=Ui({root:["root",a&&"loading",o,`${o}${Wn(t)}`,`size${Wn(i)}`,`${o}Size${Wn(i)}`,`color${Wn(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${Wn(s)}`],startIcon:["icon","startIcon",`iconSize${Wn(i)}`],endIcon:["icon","endIcon",`iconSize${Wn(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Os,l);return{...l,...u}})(T),D=(b||m&&"start"===v)&&x.jsx(Vs,{className:I.startIcon,ownerState:T,children:b||x.jsx(Hs,{className:I.loadingIconPlaceholder,ownerState:T})}),A=(h||m&&"end"===v)&&x.jsx($s,{className:I.endIcon,ownerState:T,children:h||x.jsx(Hs,{className:I.loadingIconPlaceholder,ownerState:T})}),E=r||"",R="boolean"==typeof m?x.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:m&&x.jsx(Ws,{className:I.loadingIndicator,ownerState:T,children:M})}):null;return x.jsxs(Fs,{ownerState:T,className:Gr(n.className,I.root,l,E),component:s,disabled:u||m,focusRipple:!d,focusVisibleClassName:Gr(I.focusVisible,p),ref:t,type:w,id:m?C:g,...k,classes:I,children:[D,"end"!==v&&R,o,"end"===v&&R,A]})});function Gs(e){return Xr("PrivateSwitchBase",e)}Yr("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Us=Vo(ns)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),Xs=Vo("input",{shouldForwardProp:Fo})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ys=P.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:i,defaultChecked:o,disabled:a,disableFocusRipple:s=!1,edge:l=!1,icon:u,id:c,inputProps:d,inputRef:h,name:p,onBlur:f,onChange:g,onFocus:m,readOnly:y,required:v=!1,tabIndex:_,type:b,value:w,slots:S={},slotProps:k={},...C}=e,[M,T]=function(e){const{controlled:t,default:n}=e,{current:r}=P.useRef(void 0!==t),[i,o]=P.useState(n);return[r?t:i,P.useCallback(e=>{r||o(e)},[])]}({controlled:r,default:Boolean(o)}),I=Cs();let D=a;I&&void 0===D&&(D=I.disabled);const A="checkbox"===b||"radio"===b,E={...e,checked:M,disabled:D,disableFocusRipple:s,edge:l},R=(e=>{const{classes:t,checked:n,disabled:r,edge:i}=e;return Ui({root:["root",n&&"checked",r&&"disabled",i&&`edge${Wn(i)}`],input:["input"]},Gs,t)})(E),O={slots:S,slotProps:{input:d,...k}},[L,z]=Ha("root",{ref:t,elementType:Us,className:R.root,shouldForwardComponentProp:!0,externalForwardedProps:{...O,component:"span",...C},getSlotProps:e=>({...e,onFocus:t=>{var n;null==(n=e.onFocus)||n.call(e,t),(e=>{m&&m(e),I&&I.onFocus&&I.onFocus(e)})(t)},onBlur:t=>{var n;null==(n=e.onBlur)||n.call(e,t),(e=>{f&&f(e),I&&I.onBlur&&I.onBlur(e)})(t)}}),ownerState:E,additionalProps:{centerRipple:!0,focusRipple:!s,disabled:D,role:void 0,tabIndex:null}}),[N,B]=Ha("input",{ref:h,elementType:Xs,className:R.input,externalForwardedProps:O,getSlotProps:e=>({...e,onChange:t=>{var n;null==(n=e.onChange)||n.call(e,t),(e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;T(t),g&&g(e,t)})(t)}}),ownerState:E,additionalProps:{autoFocus:n,checked:r,defaultChecked:o,disabled:D,id:A?c:void 0,name:p,readOnly:y,required:v,tabIndex:_,type:b,..."checkbox"===b&&void 0===w?{}:{value:w}}});return x.jsxs(L,{...z,children:[x.jsx(N,{...B}),M?i:u]})}),Zs=function(e={}){const{createStyledComponent:t=Yi,useThemeProps:n=Zi,componentName:r="MuiContainer"}=e,i=t(({theme:e,ownerState:t})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}}),({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce((t,n)=>{const r=n,i=e.breakpoints.values[r];return 0!==i&&(t[e.breakpoints.up(r)]={maxWidth:`${i}${e.breakpoints.unit}`}),t},{}),({theme:e,ownerState:t})=>({..."xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},...t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}}));return P.forwardRef(function(e,t){const o=n(e),{className:a,component:s="div",disableGutters:l=!1,fixed:u=!1,maxWidth:c="lg",classes:d,...h}=o,p={...o,component:s,disableGutters:l,fixed:u,maxWidth:c},f=((e,t)=>{const{classes:n,fixed:r,disableGutters:i,maxWidth:o}=e;return Ui({root:["root",o&&`maxWidth${Wn(String(o))}`,r&&"fixed",i&&"disableGutters"]},e=>Xr(t,e),n)})(p,r);return x.jsx(i,{as:s,ownerState:p,className:Gr(f.root,a),ref:t,...h})})}({createStyledComponent:Vo("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Wn(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Jo({props:e,name:"MuiContainer"})}),qs="function"==typeof Ko({}),Ks=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),Qs=e=>({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}}),Js=(e,t=!1)=>{var n,r;const i={};t&&e.colorSchemes&&"function"==typeof e.getColorSchemeSelector&&Object.entries(e.colorSchemes).forEach(([t,n])=>{var r,o;const a=e.getColorSchemeSelector(t);a.startsWith("@")?i[a]={":root":{colorScheme:null==(r=n.palette)?void 0:r.mode}}:i[a.replace(/\s*&/,"")]={colorScheme:null==(o=n.palette)?void 0:o.mode}});let o={html:Ks(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Qs(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...i};const a=null==(r=null==(n=e.components)?void 0:n.MuiCssBaseline)?void 0:r.styleOverrides;return a&&(o=[o,a]),o},el="mui-ecs",tl=Ko(qs?({theme:e,enableColorScheme:t})=>Js(e,t):({theme:e})=>(e=>{const t=Js(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${el})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{var i,o;const a=e.getColorSchemeSelector(t);a.startsWith("@")?n[a]={[`:root:not(:has(.${el}))`]:{colorScheme:null==(i=r.palette)?void 0:i.mode}}:n[a.replace(/\s*&/,"")]={[`&:not(:has(.${el}))`]:{colorScheme:null==(o=r.palette)?void 0:o.mode}}}),t})(e));function nl(e){const t=Jo({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return x.jsxs(P.Fragment,{children:[qs&&x.jsx(tl,{enableColorScheme:r}),!qs&&!r&&x.jsx("span",{className:el,style:{display:"none"}}),n]})}function rl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function il(e){return parseInt(ia(e).getComputedStyle(e).paddingRight,10)||0}function ol(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,e=>{const t=!o.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&rl(e,i)})}function al(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function sl(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=ra(e);return t.body===e?ia(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}(ia(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${il(r)+e}px`;const t=ra(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${il(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=ra(r).body;else{const t=r.parentElement,n=ia(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}const ll=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ul(e){const t=[],n=[];return Array.from(e.querySelectorAll(ll)).forEach((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function cl(){return!0}function dl(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=ul,isEnabled:a=cl,open:s}=e,l=P.useRef(!1),u=P.useRef(null),c=P.useRef(null),d=P.useRef(null),h=P.useRef(null),p=P.useRef(!1),f=P.useRef(null),g=ca(bs(t),f),m=P.useRef(null);P.useEffect(()=>{s&&f.current&&(p.current=!n)},[n,s]),P.useEffect(()=>{if(!s||!f.current)return;const e=ra(f.current);return f.current.contains(e.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),p.current&&f.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),P.useEffect(()=>{if(!s||!f.current)return;const e=ra(f.current),t=t=>{m.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},n=()=>{var t,n;const i=f.current;if(null===i)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(i.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!p.current)return;let s=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(s=o(f.current)),s.length>0){const e=Boolean((null==(t=m.current)?void 0:t.shiftKey)&&"Tab"===(null==(n=m.current)?void 0:n.key)),r=s[0],i=s[s.length-1];"string"!=typeof r&&"string"!=typeof i&&(e?i.focus():r.focus())}else i.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,i,a,s,o]);const y=e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0};return x.jsxs(P.Fragment,{children:[x.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),P.cloneElement(t,{ref:g,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0,h.current=e.target;const n=t.props.onFocus;n&&n(e)}}),x.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}const hl=()=>{},pl=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&rl(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);ol(t,e.mount,e.modalRef,r,!0);const i=al(this.containers,e=>e.container===t);return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=al(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=sl(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=al(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&rl(e.modalRef,t),ol(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&rl(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function fl(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:a,children:s,onClose:l,open:u,rootRef:c}=e,d=P.useRef({}),h=P.useRef(null),p=P.useRef(null),f=ca(p,c),[g,m]=P.useState(!u),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let v=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(v=!1);const x=()=>(d.current.modalRef=p.current,d.current.mount=h.current,d.current),_=()=>{pl.mount(x(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},b=ua(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ra(h.current).body;pl.add(x(),e),p.current&&_()}),w=()=>pl.isTopModal(x()),S=ua(e=>{h.current=e,e&&(u&&w()?_():p.current&&rl(p.current,v))}),k=P.useCallback(()=>{pl.remove(x(),v)},[v]);P.useEffect(()=>()=>{k()},[k]),P.useEffect(()=>{u?b():y&&i||k()},[u,k,y,i,b]);const C=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),l&&l(t,"escapeKeyDown")))},M=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&l&&l(t,"backdropClick")};return{getRootProps:(t={})=>{const n=$a(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:C(r),ref:f}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:M(t),open:u}},getTransitionProps:()=>({onEnter:Zo(()=>{m(!1),o&&o()},(null==s?void 0:s.props.onEnter)??hl),onExited:Zo(()=>{m(!0),a&&a(),i&&k()},(null==s?void 0:s.props.onExited)??hl)}),rootRef:f,portalRef:S,isTopModal:w,exited:g,hasTransition:y}}function gl(e){return Xr("MuiModal",e)}Yr("MuiModal",["root","hidden","backdrop"]);const ml=Vo("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Qo(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),yl=Vo(Ds,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),vl=P.forwardRef(function(e,t){const n=Jo({name:"MuiModal",props:e}),{BackdropComponent:r=yl,BackdropProps:i,classes:o,className:a,closeAfterTransition:s=!1,children:l,container:u,component:c,components:d={},componentsProps:h={},disableAutoFocus:p=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:g=!1,disablePortal:m=!1,disableRestoreFocus:y=!1,disableScrollLock:v=!1,hideBackdrop:_=!1,keepMounted:b=!1,onClose:w,onTransitionEnter:S,onTransitionExited:k,open:C,slotProps:M={},slots:T={},theme:I,...D}=n,A={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:f,disableEscapeKeyDown:g,disablePortal:m,disableRestoreFocus:y,disableScrollLock:v,hideBackdrop:_,keepMounted:b},{getRootProps:E,getBackdropProps:R,getTransitionProps:O,portalRef:L,isTopModal:z,exited:N,hasTransition:B}=fl({...A,rootRef:t}),F={...A,exited:N},V=(e=>{const{open:t,exited:n,classes:r}=e;return Ui({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},gl,r)})(F),$={};if(void 0===l.props.tabIndex&&($.tabIndex="-1"),B){const{onEnter:e,onExited:t}=O();$.onEnter=e,$.onExited=t}const W={slots:{root:d.Root,backdrop:d.Backdrop,...T},slotProps:{...h,...M}},[H,j]=Ha("root",{ref:t,elementType:ml,externalForwardedProps:{...W,...D,component:c},getSlotProps:E,ownerState:F,className:Gr(a,null==V?void 0:V.root,!F.open&&F.exited&&(null==V?void 0:V.hidden))}),[G,U]=Ha("backdrop",{ref:null==i?void 0:i.ref,elementType:r,externalForwardedProps:W,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>R({...e,onClick:t=>{(null==e?void 0:e.onClick)&&e.onClick(t)}}),className:Gr(null==i?void 0:i.className,null==V?void 0:V.backdrop),ownerState:F});return b||C||B&&!N?x.jsx(ws,{ref:L,container:u,disablePortal:m,children:x.jsxs(H,{...j,children:[!_&&r?x.jsx(G,{...U}):null,x.jsx(dl,{disableEnforceFocus:f,disableAutoFocus:p,disableRestoreFocus:y,isEnabled:z,open:C,children:P.cloneElement(l,$)})]})}):null});function xl(e){return Xr("MuiFormControlLabel",e)}const _l=Yr("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),bl=Vo("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_l.label}`]:t.label},t.root,t[`labelPlacement${Wn(n.labelPlacement)}`]]}})(Qo(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${_l.disabled}`]:{cursor:"default"},[`& .${_l.label}`]:{[`&.${_l.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>"start"===e||"top"===e||"bottom"===e,style:{marginLeft:16}}]}))),wl=Vo("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Qo(({theme:e})=>({[`&.${_l.error}`]:{color:(e.vars||e).palette.error.main}}))),Sl=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiFormControlLabel"}),{checked:r,className:i,componentsProps:o={},control:a,disabled:s,disableTypography:l,inputRef:u,label:c,labelPlacement:d="end",name:h,onChange:p,required:f,slots:g={},slotProps:m={},value:y,...v}=n,_=Cs(),b=s??a.props.disabled??(null==_?void 0:_.disabled),w=f??a.props.required,S={disabled:b,required:w};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===a.props[e]&&void 0!==n[e]&&(S[e]=n[e])});const k=Ss({props:n,muiFormControl:_,states:["error"]}),C={...n,disabled:b,labelPlacement:d,required:w,error:k.error},M=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e;return Ui({root:["root",n&&"disabled",`labelPlacement${Wn(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]},xl,t)})(C),T={slots:g,slotProps:{...o,...m}},[I,D]=Ha("typography",{elementType:_s,externalForwardedProps:T,ownerState:C});let A=c;return null==A||A.type===_s||l||(A=x.jsx(I,{component:"span",...D,className:Gr(M.label,null==D?void 0:D.className),children:A})),x.jsxs(bl,{className:Gr(M.root,i),ownerState:C,ref:t,...v,children:[P.cloneElement(a,S),w?x.jsxs("div",{children:[A,x.jsxs(wl,{ownerState:C,"aria-hidden":!0,className:M.asterisk,children:[" ","*"]})]}):A]})});function kl(e){return Xr("MuiFormGroup",e)}Yr("MuiFormGroup",["root","row","error"]);const Cl=Vo("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Ml=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiFormGroup"}),{className:r,row:i=!1,...o}=n,a=Ss({props:n,muiFormControl:Cs(),states:["error"]}),s={...n,row:i,error:a.error},l=(e=>{const{classes:t,row:n,error:r}=e;return Ui({root:["root",n&&"row",r&&"error"]},kl,t)})(s);return x.jsx(Cl,{className:Gr(l.root,r),ownerState:s,ref:t,...o})});function Tl(e){return`scale(${e}, ${e**2})`}const Il={entering:{opacity:1,transform:Tl(1)},entered:{opacity:1,transform:"none"}},Pl="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Dl=P.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:i,easing:o,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:h,style:p,timeout:f="auto",TransitionComponent:g=ka,...m}=e,y=La(),v=P.useRef(),_=Bo(),b=P.useRef(null),w=ca(b,bs(i),t),S=e=>t=>{if(e){const n=b.current;void 0===t?e(n):e(n,t)}},k=S(u),C=S((e,t)=>{za(e);const{duration:n,delay:r,easing:i}=Na({style:p,timeout:f,easing:o},{mode:"enter"});let a;"auto"===f?(a=_.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[_.transitions.create("opacity",{duration:a,delay:r}),_.transitions.create("transform",{duration:Pl?a:.666*a,delay:r,easing:i})].join(","),s&&s(e,t)}),M=S(l),T=S(h),I=S(e=>{const{duration:t,delay:n,easing:r}=Na({style:p,timeout:f,easing:o},{mode:"exit"});let i;"auto"===f?(i=_.transitions.getAutoHeightDuration(e.clientHeight),v.current=i):i=t,e.style.transition=[_.transitions.create("opacity",{duration:i,delay:n}),_.transitions.create("transform",{duration:Pl?i:.666*i,delay:Pl?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=Tl(.75),c&&c(e)}),D=S(d);return x.jsx(g,{appear:r,in:a,nodeRef:b,onEnter:C,onEntered:M,onEntering:k,onExit:I,onExited:D,onExiting:T,addEndListener:e=>{"auto"===f&&y.start(v.current||0,e),n&&n(b.current,e)},timeout:"auto"===f?null:f,...m,children:(e,{ownerState:t,...n})=>P.cloneElement(i,{style:{opacity:0,transform:Tl(.75),visibility:"exited"!==e||a?void 0:"hidden",...Il[e],...p,...i.props.style},ref:w,...n})})});function Al(e){return Xr("MuiLink",e)}Dl&&(Dl.muiSupportAuto=!0);const El=Yr("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Rl=({theme:e,ownerState:t})=>{const n=t.color,r=Hn(e,`palette.${n}.main`,!1)||Hn(e,`palette.${n}`,!1)||t.color,i=Hn(e,`palette.${n}.mainChannel`)||Hn(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:fi(r,.4)},Ol={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Ll=Vo(_s,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Wn(n.underline)}`],"button"===n.component&&t.button]}})(Qo(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:t})=>"always"===e&&"inherit"!==t.color,style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(is()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:fi(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:fi(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:fi(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{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"},[`&.${El.focusVisible}`]:{outline:"auto"}}}]}))),zl=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiLink"}),r=Bo(),{className:i,color:o="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:h,...p}=n,[f,g]=P.useState(!1),m={...n,color:o,component:a,focusVisible:f,underline:c,variant:d},y=(e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e;return Ui({root:["root",`underline${Wn(i)}`,"button"===n&&"button",r&&"focusVisible"]},Al,t)})(m);return x.jsx(Ll,{color:o,className:Gr(y.root,i),classes:u,component:a,onBlur:e=>{ja(e.target)||g(!1),s&&s(e)},onFocus:e=>{ja(e.target)&&g(!0),l&&l(e)},ref:t,ownerState:m,variant:d,...p,sx:[...void 0===Ol[o]?[{color:o}]:[],...Array.isArray(h)?h:[h]],style:{...p.style,..."always"===c&&"inherit"!==o&&!Ol[o]&&{"--Link-underlineColor":Rl({theme:r,ownerState:m})}}})});function Nl(e){return Xr("MuiPopover",e)}function Bl(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Fl(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Vl(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function $l(e){return"function"==typeof e?e():e}Yr("MuiPopover",["root","paper"]);const Wl=Vo(vl,{name:"MuiPopover",slot:"Root"})({}),Hl=Vo(Va,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),jl=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiPopover"}),{action:r,anchorEl:i,anchorOrigin:o={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:s="anchorEl",children:l,className:u,container:c,elevation:d=8,marginThreshold:h=16,open:p,PaperProps:f={},slots:g={},slotProps:m={},transformOrigin:y={vertical:"top",horizontal:"left"},TransitionComponent:v,transitionDuration:_="auto",TransitionProps:b={},disableScrollLock:w=!1,...S}=n,k=P.useRef(),C={...n,anchorOrigin:o,anchorReference:s,elevation:d,marginThreshold:h,transformOrigin:y,TransitionComponent:v,transitionDuration:_,TransitionProps:b},M=(e=>{const{classes:t}=e;return Ui({root:["root"],paper:["paper"]},Nl,t)})(C),T=P.useCallback(()=>{if("anchorPosition"===s)return a;const e=$l(i),t=(e&&1===e.nodeType?e:ra(k.current).body).getBoundingClientRect();return{top:t.top+Bl(t,o.vertical),left:t.left+Fl(t,o.horizontal)}},[i,o.horizontal,o.vertical,a,s]),I=P.useCallback(e=>({vertical:Bl(e,y.vertical),horizontal:Fl(e,y.horizontal)}),[y.horizontal,y.vertical]),D=P.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=I(t);if("none"===s)return{top:null,left:null,transformOrigin:Vl(n)};const r=T();let o=r.top-n.vertical,a=r.left-n.horizontal;const l=o+t.height,u=a+t.width,c=ia($l(i)),d=c.innerHeight-h,p=c.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&l>d){const e=l-d;o-=e,n.vertical+=e}if(null!==h&&a<h){const e=a-h;a-=e,n.horizontal+=e}else if(u>p){const e=u-p;a-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(a)}px`,transformOrigin:Vl(n)}},[i,s,T,I,h]),[A,E]=P.useState(p),R=P.useCallback(()=>{const e=k.current;if(!e)return;const t=D(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,E(!0)},[D]);P.useEffect(()=>(w&&window.addEventListener("scroll",R),()=>window.removeEventListener("scroll",R)),[i,w,R]);P.useEffect(()=>{p&&R()}),P.useImperativeHandle(r,()=>p?{updatePosition:()=>{R()}}:null,[p,R]),P.useEffect(()=>{if(!p)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}(()=>{R()}),t=ia($l(i));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[i,p,R]);let O=_;const L={slots:{transition:v,...g},slotProps:{transition:b,paper:f,...m}},[z,N]=Ha("transition",{elementType:Dl,externalForwardedProps:L,ownerState:C,getSlotProps:e=>({...e,onEntering:(t,n)=>{var r;null==(r=e.onEntering)||r.call(e,t,n),R()},onExited:t=>{var n;null==(n=e.onExited)||n.call(e,t),E(!1)}}),additionalProps:{appear:!0,in:p}});"auto"!==_||z.muiSupportAuto||(O=void 0);const B=c||(i?ra($l(i)).body:void 0),[F,{slots:V,slotProps:$,...W}]=Ha("root",{ref:t,elementType:Wl,externalForwardedProps:{...L,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:da("function"==typeof m.backdrop?m.backdrop(C):m.backdrop,{invisible:!0})},container:B,open:p},ownerState:C,className:Gr(M.root,u)}),[H,j]=Ha("paper",{ref:k,className:M.paper,elementType:Hl,externalForwardedProps:L,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:A?void 0:{opacity:0}},ownerState:C});return x.jsx(F,{...W,...(G=F,!("string"==typeof G)&&{slots:V,slotProps:$,disableScrollLock:w}),children:x.jsx(z,{...N,timeout:O,children:x.jsx(H,{...j,children:l})})});var G}),Gl=function(e={}){const{createStyledComponent:t=Ki,useThemeProps:n=Qi,componentName:r="MuiStack"}=e,i=t(eo);return P.forwardRef(function(e,t){const o=$r(n(e)),{component:a="div",direction:s="column",spacing:l=0,divider:u,children:c,className:d,useFlexGap:h=!1,...p}=o,f={direction:s,spacing:l,useFlexGap:h},g=Ui({root:["root"]},e=>Xr(r,e),{});return x.jsx(i,{as:a,ownerState:f,ref:t,className:Gr(g.root,d),...p,children:u?Ji(c,u):c})})}({createStyledComponent:Vo("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Jo({props:e,name:"MuiStack"})});function Ul(e){return Xr("MuiSwitch",e)}const Xl=Yr("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Yl=Vo("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Wn(n.edge)}`],t[`size${Wn(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Xl.thumb}`]:{width:16,height:16},[`& .${Xl.switchBase}`]:{padding:4,[`&.${Xl.checked}`]:{transform:"translateX(16px)"}}}}]}),Zl=Vo(Ys,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Xl.input}`]:t.input},"default"!==n.color&&t[`color${Wn(n.color)}`]]}})(Qo(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Xl.checked}`]:{transform:"translateX(20px)"},[`&.${Xl.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Xl.checked} + .${Xl.track}`]:{opacity:.5},[`&.${Xl.disabled} + .${Xl.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${Xl.input}`]:{left:"-100%",width:"300%"}})),Qo(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:fi(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(is(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Xl.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:fi(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xl.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?vi(e.palette[t].main,.62):mi(e.palette[t].main,.55)}`}},[`&.${Xl.checked} + .${Xl.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),ql=Vo("span",{name:"MuiSwitch",slot:"Track"})(Qo(({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),Kl=Vo("span",{name:"MuiSwitch",slot:"Thumb"})(Qo(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Ql=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiSwitch"}),{className:r,color:i="primary",edge:o=!1,size:a="medium",sx:s,slots:l={},slotProps:u={},...c}=n,d={...n,color:i,edge:o,size:a},h=(e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:a}=e,s=Ui({root:["root",n&&`edge${Wn(n)}`,`size${Wn(r)}`],switchBase:["switchBase",`color${Wn(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},Ul,t);return{...t,...s}})(d),p={slots:l,slotProps:u},[f,g]=Ha("root",{className:Gr(h.root,r),elementType:Yl,externalForwardedProps:p,ownerState:d,additionalProps:{sx:s}}),[m,y]=Ha("thumb",{className:h.thumb,elementType:Kl,externalForwardedProps:p,ownerState:d}),v=x.jsx(m,{...y}),[_,b]=Ha("track",{className:h.track,elementType:ql,externalForwardedProps:p,ownerState:d});return x.jsxs(f,{...g,children:[x.jsx(Zl,{type:"checkbox",icon:v,checkedIcon:v,ref:t,ownerState:d,...c,classes:{...h,root:h.switchBase},slots:{...l.switchBase&&{root:l.switchBase},...l.input&&{input:l.input}},slotProps:{...u.switchBase&&{root:"function"==typeof u.switchBase?u.switchBase(d):u.switchBase},...u.input&&{input:"function"==typeof u.input?u.input(d):u.input}}}),x.jsx(_,{...b})]})}),Jl=P.createContext();function eu(e){return Xr("MuiTable",e)}Yr("MuiTable",["root","stickyHeader"]);const tu=Vo("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Qo(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),nu="table",ru=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiTable"}),{className:r,component:i=nu,padding:o="normal",size:a="medium",stickyHeader:s=!1,...l}=n,u={...n,component:i,padding:o,size:a,stickyHeader:s},c=(e=>{const{classes:t,stickyHeader:n}=e;return Ui({root:["root",n&&"stickyHeader"]},eu,t)})(u),d=P.useMemo(()=>({padding:o,size:a,stickyHeader:s}),[o,a,s]);return x.jsx(Jl.Provider,{value:d,children:x.jsx(tu,{as:i,role:i===nu?null:"table",ref:t,className:Gr(c.root,r),ownerState:u,...l})})}),iu=P.createContext();function ou(e){return Xr("MuiTableBody",e)}Yr("MuiTableBody",["root"]);const au=Vo("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),su={variant:"body"},lu="tbody",uu=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiTableBody"}),{className:r,component:i=lu,...o}=n,a={...n,component:i},s=(e=>{const{classes:t}=e;return Ui({root:["root"]},ou,t)})(a);return x.jsx(iu.Provider,{value:su,children:x.jsx(au,{className:Gr(s.root,r),as:i,ref:t,role:i===lu?null:"rowgroup",ownerState:a,...o})})});function cu(e){return Xr("MuiTableCell",e)}const du=Yr("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),hu=Vo("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Wn(n.size)}`],"normal"!==n.padding&&t[`padding${Wn(n.padding)}`],"inherit"!==n.align&&t[`align${Wn(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Qo(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?vi(fi(e.palette.divider,1),.88):mi(fi(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${du.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),pu=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiTableCell"}),{align:r="inherit",className:i,component:o,padding:a,scope:s,size:l,sortDirection:u,variant:c,...d}=n,h=P.useContext(Jl),p=P.useContext(iu),f=p&&"head"===p.variant;let g;g=o||(f?"th":"td");let m=s;"td"===g?m=void 0:!m&&f&&(m="col");const y=c||p&&p.variant,v={...n,align:r,component:g,padding:a||(h&&h.padding?h.padding:"normal"),size:l||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:"head"===y&&h&&h.stickyHeader,variant:y},_=(e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:a}=e;return Ui({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${Wn(r)}`,"normal"!==i&&`padding${Wn(i)}`,`size${Wn(o)}`]},cu,t)})(v);let b=null;return u&&(b="asc"===u?"ascending":"descending"),x.jsx(hu,{as:g,ref:t,className:Gr(_.root,i),"aria-sort":b,scope:m,ownerState:v,...d})});function fu(e){return Xr("MuiTableContainer",e)}Yr("MuiTableContainer",["root"]);const gu=Vo("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),mu=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiTableContainer"}),{className:r,component:i="div",...o}=n,a={...n,component:i},s=(e=>{const{classes:t}=e;return Ui({root:["root"]},fu,t)})(a);return x.jsx(gu,{ref:t,as:i,className:Gr(s.root,r),ownerState:a,...o})});function yu(e){return Xr("MuiTableHead",e)}Yr("MuiTableHead",["root"]);const vu=Vo("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),xu={variant:"head"},_u="thead",bu=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiTableHead"}),{className:r,component:i=_u,...o}=n,a={...n,component:i},s=(e=>{const{classes:t}=e;return Ui({root:["root"]},yu,t)})(a);return x.jsx(iu.Provider,{value:xu,children:x.jsx(vu,{as:i,className:Gr(s.root,r),ref:t,role:i===_u?null:"rowgroup",ownerState:a,...o})})});function wu(e){return Xr("MuiTableRow",e)}const Su=Yr("MuiTableRow",["root","selected","hover","head","footer"]),ku=Vo("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Qo(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Su.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Su.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:fi(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}))`:fi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Cu="tr",Mu=P.forwardRef(function(e,t){const n=Jo({props:e,name:"MuiTableRow"}),{className:r,component:i=Cu,hover:o=!1,selected:a=!1,...s}=n,l=P.useContext(iu),u={...n,component:i,hover:o,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant},c=(e=>{const{classes:t,selected:n,hover:r,head:i,footer:o}=e;return Ui({root:["root",n&&"selected",r&&"hover",i&&"head",o&&"footer"]},wu,t)})(u);return x.jsx(ku,{as:i,ref:t,className:Gr(c.root,r),role:i===Cu?null:"row",ownerState:u,...s})});function Tu({content:e,formatter:t,round:n}){return t?t(e):n?((e,t=0)=>{const n=Math.pow(10,t);return Math.round(e*n)/n})(e,n):e}function Iu({rows:e,structure:t,hasTotalRow:n,defaultSortKey:r}){const{onTableHeadClick:i,sortedRows:o,currentSortField:a}=function(e,{hasTotalRow:t=!1,defaultSortKey:n="name"}={hasTotalRow:!1,defaultSortKey:"name"}){const[r,i]=P.useState(e),[o,a]=P.useState(!1),s=P.useRef(),l=n=>{const r=(t?e.slice(0,-1):[...e]).sort(function(e,t){const n=t?-1:1;return function(t,r){const i=t[e],o=r[e];return i<o?-1*n:i>o?1*n:0}}(n,n===s.current&&!o));i(t?[...r,...e.slice(-1)]:r)},u=P.useCallback(e=>{s.current||(s.current=n);const t=e.target.getAttribute("data-sortkey");if(t===s.current){if(o)return a(!1),s.current=void 0,void l(n);a(!0)}else o&&a(!1);l(t),s.current=t},[s,e,o]);return P.useEffect(()=>{e.length?l(s.current||n):l.length&&i(e)},[e]),{onTableHeadClick:u,sortedRows:r,currentSortField:s.current}}(e,{hasTotalRow:n,defaultSortKey:r});return x.jsx(mu,{component:Va,children:x.jsxs(ru,{children:[x.jsx(bu,{sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper"},children:x.jsx(Mu,{children:t.map(({title:e,key:t})=>x.jsx(pu,{"data-sortkey":t,onClick:i,sx:{cursor:"pointer",color:a===t?"primary.main":"text.primary"},children:e},`table-head-${t}`))})}),x.jsx(uu,{children:o.map((e,n)=>x.jsx(Mu,{children:t.map(({key:t,...n},r)=>x.jsx(pu,{children:x.jsx(Tu,{content:e[t],...n})},`table-row=${r}`))},`${e.name}-${n}`))})]})})}const Pu=[{key:"count",title:"# occurrences"},{key:"msg",title:"Message"},{key:"traceback",title:"Traceback"}];function Du({exceptions:e}){return x.jsx(Iu,{rows:e,structure:Pu})}const Au=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message"}];function Eu({errors:e}){return x.jsx(Iu,{rows:e,structure:Au})}const Ru=[{key:"method",title:"Method"},{key:"name",title:"Name"}];function Ou({responseTimes:e}){const t=P.useMemo(()=>Object.keys(e[0]).filter(e=>Boolean(Number(e))).map(e=>({key:e,title:100*Number(e)+"%ile (ms)"})),[e]);return x.jsx(Iu,{hasTotalRow:!0,rows:e,structure:[...Ru,...t]})}const Lu=function(e){function t(t,n){return x.jsx(na,{"data-testid":void 0,ref:n,...t,children:e})}return t.muiName=na.muiName,P.memo(P.forwardRef(t))}(x.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}));function zu({structure:e,selectedColumns:t,addColumn:n,removeColumn:r}){const[i,o]=P.useState(null);return x.jsxs(Gl,{sx:{alignSelf:{xs:"end",lg:"start"},my:2},children:[x.jsx(js,{onClick:e=>o(e.currentTarget),variant:"outlined",children:x.jsx(Lu,{})}),x.jsx(jl,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"left"},onClose:()=>o(null),open:Boolean(i),children:x.jsx(Ml,{sx:{p:2},children:e.map(({key:e,title:i})=>x.jsx(Sl,{control:x.jsx(Ql,{checked:t.includes(e),onChange:()=>{t.includes(e)?r(e):n(e)}}),label:i},e))})})]})}const Nu=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},...B.percentilesToStatistics?B.percentilesToStatistics.map(e=>({title:100*e+"%ile (ms)",key:`responseTimePercentile${e}`})):[],{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 Bu({stats:e,tableStructure:t=Nu}){const{selectedColumns:n,addColumn:r,removeColumn:i,filteredStructure:o}=function(e){const[t,n]=P.useState(e.map(e=>e.key));return{selectedColumns:t,addColumn:e=>{n([...t,e])},removeColumn:e=>{n(t.filter(t=>t!==e))},filteredStructure:(r=e,r.filter(e=>t.includes(e.key)))};var r}(t);return x.jsxs(Rs,{sx:{display:"flex",flexDirection:{xs:"column",lg:"row-reverse",alignItems:"flex-start"},columnGap:1},children:[x.jsx(zu,{addColumn:r,removeColumn:i,selectedColumns:n,structure:t}),x.jsx(Iu,{hasTotalRow:!0,rows:e,structure:o})]})}
|
131
131
|
/*! *****************************************************************************
|
132
132
|
Copyright (c) Microsoft Corporation.
|
133
133
|
|
@@ -141,7 +141,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
141
141
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
142
142
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
143
143
|
PERFORMANCE OF THIS SOFTWARE.
|
144
|
-
***************************************************************************** */var Fu=function(e,t){return(Fu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function $u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Fu(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Wu="12px sans-serif";var ju=function(e){var t={};if("undefined"==typeof JSON)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-20)/100;t[r]=i}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),Vu={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,r){if(!e){var i=Vu.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==r&&(t=e.font=r||Wu),e.measureText(n);n=n||"";var o=/((?:\d+)?\.?\d*)px/.exec(r=r||Wu),a=o&&+o[1]||12,s=0;if(r.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=ju[n[l]];s+=null==u?a:u*a}return{width:s}}}(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},Hu=pc(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),Gu=pc(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Uu=Object.prototype.toString,Xu=Array.prototype,Yu=Xu.forEach,qu=Xu.filter,Ku=Xu.slice,Zu=Xu.map,Qu=function(){}.constructor,Ju=Qu?Qu.prototype:null,ec="__proto__",tc=2311;function nc(){return tc++}function rc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!=typeof console&&console.error.apply(console,e)}function ic(e){if(null==e||"object"!=typeof e)return e;var t=e,n=Uu.call(e);if("[object Array]"===n){if(!Bc(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=ic(e[r])}}else if(Gu[n]){if(!Bc(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!Hu[n]&&!Bc(e)&&!Tc(e))for(var a in t={},e)e.hasOwnProperty(a)&&a!==ec&&(t[a]=ic(e[a]));return t}function oc(e,t,n){if(!Sc(t)||!Sc(e))return n?ic(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==ec){var i=e[r],o=t[r];!Sc(o)||!Sc(i)||vc(o)||vc(i)||Tc(o)||Tc(i)||kc(o)||kc(i)||Bc(o)||Bc(i)?!n&&r in e||(e[r]=ic(t[r])):oc(i,o,n)}return e}function ac(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==ec&&(e[n]=t[n]);return e}function sc(e,t,n){for(var r=gc(t),i=0;i<r.length;i++){var o=r[i];null==e[o]&&(e[o]=t[o])}return e}function lc(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function uc(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&null==e[o]&&(e[o]=t[o])}else sc(e,t)}function cc(e){return!!e&&("string"!=typeof e&&"number"==typeof e.length)}function dc(e,t,n){if(e&&t)if(e.forEach&&e.forEach===Yu)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function hc(e,t,n){if(!e)return[];if(!t)return Ec(e);if(e.map&&e.map===Zu)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}function pc(e,t,n,r){if(e&&t){for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}}function fc(e,t,n){if(!e)return[];if(!t)return Ec(e);if(e.filter&&e.filter===qu)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function gc(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}var mc=Ju&&xc(Ju.bind)?Ju.call.bind(Ju.bind):function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(Ku.call(arguments)))}};function yc(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(Ku.call(arguments)))}}function vc(e){return Array.isArray?Array.isArray(e):"[object Array]"===Uu.call(e)}function xc(e){return"function"==typeof e}function bc(e){return"string"==typeof e}function _c(e){return"[object String]"===Uu.call(e)}function wc(e){return"number"==typeof e}function Sc(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function kc(e){return!!Hu[Uu.call(e)]}function Cc(e){return!!Gu[Uu.call(e)]}function Tc(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function Mc(e){return null!=e.colorStops}function Ic(e){return e!=e}function Pc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(null!=e[n])return e[n]}function Dc(e,t){return null!=e?e:t}function Ac(e,t,n){return null!=e?e:null!=t?t:n}function Ec(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Ku.apply(e,t)}function Rc(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function Oc(e,t){if(!e)throw new Error(t)}function Lc(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Nc="__ec_primitive__";function zc(e){e[Nc]=!0}function Bc(e){return e[Nc]}var Fc=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return gc(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),$c="function"==typeof Map;var Wc=function(){function e(t){var n=vc(t);this.data=$c?new Map:new Fc;var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&dc(t,i)}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return $c?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function jc(e){return new Wc(e)}function Vc(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&ac(n,t),n}function Hc(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Gc(e,t){return e.hasOwnProperty(t)}function Uc(){}var Xc=180/Math.PI,Yc=function(){return function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}}(),qc=new(function(){return function(){this.browser=new Yc,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="undefined"!=typeof window}}());"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(qc.wxa=!0,qc.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?qc.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(qc.node=!0,qc.svgSupported=!0):function(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);t.svgSupported="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!=typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,qc);var Kc="___EC__COMPONENT__CONTAINER___",Zc="___EC__EXTENDED_CLASS___";function Qc(e){var t={main:"",sub:""};if(e){var n=e.split(".");t.main=n[0]||"",t.sub=n[1]||""}return t}function Jc(e,t){e.$constructor=e,e.extend=function(e){var t,n,r=this;return xc(n=r)&&/^class\s/.test(Function.prototype.toString.call(n))?t=function(e){function t(){return e.apply(this,arguments)||this}return $u(t,e),t}(r):(t=function(){(e.$constructor||r).apply(this,arguments)},function(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}(t,this)),ac(t.prototype,e),t[Zc]=!0,t.extend=this.extend,t.superCall=nd,t.superApply=rd,t.superClass=r,t}}function ed(e,t){e.extend=t.extend}var td=Math.round(10*Math.random());function nd(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function rd(e,t,n){return this.superClass.prototype[t].apply(e,n)}function id(e){var t={};e.registerClass=function(e){var n,r=e.type||e.prototype.type;if(r){Oc(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),'componentType "'+n+'" illegal'),e.prototype.type=r;var i=Qc(r);if(i.sub){if(i.sub!==Kc){var o=function(e){var n=t[e.main];n&&n[Kc]||((n=t[e.main]={})[Kc]=!0);return n}(i);o[i.sub]=e}}else t[i.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[Kc]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return i},e.getClassesByMainType=function(e){var n=Qc(e),r=[],i=t[n.main];return i&&i[Kc]?dc(i,function(e,t){t!==Kc&&r.push(e)}):r.push(i),r},e.hasClass=function(e){var n=Qc(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return dc(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=Qc(e),r=t[n.main];return r&&r[Kc]}}function od(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,i){for(var o={},a=0;a<e.length;a++){var s=e[a][1];if(!(r&&lc(r,s)>=0||i&&lc(i,s)<0)){var l=n.getShallow(s,t);null!=l&&(o[e[a][0]]=l)}}return o}}var ad=od([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),sd=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return ad(this,e,t)},e}(),ld=function(){return function(e){this.value=e}}(),ud=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new ld(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),cd=function(){function e(e){this._list=new ud,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(null==r[e]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}a?a.value=t:a=new ld(t),a.key=e,n.insertEntry(a),r[e]=a}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),dd=new cd(50);function hd(e){if("string"==typeof e){var t=dd.get(e);return t&&t.image}return e}function pd(e,t,n,r,i){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=dd.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?!gd(t=o.image)&&o.pending.push(a):((t=Vu.loadImage(e,fd,fd)).__zrImageSrc=e,dd.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}return e}return t}function fd(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function gd(e){return e&&e.width&&e.height}function md(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function yd(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function vd(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function xd(e,t,n,r){void 0===r&&(r=[0,0]);var i=t[0],o=t[2],a=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*c,e[1]=-i*c+s*d,e[2]=o*d+l*c,e[3]=-o*c+d*l,e[4]=d*(a-r[0])+c*(u-r[1])+r[0],e[5]=d*(u-r[1])-c*(a-r[0])+r[1],e}function bd(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}var _d=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),wd=Math.min,Sd=Math.max,kd=new _d,Cd=new _d,Td=new _d,Md=new _d,Id=new _d,Pd=new _d,Dd=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=wd(e.x,this.x),n=wd(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Sd(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Sd(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=[1,0,0,1,0,0];return vd(i,i,[-t.x,-t.y]),function(e,t,n){var r=n[0],i=n[1];e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i}(i,i,[n,r]),vd(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,d=t.y+t.height,h=!(o<l||u<i||s<c||d<a);if(n){var p=1/0,f=0,g=Math.abs(o-l),m=Math.abs(u-i),y=Math.abs(s-c),v=Math.abs(d-a),x=Math.min(g,m),b=Math.min(y,v);o<l||u<i?x>f&&(f=x,g<m?_d.set(Pd,-g,0):_d.set(Pd,m,0)):x<p&&(p=x,g<m?_d.set(Id,g,0):_d.set(Id,-m,0)),s<c||d<a?b>f&&(f=b,y<v?_d.set(Pd,0,-y):_d.set(Pd,0,v)):x<p&&(p=x,y<v?_d.set(Id,0,y):_d.set(Id,0,-v))}return n&&_d.copy(n,h?Id:Pd),h},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=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 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return t.x=n.x*i+a,t.y=n.y*o+s,t.width=n.width*i,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}kd.x=Td.x=n.x,kd.y=Md.y=n.y,Cd.x=Md.x=n.x+n.width,Cd.y=Td.y=n.y+n.height,kd.transform(r),Md.transform(r),Cd.transform(r),Td.transform(r),t.x=wd(kd.x,Cd.x,Td.x,Md.x),t.y=wd(kd.y,Cd.y,Td.y,Md.y);var l=Sd(kd.x,Cd.x,Td.x,Md.x),u=Sd(kd.y,Cd.y,Td.y,Md.y);t.width=l-t.x,t.height=u-t.y}else t!==n&&e.copy(t,n)},e}(),Ad={};function Ed(e,t){var n=Ad[t=t||Wu];n||(n=Ad[t]=new cd(500));var r=n.get(e);return null==r&&(r=Vu.measureText(e,t).width,n.put(e,r)),r}function Rd(e,t,n,r){var i=Ed(e,t),o=zd(t),a=Ld(0,i,n),s=Nd(0,o,r);return new Dd(a,s,i,o)}function Od(e,t,n,r){var i=((e||"")+"").split("\n");if(1===i.length)return Rd(i[0],t,n,r);for(var o=new Dd(0,0,0,0),a=0;a<i.length;a++){var s=Rd(i[a],t,n,r);0===a?o.copy(s):o.union(s)}return o}function Ld(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function Nd(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function zd(e){return Ed("国",e)}function Bd(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Fd(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",d="top";if(r instanceof Array)l+=Bd(r[0],n.width),u+=Bd(r[1],n.height),c=null,d=null;else switch(r){case"left":l-=i,u+=s,c="right",d="middle";break;case"right":l+=i+a,u+=s,d="middle";break;case"top":l+=a/2,u-=i,c="center",d="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=i,u+=s,d="middle";break;case"insideRight":l+=a-i,u+=s,c="right",d="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",d="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,d="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",d="bottom"}return(e=e||{}).x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var $d=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Wd(e,t,n,r,i){if(!t)return"";var o=(e+"").split("\n");i=jd(t,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=Vd(o[a],i);return o.join("\n")}function jd(e,t,n,r){var i=ac({},r=r||{});i.font=t,n=Dc(n,"..."),i.maxIterations=Dc(r.maxIterations,2);var o=i.minChar=Dc(r.minChar,0);i.cnCharWidth=Ed("国",t);var a=i.ascCharWidth=Ed("a",t);i.placeholder=Dc(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=a;l++)s-=a;var u=Ed(n,t);return u>s&&(n="",u=0),s=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function Vd(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var o=Ed(e,r);if(o<=n)return e;for(var a=0;;a++){if(o<=i||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?Hd(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;o=Ed(e=e.substr(0,s),r)}return""===e&&(e=t.placeholder),e}function Hd(e,t,n,r){for(var i=0,o=0,a=e.length;o<a&&i<t;o++){var s=e.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}var Gd=function(){return function(){}}(),Ud=function(){return function(e){this.tokens=[],e&&(this.tokens=e)}}(),Xd=function(){return function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}}();function Yd(e,t,n,r,i){var o,a,s=""===t,l=i&&n.rich[i]||{},u=e.lines,c=l.font||n.font,d=!1;if(r){var h=l.padding,p=h?h[1]+h[3]:0;if(null!=l.width&&"auto"!==l.width){var f=Bd(l.width,r.width)+p;u.length>0&&f+r.accumWidth>r.width&&(o=t.split("\n"),d=!0),r.accumWidth=f}else{var g=Zd(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=t.split("\n");for(var m=0;m<o.length;m++){var y=o[m],v=new Gd;if(v.styleName=i,v.text=y,v.isLineHolder=!y&&!s,"number"==typeof l.width?v.width=l.width:v.width=a?a[m]:Ed(y,c),m||d)u.push(new Ud([v]));else{var x=(u[u.length-1]||(u[0]=new Ud)).tokens,b=x.length;1===b&&x[0].isLineHolder?x[0]=v:(y||!b||s)&&x.push(v)}}}var qd=pc(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Kd(e){return!function(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}(e)||!!qd[e]}function Zd(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,d=0;d<e.length;d++){var h=e.charAt(d);if("\n"!==h){var p=Ed(h,t),f=!r&&!Kd(h);(o.length?c+p>n:i+c+p>n)?c?(s||l)&&(f?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=h,s="",c=u+=p):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=h,c=p)):f?(o.push(l),a.push(u),l=h,u=p):(o.push(h),a.push(p)):(c+=p,f?(l+=h,u+=p):(l&&(s+=l,l="",u=0),s+=h))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}function Qd(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function Jd(e){return[e[0],e[1]]}function eh(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function th(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function nh(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function rh(e,t){var n=function(e){return Math.sqrt(function(e){return e[0]*e[0]+e[1]*e[1]}(e))}(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function ih(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var oh=ih;var ah=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function sh(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function lh(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function uh(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var ch=md;function dh(e){return e>5e-5||e<-5e-5}var hh=[],ph=[],fh=[1,0,0,1,0,0],gh=Math.abs,mh=function(){function e(){}var t;return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return dh(this.rotation)||dh(this.x)||dh(this.y)||dh(this.scaleX-1)||dh(this.scaleY-1)||dh(this.skewX)||dh(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||[1,0,0,1,0,0],t?this.getLocalTransform(n):ch(n),e&&(t?yd(n,e,n):function(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]}(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(ch(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(hh);var n=hh[0]<0?-1:1,r=hh[1]<0?-1:1,i=((hh[0]-n)*t+n)/hh[0]||0,o=((hh[1]-r)*t+r)/hh[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],bd(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||[1,0,0,1,0,0],yd(ph,e.invTransform,t),t=ph);var n=this.originX,r=this.originY;(n||r)&&(fh[4]=n,fh[5]=r,yd(ph,t,fh),ph[4]-=n,ph[5]-=r,t=ph),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&sh(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&sh(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&gh(e[0]-1)>1e-10&&gh(e[3]-1)>1e-10?Math.sqrt(gh(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){!function(e,t){for(var n=0;n<yh.length;n++){var r=yh[n];e[r]=t[r]}}(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,o=e.scaleY,a=e.anchorX,s=e.anchorY,l=e.rotation||0,u=e.x,c=e.y,d=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||r||a||s){var p=n+a,f=r+s;t[4]=-p*i-d*f*o,t[5]=-f*o-h*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=d*o,l&&xd(t,t,l),t[4]+=n+u,t[5]+=r+c,t},e.initDefaultProps=((t=e.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,void(t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0)),e}(),yh=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];var vh={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 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},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,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.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?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-vh.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?.5*vh.bounceIn(2*e):.5*vh.bounceOut(2*e-1)+.5}},xh=Math.pow,bh=Math.sqrt,_h=1e-4,wh=bh(3),Sh=1/3,kh=Qd(),Ch=Qd(),Th=Qd();function Mh(e){return e>-1e-8&&e<1e-8}function Ih(e){return e>1e-8||e<-1e-8}function Ph(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function Dh(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function Ah(e,t,n,r,i,o){var a=r+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-i,c=s*s-3*a*l,d=s*l-9*a*u,h=l*l-3*s*u,p=0;if(Mh(c)&&Mh(d)){if(Mh(s))o[0]=0;else(k=-l/s)>=0&&k<=1&&(o[p++]=k)}else{var f=d*d-4*c*h;if(Mh(f)){var g=d/c,m=-g/2;(k=-s/a+g)>=0&&k<=1&&(o[p++]=k),m>=0&&m<=1&&(o[p++]=m)}else if(f>0){var y=bh(f),v=c*s+1.5*a*(-d+y),x=c*s+1.5*a*(-d-y);(k=(-s-((v=v<0?-xh(-v,Sh):xh(v,Sh))+(x=x<0?-xh(-x,Sh):xh(x,Sh))))/(3*a))>=0&&k<=1&&(o[p++]=k)}else{var b=(2*c*s-3*a*d)/(2*bh(c*c*c)),_=Math.acos(b)/3,w=bh(c),S=Math.cos(_),k=(-s-2*w*S)/(3*a),C=(m=(-s+w*(S+wh*Math.sin(_)))/(3*a),(-s+w*(S-wh*Math.sin(_)))/(3*a));k>=0&&k<=1&&(o[p++]=k),m>=0&&m<=1&&(o[p++]=m),C>=0&&C<=1&&(o[p++]=C)}}return p}function Eh(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(Mh(a)){if(Ih(o))(c=-s/o)>=0&&c<=1&&(i[l++]=c)}else{var u=o*o-4*a*s;if(Mh(u))i[0]=-o/(2*a);else if(u>0){var c,d=bh(u),h=(-o-d)/(2*a);(c=(-o+d)/(2*a))>=0&&c<=1&&(i[l++]=c),h>=0&&h<=1&&(i[l++]=h)}}return l}function Rh(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,d=(c-u)*i+u;o[0]=e,o[1]=a,o[2]=u,o[3]=d,o[4]=d,o[5]=c,o[6]=l,o[7]=r}function Oh(e,t,n,r,i,o,a,s,l){for(var u=e,c=t,d=0,h=1/l,p=1;p<=l;p++){var f=p*h,g=Ph(e,n,i,a,f),m=Ph(t,r,o,s,f),y=g-u,v=m-c;d+=Math.sqrt(y*y+v*v),u=g,c=m}return d}function Lh(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function Nh(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function zh(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function Bh(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function Fh(e,t,n,r,i,o,a){for(var s=e,l=t,u=0,c=1/a,d=1;d<=a;d++){var h=d*c,p=Lh(e,n,i,h),f=Lh(t,r,o,h),g=p-s,m=f-l;u+=Math.sqrt(g*g+m*m),s=p,l=f}return u}var $h=/cubic-bezier\(([0-9,\.e ]+)\)/;function Wh(e){var t=e&&$h.exec(e);if(t){var n=t[1].split(","),r=+Lc(n[0]),i=+Lc(n[1]),o=+Lc(n[2]),a=+Lc(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(e){return e<=0?0:e>=1?1:Ah(0,r,o,1,e,s)&&Ph(0,i,a,1,s[0])}}}var jh=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Uc,this.ondestroy=e.ondestroy||Uc,this.onrestart=e.onrestart||Uc,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=xc(e)?e:vh[e]||Wh(e)},e}(),Vh={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 Hh(e){return(e=Math.round(e))<0?0:e>255?255:e}function Gh(e){return e<0?0:e>1?1:e}function Uh(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?Hh(parseFloat(t)/100*255):Hh(parseInt(t,10))}function Xh(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?Gh(parseFloat(t)/100):Gh(parseFloat(t))}function Yh(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function qh(e,t,n){return e+(t-e)*n}function Kh(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Zh(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Qh=new cd(20),Jh=null;function ep(e,t){Jh&&Zh(Jh,t),Jh=Qh.put(e,Jh||t.slice())}function tp(e,t){if(e){t=t||[];var n=Qh.get(e);if(n)return Zh(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in Vh)return Zh(t,Vh[r]),ep(e,t),t;var i,o=r.length;if("#"===r.charAt(0))return 4===o||5===o?(i=parseInt(r.slice(1,4),16))>=0&&i<=4095?(Kh(t,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===o?parseInt(r.slice(4),16)/15:1),ep(e,t),t):void Kh(t,0,0,0,1):7===o||9===o?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(Kh(t,(16711680&i)>>16,(65280&i)>>8,255&i,9===o?parseInt(r.slice(7),16)/255:1),ep(e,t),t):void Kh(t,0,0,0,1):void 0;var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?Kh(t,+u[0],+u[1],+u[2],1):Kh(t,0,0,0,1);c=Xh(u.pop());case"rgb":return u.length>=3?(Kh(t,Uh(u[0]),Uh(u[1]),Uh(u[2]),3===u.length?c:Xh(u[3])),ep(e,t),t):void Kh(t,0,0,0,1);case"hsla":return 4!==u.length?void Kh(t,0,0,0,1):(u[3]=Xh(u[3]),np(u,t),ep(e,t),t);case"hsl":return 3!==u.length?void Kh(t,0,0,0,1):(np(u,t),ep(e,t),t);default:return}}Kh(t,0,0,0,1)}}function np(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Xh(e[1]),i=Xh(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=2*i-o;return Kh(t=t||[],Hh(255*Yh(a,o,n+1/3)),Hh(255*Yh(a,o,n)),Hh(255*Yh(a,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function rp(e,t){var n=tp(e);if(n){for(var r=0;r<3;r++)n[r]=n[r]*(1-t)|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return ip(n,4===n.length?"rgba":"rgb")}}function ip(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function op(e,t){var n=tp(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var ap=new cd(100);function sp(e){if(bc(e)){var t=ap.get(e);return t||(t=rp(e,-.1),ap.put(e,t)),t}if(Mc(e)){var n=ac({},e);return n.colorStops=hc(e.colorStops,function(e){return{offset:e.offset,color:rp(e.color,-.1)}}),n}return e}qc.hasGlobalWindow&&xc(window.btoa);var lp=Array.prototype.slice;function up(e,t,n){return(t-e)*n+e}function cp(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=up(t[o],n[o],r);return e}function dp(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+n[o]*r;return e}function hp(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*r}return e}function pp(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function fp(e,t,n){var r=e,i=t;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a)if(o>a)r.length=a;else for(var s=o;s<a;s++)r.push(1===n?i[s]:lp.call(i[s]));var l=r[0]&&r[0].length;for(s=0;s<r.length;s++)if(1===n)isNaN(r[s])&&(r[s]=i[s]);else for(var u=0;u<l;u++)isNaN(r[s][u])&&(r[s][u]=i[s][u])}}function gp(e){if(cc(e)){var t=e.length;if(cc(e[0])){for(var n=[],r=0;r<t;r++)n.push(lp.call(e[r]));return n}return lp.call(e)}return e}function mp(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]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function yp(e){return 4===e||5===e}function vp(e){return 1===e||2===e}var xp=[0,0,0,0],bp=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}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(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=6,s=t;if(cc(t)){var l=function(e){return cc(e&&e[0])?2:1}(t);a=l,(1===l&&!wc(t[0])||2===l&&!wc(t[0][0]))&&(o=!0)}else if(wc(t)&&!Ic(t))a=0;else if(bc(t))if(isNaN(+t)){var u=tp(t);u&&(s=u,a=3)}else a=0;else if(Mc(t)){var c=ac({},s);c.colorStops=hc(t.colorStops,function(e){return{offset:e.offset,color:tp(e.color)}}),"linear"===t.type?a=4:function(e){return"radial"===e.type}(t)&&(a=5),s=c}0===i?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=xc(n)?n:vh[n]||Wh(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=vp(r),l=yp(r),u=0;u<i;u++){var c=n[u],d=c.value,h=o.value;c.percent=c.time/e,a||(s&&u!==i-1?fp(d,h,r):l&&pp(d.colorStops,h.colorStops))}if(!a&&5!==r&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;var p=n[0].value;for(u=0;u<i;u++)0===r?n[u].additiveValue=n[u].value-p:3===r?n[u].additiveValue=dp([],n[u].value,p,-1):vp(r)&&(n[u].additiveValue=1===r?dp([],n[u].value,p,-1):hp([],n[u].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,d=3===s,h=this._lastFr,p=Math.min;if(1===u)r=i=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=p(h+1,u-1);n>=0&&!(l[n].percent<=t);n--);n=p(n,u-2)}else{for(n=h;n<u&&!(l[n].percent>t);n++);n=p(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var f=i.percent-r.percent,g=0===f?1:p((t-r.percent)/f,1);i.easingFunc&&(g=i.easingFunc(g));var m=o?this._additiveValue:d?xp:e[c];if(!vp(s)&&!d||m||(m=this._additiveValue=[]),this.discrete)e[c]=g<1?r.rawValue:i.rawValue;else if(vp(s))1===s?cp(m,r[a],i[a],g):function(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=up(t[a][s],n[a][s],r)}}(m,r[a],i[a],g);else if(yp(s)){var y=r[a],v=i[a],x=4===s;e[c]={type:x?"linear":"radial",x:up(y.x,v.x,g),y:up(y.y,v.y,g),colorStops:hc(y.colorStops,function(e,t){var n=v.colorStops[t];return{offset:up(e.offset,n.offset,g),color:mp(cp([],e.color,n.color,g))}}),global:v.global},x?(e[c].x2=up(y.x2,v.x2,g),e[c].y2=up(y.y2,v.y2,g)):e[c].r=up(y.r,v.r,g)}else if(d)cp(m,r[a],i[a],g),o||(e[c]=mp(m));else{var b=up(r[a],i[a],g);o?this._additiveValue=b:e[c]=b}o&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;0===t?e[n]=e[n]+r:3===t?(tp(e[n],xp),dp(xp,xp,r,1),e[n]=mp(xp)):1===t?dp(e[n],e[n],r,1):2===t&&hp(e[n],e[n],r,1)},e}(),_p=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?rc("Can' use additive animation on looped animation."):(this._additiveAnimators=r,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(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,gc(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new bp(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,d=c[c.length-1];l=d&&d.value,3===u.valType&&l&&(l=mp(l))}else l=this._target[a];if(null==l)continue;e>0&&s.addKeyframe(0,gp(l),r),this._trackKeys.push(a)}s.addKeyframe(e,gp(t[a]),r)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(t._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var d=new jh({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(t._target,e);var a=t._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return hc(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(e[i]=gp(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||gc(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),wp=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof t&&(r=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var a=0;a<i[e].length;a++)if(i[e][a].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[e].length-1,u=i[e][l];return u&&u.callAtLast?i[e].splice(l,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=t[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(e,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,t[0]);break;case 2:u.h.call(a,t[0],t[1]);break;default:u.h.apply(a,t.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}(),Sp=1;qc.hasGlobalWindow&&(Sp=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var kp=Sp,Cp="#333",Tp="#ccc",Mp="__zr_normal__",Ip=yh.concat(["ignore"]),Pp=pc(yh,function(e,t){return e[t]=!0,e},{ignore:!1}),Dp={},Ap=new Dd(0,0,0,0),Ep=function(){function e(e){this.id=nc(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,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(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(t),null!=n.position){var u=Ap;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Dp,n,u):Fd(Dp,n,u),i.x=Dp.x,i.y=Dp.y,o=Dp.align,a=Dp.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var d=void 0,h=void 0;"center"===c?(d=.5*u.width,h=.5*u.height):(d=Bd(c[0],u.width),h=Bd(c[1],u.height)),l=!0,i.originX=-i.x+d+(r?0:u.x),i.originY=-i.y+h+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],l||(i.originX=-p[0],i.originY=-p[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,v=void 0;f&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(m),v=!0)):(m=n.outsideFill,y=n.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(m),v=!0)),(m=m||"#000")===g.fill&&y===g.stroke&&v===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=m,g.stroke=y,g.autoStroke=v,g.align=o,g.verticalAlign=a,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Tp:Cp},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&tp(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,ip(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},ac(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(Sc(e))for(var n=gc(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==Mp)){var o=r.targetName,a=o?t[o]:t;r.saveTo(a)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Ip)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null==e[i]||i in t||(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(Mp,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===Mp;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!(lc(o,e)>=0)||!t&&1!==o.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||(s=this.states&&this.states[e]),s||i){i||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(e,t,n,l),c&&c.useState(e,t,n,l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}rc("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,o=e.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(e[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(e,t,d),g&&g.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=lc(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=lc(r,e),o=lc(r,t)>=0;i>=0?o?r.splice(i,1):r[i]=t:n&&!o&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r<e.length;r++){var i=e[r];ac(n,i),i.textConfig&&ac(t=t||{},i.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,o){var a=!(t&&r);t&&t.textConfig?(this.textConfig=ac({},r?this.textConfig:n.textConfig),ac(this.textConfig,t.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Ip.length;u++){var c=Ip[u],d=i&&Pp[c];t&&null!=t[c]?d?(l=!0,s[c]=t[c]):this[c]=t[c]:a&&null!=n[c]&&(d?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(u=0;u<this.animators.length;u++){var h=this.animators[u],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(t||n)[p]:t||n)}l&&this._transitionState(e,s,o)},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new mh,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),ac(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=e?this[e]:this,i=new _p(r,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=lc(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];e&&e!==a.scope?i.push(a):a.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){Rp(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Rp(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=Rp(this,t,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;function n(e,n,r,i){function o(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}Object.defineProperty(t,e,{get:function(){this[n]||o(this,this[n]=[]);return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,o(this,e)}})}t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function Rp(e,t,n,r,i){var o=[];Np(e,"",e,t,n=n||{},r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},d=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(e,t){n.during(t)});for(var h=0;h<o.length;h++){var p=o[h];c&&p.done(c),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function Op(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Lp(e,t,n){if(cc(t[n]))if(cc(e[n])||(e[n]=[]),Cc(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),Op(e[n],t[n],r))}else{var i=t[n],o=e[n],a=i.length;if(cc(i[0]))for(var s=i[0].length,l=0;l<a;l++)o[l]?Op(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else Op(o,i,a);o.length=i.length}else e[n]=t[n]}function Np(e,t,n,r,i,o,a,s){for(var l=gc(r),u=i.duration,c=i.delay,d=i.additive,h=i.setToFinal,p=!Sc(o),f=e.animators,g=[],m=0;m<l.length;m++){var y=l[m],v=r[y];if(null!=v&&null!=n[y]&&(p||o[y]))if(!Sc(v)||cc(v)||Mc(v))g.push(y);else{if(t){s||(n[y]=v,e.updateDuringAnimation(t));continue}Np(e,y,n[y],v,i,o&&o[y],a,s)}else s||(n[y]=v,e.updateDuringAnimation(t),g.push(y))}var x=g.length;if(!d&&x)for(var b=0;b<f.length;b++){if((w=f[b]).targetName===t)if(w.stopTracks(g)){var _=lc(f,w);f.splice(_,1)}}if(i.force||(g=fc(g,function(e){return t=r[e],i=n[e],!(t===i||cc(t)&&cc(i)&&function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}(t,i));var t,i}),x=g.length),x>0||i.force&&!a.length){var w,S=void 0,k=void 0,C=void 0;if(s){k={},h&&(S={});for(b=0;b<x;b++){k[y=g[b]]=n[y],h?S[y]=r[y]:n[y]=r[y]}}else if(h){C={};for(b=0;b<x;b++){C[y=g[b]]=gp(n[y]),Lp(n,r,y)}}(w=new _p(n,!1,!1,d?fc(f,function(e){return e.targetName===t}):null)).targetName=t,i.scope&&(w.scope=i.scope),h&&S&&w.whenWithKeys(0,S,g),C&&w.whenWithKeys(0,C,g),w.whenWithKeys(null==u?500:u,s?k:r,g).delay(c||0),e.addAnimator(w,t),a.push(w)}}uc(Ep,wp),uc(Ep,mh);var zp="__zr_style_"+Math.round(10*Math.random()),Bp={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Fp={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Bp[zp]=!0;var $p=["z","z2","invisible"],Wp=["invisible"],jp=function(e){function t(t){return e.call(this,t)||this}var n;return $u(t,e),t.prototype._init=function(t){for(var n=gc(t),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(e,t,n){Vp.copy(e.getBoundingRect()),e.transform&&Vp.applyTransform(e.transform);return Hp.width=t,Hp.height=n,!Vp.intersect(Hp)}(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new Dd(0,0,0,0)),t?Dd.applyTransform(e,n,t):e.copy(n),(i||o||a)&&(e.width+=2*i+Math.abs(o),e.height+=2*i+Math.abs(a),e.x=Math.min(e.x,e.x+o-i),e.y=Math.min(e.y,e.y+a-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Dd(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:ac(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Vc(Bp,e)},t.prototype.useStyle=function(e){e[zp]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[zp]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,$p)},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=gc(u),d=0;d<c.length;d++){(p=c[d])in s&&(s[p]=s[p],this.style[p]=u[p])}var h=gc(s);for(d=0;d<h.length;d++){var p=h[d];this.style[p]=this.style[p]}this._transitionState(t,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?Wp:$p;for(d=0;d<f.length;d++){p=f[d];n&&null!=n[p]?this[p]=n[p]:l&&null!=r[p]&&(this[p]=r[p])}},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,t){return ac(e,t),e},t.prototype.getAnimationStyleProps=function(){return Fp},t.initDefaultProps=((n=t.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=3)),t}(Ep),Vp=new Dd(0,0,0,0),Hp=new Dd(0,0,0,0);var Gp=Math.min,Up=Math.max,Xp=Math.sin,Yp=Math.cos,qp=2*Math.PI,Kp=Qd(),Zp=Qd(),Qp=Qd();function Jp(e,t,n,r,i,o){i[0]=Gp(e,n),i[1]=Gp(t,r),o[0]=Up(e,n),o[1]=Up(t,r)}var ef=[],tf=[];function nf(e,t,n,r,i,o,a,s,l,u){var c=Eh,d=Ph,h=c(e,n,i,a,ef);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<h;p++){var f=d(e,n,i,a,ef[p]);l[0]=Gp(f,l[0]),u[0]=Up(f,u[0])}h=c(t,r,o,s,tf);for(p=0;p<h;p++){var g=d(t,r,o,s,tf[p]);l[1]=Gp(g,l[1]),u[1]=Up(g,u[1])}l[0]=Gp(e,l[0]),u[0]=Up(e,u[0]),l[0]=Gp(a,l[0]),u[0]=Up(a,u[0]),l[1]=Gp(t,l[1]),u[1]=Up(t,u[1]),l[1]=Gp(s,l[1]),u[1]=Up(s,u[1])}function rf(e,t,n,r,i,o,a,s){var l=zh,u=Lh,c=Up(Gp(l(e,n,i),1),0),d=Up(Gp(l(t,r,o),1),0),h=u(e,n,i,c),p=u(t,r,o,d);a[0]=Gp(e,i,h),a[1]=Gp(t,o,p),s[0]=Up(e,i,h),s[1]=Up(t,o,p)}function of(e,t,n,r,i,o,a,s,l){var u=lh,c=uh,d=Math.abs(i-o);if(d%qp<1e-4&&d>1e-4)return s[0]=e-n,s[1]=t-r,l[0]=e+n,void(l[1]=t+r);if(Kp[0]=Yp(i)*n+e,Kp[1]=Xp(i)*r+t,Zp[0]=Yp(o)*n+e,Zp[1]=Xp(o)*r+t,u(s,Kp,Zp),c(l,Kp,Zp),(i%=qp)<0&&(i+=qp),(o%=qp)<0&&(o+=qp),i>o&&!a?o+=qp:i<o&&a&&(i+=qp),a){var h=o;o=i,i=h}for(var p=0;p<o;p+=Math.PI/2)p>i&&(Qp[0]=Yp(p)*n+e,Qp[1]=Xp(p)*r+t,u(s,Qp,s),c(l,Qp,l))}var af={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},sf=[],lf=[],uf=[],cf=[],df=[],hf=[],pf=Math.min,ff=Math.max,gf=Math.cos,mf=Math.sin,yf=Math.abs,vf=Math.PI,xf=2*vf,bf="undefined"!=typeof Float32Array,_f=[];function wf(e){return Math.round(e/vf*1e8)/1e8%2*vf}var Sf=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}var t;return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){(n=n||0)>0&&(this._ux=yf(n/kp/e)||0,this._uy=yf(n/kp/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},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(e,t){return this._drawPendingPt(),this.addData(af.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=yf(e-this._xi),r=yf(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(af.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){return this._drawPendingPt(),this.addData(af.C,e,t,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(af.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,o){this._drawPendingPt(),_f[0]=r,_f[1]=i,function(e,t){var n=wf(e[0]);n<0&&(n+=xf);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=xf?i=n+xf:t&&n-i>=xf?i=n-xf:!t&&n>i?i=n+(xf-wf(n-i)):t&&n<i&&(i=n-(xf-wf(i-n))),e[0]=n,e[1]=i}(_f,o),r=_f[0];var a=(i=_f[1])-r;return this.addData(af.A,e,t,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,o),this._xi=gf(i)*n+e,this._yi=mf(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(af.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(af.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!bf||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();bf&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<t;i++)for(var o=e[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},e.prototype.addData=function(e,t,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},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 e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,bf&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){uf[0]=uf[1]=df[0]=df[1]=Number.MAX_VALUE,cf[0]=cf[1]=hf[0]=hf[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,i=0,o=0;for(e=0;e<this._len;){var a=t[e++],s=1===e;switch(s&&(i=n=t[e],o=r=t[e+1]),a){case af.M:n=i=t[e++],r=o=t[e++],df[0]=i,df[1]=o,hf[0]=i,hf[1]=o;break;case af.L:Jp(n,r,t[e],t[e+1],df,hf),n=t[e++],r=t[e++];break;case af.C:nf(n,r,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],df,hf),n=t[e++],r=t[e++];break;case af.Q:rf(n,r,t[e++],t[e++],t[e],t[e+1],df,hf),n=t[e++],r=t[e++];break;case af.A:var l=t[e++],u=t[e++],c=t[e++],d=t[e++],h=t[e++],p=t[e++]+h;e+=1;var f=!t[e++];s&&(i=gf(h)*c+l,o=mf(h)*d+u),of(l,u,c,d,h,p,f,df,hf),n=gf(p)*c+l,r=mf(p)*d+u;break;case af.R:Jp(i=n=t[e++],o=r=t[e++],i+t[e++],o+t[e++],df,hf);break;case af.Z:n=i,r=o}lh(uf,uf,df),uh(cf,cf,hf)}return 0===e&&(uf[0]=uf[1]=cf[0]=cf[1]=0),new Dd(uf[0],uf[1],cf[0]-uf[0],cf[1]-uf[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,d=0;d<t;){var h=e[d++],p=1===d;p&&(a=i=e[d],s=o=e[d+1]);var f=-1;switch(h){case af.M:i=a=e[d++],o=s=e[d++];break;case af.L:var g=e[d++],m=(x=e[d++])-o;(yf(P=g-i)>n||yf(m)>r||d===t-1)&&(f=Math.sqrt(P*P+m*m),i=g,o=x);break;case af.C:var y=e[d++],v=e[d++],x=(g=e[d++],e[d++]),b=e[d++],_=e[d++];f=Oh(i,o,y,v,g,x,b,_,10),i=b,o=_;break;case af.Q:f=Fh(i,o,y=e[d++],v=e[d++],g=e[d++],x=e[d++],10),i=g,o=x;break;case af.A:var w=e[d++],S=e[d++],k=e[d++],C=e[d++],T=e[d++],M=e[d++],I=M+T;d+=1,p&&(a=gf(T)*k+w,s=mf(T)*C+S),f=ff(k,C)*pf(xf,Math.abs(M)),i=gf(I)*k+w,o=mf(I)*C+S;break;case af.R:a=i=e[d++],s=o=e[d++],f=2*e[d++]+2*e[d++];break;case af.Z:var P=a-i;m=s-o;f=Math.sqrt(P*P+m*m),i=a,o=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},e.prototype.rebuildPath=function(e,t){var n,r,i,o,a,s,l,u,c,d,h=this.data,p=this._ux,f=this._uy,g=this._len,m=t<1,y=0,v=0,x=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=t*this._pathLen))e:for(var b=0;b<g;){var _=h[b++],w=1===b;switch(w&&(n=i=h[b],r=o=h[b+1]),_!==af.L&&x>0&&(e.lineTo(c,d),x=0),_){case af.M:n=i=h[b++],r=o=h[b++],e.moveTo(i,o);break;case af.L:a=h[b++],s=h[b++];var S=yf(a-i),k=yf(s-o);if(S>p||k>f){if(m){if(y+(Y=l[v++])>u){var C=(u-y)/Y;e.lineTo(i*(1-C)+a*C,o*(1-C)+s*C);break e}y+=Y}e.lineTo(a,s),i=a,o=s,x=0}else{var T=S*S+k*k;T>x&&(c=a,d=s,x=T)}break;case af.C:var M=h[b++],I=h[b++],P=h[b++],D=h[b++],A=h[b++],E=h[b++];if(m){if(y+(Y=l[v++])>u){Rh(i,M,P,A,C=(u-y)/Y,sf),Rh(o,I,D,E,C,lf),e.bezierCurveTo(sf[1],lf[1],sf[2],lf[2],sf[3],lf[3]);break e}y+=Y}e.bezierCurveTo(M,I,P,D,A,E),i=A,o=E;break;case af.Q:M=h[b++],I=h[b++],P=h[b++],D=h[b++];if(m){if(y+(Y=l[v++])>u){Bh(i,M,P,C=(u-y)/Y,sf),Bh(o,I,D,C,lf),e.quadraticCurveTo(sf[1],lf[1],sf[2],lf[2]);break e}y+=Y}e.quadraticCurveTo(M,I,P,D),i=P,o=D;break;case af.A:var R=h[b++],O=h[b++],L=h[b++],N=h[b++],z=h[b++],B=h[b++],F=h[b++],$=!h[b++],W=L>N?L:N,j=yf(L-N)>.001,V=z+B,H=!1;if(m)y+(Y=l[v++])>u&&(V=z+B*(u-y)/Y,H=!0),y+=Y;if(j&&e.ellipse?e.ellipse(R,O,L,N,F,z,V,$):e.arc(R,O,W,z,V,$),H)break e;w&&(n=gf(z)*L+R,r=mf(z)*N+O),i=gf(V)*L+R,o=mf(V)*N+O;break;case af.R:n=i=h[b],r=o=h[b+1],a=h[b++],s=h[b++];var G=h[b++],U=h[b++];if(m){if(y+(Y=l[v++])>u){var X=u-y;e.moveTo(a,s),e.lineTo(a+pf(X,G),s),(X-=G)>0&&e.lineTo(a+G,s+pf(X,U)),(X-=U)>0&&e.lineTo(a+ff(G-X,0),s+U),(X-=G)>0&&e.lineTo(a,s+ff(U-X,0));break e}y+=Y}e.rect(a,s,G,U);break;case af.Z:if(m){var Y;if(y+(Y=l[v++])>u){C=(u-y)/Y;e.lineTo(i*(1-C)+n*C,o*(1-C)+r*C);break e}y+=Y}e.closePath(),i=n,o=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=af,e.initDefaultProps=((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,void(t._version=0)),e}();function kf(e,t,n,r,i,o,a){if(0===i)return!1;var s=i,l=0;if(a>t+s&&a>r+s||a<t-s&&a<r-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e===n)return Math.abs(o-e)<=s/2;var u=(l=(t-r)/(e-n))*o-a+(e*r-n*t)/(e-n);return u*u/(l*l+1)<=s/2*s/2}function Cf(e,t,n,r,i,o,a,s,l,u,c){if(0===l)return!1;var d=l;if(c>t+d&&c>r+d&&c>o+d&&c>s+d||c<t-d&&c<r-d&&c<o-d&&c<s-d||u>e+d&&u>n+d&&u>i+d&&u>a+d||u<e-d&&u<n-d&&u<i-d&&u<a-d)return!1;var h=function(e,t,n,r,i,o,a,s,l,u){var c,d,h,p,f,g=.005,m=1/0;kh[0]=l,kh[1]=u;for(var y=0;y<1;y+=.05)Ch[0]=Ph(e,n,i,a,y),Ch[1]=Ph(t,r,o,s,y),(p=ah(kh,Ch))<m&&(c=y,m=p);m=1/0;for(var v=0;v<32&&!(g<_h);v++)d=c-g,h=c+g,Ch[0]=Ph(e,n,i,a,d),Ch[1]=Ph(t,r,o,s,d),p=ah(Ch,kh),d>=0&&p<m?(c=d,m=p):(Th[0]=Ph(e,n,i,a,h),Th[1]=Ph(t,r,o,s,h),f=ah(Th,kh),h<=1&&f<m?(c=h,m=f):g*=.5);return bh(m)}(e,t,n,r,i,o,a,s,u,c);return h<=d/2}function Tf(e,t,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;if(l>t+u&&l>r+u&&l>o+u||l<t-u&&l<r-u&&l<o-u||s>e+u&&s>n+u&&s>i+u||s<e-u&&s<n-u&&s<i-u)return!1;var c=function(e,t,n,r,i,o,a,s){var l,u=.005,c=1/0;kh[0]=a,kh[1]=s;for(var d=0;d<1;d+=.05)Ch[0]=Lh(e,n,i,d),Ch[1]=Lh(t,r,o,d),(g=ah(kh,Ch))<c&&(l=d,c=g);c=1/0;for(var h=0;h<32&&!(u<_h);h++){var p=l-u,f=l+u;Ch[0]=Lh(e,n,i,p),Ch[1]=Lh(t,r,o,p);var g=ah(Ch,kh);if(p>=0&&g<c)l=p,c=g;else{Th[0]=Lh(e,n,i,f),Th[1]=Lh(t,r,o,f);var m=ah(Th,kh);f<=1&&m<c?(l=f,c=m):u*=.5}}return bh(c)}(e,t,n,r,i,o,s,l);return c<=u/2}var Mf=2*Math.PI;function If(e){return(e%=Mf)<0&&(e+=Mf),e}var Pf=2*Math.PI;function Df(e,t,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%Pf<1e-4)return!0;if(o){var d=r;r=If(i),i=If(d)}else r=If(r),i=If(i);r>i&&(i+=Pf);var h=Math.atan2(l,s);return h<0&&(h+=Pf),h>=r&&h<=i||h+Pf>=r&&h+Pf<=i}function Af(e,t,n,r,i,o){if(o>t&&o>r||o<t&&o<r)return 0;if(r===t)return 0;var a=(o-t)/(r-t),s=r<t?1:-1;1!==a&&0!==a||(s=r<t?.5:-.5);var l=a*(n-e)+e;return l===i?1/0:l>i?s:0}var Ef=Sf.CMD,Rf=2*Math.PI;var Of=[-1,-1,-1],Lf=[-1,-1];function Nf(){var e=Lf[0];Lf[0]=Lf[1],Lf[1]=e}function zf(e,t,n,r,i,o,a,s,l,u){if(u>t&&u>r&&u>o&&u>s||u<t&&u<r&&u<o&&u<s)return 0;var c=Ah(t,r,o,s,u,Of);if(0===c)return 0;for(var d=0,h=-1,p=void 0,f=void 0,g=0;g<c;g++){var m=Of[g],y=0===m||1===m?.5:1;Ph(e,n,i,a,m)<l||(h<0&&(h=Eh(t,r,o,s,Lf),Lf[1]<Lf[0]&&h>1&&Nf(),p=Ph(t,r,o,s,Lf[0]),h>1&&(f=Ph(t,r,o,s,Lf[1]))),2===h?m<Lf[0]?d+=p<t?y:-y:m<Lf[1]?d+=f<p?y:-y:d+=s<f?y:-y:m<Lf[0]?d+=p<t?y:-y:d+=s<p?y:-y)}return d}function Bf(e,t,n,r,i,o,a,s){if(s>t&&s>r&&s>o||s<t&&s<r&&s<o)return 0;var l=function(e,t,n,r,i){var o=e-2*t+n,a=2*(t-e),s=e-r,l=0;if(Mh(o))Ih(a)&&(c=-s/a)>=0&&c<=1&&(i[l++]=c);else{var u=a*a-4*o*s;if(Mh(u))(c=-a/(2*o))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,d=bh(u),h=(-a-d)/(2*o);(c=(-a+d)/(2*o))>=0&&c<=1&&(i[l++]=c),h>=0&&h<=1&&(i[l++]=h)}}return l}(t,r,o,s,Of);if(0===l)return 0;var u=zh(t,r,o);if(u>=0&&u<=1){for(var c=0,d=Lh(t,r,o,u),h=0;h<l;h++){var p=0===Of[h]||1===Of[h]?.5:1;Lh(e,n,i,Of[h])<a||(Of[h]<u?c+=d<t?p:-p:c+=o<d?p:-p)}return c}p=0===Of[0]||1===Of[0]?.5:1;return Lh(e,n,i,Of[0])<a?0:o<t?p:-p}function Ff(e,t,n,r,i,o,a,s){if((s-=t)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Of[0]=-l,Of[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Rf-1e-4){r=0,i=Rf;var c=o?1:-1;return a>=Of[0]+e&&a<=Of[1]+e?c:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=Rf,i+=Rf);for(var h=0,p=0;p<2;p++){var f=Of[p];if(f+e>a){var g=Math.atan2(s,f);c=o?1:-1;g<0&&(g=Rf+g),(g>=r&&g<=i||g+Rf>=r&&g+Rf<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),h+=c)}}return h}function $f(e,t,n,r,i){for(var o,a,s,l,u=e.data,c=e.len(),d=0,h=0,p=0,f=0,g=0,m=0;m<c;){var y=u[m++],v=1===m;switch(y===Ef.M&&m>1&&(n||(d+=Af(h,p,f,g,r,i))),v&&(f=h=u[m],g=p=u[m+1]),y){case Ef.M:h=f=u[m++],p=g=u[m++];break;case Ef.L:if(n){if(kf(h,p,u[m],u[m+1],t,r,i))return!0}else d+=Af(h,p,u[m],u[m+1],r,i)||0;h=u[m++],p=u[m++];break;case Ef.C:if(n){if(Cf(h,p,u[m++],u[m++],u[m++],u[m++],u[m],u[m+1],t,r,i))return!0}else d+=zf(h,p,u[m++],u[m++],u[m++],u[m++],u[m],u[m+1],r,i)||0;h=u[m++],p=u[m++];break;case Ef.Q:if(n){if(Tf(h,p,u[m++],u[m++],u[m],u[m+1],t,r,i))return!0}else d+=Bf(h,p,u[m++],u[m++],u[m],u[m+1],r,i)||0;h=u[m++],p=u[m++];break;case Ef.A:var x=u[m++],b=u[m++],_=u[m++],w=u[m++],S=u[m++],k=u[m++];m+=1;var C=!!(1-u[m++]);o=Math.cos(S)*_+x,a=Math.sin(S)*w+b,v?(f=o,g=a):d+=Af(h,p,o,a,r,i);var T=(r-x)*w/_+x;if(n){if(Df(x,b,w,S,S+k,C,t,T,i))return!0}else d+=Ff(x,b,w,S,S+k,C,T,i);h=Math.cos(S+k)*_+x,p=Math.sin(S+k)*w+b;break;case Ef.R:if(f=h=u[m++],g=p=u[m++],o=f+u[m++],a=g+u[m++],n){if(kf(f,g,o,g,t,r,i)||kf(o,g,o,a,t,r,i)||kf(o,a,f,a,t,r,i)||kf(f,a,f,g,t,r,i))return!0}else d+=Af(o,g,o,a,r,i),d+=Af(f,a,f,g,r,i);break;case Ef.Z:if(n){if(kf(h,p,f,g,t,r,i))return!0}else d+=Af(h,p,f,g,r,i);h=f,p=g}}return n||(s=p,l=g,Math.abs(s-l)<1e-4)||(d+=Af(h,p,f,g,r,i)||0),0!==d}var Wf=sc({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Bp),jf={style:sc({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Fp.style)},Vf=yh.concat(["invisible","culling","z","z2","zlevel","parent"]),Hf=function(e){function t(t){return e.call(this,t)||this}var n;return $u(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<Vf.length;++s)i[Vf[s]]=this[Vf[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=gc(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=t[o];"style"===o?this.style?ac(this.style,a):this.useStyle(a):"shape"===o?ac(this.shape,a):e.prototype.attrKV.call(this,o,a)}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 e=this.style.fill;if("none"!==e){if(bc(e)){var t=op(e,0);return t>.5?Cp:t>.2?"#eee":Tp}if(e)return Tp}return Cp},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(bc(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())===op(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Sf(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||4&this.__dirty)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(e,t,n,r){return $f(e,t,!0,n,r)}(o,a/s,e,t)))return!0}if(this.hasFill())return function(e,t,n){return $f(e,0,!1,t,n)}(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:ac(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(4&this.__dirty)},t.prototype.createStyle=function(e){return Vc(Wf,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=ac({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=ac({},r.shape),ac(s,n.shape)):(s=ac({},i?this.shape:r.shape),ac(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=ac({},this.shape);for(var u={},c=gc(s),d=0;d<c.length;d++){var h=c[d];"object"==typeof s[h]?this.shape[h]=s[h]:u[h]=s[h]}this._transitionState(t,{shape:u},a)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return jf},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return $u(n,t),n.prototype.getDefaultStyle=function(){return ic(e.style)},n.prototype.getDefaultShape=function(){return ic(e.shape)},n}(t);for(var r in e)"function"==typeof e[r]&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=((n=t.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=7)),t}(jp),Gf=sc({strokeFirst:!0,font:Wu,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Wf),Uf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $u(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return Vc(Gf,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=Od(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(jp);Uf.prototype.type="tspan";var Xf=sc({x:0,y:0},Bp),Yf={style:sc({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Fp.style)};var qf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $u(t,e),t.prototype.createStyle=function(e){return Vc(Xf,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r,i=(r=t.image)&&"string"!=typeof r&&r.width&&r.height?t.image:this.__image;if(!i)return 0;var o="width"===e?"height":"width",a=t[o];return null==a?i[e]:i[e]/i[o]*a},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Yf},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Dd(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(jp);qf.prototype.type="image";var Kf=Math.round;function Zf(e,t,n){if(t){var r=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=r,e.x2=i,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s?(Kf(2*r)===Kf(2*i)&&(e.x1=e.x2=Jf(r,s,!0)),Kf(2*o)===Kf(2*a)&&(e.y1=e.y2=Jf(o,s,!0)),e):e}}function Qf(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,a=t.height;e.x=r,e.y=i,e.width=o,e.height=a;var s=n&&n.lineWidth;return s?(e.x=Jf(r,s,!0),e.y=Jf(i,s,!0),e.width=Math.max(Jf(r+o,s,!1)-e.x,0===o?0:1),e.height=Math.max(Jf(i+a,s,!1)-e.y,0===a?0:1),e):e}}function Jf(e,t,n){if(!t)return e;var r=Kf(2*e);return(r+Kf(t))%2==0?r/2:(r+(n?1:-1))/2}var eg=function(){return function(){this.x=0,this.y=0,this.width=0,this.height=0}}(),tg={},ng=function(e){function t(t){return e.call(this,t)||this}return $u(t,e),t.prototype.getDefaultShape=function(){return new eg},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var a=Qf(tg,t,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=t.r,t=a}else n=t.x,r=t.y,i=t.width,o=t.height;t.r?function(e,t){var n,r,i,o,a,s=t.x,l=t.y,u=t.width,c=t.height,d=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof d?n=r=i=o=d:d instanceof Array?1===d.length?n=r=i=o=d[0]:2===d.length?(n=i=d[0],r=o=d[1]):3===d.length?(n=d[0],r=o=d[1],i=d[2]):(n=d[0],r=d[1],i=d[2],o=d[3]):n=r=i=o=0,n+r>u&&(n*=u/(a=n+r),r*=u/a),i+o>u&&(i*=u/(a=i+o),o*=u/a),r+i>c&&(r*=c/(a=r+i),i*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-r,l),0!==r&&e.arc(s+u-r,l+r,r,-Math.PI/2,0),e.lineTo(s+u,l+c-i),0!==i&&e.arc(s+u-i,l+c-i,i,0,Math.PI/2),e.lineTo(s+o,l+c),0!==o&&e.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(e,t):e.rect(n,r,i,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Hf);ng.prototype.type="rect";var rg={fill:"#000"},ig={style:sc({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},Fp.style)},og=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=rg,n.attr(t),n}return $u(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];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 t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,dg(e=this.style),dc(e.rich,dg),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);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 e=new Dd(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var o=t[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(e.copy(a),e.applyTransform(s),(r=r||e.clone()).union(e)):(r=r||a.clone()).union(a)}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||rg},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return ac(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=gc(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},ac(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return ig},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||Wu,n=e.padding,r=function(e,t){null!=e&&(e+="");var n,r=t.overflow,i=t.padding,o=t.font,a="truncate"===r,s=zd(o),l=Dc(t.lineHeight,s),u=!!t.backgroundColor,c="truncate"===t.lineOverflow,d=t.width,h=(n=null==d||"break"!==r&&"breakAll"!==r?e?e.split("\n"):[]:e?Zd(e,t.font,d,"breakAll"===r,0).lines:[]).length*l,p=Dc(t.height,h);if(h>p&&c){var f=Math.floor(p/l);n=n.slice(0,f)}if(e&&a&&null!=d)for(var g=jd(d,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m=0;m<n.length;m++)n[m]=Vd(n[m],g);var y=p,v=0;for(m=0;m<n.length;m++)v=Math.max(Ed(n[m],o),v);null==d&&(d=v);var x=v;return i&&(y+=i[0]+i[2],x+=i[1]+i[3],d+=i[1]+i[3]),u&&(x=d),{lines:n,height:p,outerWidth:x,outerHeight:y,lineHeight:l,calculatedLineHeight:s,contentWidth:v,contentHeight:h,width:d}}(gg(e),e),i=mg(e),o=!!e.backgroundColor,a=r.outerHeight,s=r.outerWidth,l=r.contentWidth,u=r.lines,c=r.lineHeight,d=this._defaultStyle,h=e.x||0,p=e.y||0,f=e.align||d.align||"left",g=e.verticalAlign||d.verticalAlign||"top",m=h,y=Nd(p,r.contentHeight,g);if(i||n){var v=Ld(h,s,f),x=Nd(p,a,g);i&&this._renderBackground(e,e,v,x,s,a)}y+=c/2,n&&(m=fg(h,f,n),"top"===g?y+=n[0]:"bottom"===g&&(y-=n[2]));for(var b=0,_=!1,w=(pg("fill"in e?e.fill:(_=!0,d.fill))),S=(hg("stroke"in e?e.stroke:o||d.autoStroke&&!_?null:(b=2,d.stroke))),k=e.textShadowBlur>0,C=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),T=r.calculatedLineHeight,M=0;M<u.length;M++){var I=this._getOrCreateChild(Uf),P=I.createStyle();I.useStyle(P),P.text=u[M],P.x=m,P.y=y,P.textAlign=f,P.textBaseline="middle",P.opacity=e.opacity,P.strokeFirst=!0,k&&(P.shadowBlur=e.textShadowBlur||0,P.shadowColor=e.textShadowColor||"transparent",P.shadowOffsetX=e.textShadowOffsetX||0,P.shadowOffsetY=e.textShadowOffsetY||0),P.stroke=S,P.fill=w,S&&(P.lineWidth=e.lineWidth||b,P.lineDash=e.lineDash,P.lineDashOffset=e.lineDashOffset||0),P.font=t,cg(P,e),y+=c,C&&I.setBoundingRect(new Dd(Ld(P.x,e.width,P.textAlign),Nd(P.y,T,P.textBaseline),l,T))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n=new Xd;if(null!=e&&(e+=""),!e)return n;for(var r,i=t.width,o=t.height,a=t.overflow,s="break"!==a&&"breakAll"!==a||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===a},l=$d.lastIndex=0;null!=(r=$d.exec(e));){var u=r.index;u>l&&Yd(n,e.substring(l,u),t,s),Yd(n,r[2],t,s,r[1]),l=$d.lastIndex}l<e.length&&Yd(n,e.substring(l,e.length),t,s);var c=[],d=0,h=0,p=t.padding,f="truncate"===a,g="truncate"===t.lineOverflow;function m(e,t,n){e.width=t,e.lineHeight=n,d+=n,h=Math.max(h,t)}e:for(var y=0;y<n.lines.length;y++){for(var v=n.lines[y],x=0,b=0,_=0;_<v.tokens.length;_++){var w=(E=v.tokens[_]).styleName&&t.rich[E.styleName]||{},S=E.textPadding=w.padding,k=S?S[1]+S[3]:0,C=E.font=w.font||t.font;E.contentHeight=zd(C);var T=Dc(w.height,E.contentHeight);if(E.innerHeight=T,S&&(T+=S[0]+S[2]),E.height=T,E.lineHeight=Ac(w.lineHeight,t.lineHeight,T),E.align=w&&w.align||t.align,E.verticalAlign=w&&w.verticalAlign||"middle",g&&null!=o&&d+E.lineHeight>o){_>0?(v.tokens=v.tokens.slice(0,_),m(v,b,x),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break e}var M=w.width,I=null==M||"auto"===M;if("string"==typeof M&&"%"===M.charAt(M.length-1))E.percentWidth=M,c.push(E),E.contentWidth=Ed(E.text,C);else{if(I){var P=w.backgroundColor,D=P&&P.image;D&&gd(D=hd(D))&&(E.width=Math.max(E.width,D.width*T/D.height))}var A=f&&null!=i?i-b:null;null!=A&&A<E.width?!I||A<k?(E.text="",E.width=E.contentWidth=0):(E.text=Wd(E.text,A-k,C,t.ellipsis,{minChar:t.truncateMinChar}),E.width=E.contentWidth=Ed(E.text,C)):E.contentWidth=Ed(E.text,C)}E.width+=k,b+=E.width,w&&(x=Math.max(x,E.lineHeight))}m(v,b,x)}for(n.outerWidth=n.width=Dc(i,h),n.outerHeight=n.height=Dc(o,d),n.contentHeight=d,n.contentWidth=h,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]),y=0;y<c.length;y++){var E,R=(E=c[y]).percentWidth;E.width=parseInt(R,10)/100*n.width}return n}(gg(e),e),n=t.width,r=t.outerWidth,i=t.outerHeight,o=e.padding,a=e.x||0,s=e.y||0,l=this._defaultStyle,u=e.align||l.align,c=e.verticalAlign||l.verticalAlign,d=Ld(a,r,u),h=Nd(s,i,c),p=d,f=h;o&&(p+=o[3],f+=o[0]);var g=p+n;mg(e)&&this._renderBackground(e,e,d,h,r,i);for(var m=!!e.backgroundColor,y=0;y<t.lines.length;y++){for(var v=t.lines[y],x=v.tokens,b=x.length,_=v.lineHeight,w=v.width,S=0,k=p,C=g,T=b-1,M=void 0;S<b&&(!(M=x[S]).align||"left"===M.align);)this._placeToken(M,e,_,f,k,"left",m),w-=M.width,k+=M.width,S++;for(;T>=0&&"right"===(M=x[T]).align;)this._placeToken(M,e,_,f,C,"right",m),w-=M.width,C-=M.width,T--;for(k+=(n-(k-p)-(g-C)-w)/2;S<=T;)M=x[S],this._placeToken(M,e,_,f,k+M.width/2,"center",m),k+=M.width,S++;f+=_}},t.prototype._placeToken=function(e,t,n,r,i,o,a){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,u=r+n/2;"top"===l?u=r+e.height/2:"bottom"===l&&(u=r+n-e.height/2),!e.isLineHolder&&mg(s)&&this._renderBackground(s,t,"right"===o?i-e.width:"center"===o?i-e.width/2:i,u-e.height/2,e.width,e.height);var c=!!s.backgroundColor,d=e.textPadding;d&&(i=fg(i,o,d),u-=e.height/2-d[0]-e.innerHeight/2);var h=this._getOrCreateChild(Uf),p=h.createStyle();h.useStyle(p);var f=this._defaultStyle,g=!1,m=0,y=pg("fill"in s?s.fill:"fill"in t?t.fill:(g=!0,f.fill)),v=hg("stroke"in s?s.stroke:"stroke"in t?t.stroke:c||a||f.autoStroke&&!g?null:(m=2,f.stroke)),x=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=u,x&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=e.font||Wu,p.opacity=Ac(s.opacity,t.opacity,1),cg(p,s),v&&(p.lineWidth=Ac(s.lineWidth,t.lineWidth,m),p.lineDash=Dc(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=v),y&&(p.fill=y);var b=e.contentWidth,_=e.contentHeight;h.setBoundingRect(new Dd(Ld(p.x,b,p.textAlign),Nd(p.y,_,p.textBaseline),b,_))},t.prototype._renderBackground=function(e,t,n,r,i,o){var a,s,l,u=e.backgroundColor,c=e.borderWidth,d=e.borderColor,h=u&&u.image,p=u&&!h,f=e.borderRadius,g=this;if(p||e.lineHeight||c&&d){(a=this._getOrCreateChild(ng)).useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=n,m.y=r,m.width=i,m.height=o,m.r=f,a.dirtyShape()}if(p)(l=a.style).fill=u||null,l.fillOpacity=Dc(e.fillOpacity,1);else if(h){(s=this._getOrCreateChild(qf)).onload=function(){g.dirtyStyle()};var y=s.style;y.image=u.image,y.x=n,y.y=r,y.width=i,y.height=o}c&&d&&((l=a.style).lineWidth=c,l.stroke=d,l.strokeOpacity=Dc(e.strokeOpacity,1),l.lineDash=e.borderDash,l.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var v=(a||s).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||"transparent",v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=Ac(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return function(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}(e)&&(t=[e.fontStyle,e.fontWeight,ug(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Lc(t)||e.textFont||e.font},t}(jp),ag={left:!0,right:1,center:1},sg={top:1,bottom:1,middle:1},lg=["fontStyle","fontWeight","fontSize","fontFamily"];function ug(e){return"string"!=typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?"12px":e+"px":e}function cg(e,t){for(var n=0;n<lg.length;n++){var r=lg[n],i=t[r];null!=i&&(e[r]=i)}}function dg(e){if(e){e.font=og.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||ag[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||sg[n]?n:"top",e.padding&&(e.padding=Rc(e.padding))}}function hg(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function pg(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function fg(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function gg(e){var t=e.text;return null!=t&&(t+=""),t}function mg(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}function yg(e,t,n,r){var i=t[0],o=t[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*u+a}function vg(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return bc(e)?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function xg(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function bg(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return function(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}(e)}function _g(e,t){var n=Math.max(bg(e),bg(t)),r=e+t;return n>20?r:xg(r,n)}function wg(e){var t=2*Math.PI;return(e%t+t)%t}function Sg(e){return e>-1e-4&&e<1e-4}var kg=/^(?:(\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 Cg(e){if(e instanceof Date)return e;if(bc(e)){var t=kg.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}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)}return null==e?new Date(NaN):new Date(Math.round(e))}function Tg(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function Mg(e,t){var n=Tg(e),r=Math.pow(10,n),i=e/r;return e=(i<1.5?1:i<2.5?2:i<4?3:i<7?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function Ig(e){var t=parseFloat(e);return t==e&&(0!==t||!bc(e)||e.indexOf("x")<=0)?t:NaN}function Pg(){return Math.round(9*Math.random())}function Dg(e,t){return 0===t?e:Dg(t,e%t)}function Ag(e,t){return null==e?t:null==t?e:e*t/Dg(e,t)}function Eg(e){throw new Error(e)}function Rg(e,t,n){return(t-e)*n+e}var Og="series\0";function Lg(e){return e instanceof Array?e:null==e?[]:[e]}function Ng(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var zg=["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 Bg(e){return!Sc(e)||vc(e)||e instanceof Date?e:e.value}function Fg(e){return Sc(e)&&!(e instanceof Array)}function $g(e,t,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;e=e||[],t=(t||[]).slice();var a=jc();dc(t,function(e,n){Sc(e)||(t[n]=null)});var s,l,u=function(e,t,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<e.length;i++){var o=e[i];o&&null!=o.id&&t.set(o.id,i),r.push({existing:"replaceMerge"===n||Gg(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(e,a,n);return(r||i)&&function(e,t,n,r){dc(r,function(i,o){if(i&&null!=i.id){var a=jg(i.id),s=n.get(a);if(null!=s){var l=e[s];Oc(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=t[s],r[o]=null}}})}(u,e,a,t),r&&function(e,t){dc(t,function(n,r){if(n&&null!=n.name)for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(null==o.id||null==n.id)&&!Gg(n)&&!Gg(o)&&Wg("name",o,n))return e[i].newOption=n,void(t[r]=null)}})}(u,t),r||i?function(e,t,n){dc(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||Gg(r.existing)||r.existing&&null!=t.id&&!Wg("id",t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}(u,t,i):o&&function(e,t){dc(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}(u,t),s=u,l=jc(),dc(s,function(e){var t=e.existing;t&&l.set(t.id,e)}),dc(s,function(e){var t=e.newOption;Oc(!t||null==t.id||!l.get(t.id)||l.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&l.set(t.id,e),!e.keyInfo&&(e.keyInfo={})}),dc(s,function(e,t){var n=e.existing,r=e.newOption,i=e.keyInfo;if(Sc(r)){if(i.name=null!=r.name?jg(r.name):n?n.name:Og+t,n)i.id=jg(n.id);else if(null!=r.id)i.id=jg(r.id);else{var o=0;do{i.id="\0"+i.name+"\0"+o++}while(l.get(i.id))}l.set(i.id,e)}}),u}function Wg(e,t,n){var r=Vg(t[e],null),i=Vg(n[e],null);return null!=r&&null!=i&&r===i}function jg(e){return Vg(e,"")}function Vg(e,t){return null==e?t:bc(e)?e:wc(e)||_c(e)?e+"":t}function Hg(e){var t=e.name;return!(!t||!t.indexOf(Og))}function Gg(e){return e&&null!=e.id&&0===jg(e.id).indexOf("\0_ec_\0")}function Ug(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?vc(t.dataIndex)?hc(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?vc(t.name)?hc(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function Xg(){var e="__ec_inner_"+Yg++;return function(t){return t[e]||(t[e]={})}}var Yg=Pg();function qg(e,t,n){var r=Kg(t,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=n?n.defaultMainType:null;return!i&&s&&o.set(s,{}),o.each(function(t,r){var i=Qg(e,r,t,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[r+"Models"]=i.models,a[r+"Model"]=i.models[0]}),a}function Kg(e,t){var n;if(bc(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var i=jc(),o={},a=!1;return dc(n,function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(t&&t.includeMainTypes&&lc(t.includeMainTypes,s)<0))a=a||!!s,(i.get(s)||i.set(s,{}))[l]=e}else o[n]=e}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var Zg={useDefault:!0,enableAll:!1,enableNone:!1};function Qg(e,t,n,r){r=r||Zg;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return"none"===i||!1===i?(Oc(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(Oc(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=e.queryComponents({mainType:t,index:i,id:o,name:a}),s)}function Jg(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}var em=Xg(),tm=1,nm={},rm=Xg(),im=Xg(),om=["emphasis","blur","select"],am=["normal","emphasis","blur","select"],sm="highlight",lm="downplay",um="select",cm="unselect",dm="toggleSelect";function hm(e){return null!=e&&"none"!==e}function pm(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function fm(e){pm(e,"emphasis",2)}function gm(e){2===e.hoverState&&pm(e,"normal",0)}function mm(e){pm(e,"blur",1)}function ym(e){1===e.hoverState&&pm(e,"normal",0)}function vm(e){e.selected=!0}function xm(e){e.selected=!1}function bm(e,t,n){t(e,n)}function _m(e,t,n){bm(e,t,n),e.isGroup&&e.traverse(function(e){bm(e,t,n)})}function wm(e,t){switch(t){case"emphasis":e.hoverState=2;break;case"normal":e.hoverState=0;break;case"blur":e.hoverState=1;break;case"select":e.selected=!0}}function Sm(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,r){var i=n&&lc(n,"select")>=0,o=!1;if(e instanceof Hf){var a=rm(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(hm(s)||hm(l)){var u=(r=r||{}).style||{};"inherit"===u.fill?(o=!0,r=ac({},r),(u=ac({},u)).fill=s):!hm(u.fill)&&hm(s)?(o=!0,r=ac({},r),(u=ac({},u)).fill=sp(s)):!hm(u.stroke)&&hm(l)&&(o||(r=ac({},r),u=ac({},u)),u.stroke=sp(l)),r.style=u}}if(r&&null==r.z2){o||(r=ac({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(null!=c?c:10)}return r}(this,0,t,n);if("blur"===e)return function(e,t,n){var r=lc(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:function(e,t,n,r){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,t)}return o}(e,["opacity"],t,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=ac({},n),a=ac({opacity:r?i:.1*o.opacity},a),n.style=a),n}(this,e,n);if("select"===e)return function(e,t,n){if(n&&null==n.z2){n=ac({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:9)}return n}(this,0,n)}return n}function km(e){e.stateProxy=Sm;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Sm),n&&(n.stateProxy=Sm)}function Cm(e,t){!Em(e,t)&&!e.__highByOuter&&_m(e,fm)}function Tm(e,t){!Em(e,t)&&!e.__highByOuter&&_m(e,gm)}function Mm(e,t){e.__highByOuter|=1<<(t||0),_m(e,fm)}function Im(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&_m(e,gm)}function Pm(e){_m(e,ym)}function Dm(e){_m(e,vm)}function Am(e){_m(e,xm)}function Em(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Rm(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var o=im(i),a="series"===t,s=a?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse(function(e){ym(e)}),a&&n.push(i)),o.isBlured=!1}),dc(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Om(e,t,n,r){var i=r.getModel();function o(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&Pm(r)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var a=i.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(e){var i=a===e,u=e.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!i||"coordinateSystem"===n&&!(u&&s?u===s:i)||"series"===t&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&"self"===t||mm(e)}),cc(t))o(e.getData(),t);else if(Sc(t))for(var c=gc(t),d=0;d<c.length;d++)o(e.getData(c[d]),t[c[d]]);l.push(e),im(e).isBlured=!0}}),i.eachComponent(function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}})}}function Lm(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){im(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(e){mm(e)})}}}function Nm(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return i;var o=r.getModel().getComponent(e,t);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===em(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function zm(e){dc(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?Dm(t):Am(t)})})}function Bm(e){var t=[];return e.eachSeries(function(e){dc(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:e.seriesIndex};null!=r&&(o.dataType=r),t.push(o)}})}),t}function Fm(e,t,n){Hm(e,!0),_m(e,km),function(e,t,n){var r=em(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}(e,t,n)}function $m(e,t,n,r){r?function(e){Hm(e,!1)}(e):Fm(e,t,n)}var Wm=["emphasis","blur","select"],jm={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Vm(e,t,n,r){n=n||"itemStyle";for(var i=0;i<Wm.length;i++){var o=Wm[i],a=t.getModel([o,n]);e.ensureState(o).style=a[jm[n]]()}}function Hm(e,t){var n=!1===t,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Gm(e){return!(!e||!e.__highDownDispatcher)}function Um(e){var t=e.type;return t===um||t===cm||t===dm}function Xm(e){var t=e.type;return t===sm||t===lm}var Ym=Sf.CMD,qm=[[],[],[]],Km=Math.sqrt,Zm=Math.atan2;var Qm=Math.sqrt,Jm=Math.sin,ey=Math.cos,ty=Math.PI;function ny(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function ry(e,t){return(e[0]*t[0]+e[1]*t[1])/(ny(e)*ny(t))}function iy(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(ry(e,t))}function oy(e,t,n,r,i,o,a,s,l,u,c){var d=l*(ty/180),h=ey(d)*(e-n)/2+Jm(d)*(t-r)/2,p=-1*Jm(d)*(e-n)/2+ey(d)*(t-r)/2,f=h*h/(a*a)+p*p/(s*s);f>1&&(a*=Qm(f),s*=Qm(f));var g=(i===o?-1:1)*Qm((a*a*(s*s)-a*a*(p*p)-s*s*(h*h))/(a*a*(p*p)+s*s*(h*h)))||0,m=g*a*p/s,y=g*-s*h/a,v=(e+n)/2+ey(d)*m-Jm(d)*y,x=(t+r)/2+Jm(d)*m+ey(d)*y,b=iy([1,0],[(h-m)/a,(p-y)/s]),_=[(h-m)/a,(p-y)/s],w=[(-1*h-m)/a,(-1*p-y)/s],S=iy(_,w);if(ry(_,w)<=-1&&(S=ty),ry(_,w)>=1&&(S=0),S<0){var k=Math.round(S/ty*1e6)/1e6;S=2*ty+k%2*ty}c.addData(u,v,x,a,s,b,S,d,o)}var ay=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,sy=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var ly=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $u(t,e),t.prototype.applyTransform=function(e){},t}(Hf);function uy(e){return null!=e.setData}function cy(e,t){var n=function(e){var t=new Sf;if(!e)return t;var n,r=0,i=0,o=r,a=i,s=Sf.CMD,l=e.match(ay);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],d=c.charAt(0),h=void 0,p=c.match(sy)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);for(var m=0;m<f;){var y=void 0,v=void 0,x=void 0,b=void 0,_=void 0,w=void 0,S=void 0,k=r,C=i,T=void 0,M=void 0;switch(d){case"l":r+=p[m++],i+=p[m++],h=s.L,t.addData(h,r,i);break;case"L":r=p[m++],i=p[m++],h=s.L,t.addData(h,r,i);break;case"m":r+=p[m++],i+=p[m++],h=s.M,t.addData(h,r,i),o=r,a=i,d="l";break;case"M":r=p[m++],i=p[m++],h=s.M,t.addData(h,r,i),o=r,a=i,d="L";break;case"h":r+=p[m++],h=s.L,t.addData(h,r,i);break;case"H":r=p[m++],h=s.L,t.addData(h,r,i);break;case"v":i+=p[m++],h=s.L,t.addData(h,r,i);break;case"V":i=p[m++],h=s.L,t.addData(h,r,i);break;case"C":h=s.C,t.addData(h,p[m++],p[m++],p[m++],p[m++],p[m++],p[m++]),r=p[m-2],i=p[m-1];break;case"c":h=s.C,t.addData(h,p[m++]+r,p[m++]+i,p[m++]+r,p[m++]+i,p[m++]+r,p[m++]+i),r+=p[m-2],i+=p[m-1];break;case"S":y=r,v=i,T=t.len(),M=t.data,n===s.C&&(y+=r-M[T-4],v+=i-M[T-3]),h=s.C,k=p[m++],C=p[m++],r=p[m++],i=p[m++],t.addData(h,y,v,k,C,r,i);break;case"s":y=r,v=i,T=t.len(),M=t.data,n===s.C&&(y+=r-M[T-4],v+=i-M[T-3]),h=s.C,k=r+p[m++],C=i+p[m++],r+=p[m++],i+=p[m++],t.addData(h,y,v,k,C,r,i);break;case"Q":k=p[m++],C=p[m++],r=p[m++],i=p[m++],h=s.Q,t.addData(h,k,C,r,i);break;case"q":k=p[m++]+r,C=p[m++]+i,r+=p[m++],i+=p[m++],h=s.Q,t.addData(h,k,C,r,i);break;case"T":y=r,v=i,T=t.len(),M=t.data,n===s.Q&&(y+=r-M[T-4],v+=i-M[T-3]),r=p[m++],i=p[m++],h=s.Q,t.addData(h,y,v,r,i);break;case"t":y=r,v=i,T=t.len(),M=t.data,n===s.Q&&(y+=r-M[T-4],v+=i-M[T-3]),r+=p[m++],i+=p[m++],h=s.Q,t.addData(h,y,v,r,i);break;case"A":x=p[m++],b=p[m++],_=p[m++],w=p[m++],S=p[m++],oy(k=r,C=i,r=p[m++],i=p[m++],w,S,x,b,_,h=s.A,t);break;case"a":x=p[m++],b=p[m++],_=p[m++],w=p[m++],S=p[m++],oy(k=r,C=i,r+=p[m++],i+=p[m++],w,S,x,b,_,h=s.A,t)}}"z"!==d&&"Z"!==d||(h=s.Z,t.addData(h),r=o,i=a),n=h}return t.toStatic(),t}(e),r=ac({},t);return r.buildPath=function(e){if(uy(e)){e.setData(n.data),(t=e.getContext())&&e.rebuildPath(t,1)}else{var t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){!function(e,t){if(t){var n,r,i,o,a,s,l=e.data,u=e.len(),c=Ym.M,d=Ym.C,h=Ym.L,p=Ym.R,f=Ym.A,g=Ym.Q;for(i=0,o=0;i<u;){switch(n=l[i++],o=i,r=0,n){case c:case h:r=1;break;case d:r=3;break;case g:r=2;break;case f:var m=t[4],y=t[5],v=Km(t[0]*t[0]+t[1]*t[1]),x=Km(t[2]*t[2]+t[3]*t[3]),b=Zm(-t[1]/x,t[0]/v);l[i]*=v,l[i++]+=m,l[i]*=x,l[i++]+=y,l[i++]*=v,l[i++]*=x,l[i++]+=b,l[i++]+=b,o=i+=2;break;case p:s[0]=l[i++],s[1]=l[i++],sh(s,s,t),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],sh(s,s,t),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var _=qm[a];_[0]=l[i++],_[1]=l[i++],sh(_,_,t),l[o++]=_[0],l[o++]=_[1]}}e.increaseVersion()}}(n,e),this.dirtyShape()},r}var dy=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return $u(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=lc(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=lc(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new Dd(0,0,0,0),n=e||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(Dd.applyTransform(t,s,l),(i=i||t.clone()).union(t)):(i=i||s.clone()).union(s)}}return i||t},t}(Ep);dy.prototype.type="group";var hy=function(){return function(){this.cx=0,this.cy=0,this.r=0}}(),py=function(e){function t(t){return e.call(this,t)||this}return $u(t,e),t.prototype.getDefaultShape=function(){return new hy},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(Hf);py.prototype.type="circle";var fy=function(){return function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}}(),gy=function(e){function t(t){return e.call(this,t)||this}return $u(t,e),t.prototype.getDefaultShape=function(){return new fy},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,o=t.rx,a=t.ry,s=o*n,l=a*n;e.moveTo(r-o,i),e.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),e.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),e.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),e.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),e.closePath()},t}(Hf);gy.prototype.type="ellipse";var my=Math.PI,yy=2*my,vy=Math.sin,xy=Math.cos,by=Math.acos,_y=Math.atan2,wy=Math.abs,Sy=Math.sqrt,ky=Math.max,Cy=Math.min,Ty=1e-4;function My(e,t,n,r,i,o,a){var s=e-n,l=t-r,u=(a?o:-o)/Sy(s*s+l*l),c=u*l,d=-u*s,h=e+c,p=t+d,f=n+c,g=r+d,m=(h+f)/2,y=(p+g)/2,v=f-h,x=g-p,b=v*v+x*x,_=i-o,w=h*g-f*p,S=(x<0?-1:1)*Sy(ky(0,_*_*b-w*w)),k=(w*x-v*S)/b,C=(-w*v-x*S)/b,T=(w*x+v*S)/b,M=(-w*v+x*S)/b,I=k-m,P=C-y,D=T-m,A=M-y;return I*I+P*P>D*D+A*A&&(k=T,C=M),{cx:k,cy:C,x0:-c,y0:-d,x1:k*(i/_-1),y1:C*(i/_-1)}}function Iy(e,t){var n,r=ky(t.r,0),i=ky(t.r0||0,0),o=r>0;if(o||i>0){if(o||(r=i,i=0),i>r){var a=r;r=i,i=a}var s=t.startAngle,l=t.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=t.cx,c=t.cy,d=!!t.clockwise,h=wy(l-s),p=h>yy&&h%yy;if(p>Ty&&(h=p),r>Ty)if(h>yy-Ty)e.moveTo(u+r*xy(s),c+r*vy(s)),e.arc(u,c,r,s,l,!d),i>Ty&&(e.moveTo(u+i*xy(l),c+i*vy(l)),e.arc(u,c,i,l,s,d));else{var f=void 0,g=void 0,m=void 0,y=void 0,v=void 0,x=void 0,b=void 0,_=void 0,w=void 0,S=void 0,k=void 0,C=void 0,T=void 0,M=void 0,I=void 0,P=void 0,D=r*xy(s),A=r*vy(s),E=i*xy(l),R=i*vy(l),O=h>Ty;if(O){var L=t.cornerRadius;L&&(f=(n=function(e){var t;if(vc(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}(L))[0],g=n[1],m=n[2],y=n[3]);var N=wy(r-i)/2;if(v=Cy(N,m),x=Cy(N,y),b=Cy(N,f),_=Cy(N,g),k=w=ky(v,x),C=S=ky(b,_),(w>Ty||S>Ty)&&(T=r*xy(l),M=r*vy(l),I=i*xy(s),P=i*vy(s),h<my)){var z=function(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,d=s-o,h=d*l-c*u;if(!(h*h<Ty))return[e+(h=(c*(t-o)-d*(e-i))/h)*l,t+h*u]}(D,A,I,P,T,M,E,R);if(z){var B=D-z[0],F=A-z[1],$=T-z[0],W=M-z[1],j=1/vy(by((B*$+F*W)/(Sy(B*B+F*F)*Sy($*$+W*W)))/2),V=Sy(z[0]*z[0]+z[1]*z[1]);k=Cy(w,(r-V)/(j+1)),C=Cy(S,(i-V)/(j-1))}}}if(O)if(k>Ty){var H=Cy(m,k),G=Cy(y,k),U=My(I,P,D,A,r,H,d),X=My(T,M,E,R,r,G,d);e.moveTo(u+U.cx+U.x0,c+U.cy+U.y0),k<w&&H===G?e.arc(u+U.cx,c+U.cy,k,_y(U.y0,U.x0),_y(X.y0,X.x0),!d):(H>0&&e.arc(u+U.cx,c+U.cy,H,_y(U.y0,U.x0),_y(U.y1,U.x1),!d),e.arc(u,c,r,_y(U.cy+U.y1,U.cx+U.x1),_y(X.cy+X.y1,X.cx+X.x1),!d),G>0&&e.arc(u+X.cx,c+X.cy,G,_y(X.y1,X.x1),_y(X.y0,X.x0),!d))}else e.moveTo(u+D,c+A),e.arc(u,c,r,s,l,!d);else e.moveTo(u+D,c+A);if(i>Ty&&O)if(C>Ty){H=Cy(f,C),U=My(E,R,T,M,i,-(G=Cy(g,C)),d),X=My(D,A,I,P,i,-H,d);e.lineTo(u+U.cx+U.x0,c+U.cy+U.y0),C<S&&H===G?e.arc(u+U.cx,c+U.cy,C,_y(U.y0,U.x0),_y(X.y0,X.x0),!d):(G>0&&e.arc(u+U.cx,c+U.cy,G,_y(U.y0,U.x0),_y(U.y1,U.x1),!d),e.arc(u,c,i,_y(U.cy+U.y1,U.cx+U.x1),_y(X.cy+X.y1,X.cx+X.x1),d),H>0&&e.arc(u+X.cx,c+X.cy,H,_y(X.y1,X.x1),_y(X.y0,X.x0),!d))}else e.lineTo(u+E,c+R),e.arc(u,c,i,l,s,d);else e.lineTo(u+E,c+R)}else e.moveTo(u,c);e.closePath()}}}var Py=function(){return function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}}(),Dy=function(e){function t(t){return e.call(this,t)||this}return $u(t,e),t.prototype.getDefaultShape=function(){return new Py},t.prototype.buildPath=function(e,t){Iy(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Hf);Dy.prototype.type="sector";var Ay=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.r0=0}}(),Ey=function(e){function t(t){return e.call(this,t)||this}return $u(t,e),t.prototype.getDefaultShape=function(){return new Ay},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(Hf);function Ry(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var o=function(e,t,n,r){var i,o,a,s,l=[],u=[],c=[],d=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var h=0,p=e.length;h<p;h++)lh(a,a,e[h]),uh(s,s,e[h]);lh(a,a,r[0]),uh(s,s,r[1])}for(h=0,p=e.length;h<p;h++){var f=e[h];if(n)i=e[h?h-1:p-1],o=e[(h+1)%p];else{if(0===h||h===p-1){l.push(Jd(e[h]));continue}i=e[h-1],o=e[h+1]}th(u,o,i),nh(u,u,t);var g=ih(f,i),m=ih(f,o),y=g+m;0!==y&&(g/=y,m/=y),nh(c,u,-g),nh(d,u,m);var v=eh([],f,c),x=eh([],f,d);r&&(uh(v,v,a),lh(v,v,s),uh(x,x,a),lh(x,x,s)),l.push(v),l.push(x)}return n&&l.push(l.shift()),l}(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);s=1;for(var d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}Ey.prototype.type="ring";var Oy=function(){return function(){this.points=null,this.smooth=0,this.smoothConstraint=null}}(),Ly=function(e){function t(t){return e.call(this,t)||this}return $u(t,e),t.prototype.getDefaultShape=function(){return new Oy},t.prototype.buildPath=function(e,t){Ry(e,t,!0)},t}(Hf);Ly.prototype.type="polygon";var Ny=function(){return function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}}(),zy=function(e){function t(t){return e.call(this,t)||this}return $u(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ny},t.prototype.buildPath=function(e,t){Ry(e,t,!1)},t}(Hf);zy.prototype.type="polyline";var By={},Fy=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}(),$y=function(e){function t(t){return e.call(this,t)||this}return $u(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Fy},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var a=Zf(By,t,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=t.x1,r=t.y1,i=t.x2,o=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),e.lineTo(i,o))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(Hf);$y.prototype.type="line";var Wy=[],jy=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}}();function Vy(e,t,n){var r=e.cpx2,i=e.cpy2;return null!=r||null!=i?[(n?Dh:Ph)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Dh:Ph)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Nh:Lh)(e.x1,e.cpx1,e.x2,t),(n?Nh:Lh)(e.y1,e.cpy1,e.y2,t)]}var Hy=function(e){function t(t){return e.call(this,t)||this}return $u(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new jy},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2,a=t.cpx1,s=t.cpy1,l=t.cpx2,u=t.cpy2,c=t.percent;0!==c&&(e.moveTo(n,r),null==l||null==u?(c<1&&(Bh(n,a,i,c,Wy),a=Wy[1],i=Wy[2],Bh(r,s,o,c,Wy),s=Wy[1],o=Wy[2]),e.quadraticCurveTo(a,s,i,o)):(c<1&&(Rh(n,a,l,i,c,Wy),a=Wy[1],l=Wy[2],i=Wy[3],Rh(r,s,u,o,c,Wy),s=Wy[1],u=Wy[2],o=Wy[3]),e.bezierCurveTo(a,s,l,u,i,o)))},t.prototype.pointAt=function(e){return Vy(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Vy(this.shape,e,!0);return rh(t,t)},t}(Hf);Hy.prototype.type="bezier-curve";var Gy=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),Uy=function(e){function t(t){return e.call(this,t)||this}return $u(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Gy},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(o),u=Math.sin(o);e.moveTo(l*i+n,u*i+r),e.arc(n,r,i,o,a,!s)},t}(Hf);Uy.prototype.type="arc";var Xy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return $u(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Hf.prototype.getBoundingRect.call(this)},t}(Hf),Yy=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),qy=function(e){function t(t,n,r,i,o,a){var s=e.call(this,o)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return $u(t,e),t}(Yy),Ky=function(e){function t(t,n,r,i,o){var a=e.call(this,i)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return $u(t,e),t}(Yy),Zy=[0,0],Qy=[0,0],Jy=new _d,ev=new _d,tv=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new _d;for(n=0;n<2;n++)this._axes[n]=new _d;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,o=e.y,a=i+e.width,s=o+e.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),t)for(var l=0;l<4;l++)n[l].transform(t);_d.sub(r[0],n[1],n[0]),_d.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return Jy.set(1/0,1/0),ev.set(0,0),!this._intersectCheckOneSide(this,e,Jy,ev,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,Jy,ev,r,-1)&&(n=!1,r)||r||_d.copy(t,n?Jy:ev),n},e.prototype._intersectCheckOneSide=function(e,t,n,r,i,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,Zy),this._getProjMinMaxOnAxis(s,t._corners,Qy),Zy[1]<Qy[0]||Zy[0]>Qy[1]){if(a=!1,i)return a;var u=Math.abs(Qy[0]-Zy[1]),c=Math.abs(Zy[0]-Qy[1]);Math.min(u,c)>r.len()&&(u<c?_d.scale(r,l,-u*o):_d.scale(r,l,c*o))}else if(n){u=Math.abs(Qy[0]-Zy[1]),c=Math.abs(Zy[0]-Qy[1]);Math.min(u,c)<n.len()&&(u<c?_d.scale(n,l,u*o):_d.scale(n,l,-c*o))}}return a},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,o=t[0].dot(r)+i[e],a=o,s=o,l=1;l<t.length;l++){var u=t[l].dot(r)+i[e];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},e}(),nv=[],rv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return $u(t,e),t.prototype.traverse=function(e,t){e.call(t,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(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){(t=this._displayables[e]).parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Dd(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(nv)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){if(this._displayables[r].contain(e,t))return!0}return!1},t}(jp),iv=Xg();function ov(e,t,n,r,i,o,a){var s,l=!1;xc(i)?(a=o,o=i,i=null):Sc(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===e;u||t.stopAnimation("leave");var c=function(e,t,n,r,i){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===e;if(t&&t.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return r?(l=Dc(r.duration,200),u=Dc(r.easing,"cubicOut"),c=0):(l=t.getShallow(s?"animationDurationUpdate":"animationDuration"),u=t.getShallow(s?"animationEasingUpdate":"animationEasing"),c=t.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),xc(c)&&(c=c(n,i)),xc(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}(e,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var d={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};l?t.animateFrom(n,d):t.animateTo(n,d)}else t.stopAnimation(),!l&&t.attr(n),a&&a(1),o&&o()}function av(e,t,n,r,i,o){ov("update",e,t,n,r,i,o)}function sv(e,t,n,r,i,o){ov("enter",e,t,n,r,i,o)}function lv(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){if("leave"===e.animators[t].scope)return!0}return!1}function uv(e,t,n,r,i,o){lv(e)||ov("leave",e,t,n,r,i,o)}function cv(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),uv(e,{style:{opacity:0}},t,n,r)}var dv=Math.max,hv=Math.min,pv={};var fv=function(e,t){var n=cy(e,t);return function(e){function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return $u(t,e),t}(ly)};function gv(e,t){pv[e]=t}function mv(e,t,n,r){var i=function(e,t){return new ly(cy(e,t))}(e,t);return n&&("center"===r&&(n=vv(n,i.getBoundingRect())),bv(i,n)),i}function yv(e,t,n){var r=new qf({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var i={width:e.width,height:e.height};r.setStyle(vv(t,i))}}});return r}function vv(e,t){var n,r=t.width/t.height,i=e.height*r;return n=i<=e.width?e.height:(i=e.width)/r,{x:e.x+e.width/2-i/2,y:e.y+e.height/2-n/2,width:i,height:n}}var xv=function(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var o=e[i];n.push(o.getUpdatedPathProxy(!0))}var a=new Hf(t);return a.createPathProxy(),a.buildPath=function(e){if(uy(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},a};function bv(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function _v(e,t){return Zf(e,e,{lineWidth:t}),e}var wv=Jf;function Sv(e,t,n){return t&&!cc(t)&&(t=mh.getLocalTransform(t)),n&&(t=bd([],t)),sh([],e,t)}function kv(e){return!e.isGroup}function Cv(e,t,n){if(e&&t){var r,i=(r={},e.traverse(function(e){kv(e)&&e.anid&&(r[e.anid]=e)}),r);t.traverse(function(e){if(kv(e)&&e.anid){var t=i[e.anid];if(t){var r=o(e);e.attr(o(t)),av(e,r,n,em(e).dataIndex)}}})}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=ac({},e.shape)),t}}function Tv(e,t,n){var r=ac({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),sc(i,n),new qf(r)):mv(e.replace("path://",""),r,n,"center")}function Mv(e,t,n,r,i,o,a,s){var l,u=n-e,c=r-t,d=a-i,h=s-o,p=Iv(d,h,u,c);if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=e-i,g=t-o,m=Iv(f,g,u,c)/p;if(m<0||m>1)return!1;var y=Iv(f,g,d,h)/p;return!(y<0||y>1)}function Iv(e,t,n,r){return e*r-n*t}function Pv(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=bc(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&dc(gc(l),function(e){Gc(s,e)||(s[e]=l[e],s.$vars.push(e))});var u=em(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:sc({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Dv(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Av(e,t){if(e)if(vc(e))for(var n=0;n<e.length;n++)Dv(e[n],t);else Dv(e,t)}gv("circle",py),gv("ellipse",gy),gv("sector",Dy),gv("ring",Ey),gv("polygon",Ly),gv("polyline",zy),gv("rect",ng),gv("line",$y),gv("bezierCurve",Hy),gv("arc",Uy);const Ev=Object.freeze(Object.defineProperty({__proto__:null,Arc:Uy,BezierCurve:Hy,BoundingRect:Dd,Circle:py,CompoundPath:Xy,Ellipse:gy,Group:dy,Image:qf,IncrementalDisplayable:rv,Line:$y,LinearGradient:qy,OrientedBoundingRect:tv,Path:Hf,Point:_d,Polygon:Ly,Polyline:zy,RadialGradient:Ky,Rect:ng,Ring:Ey,Sector:Dy,Text:og,applyTransform:Sv,clipPointsByRect:function(e,t){return hc(e,function(e){var n=e[0];n=dv(n,t.x),n=hv(n,t.x+t.width);var r=e[1];return r=dv(r,t.y),[n,r=hv(r,t.y+t.height)]})},clipRectByRect:function(e,t){var n=dv(e.x,t.x),r=hv(e.x+e.width,t.x+t.width),i=dv(e.y,t.y),o=hv(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}},createIcon:Tv,extendPath:function(e,t){return fv(e,t)},extendShape:function(e){return Hf.extend(e)},getShapeClass:function(e){if(pv.hasOwnProperty(e))return pv[e]},getTransform:function(e,t){for(var n=md([]);e&&e!==t;)yd(n,e.getLocalTransform(),n),e=e.parent;return n},groupTransition:Cv,initProps:sv,isElementRemoved:lv,lineLineIntersect:Mv,linePolygonIntersect:function(e,t,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Mv(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:yv,makePath:mv,mergePath:xv,registerShape:gv,removeElement:uv,removeElementWithFadeOut:function(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||cv(e,t,n,r)}):cv(e,t,n,r)},resizePath:bv,setTooltipConfig:Pv,subPixelOptimize:wv,subPixelOptimizeLine:_v,subPixelOptimizeRect:function(e){return Qf(e.shape,e.shape,e.style),e},transformDirection:function(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return o=Sv(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"},traverseElements:Av,updateProps:av},Symbol.toStringTag,{value:"Module"}));var Rv={};function Ov(e,t,n){var r,i=e.labelFetcher,o=e.labelDataIndex,a=e.labelDimIndex,s=t.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=xc(e.defaultText)?e.defaultText(o,e,n):e.defaultText);for(var l={normal:r},u=0;u<om.length;u++){var c=om[u],d=t[c];l[c]=Dc(i?i.getFormattedLabel(o,c,null,a,d&&d.get("formatter")):null,r)}return l}function Lv(e,t,n,r){n=n||Rv;for(var i=e instanceof og,o=!1,a=0;a<am.length;a++){if((h=t[am[a]])&&h.getShallow("show")){o=!0;break}}var s=i?e:e.getTextContent();if(o){i||(s||(s=new og,e.setTextContent(s)),e.stateProxy&&(s.stateProxy=e.stateProxy));var l=Ov(n,t),u=t.normal,c=!!u.getShallow("show"),d=zv(u,r&&r.normal,n,!1,!i);d.text=l.normal,i||e.setTextConfig(Bv(u,n,!1));for(a=0;a<om.length;a++){var h,p=om[a];if(h=t[p]){var f=s.ensureState(p),g=!!Dc(h.getShallow("show"),c);if(g!==c&&(f.ignore=!g),f.style=zv(h,r&&r[p],n,!0,!i),f.style.text=l[p],!i)e.ensureState(p).textConfig=Bv(h,n,!0)}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(d.x=s.style.x),null!=s.style.y&&(d.y=s.style.y),s.ignore=!c,s.useStyle(d),s.dirty(),n.enableTextSetter&&(Gv(s).setLabelText=function(e){var r=Ov(n,t,e);!function(e,t){for(var n=0;n<om.length;n++){var r=om[n],i=t[r],o=e.ensureState(r);o.style=o.style||{},o.style.text=i}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}(s,r)})}else s&&(s.ignore=!0);e.dirty()}function Nv(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<om.length;r++){var i=om[r];n[i]=e.getModel([i,t])}return n}function zv(e,t,n,r,i){var o={};return function(e,t,n,r,i){n=n||Rv;var o,a=t.ecModel,s=a&&a.option.textStyle,l=function(e){var t;for(;e&&e!==e.ecModel;){var n=(e.option||Rv).rich;if(n){t=t||{};for(var r=gc(n),i=0;i<r.length;i++){t[r[i]]=1}}e=e.parentModel}return t}(t);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=t.getModel(["rich",u]);jv(o[u]={},c,s,n,r,i,!1,!0)}o&&(e.rich=o);var d=t.get("overflow");d&&(e.overflow=d);var h=t.get("minMargin");null!=h&&(e.margin=h);jv(e,t,s,n,r,i,!0,!1)}(o,e,n,r,i),t&&ac(o,t),o}function Bv(e,t,n){t=t||{};var r,i={},o=e.getShallow("rotate"),a=Dc(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return"outside"===(r=e.getShallow("position")||(n?null:"inside"))&&(r=t.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",i}var Fv=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],$v=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Wv=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function jv(e,t,n,r,i,o,a,s){n=!i&&n||Rv;var l=r&&r.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),d=Dc(t.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==c&&"auto"!==c||(c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(e.fill=u),null!=c&&(e.stroke=c);var h=Dc(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=h&&(e.lineWidth=h);var p=Dc(t.getShallow("textBorderType"),n.textBorderType);null!=p&&(e.lineDash=p);var f=Dc(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(e.lineDashOffset=f),i||null!=d||s||(d=r&&r.defaultOpacity),null!=d&&(e.opacity=d),i||o||null==e.fill&&r.inheritColor&&(e.fill=r.inheritColor);for(var g=0;g<Fv.length;g++){var m=Fv[g];null!=(v=Dc(t.getShallow(m),n[m]))&&(e[m]=v)}for(g=0;g<$v.length;g++){m=$v[g];null!=(v=t.getShallow(m))&&(e[m]=v)}if(null==e.verticalAlign){var y=t.getShallow("baseline");null!=y&&(e.verticalAlign=y)}if(!a||!r.disableBox){for(g=0;g<Wv.length;g++){var v;m=Wv[g];null!=(v=t.getShallow(m))&&(e[m]=v)}var x=t.getShallow("borderType");null!=x&&(e.borderDash=x),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!l||(e.backgroundColor=l),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!l||(e.borderColor=l)}}var Vv,Hv,Gv=Xg(),Uv=["textStyle","color"],Xv=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Yv=new og,qv=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(Uv):null)},e.prototype.getFont=function(){return e={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},t=this.ecModel,n=t&&t.getModel("textStyle"),Lc([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "));var e,t,n},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Xv.length;n++)t[Xv[n]]=this.getShallow(Xv[n]);return Yv.useStyle(t),Yv.update(),Yv.getBoundingRect()},e}(),Kv=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Zv=od(Kv),Qv=function(){function e(){}return e.prototype.getLineStyle=function(e){return Zv(this,e)},e}(),Jv=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],ex=od(Jv),tx=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return ex(this,e,t)},e}(),nx=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){oc(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=null==n?n:n[e];if(null==r&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=null!=t,i=r?this.parsePath(t):null;return new e(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new(0,this.constructor)(ic(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!qc.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&(!e[r]||null!=(n=n&&"object"==typeof n?n[e[r]]:null));r++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();function rx(e){return null==e?0:e.length||1}function ix(e){return e}Jc(nx),Vv=nx,Hv=["__\0is_clz",td++].join("_"),Vv.prototype[Hv]=!0,Vv.isInstance=function(e){return!(!e||!e[Hv])},uc(nx,Qv),uc(nx,tx),uc(nx,sd),uc(nx,qv);var ox=function(){function e(e,t,n,r,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||ix,this._newKeyGetter=r||ix,this.context=i,this._diffModeMultiple="multiple"===o}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var a=r[o],s=n[a],l=rx(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=rx(l),d=rx(u);if(c>1&&1===d)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&d>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===d)this._update&&this._update(u,l),r[s]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],o=rx(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var a="_ec_"+this[r](e[o],o);if(i||(n[o]=a),t){var s=t[a],l=rx(s);0===l?(t[a]=o,i&&n.push(a)):1===l?t[a]=[s,o]:s.push(o)}}},e}(),ax=jc(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),sx="original",lx="arrayRows",ux="objectRows",cx="keyedColumns",dx="typedArray",hx="unknown",px="column",fx="row",gx=1,mx=2,yx=3,vx=Xg();function xx(e,t,n){var r={},i=bx(t);if(!i||!e)return r;var o,a,s=[],l=[],u=t.ecModel,c=vx(u).datasetMap,d=i.uid+"_"+n.seriesLayoutBy;dc(e=e.slice(),function(t,n){var i=Sc(t)?t:e[n]={name:t};"ordinal"===i.type&&null==o&&(o=n,a=f(i)),r[i.name]=[]});var h=c.get(d)||c.set(d,{categoryWayDim:a,valueWayDim:0});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function f(e){var t=e.dimsDef;return t?t.length:1}return dc(e,function(e,t){var n=e.name,i=f(e);if(null==o){var a=h.valueWayDim;p(r[n],a,i),p(l,a,i),h.valueWayDim+=i}else if(o===t)p(r[n],0,i),p(s,0,i);else{a=h.categoryWayDim;p(r[n],a,i),p(l,a,i),h.categoryWayDim+=i}}),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function bx(e){if(!e.get("data",!0))return Qg(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Zg).models[0]}function _x(e,t){return function(e,t,n,r,i,o){var a,s,l,u=5;if(Cc(e))return yx;if(r){var c=r[o];Sc(c)?(s=c.name,l=c.type):bc(c)&&(s=c)}if(null!=l)return"ordinal"===l?gx:yx;if(t===lx){var d=e;if(n===fx){for(var h=d[o],p=0;p<(h||[]).length&&p<u;p++)if(null!=(a=x(h[i+p])))return a}else for(p=0;p<d.length&&p<u;p++){var f=d[i+p];if(f&&null!=(a=x(f[o])))return a}}else if(t===ux){var g=e;if(!s)return yx;for(p=0;p<g.length&&p<u;p++){if((y=g[p])&&null!=(a=x(y[s])))return a}}else if(t===cx){if(!s)return yx;if(!(h=e[s])||Cc(h))return yx;for(p=0;p<h.length&&p<u;p++)if(null!=(a=x(h[p])))return a}else if(t===sx){var m=e;for(p=0;p<m.length&&p<u;p++){var y,v=Bg(y=m[p]);if(!vc(v))return yx;if(null!=(a=x(v[o])))return a}}function x(e){var t=bc(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?mx:yx:t&&"-"!==e?gx:void 0}return yx}(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}var Sx,kx,Cx,Tx,Mx,Ix=function(){return function(e){this.data=e.data||(e.sourceFormat===cx?{}:[]),this.sourceFormat=e.sourceFormat||hx,this.seriesLayoutBy=e.seriesLayoutBy||px,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];null==r.type&&_x(this,n)===gx&&(r.type="ordinal")}}}();function Px(e){return e instanceof Ix}function Dx(e,t,n){n=n||Ex(e);var r=t.seriesLayoutBy,i=function(e,t,n,r,i){var o,a;if(!e)return{dimensionsDefine:Rx(i),startIndex:a,dimensionsDetectedCount:o};if(t===lx){var s=e;"auto"===r||null==r?Ox(function(e){null!=e&&"-"!==e&&(bc(e)?null==a&&(a=1):a=0)},n,s,10):a=wc(r)?r:r?1:0,i||1!==a||(i=[],Ox(function(e,t){i[t]=null!=e?e+"":""},n,s,1/0)),o=i?i.length:n===fx?s.length:s[0]?s[0].length:null}else if(t===ux)i||(i=function(e){var t,n=0;for(;n<e.length&&!(t=e[n++]););if(t)return gc(t)}(e));else if(t===cx)i||(i=[],dc(e,function(e,t){i.push(t)}));else if(t===sx){var l=Bg(e[0]);o=vc(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Rx(i),dimensionsDetectedCount:o}}(e,n,r,t.sourceHeader,t.dimensions);return new Ix({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:ic(t)})}function Ax(e){return new Ix({data:e,sourceFormat:Cc(e)?dx:sx})}function Ex(e){var t=hx;if(Cc(e))t=dx;else if(vc(e)){0===e.length&&(t=lx);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(null!=i){if(vc(i)||Cc(i)){t=lx;break}if(Sc(i)){t=ux;break}}}}else if(Sc(e))for(var o in e)if(Gc(e,o)&&cc(e[o])){t=cx;break}return t}function Rx(e){if(e){var t=jc();return hc(e,function(e,n){var r={name:(e=Sc(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=t.get(r.name);return i?r.name+="-"+i.count++:t.set(r.name,{count:1}),r})}}function Ox(e,t,n,r){if(t===fx)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)e(o[i],i)}}function Lx(e){var t=e.sourceFormat;return t===ux||t===cx}var Nx=function(){function e(e,t){var n=Px(e)?e:Ax(e);this._source=n;var r=this._data=n.data;n.sourceFormat===dx&&(this._offset=0,this._dimSize=t,this._data=r),Mx(this,r,n)}var t;return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=((t=e.prototype).pure=!1,void(t.persistent=!0)),e.internalField=function(){var e;Mx=function(e,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine;if(ac(e,Tx[Ux(a,s)]),a===dx)e.getItem=t,e.count=r,e.fillStorage=n;else{var c=Fx(a,s);e.getItem=mc(c,null,i,l,u);var d=jx(a,s);e.count=mc(d,null,i,l,u)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,i=r*e,o=0;o<r;o++)t[o]=n[i+o];return t},n=function(e,t,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,d=n[a],h=0;h<c;h++){var p=i[h*o+a];d[e+h]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[lx+"_"+px]={pure:!0,appendData:i},e[lx+"_"+fx]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[ux]={pure:!0,appendData:i},e[cx]={pure:!0,appendData:function(e){var t=this._data;dc(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[sx]={appendData:i},e[dx]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},Tx=e}(),e}(),zx=function(e,t,n,r){return e[r]},Bx=((Sx={})[lx+"_"+px]=function(e,t,n,r){return e[r+t]},Sx[lx+"_"+fx]=function(e,t,n,r,i){r+=t;for(var o=i||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},Sx[ux]=zx,Sx[cx]=function(e,t,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=e[n[a].name];o[a]=s?s[r]:null}return o},Sx[sx]=zx,Sx);function Fx(e,t){return Bx[Ux(e,t)]}var $x=function(e,t,n){return e.length},Wx=((kx={})[lx+"_"+px]=function(e,t,n){return Math.max(0,e.length-t)},kx[lx+"_"+fx]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},kx[ux]=$x,kx[cx]=function(e,t,n){var r=e[n[0].name];return r?r.length:0},kx[sx]=$x,kx);function jx(e,t){return Wx[Ux(e,t)]}var Vx=function(e,t,n){return e[t]},Hx=((Cx={})[lx]=Vx,Cx[ux]=function(e,t,n){return e[n]},Cx[cx]=Vx,Cx[sx]=function(e,t,n){var r=Bg(e);return r instanceof Array?r[t]:r},Cx[dx]=Vx,Cx);function Gx(e){return Hx[e]}function Ux(e,t){return e===lx?e+"_"+t:e}function Xx(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i=e.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=e.getDimensionIndex(n),s=i.getDimensionProperty(a);return Gx(o)(r,a,s)}var l=r;return o===sx&&(l=Bg(r)),l}}}var Yx=function(){function e(e,t){this._encode=e,this._schema=t}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 qx(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}var Kx=function(){return function(e){this.otherDims={},null!=e&&ac(this,e)}}();function Zx(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||wc(e)||null==e||"-"===e||(e=+Cg(e)),null==e||""===e?NaN:Number(e))}jc({number:function(e){return parseFloat(e)},time:function(e){return+Cg(e)},trim:function(e){return bc(e)?Lc(e):e}});var Qx,Jx=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=wc(e)?e:Ig(e),r=wc(t)?t:Ig(t),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=bc(e),s=bc(t);a&&(n=s?e:0),s&&(r=a?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),eb="undefined",tb=typeof Uint32Array===eb?Array:Uint32Array,nb=typeof Uint16Array===eb?Array:Uint16Array,rb=typeof Int32Array===eb?Array:Int32Array,ib=typeof Float64Array===eb?Array:Float64Array,ob={float:ib,int:rb,ordinal:Array,number:Array,time:ib};function ab(e){return e>65535?tb:nb}function sb(){return[1/0,-1/0]}function lb(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function ub(e,t,n,r,i){var o=ob[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new o(r)}var cb=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=jc()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=Qx[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],Lx(r),this._dimensions=hc(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(null!=i){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new ob[t||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[e]=[1/0,-1/0]);for(var s=i[e],l=o;l<a;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=t,r.ordinalOffset=a,r.type="ordinal"},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(e.length,t||0),l=0;l<i;l++){ub(n,l,(p=r[l]).type,s,!0)}for(var u=[],c=a;c<s;c++)for(var d=c-a,h=0;h<i;h++){var p=r[h],f=Qx.arrayRows.call(this,e[d]||u,p.property,d,h);n[h][c]=f;var g=o[h];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=hc(o,function(e){return e.property}),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=sb()),ub(i,u,c.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],h=e;h<t;h++){d=r.getItem(h,d);for(var p=0;p<a;p++){var f=i[p],g=this._dimValueGetter(d,l[p],h,p);f[h]=g;var m=s[p];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(null==t){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=0;if(this._chunks[e])for(var n=0,r=this.count();n<r;n++){var i=this.get(e,n);isNaN(i)||(t+=i)}return t},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)});var n=t.sort(function(e,t){return e-t}),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(t[o]<e)r=o+1;else{if(!(t[o]>e))return o;i=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],i=[];if(!r)return i;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var c=t-r[this.getRawIndex(l)],d=Math.abs(c);d<=n&&((d<o||d===o&&c>=0&&a<0)&&(o=d,a=c,s=0),c===a&&(i[s++]=l))}return i.length=s,i},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{e=new(n=ab(this._rawCount))(this.count());for(i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(ab(n._rawCount))(r),o=[],a=e.length,s=0,l=e[0],u=n._chunks,c=0;c<r;c++){var d=void 0,h=n.getRawIndex(c);if(0===a)d=t(c);else if(1===a){d=t(u[l][h],c)}else{for(var p=0;p<a;p++)o[p]=u[e[p]][h];o[p]=c,d=t.apply(null,o)}d&&(i[s++]=h)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=gc(e),i=r.length;if(!i)return this;var o=t.count(),a=new(ab(t._rawCount))(o),s=0,l=r[0],u=e[l][0],c=e[l][1],d=t._chunks,h=!1;if(!t._indices){var p=0;if(1===i){for(var f=d[r[0]],g=0;g<n;g++){((x=f[g])>=u&&x<=c||isNaN(x))&&(a[s++]=p),p++}h=!0}else if(2===i){f=d[r[0]];var m=d[r[1]],y=e[r[1]][0],v=e[r[1]][1];for(g=0;g<n;g++){var x=f[g],b=m[g];(x>=u&&x<=c||isNaN(x))&&(b>=y&&b<=v||isNaN(b))&&(a[s++]=p),p++}h=!0}}if(!h)if(1===i)for(g=0;g<o;g++){var _=t.getRawIndex(g);((x=d[r[0]][_])>=u&&x<=c||isNaN(x))&&(a[s++]=_)}else for(g=0;g<o;g++){for(var w=!0,S=(_=t.getRawIndex(g),0);S<i;S++){var k=r[S];((x=d[k][_])<e[k][0]||x>e[k][1])&&(w=!1)}w&&(a[s++]=t.getRawIndex(g))}return s<o&&(t._indices=a),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],o=t.length,a=e.count(),s=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=sb();for(var c=0;c<a;c++){for(var d=e.getRawIndex(c),h=0;h<o;h++)s[h]=r[t[h]][d];s[o]=c;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(i[0]=p,p=i);for(u=0;u<p.length;u++){var f=t[u],g=p[u],m=l[f],y=r[f];y&&(y[d]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,o=this.clone([e],!0),a=o._chunks[e],s=this.count(),l=0,u=Math.floor(1/t),c=this.getRawIndex(0),d=new(ab(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));d[l++]=c;for(var h=1;h<s-1;h+=u){for(var p=Math.min(h+u,s-1),f=Math.min(h+2*u,s),g=(f+p)/2,m=0,y=p;y<f;y++){var v=a[C=this.getRawIndex(y)];isNaN(v)||(m+=v)}m/=f-p;var x=h,b=Math.min(h+u,s),_=h-1,w=a[c];n=-1,i=x;var S=-1,k=0;for(y=x;y<b;y++){var C;v=a[C=this.getRawIndex(y)];isNaN(v)?(k++,S<0&&(S=C)):(r=Math.abs((_-g)*(v-w)-(_-y)*(m-w)))>n&&(n=r,i=C)}k>0&&k<b-x&&(d[l++]=Math.min(S,i),i=Math.max(S,i)),d[l++]=i,c=i}return d[l++]=this.getRawIndex(s-1),o._count=l,o._indices=d,o.getRawIndex=this._getRawIdx,o},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),o=i._chunks,a=[],s=Math.floor(1/t),l=o[e],u=this.count(),c=i._rawExtent[e]=[1/0,-1/0],d=new(ab(this._rawCount))(Math.ceil(u/s)),h=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);a[f]=l[g]}var m=n(a),y=this.getRawIndex(Math.min(p+r(a,m)||0,u-1));l[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),d[h++]=y}return i._count=h,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][a],i);break;case 2:t(r[e[0]][a],r[e[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[e[s]][a];l[s]=i,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=[1/0,-1/0];if(!t)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[e].slice();if(r=this._extent[e])return r.slice();for(var o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=t[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return r=[o,a],this._extent[e]=r,r},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,o=t&&pc(t,function(e,t){return e[t]=!0,e},{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?lb(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=ic(this._extent),e._rawExtent=ic(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return Zx(e[r],this._dimensions[r])}Qx={arrayRows:e,objectRows:function(e,t,n,r){return Zx(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return Zx(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),db=Xg(),hb={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},pb=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=mb(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return Dc(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Lx(this.source),n=!yb(e),r="",i=[],o=0,a=0;o<e;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=t?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var d=this.getSourceDimension(o);d&&(s=t?d.name:null,l=d.type)}i.push({property:s,type:l,ordinalMeta:u}),!t||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=hb[l]||"f",u&&(r+=u.uid),r+="$"}var h=this.source;return{dimensions:i,hash:[h.seriesLayoutBy,h.startIndex,r].join("$$")}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(t);o&&(r=o.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function fb(e){return e instanceof pb}function gb(e){for(var t=jc(),n=0;n<(e||[]).length;n++){var r=e[n],i=Sc(r)?r.name:r;null!=i&&null==t.get(i)&&t.set(i,n)}return t}function mb(e){var t=db(e);return t.dimNameMap||(t.dimNameMap=gb(e.dimensionsDefine))}function yb(e){return e>30}var vb,xb,bb,_b,wb,Sb,kb,Cb=Sc,Tb=hc,Mb="undefined"==typeof Int32Array?Array:Int32Array,Ib=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Pb=["_approximateExtent"],Db=function(){function e(e,t){var n;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 r=!1;fb(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],d=bc(c)?new Kx({name:c}):c instanceof Kx?c:new Kx(c),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};o.push(h),i[h]=d,null!=l[h]&&(s=!0),d.createInvertedIndices&&(a[h]=[]),0===p.itemName&&(this._nameDimIdx=u),0===p.itemId&&(this._idDimIdx=u),r&&(d.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=jc();dc(o,function(e){f.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var r=this._schema.getSourceDimension(t);return r?r.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(wc(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r,i=this;if(e instanceof cb&&(r=e),!r){var o=this.dimensions,a=Px(e)||cc(e)?new Nx(e,o.length):e;r=new cb;var s=Tb(o,function(e){return{type:i._dimInfos[e].type,property:e}});r.initData(a,s,n)}this._store=r,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(e,t){var n={},r=n.encode={},i=jc(),o=[],a=[],s={};dc(e.dimensions,function(t){var n,l=e.getDimensionInfo(t),u=l.coordDim;if(u){var c=l.coordDimIndex;qx(r,u)[c]=t,l.isExtraCoord||(i.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=t),qx(s,u)[c]=e.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(t)}ax.each(function(e,t){var n=qx(r,t),i=l.otherDims[t];null!=i&&!1!==i&&(n[i]=l.name)})});var l=[],u={};i.each(function(e,t){var n=r[t];u[t]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=hc(l,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var d=r.tooltip;return d&&d.length?a=d.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new Yx(s,t),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=t[s],o&&kb(this,a)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==dx&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===sx&&!n.pure)for(var o=[],a=e;a<t;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&Fg(s)&&(this.hasItemOption=!0),s){var l=s.name;null==r[a]&&null!=l&&(r[a]=Vg(l,null));var u=s.id;null==i[a]&&null!=u&&(i[a]=Vg(u,null))}}if(this._shouldMakeIdFromName())for(a=e;a<t;a++)kb(this,a);vb(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){Cb(e)?ac(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=bb(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return xb(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return vc(e)?r.getValues(Tb(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=(e&&this._invertedIndicesMap[e])[t];return null==n||isNaN(n)?-1:n},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){xc(e)&&(n=t,t=e,e=[]);var r=n||this,i=Tb(_b(e),this._getStoreDimIndex,this);this._store.each(i,r?mc(t,r):t)},e.prototype.filterSelf=function(e,t,n){xc(e)&&(n=t,t=e,e=[]);var r=n||this,i=Tb(_b(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?mc(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={};return dc(gc(e),function(r){var i=t._getStoreDimIndex(r);n[i]=e[r]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){xc(e)&&(n=t,t=e,e=[]),n=n||this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,o=Tb(_b(e),this._getStoreDimIndex,this),a=Sb(this);return a._store=this._store.map(o,i?mc(t,i):t),a},e.prototype.modify=function(e,t,n,r){var i=n||r||this,o=Tb(_b(e),this._getStoreDimIndex,this);this._store.modify(o,i?mc(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=Sb(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.lttbDownSample=function(e,t){var n=Sb(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new nx(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new ox(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return xb(e,t)},function(e){return xb(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},Cb(e)?ac(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(vc(i=this.getVisual(t))?i=i.slice():Cb(i)&&(i=ac({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,Cb(t)?ac(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Cb(e)?ac(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?ac(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){!function(e,t,n,r){if(r){var i=em(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType="chart","group"===r.type&&r.traverse(function(r){var i=em(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType="chart"})}}(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){dc(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Tb(this.dimensions,this._getDimInfo,this),this.hostModel)),wb(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];xc(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(Ec(arguments)))})},e.internalField=(vb=function(e){var t=e._invertedIndicesMap;dc(t,function(n,r){var i=e._dimInfos[r],o=i.ordinalMeta,a=e._store;if(o){n=t[r]=new Mb(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}})},bb=function(e,t,n){return Vg(e._getCategory(t,n),null)},xb=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=bb(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},_b=function(e){return vc(e)||(e=null!=e?[e]:[]),e},Sb=function(t){var n=new e(t._schema?t._schema:Tb(t.dimensions,t._getDimInfo,t),t.hostModel);return wb(n,t),n},wb=function(e,t){dc(Ib.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,dc(Pb,function(n){e[n]=ic(t[n])}),e._calculationInfo=ac({},t._calculationInfo)},void(kb=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,o=e._idDimIdx,a=n[t],s=r[t];if(null==a&&null!=i&&(n[t]=a=bb(e,i,t)),null==s&&null!=o&&(r[t]=s=bb(e,o,t)),null==s&&null!=a){var l=e._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[t]=s}})),e}();function Ab(e,t){Px(e)||(e=Ax(e));var n=(t=t||{}).coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=jc(),o=[],a=function(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return dc(t,function(e){var t;Sc(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&yb(a),l=r===e.dimensionsDefine,u=l?mb(e):gb(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var d=jc(c),h=new rb(a),p=0;p<h.length;p++)h[p]=-1;function f(e){var t=h[e];if(t<0){var n=r[e],i=Sc(n)?n:{name:n},a=new Kx,s=i.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=o.length;return h[e]=l,a.storeDimIndex=e,o.push(a),a}return o[t]}if(!s)for(p=0;p<a;p++)f(p);d.each(function(e,t){var n=Lg(e).slice();if(1===n.length&&!bc(n[0])&&n[0]<0)d.set(t,!1);else{var r=d.set(t,[]);dc(n,function(e,n){var i=bc(e)?u.get(e):e;null!=i&&i<a&&(r[n]=i,m(f(i),t,n))})}});var g=0;function m(e,t,n){null!=ax.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0))}dc(n,function(e){var t,n,r,i;if(bc(e))t=e,i={};else{t=(i=e).name;var o=i.ordinalMeta;i.ordinalMeta=null,(i=ac({},i)).ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(!1!==s){if(!(s=Lg(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=f(g).coordDim;)g++;g<a&&s.push(g++)}dc(s,function(e,o){var a=f(e);if(l&&null!=i.type&&(a.type=i.type),m(sc(a,i),t,o),null==a.name&&n){var s=n[o];!Sc(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&sc(a.otherDims,r)})}});var y=t.generateCoord,v=t.generateCoordCount,x=null!=v;v=y?v||1:0;var b=y||"value";function _(e){null==e.name&&(e.name=e.coordDim)}if(s)dc(o,function(e){_(e)}),o.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var w=0;w<a;w++){var S=f(w);null==S.coordDim&&(S.coordDim=Eb(b,i,x),S.coordDimIndex=0,(!y||v<=0)&&(S.isExtraCoord=!0),v--),_(S),null!=S.type||_x(e,w)!==gx&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(e){for(var t=jc(),n=0;n<e.length;n++){var r=e[n],i=r.name,o=t.get(i)||0;o>0&&(r.name=i+(o-1)),o++,t.set(i,o)}}(o),new pb({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Eb(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var Rb={},Ob=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];dc(Rb,function(r,i){var o=r.create(e,t);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(e,t){dc(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){Rb[e]=t},e.get=function(e){return Rb[e]},e}(),Lb=function(){return function(e){this.coordSysDims=[],this.axisMap=jc(),this.categoryAxisMap=jc(),this.coordSysName=e}}();var Nb={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",Zg).models[0],o=e.getReferringComponents("yAxis",Zg).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),zb(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),zb(o)&&(r.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",Zg).models[0];t.coordSysDims=["single"],n.set("single",i),zb(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",Zg).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),zb(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),zb(a)&&(r.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();dc(o.parallelAxisIndex,function(e,o){var s=i.getComponent("parallelAxis",e),l=a[o];n.set(l,s),zb(s)&&(r.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))})}};function zb(e){return"category"===e.get("type")}function Bb(e,t,n){var r,i,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(e){return!fb(e.schema)}(t)?(i=t.schema,r=i.dimensions,o=t.store):r=t;var l,u,c,d,h=!(!e||!e.get("stack"));if(dc(r,function(e,t){bc(e)&&(r[t]=e={name:e}),h&&!e.isExtraCoord&&(a||l||!e.ordinalMeta||(l=e),u||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(u=e))}),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,f=u.type,g=0;dc(r,function(e){e.coordDim===p&&g++});var m={name:c,coordDim:p,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:d,coordDim:d,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(m.storeDimIndex=o.ensureCalculationDimension(d,f),y.storeDimIndex=o.ensureCalculationDimension(c,f)),i.appendCalculationDimension(m),i.appendCalculationDimension(y)):(r.push(m),r.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:c}}function Fb(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function $b(e,t,n){n=n||{};var r,i,o=t.getSourceManager();i=(r=o.getSource()).sourceFormat===sx;var a=function(e){var t=e.get("coordinateSystem"),n=new Lb(t),r=Nb[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}(t),s=function(e,t){var n,r=e.get("coordinateSystem"),i=Ob.get(r);return t&&t.coordSysDims&&(n=hc(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);if(r){var i=r.get("type");n.type=function(e){return"category"===e?"ordinal":"time"===e?"time":"float"}(i)}return n})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}(t,a),l=n.useEncodeDefaulter,u=xc(l)?l:l?yc(xx,s,t):null,c=Ab(r,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i}),d=function(e,t,n){var r,i;return n&&dc(e,function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(i=!0)}),i||null==r||(e[r].otherDims.itemName=0),r}(c.dimensions,n.createInvertedIndices,a),h=i?null:o.getSharedDataStore(c),p=Bb(t,{schema:c,store:h}),f=new Db(c,t);f.setCalculationInfo(p);var g=null!=d&&function(e){if(e.sourceFormat===sx){return!vc(Bg(function(e){var t=0;for(;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[])))}}(r)?function(e,t,n,r){return r===d?n:this.defaultDimValueGetter(e,t,n,r)}:null;return f.hasItemOption=!1,f.initData(i?r:h,null,g),f}var Wb=Math.round(10*Math.random());function jb(e){return[e||"",Wb++].join("_")}var Vb=Math.log(2);function Hb(e,t,n,r,i,o){var a=r+"-"+i,s=e.length;if(o.hasOwnProperty(a))return o[a];if(1===t){var l=Math.round(Math.log((1<<s)-1&~i)/Vb);return e[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var d=0,h=0,p=0;h<s;h++){var f=1<<h;f&i||(d+=(p%2?-1:1)*e[n][h]*Hb(e,t-1,c,u,i|f,o),p++)}return o[a]=d,d}function Gb(e,t){var n=[[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]]],r={},i=Hb(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Hb(n,7,0===a?1:0,1<<a,1<<s,r)/i*t[a];return function(e,t,n){var r=t*o[6]+n*o[7]+1;e[0]=(t*o[0]+n*o[1]+o[2])/r,e[1]=(t*o[3]+n*o[4]+o[5])/r}}}var Ub="___zrEVENTSAVED",Xb=[];function Yb(e,t,n,r,i){if(t.getBoundingClientRect&&qc.domSupported&&!qb(t)){var o=t[Ub]||(t[Ub]={}),a=function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[s]+":0",i[l]+":0",r[1-s]+":auto",i[1-l]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}(t,o),s=function(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,h=c.left,p=c.top;a.push(h,p),l=l&&o&&h===o[d]&&p===o[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?Gb(s,a):Gb(a,s))}(a,o,i);if(s)return s(e,n,r),!0}return!1}function qb(e){return"CANVAS"===e.nodeName.toUpperCase()}var Kb=/([&<>"'])/g,Zb={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qb(e){return null==e?"":(e+"").replace(Kb,function(e,t){return Zb[t]})}var Jb="ZH",e_="EN",t_=e_,n_={},r_={},i_=qc.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||t_).toUpperCase().indexOf(Jb)>-1?Jb:t_;function o_(e,t){e=e.toUpperCase(),r_[e]=new nx(t),n_[e]=t}o_(e_,{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:". "}}}}),o_(Jb,{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 a_=1e3,s_=6e4,l_=36e5,u_=864e5,c_=31536e6,d_={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}"},h_="{yyyy}-{MM}-{dd}",p_={year:"{yyyy}",month:"{yyyy}-{MM}",day:h_,hour:h_+" "+d_.hour,minute:h_+" "+d_.minute,second:h_+" "+d_.second,millisecond:d_.none},f_=["year","month","day","hour","minute","second","millisecond"],g_=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function m_(e,t){return"0000".substr(0,t-(e+="").length)+e}function y_(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 v_(e){return e===y_(e)}function x_(e,t,n,r){var i=Cg(e),o=i[w_(n)](),a=i[S_(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[k_(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[C_(n)](),d=(c-1)%12+1,h=i[T_(n)](),p=i[M_(n)](),f=i[I_(n)](),g=c>=12?"pm":"am",m=g.toUpperCase(),y=r instanceof nx?r:function(e){return r_[e]}(r||i_)||r_[t_],v=y.getModel("time"),x=v.get("month"),b=v.get("monthAbbr"),_=v.get("dayOfWeek"),w=v.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,m_(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[a-1]).replace(/{MMM}/g,b[a-1]).replace(/{MM}/g,m_(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,m_(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,m_(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,m_(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,m_(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,m_(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,m_(f,3)).replace(/{S}/g,f+"")}function b_(e,t){var n=Cg(e),r=n[S_(t)]()+1,i=n[k_(t)](),o=n[C_(t)](),a=n[T_(t)](),s=n[M_(t)](),l=0===n[I_(t)](),u=l&&0===s,c=u&&0===a,d=c&&0===o,h=d&&1===i;return h&&1===r?"year":h?"month":d?"day":c?"hour":u?"minute":l?"second":"millisecond"}function __(e,t,n){var r=wc(e)?Cg(e):e;switch(t=t||b_(e,n)){case"year":return r[w_(n)]();case"half-year":return r[S_(n)]()>=6?1:0;case"quarter":return Math.floor((r[S_(n)]()+1)/4);case"month":return r[S_(n)]();case"day":return r[k_(n)]();case"half-day":return r[C_(n)]()/24;case"hour":return r[C_(n)]();case"minute":return r[T_(n)]();case"second":return r[M_(n)]();case"millisecond":return r[I_(n)]()}}function w_(e){return e?"getUTCFullYear":"getFullYear"}function S_(e){return e?"getUTCMonth":"getMonth"}function k_(e){return e?"getUTCDate":"getDate"}function C_(e){return e?"getUTCHours":"getHours"}function T_(e){return e?"getUTCMinutes":"getMinutes"}function M_(e){return e?"getUTCSeconds":"getSeconds"}function I_(e){return e?"getUTCMilliseconds":"getMilliseconds"}function P_(e){return e?"setUTCFullYear":"setFullYear"}function D_(e){return e?"setUTCMonth":"setMonth"}function A_(e){return e?"setUTCDate":"setDate"}function E_(e){return e?"setUTCHours":"setHours"}function R_(e){return e?"setUTCMinutes":"setMinutes"}function O_(e){return e?"setUTCSeconds":"setSeconds"}function L_(e){return e?"setUTCMilliseconds":"setMilliseconds"}function N_(e){if(isNaN(Ig(e)))return bc(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function z_(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var B_=Rc;function F_(e,t,n){function r(e){return e&&Lc(e)?e:"-"}function i(e){return!(null==e||isNaN(e)||!isFinite(e))}var o="time"===t,a=e instanceof Date;if(o||a){var s=o?Cg(e):e;if(!isNaN(+s))return x_(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===t)return _c(e)?r(e):wc(e)&&i(e)?e+"":"-";var l=Ig(e);return i(l)?N_(l):_c(e)?r(e):"boolean"==typeof e?e+"":"-"}var $_=["a","b","c","d","e","f","g"],W_=function(e,t){return"{"+e+(null==t?"":t)+"}"};function j_(e,t,n){vc(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o<i.length;o++){var a=$_[o];e=e.replace(W_(a),W_(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(W_($_[l],s),n?Qb(u):u)}return e}function V_(e,t){return t=t||"transparent",bc(e)?e:Sc(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function H_(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var G_=dc,U_=["left","right","top","bottom","width","height"],X_=[["width","left","right"],["height","top","bottom"]];function Y_(e,t,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild(function(l,u){var c,d,h=l.getBoundingRect(),p=t.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===e){var g=h.width+(f?-f.x+h.x:0);(c=o+g)>r||l.newline?(o=0,c=g,a+=s+n,s=h.height):s=Math.max(s,h.height)}else{var m=h.height+(f?-f.y+h.y:0);(d=a+m)>i||l.newline?(o+=s+n,a=0,d=m,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=c+n:a=d+n)})}var q_=Y_;function K_(e,t,n){n=B_(n||0);var r=t.width,i=t.height,o=vg(e.left,r),a=vg(e.top,i),s=vg(e.right,r),l=vg(e.bottom,i),u=vg(e.width,r),c=vg(e.height,i),d=n[2]+n[0],h=n[1]+n[3],p=e.aspect;switch(isNaN(u)&&(u=r-s-h-o),isNaN(c)&&(c=i-l-d-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=r-s-u-h),isNaN(a)&&(a=i-l-c-d),e.left||e.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-h}switch(e.top||e.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-d}o=o||0,a=a||0,isNaN(u)&&(u=r-h-o-(s||0)),isNaN(c)&&(c=i-d-a-(l||0));var f=new Dd(o+n[3],a+n[0],u,c);return f.margin=n,f}function Z_(e){var t=e.layoutMode||e.constructor.layoutMode;return Sc(t)?t:t?{type:t}:null}function Q_(e,t,n){var r=n&&n.ignoreSize;!vc(r)&&(r=[r,r]);var i=a(X_[0],0),o=a(X_[1],1);function a(n,i){var o={},a=0,u={},c=0;if(G_(n,function(t){u[t]=e[t]}),G_(n,function(e){s(t,e)&&(o[e]=u[e]=t[e]),l(o,e)&&a++,l(u,e)&&c++}),r[i])return l(t,n[1])?u[n[2]]=null:l(t,n[2])&&(u[n[1]]=null),u;if(2!==c&&a){if(a>=2)return o;for(var d=0;d<n.length;d++){var h=n[d];if(!s(o,h)&&s(e,h)){o[h]=e[h];break}}return o}return u}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function u(e,t,n){G_(e,function(e){t[e]=n[e]})}u(X_[0],e,i),u(X_[1],e,o)}function J_(e){return function(e,t){return t&&e&&G_(U_,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}({},e)}yc(Y_,"vertical"),yc(Y_,"horizontal");var ew=Xg(),tw=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=jb("ec_cpt_model"),i}var n;return $u(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Z_(this),r=n?J_(e):{};oc(e,t.getTheme().get(this.mainType)),oc(e,this.getDefaultOption()),n&&Q_(e,r,n)},t.prototype.mergeOption=function(e,t){oc(this.option,e,!0);var n=Z_(this);n&&Q_(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(e){return!(!e||!e[Zc])}(e))return e.defaultOption;var t=ew(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=oc(o,n[a],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return Qg(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=((n=t.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),t}(nx);ed(tw,nx),id(tw),function(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Qc(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var o=Qc(n).main;e.hasSubTypes(n)&&t[o]&&(i=t[o](r))}return i}}(tw),function(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,r,i,o){if(e.length){var a=function(e){var r={},i=[];return dc(e,function(o){var a=n(r,o),s=function(e,t){var n=[];return dc(e,function(e){lc(t,e)>=0&&n.push(e)}),n}(a.originalDeps=t(o),e);a.entryCount=s.length,0===a.entryCount&&i.push(o),dc(s,function(e){lc(a.predecessor,e)<0&&a.predecessor.push(e);var t=n(r,e);lc(t.successor,e)<0&&t.successor.push(o)})}),{graph:r,noEntryList:i}}(r),s=a.graph,l=a.noEntryList,u={};for(dc(e,function(e){u[e]=!0});l.length;){var c=l.pop(),d=s[c],h=!!u[c];h&&(i.call(o,c,d.originalDeps.slice()),delete u[c]),dc(d.successor,h?f:p)}dc(u,function(){throw new Error("")})}function p(e){s[e].entryCount--,0===s[e].entryCount&&l.push(e)}function f(e){u[e]=!0,p(e)}}}(tw,function(e){var t=[];dc(tw.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=hc(t,function(e){return Qc(e).main}),"dataset"!==e&&lc(t,"dataset")<=0&&t.unshift("dataset");return t});var nw=Xg();Xg();var rw=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Lg(this.get("color",!0)),i=this.get("colorLayer",!0);return function(e,t,n,r,i,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}(r,a):n;if(c=c||n,!c||!c.length)return;var d=c[l];i&&(u[i]=d);return s.paletteIdx=(l+1)%c.length,d}(this,nw,r,i,e,t,n)},e.prototype.clearColorPalette=function(){var e,t;(t=nw)(e=this).paletteIdx=0,t(e).paletteNameMap={}},e}();var iw=/\{@(.+?)\}/g,ow=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,d="series"===c,h=n.userOutput&&n.userOutput.get();return{componentType:c,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:i,data:a,dataType:t,value:r,color:l,borderColor:u,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,o){t=t||"normal";var a=this.getData(n),s=this.getDataParams(e,n);(o&&(s.value=o.interpolatedValue),null!=r&&vc(s.value)&&(s.value=s.value[r]),i)||(i=a.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"]));return xc(i)?(s.status=t,s.dimensionIndex=r,i(s)):bc(i)?j_(i,s).replace(iw,function(t,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=Xx(a,e,i);if(o&&vc(o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},e.prototype.getRawValue=function(e,t){return Xx(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function aw(e){var t,n;return Sc(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function sw(e){return new lw(e)}var lw=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;function c(e){return!(e>=1)&&(e=1),e}a===l&&s===u||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(o||h<p)){var f=this._progress;if(vc(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],h,p,l,u);else this._doProgress(f,h,p,l,u)}this._dueIndex=p;var m=null!=this._settedOutputEnd?this._settedOutputEnd:p;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){uw.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:uw.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),vc(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.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(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),uw=function(){var e,t,n,r,i,o={reset:function(l,u,c,d){t=l,e=u,n=c,r=d,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var o=t%i*n+Math.ceil(t/i),a=t>=e?null:o<r?o:t;return t++,a}}(),cw=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return Zx(e,t)},e}();function dw(e){if(!yw(e.sourceFormat)){Eg("")}return e.data}function hw(e){var t=e.sourceFormat,n=e.data;if(!yw(t)){Eg("")}if(t===lx){for(var r=[],i=0,o=n.length;i<o;i++)r.push(n[i].slice());return r}if(t===ux){for(r=[],i=0,o=n.length;i<o;i++)r.push(ac({},n[i]));return r}}function pw(e,t,n){if(null!=n)return wc(n)||!isNaN(n)&&!Gc(t,n)?e[n]:Gc(t,n)?t[n]:void 0}function fw(e){return ic(e)}var gw=jc();function mw(e,t,n,r){t.length||Eg(""),Sc(e)||Eg("");var i=e.type,o=gw.get(i);o||Eg("");var a=hc(t,function(e){return function(e,t){var n=new cw,r=e.data,i=n.sourceFormat=e.sourceFormat,o=e.startIndex;e.seriesLayoutBy!==px&&Eg("");var a=[],s={},l=e.dimensionsDefine;if(l)dc(l,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};a.push(r),null!=n&&(Gc(s,n)&&Eg(""),s[n]=r)});else for(var u=0;u<e.dimensionsDetectedCount;u++)a.push({index:u});var c=Fx(i,px);t.__isBuiltIn&&(n.getRawDataItem=function(e){return c(r,o,a,e)},n.getRawData=mc(dw,null,e)),n.cloneRawData=mc(hw,null,e);var d=jx(i,px);n.count=mc(d,null,r,o,a);var h=Gx(i);n.retrieveValue=function(e,t){var n=c(r,o,a,e);return p(n,t)};var p=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=a[t];return n?h(e,t,n.name):void 0}};return n.getDimensionInfo=mc(pw,null,a,s),n.cloneAllDimensionInfo=mc(fw,null,a),n}(e,o)});return hc(Lg(o.transform({upstream:a[0],upstreamList:a,config:ic(e.config)})),function(e,n){var r;Sc(e)||Eg(""),e.data||Eg(""),yw(Ex(e.data))||Eg("");var i=t[0];if(i&&0===n&&!e.dimensions){var o=i.startIndex;o&&(e.data=i.data.slice(0,o).concat(e.data)),r={seriesLayoutBy:px,sourceHeader:o,dimensions:i.metaRawOption.dimensions}}else r={seriesLayoutBy:px,sourceHeader:0,dimensions:e.dimensions};return Dx(e.data,r,null)})}function yw(e){return e===lx||e===ux}var vw=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,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 e,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(xw(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,t=[u._getVersionSign()]}else s=Cc(a=o.get("data",!0))?dx:sx,t=[];var c=this._getSourceMetaRawOption()||{},d=l&&l.metaRawOption||{},h=Dc(c.seriesLayoutBy,d.seriesLayoutBy)||null,p=Dc(c.sourceHeader,d.sourceHeader),f=Dc(c.dimensions,d.dimensions);e=h!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||f?[Dx(a,{seriesLayoutBy:h,sourceHeader:p,dimensions:f},s)]:[]}else{var g=n;if(i){var m=this._applyTransform(r);e=m.sourceList,t=m.upstreamSignList}else{e=[Dx(g.get("source",!0),this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){1!==e.length&&bw("")}var o,a=[],s=[];return dc(e,function(e){e.prepareSource();var t=e.getSource(i||0);null==i||t||bw(""),a.push(t),s.push(e._getVersionSign())}),r?t=function(e,t){var n=Lg(e),r=n.length;r||Eg("");for(var i=0,o=r;i<o;i++)t=mw(n[i],t),i!==o-1&&(t.length=Math.max(t.length,1));return t}(r,a,n.componentIndex):null!=i&&(t=[(o=a[0],new Ix({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:ic(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount}))]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=this._storeList,i=r[0];i||(i=r[0]={});var o=i[n];if(!o){var a=this._getUpstreamSourceManagers()[0];xw(this._sourceHost)&&a?o=a._innerGetDataStore(e,t,n):(o=new cb).initData(new Nx(t,e.length),e),i[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(xw(e)){var t=bx(e);return t?[t.getSourceManager()]:[]}return hc(function(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?Qg(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Zg).models:[]}(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(xw(r))e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function xw(e){return"series"===e.mainType}function bw(e){throw new Error(e)}var _w="line-height:1";function ww(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,i=e.fontWeight||"400",o=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+Qb(r+"")+"px;color:"+Qb(n)+";font-weight:"+Qb(i+""),valueStyle:"font-size:"+Qb(a+"")+"px;color:"+Qb(o)+";font-weight:"+Qb(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var Sw=[0,10,20,30],kw=["","\n","\n\n","\n\n\n"];function Cw(e,t){return t.type=e,t}function Tw(e){return"section"===e.type}function Mw(e){return Tw(e)?Pw:Dw}function Iw(e){if(Tw(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return dc(e.blocks,function(e){var n=Iw(e);n>=t&&(t=n+ +(r&&(!n||Tw(e)&&!e.noHeader)))}),t}return 0}function Pw(e,t,n,r){var i,o=t.noHeader,a=(i=Iw(t),{html:Sw[i],richText:kw[i]}),s=[],l=t.blocks||[];Oc(!l||vc(l)),l=l||[];var u=e.orderMode;if(t.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Gc(c,u)){var d=new Jx(c[u],null);l.sort(function(e,t){return d.evaluate(e.sortParam,t.sortParam)})}else"seriesDesc"===u&&l.reverse()}dc(l,function(n,i){var o=t.valueFormatter,l=Mw(n)(o?ac(ac({},e),{valueFormatter:o}):e,n,i>0?a.html:0,r);null!=l&&s.push(l)});var h="richText"===e.renderMode?s.join(a.richText):Ew(s.join(""),o?n:a.html);if(o)return h;var p=F_(t.header,"ordinal",e.useUTC),f=ww(r,e.renderMode).nameStyle;return"richText"===e.renderMode?Rw(e,p,f)+a.richText+h:Ew('<div style="'+f+";"+_w+';">'+Qb(p)+"</div>"+h,n)}function Dw(e,t,n,r){var i=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(e){return hc(e=vc(e)?e:[e],function(e,t){return F_(e,vc(p)?p[t]:p,u)})};if(!o||!a){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=o?"":F_(l,"ordinal",u),p=t.valueType,f=a?[]:c(t.value,t.dataIndex),g=!s||!o,m=!s&&o,y=ww(r,i),v=y.nameStyle,x=y.valueStyle;return"richText"===i?(s?"":d)+(o?"":Rw(e,h,v))+(a?"":function(e,t,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(vc(t)?t.join(" "):t,o)}(e,f,g,m,x)):Ew((s?"":d)+(o?"":function(e,t,n){return'<span style="'+n+";"+(t?"margin-left:2px":"")+'">'+Qb(e)+"</span>"}(h,!s,v))+(a?"":function(e,t,n,r){var i=n?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=vc(e)?e:[e],'<span style="'+o+";"+r+'">'+hc(e,function(e){return Qb(e)}).join(" ")+"</span>"}(f,g,m,x)),n)}}function Aw(e,t,n,r,i,o){if(e)return Mw(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,o)}function Ew(e,t){return'<div style="'+("margin: "+t+"px 0 0")+";"+_w+';">'+e+'<div style="clear:both"></div></div>'}function Rw(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Ow(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var Lw=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Pg()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r="richText"===n?this._generateStyleName():null,i=function(e,t){var n=bc(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var o=n.renderMode||"html";return r?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Qb(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Qb(r)+";"+(t||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}({color:t,type:e,renderMode:n,markerId:r});return bc(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};vc(t)?dc(t,function(e){return ac(n,e)}):ac(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}();function Nw(e){var t,n,r,i,o=e.series,a=e.dataIndex,s=e.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,d=o.getRawValue(a),h=vc(d),p=function(e,t){return V_(e.getData().getItemVisual(t,"style")[e.visualDrawType])}(o,a);if(c>1||h&&!c){var f=function(e,t,n,r,i){var o=t.getData(),a=pc(e,function(e,t,n){var r=o.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName},!1),s=[],l=[],u=[];function c(e,t){var n=o.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?u.push(Cw("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return r.length?dc(r,function(e){c(Xx(o,n,e),e)}):dc(e,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(d,o,a,u,p);t=f.inlineValues,n=f.inlineValueTypes,r=f.blocks,i=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=t=Xx(l,a,u[0]),n=g.type}else i=t=h?d[0]:d;var m=Hg(o),y=m&&o.name||"",v=l.getName(a),x=s?y:v;return Cw("section",{header:y,noHeader:s||!m,sortParam:i,blocks:[Cw("nameValue",{markerType:"item",markerColor:p,name:x,noName:!Lc(x),value:t,valueType:n,dataIndex:a})].concat(r||[])})}var zw=Xg();function Bw(e,t){return e.getName(t)||e.getId(t)}var Fw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}var n;return $u(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=sw({count:Ww,reset:jw}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(zw(this).sourceManager=new vw(this)).prepareSource();var r=this.getInitialData(e,n);Hw(r,this),this.dataTask.context.data=r,zw(this).dataBeforeProcessed=r,$w(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Z_(this),r=n?J_(e):{},i=this.subType;tw.hasClass(i)&&(i+="Series"),oc(e,t.getTheme().get(this.subType)),oc(e,this.getDefaultOption()),Ng(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Q_(e,r,n)},t.prototype.mergeOption=function(e,t){e=oc(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Z_(this);n&&Q_(this.option,e,n);var r=zw(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);Hw(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,zw(this).dataBeforeProcessed=i,$w(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!Cc(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Ng(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=Uw(this);if(t){var n=t.context.data;return null!=e&&n.getLinkedData?n.getLinkedData(e):n}return zw(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=Uw(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}zw(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return jc(e)},t.prototype.getSourceManager=function(){return zw(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return zw(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return Nw({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(qc.node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=rw.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<e.length;o++){var a=Bw(i,e[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=gc(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return("all"===n||n[Bw(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,o=i.selectedMode,a=t.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){Sc(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<a;l++){var u=t[l];s[d=Bw(e,u)]=!0,this._selectedDataIndicesMap[d]=e.getRawIndex(u)}}else if("single"===o||!0===o){var c=t[a-1],d=Bw(e,c);i.selectedMap=((n={})[d]=!0,n),this._selectedDataIndicesMap=((r={})[d]=e.getRawIndex(c),r)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return tw.registerClass(e)},t.protoInitialize=((n=t.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),t}(tw);function $w(e){var t=e.name;Hg(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return dc(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(" ")}(e)||t)}function Ww(e){return e.model.getRawData().count()}function jw(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Vw}function Vw(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Hw(e,t){dc(function(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var i=e.length;for(r=0;r<t.length;r++)n[r+i]=t[r];return n}(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,yc(Gw,t))})}function Gw(e,t){var n=Uw(e);return n&&n.setOutputEnd((t||this).count()),t}function Uw(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}uc(Fw,ow),uc(Fw,rw),ed(Fw,tw);var Xw=Hf.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r+o),e.lineTo(n-i,r+o),e.closePath()}}),Yw=Hf.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r),e.lineTo(n,r+o),e.lineTo(n-i,r),e.closePath()}}),qw=Hf.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,d=Math.sin(u),h=Math.cos(u),p=.6*a,f=.7*a;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-d*p,l+s+h*p,n,r-f,n,r),e.bezierCurveTo(n,r-f,n-c+d*p,l+s+h*p,n-c,l+s),e.closePath()}}),Kw=Hf.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,o=t.y,a=r/3*2;e.moveTo(i,o),e.lineTo(i+a,o+n),e.lineTo(i,o+n/4*3),e.lineTo(i-a,o+n),e.lineTo(i,o),e.closePath()}}),Zw={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var o=Math.min(n,r);i.x=e,i.y=t,i.width=o,i.height=o},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},Qw={};dc({line:$y,rect:ng,roundRect:ng,square:ng,circle:py,diamond:Yw,pin:qw,arrow:Kw,triangle:Xw},function(e,t){Qw[t]=new e});var Jw=Hf.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Fd(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=Qw[r];i||(i=Qw[r="rect"]),Zw[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function eS(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function tS(e,t,n,r,i,o,a){var s,l=0===e.indexOf("empty");return l&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=0===e.indexOf("image://")?yv(e.slice(8),new Dd(t,n,r,i),a?"center":"cover"):0===e.indexOf("path://")?mv(e.slice(7),{},new Dd(t,n,r,i),a?"center":"cover"):new Jw({shape:{symbolType:e,x:t,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=eS,o&&s.setColor(o),s}function nS(e,t){if(null!=e)return vc(e)||(e=[e,e]),[vg(e[0],t[0])||0,vg(Dc(e[1],e[0]),t[1])||0]}var rS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return $u(t,e),t.prototype.getInitialData=function(e){return $b(0,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new dy,n=tS("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*e.itemHeight,s=tS(o,(e.itemWidth-a)/2,(e.itemHeight-a)/2,a,a,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?i:e.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},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}(Fw);function iS(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=Xx(e,t,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(Xx(e,t,n[a]));return o.join(" ")}}var oS=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.updateData(t,n,r,i),o}return $u(t,e),t.prototype._createSymbol=function(e,t,n,r,i){this.removeAll();var o=tS(e,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=aS,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Mm(this.childAt(0))},t.prototype.downplay=function(){Im(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var o,a=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=a!==this._symbolType,c=i&&i.disableAnimation;if(u){var d=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,e,n,l,d)}else{(p=this.childAt(0)).silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?p.attr(h):av(p,h,s,n),iv(o=p).oldStyle=o.style}if(this._updateCommon(e,n,l,r,i),u){var p=this.childAt(0);if(!c){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,sv(p,h,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,r,i){var o,a,s,l,u,c,d,h,p,f=this.childAt(0),g=e.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,d=r.labelStatesModels,h=r.hoverScale,p=r.cursorStyle,c=r.emphasisDisabled),!r||e.hasItemOption){var m=r&&r.itemModel?r.itemModel:e.getItemModel(t),y=m.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=m.getModel(["select","itemStyle"]).getItemStyle(),a=m.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),d=Nv(m),h=y.getShallow("scale"),p=m.getShallow("cursor")}var v=e.getItemVisual(t,"symbolRotate");f.attr("rotation",(v||0)*Math.PI/180||0);var x=nS(e.getItemVisual(t,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),p&&f.attr("cursor",p);var b=e.getItemVisual(t,"style"),_=b.fill;if(f instanceof qf){var w=f.style;f.useStyle(ac({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},b))}else f.__isEmptyBrush?f.useStyle(ac({},b)):f.useStyle(b),f.style.decal=null,f.setColor(_,i&&i.symbolInnerColor),f.style.strokeNoScale=!0;var S=e.getItemVisual(t,"liftZ"),k=this._z2;null!=S?null==k&&(this._z2=f.z2,f.z2+=S):null!=k&&(f.z2=k,this._z2=null);var C=i&&i.useNameLabel;Lv(f,d,{labelFetcher:g,labelDataIndex:t,defaultText:function(t){return C?e.getName(t):iS(e,t)},inheritColor:_,defaultOpacity:b.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=f.ensureState("emphasis");T.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var M=null==h||!0===h?Math.max(1.1,3/this._sizeY):isFinite(h)&&h>0?+h:1;T.scaleX=this._sizeX*M,T.scaleY=this._sizeY*M,this.setSymbolScale(1),$m(this,l,u,c)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=em(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&uv(a,{style:{opacity:0}},t,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();uv(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return vc(n=e.getItemVisual(t,"symbolSize"))||(n=[+n,+n]),[n[0]||0,n[1]||0];var n},t}(dy);function aS(e,t){this.parent.drift(e,t)}function sS(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function lS(e){return null==e||Sc(e)||(e={isIgnore:e}),e||{}}function uS(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Nv(t),cursorStyle:t.get("cursor")}}var cS=function(){function e(e){this.group=new dy,this._SymbolCtor=e||oS}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=lS(t);var n=this.group,r=e.hostModel,i=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=uS(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=u(r);if(sS(e,i,r,t)){var a=new o(e,r,s,l);a.setPosition(i),e.setItemGraphicEl(r,a),n.add(a)}}).update(function(c,d){var h=i.getItemGraphicEl(d),p=u(c);if(sS(e,p,c,t)){var f=e.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==f)n.remove(h),(h=new o(e,c,s,l)).setPosition(p);else{h.updateData(e,c,s,l);var m={x:p[0],y:p[1]};a?h.attr(m):av(h,m,r)}n.add(h),e.setItemGraphicEl(c,h)}else n.remove(h)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=uS(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=lS(n);for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(sS(t,o,i,n)){var a=new this._SymbolCtor(t,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),t.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){Av(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function dS(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),o=function(e,t){var n=0,r=e.scale.getExtent();"start"===t?n=r[0]:"end"===t?n=r[1]:wc(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]);return n}(i,n),a=r.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(a),c="x"===s||"radius"===s?1:0,d=hc(e.dimensions,function(e){return t.mapDimension(e)}),h=!1,p=t.getCalculationInfo("stackResultDimension");return Fb(t,d[0])&&(h=!0,d[0]=p),Fb(t,d[1])&&(h=!0,d[1]=p),{dataDimsForPoint:d,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function hS(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}var pS="undefined"!=typeof Float32Array,fS=pS?Float32Array:Array;function gS(e){return vc(e)?pS?new Float32Array(e):e:new fS(e)}var mS=Math.min,yS=Math.max;function vS(e,t){return isNaN(e)||isNaN(t)}function xS(e,t,n,r,i,o,a,s,l){for(var u,c,d,h,p,f,g=n,m=0;m<r;m++){var y=t[2*g],v=t[2*g+1];if(g>=i||g<0)break;if(vS(y,v)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](y,v),d=y,h=v;else{var x=y-u,b=v-c;if(x*x+b*b<.5){g+=o;continue}if(a>0){for(var _=g+o,w=t[2*_],S=t[2*_+1];w===y&&S===v&&m<r;)m++,g+=o,w=t[2*(_+=o)],S=t[2*_+1],x=(y=t[2*g])-u,b=(v=t[2*g+1])-c;var k=m+1;if(l)for(;vS(w,S)&&k<r;)k++,w=t[2*(_+=o)],S=t[2*_+1];var C=.5,T=0,M=0,I=void 0,P=void 0;if(k>=r||vS(w,S))p=y,f=v;else{T=w-u,M=S-c;var D=y-u,A=w-y,E=v-c,R=S-v,O=void 0,L=void 0;if("x"===s){var N=T>0?1:-1;p=y-N*(O=Math.abs(D))*a,f=v,I=y+N*(L=Math.abs(A))*a,P=v}else if("y"===s){var z=M>0?1:-1;p=y,f=v-z*(O=Math.abs(E))*a,I=y,P=v+z*(L=Math.abs(R))*a}else O=Math.sqrt(D*D+E*E),p=y-T*a*(1-(C=(L=Math.sqrt(A*A+R*R))/(L+O))),f=v-M*a*(1-C),P=v+M*a*C,I=mS(I=y+T*a*C,yS(w,y)),P=mS(P,yS(S,v)),I=yS(I,mS(w,y)),f=v-(M=(P=yS(P,mS(S,v)))-v)*O/L,p=mS(p=y-(T=I-y)*O/L,yS(u,y)),f=mS(f,yS(c,v)),I=y+(T=y-(p=yS(p,mS(u,y))))*L/O,P=v+(M=v-(f=yS(f,mS(c,v))))*L/O}e.bezierCurveTo(d,h,p,f,y,v),d=I,h=P}else e.lineTo(y,v)}u=y,c=v,g+=o}return m}var bS=function(){return function(){this.smooth=0,this.smoothConstraint=!0}}(),_S=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return $u(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new bS},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&vS(n[2*i-2],n[2*i-1]);i--);for(;r<i&&vS(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=xS(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,o=Sf.CMD,a="x"===t,s=[],l=0;l<i.length;){var u=void 0,c=void 0,d=void 0,h=void 0,p=void 0,f=void 0,g=void 0;switch(i[l++]){case o.M:n=i[l++],r=i[l++];break;case o.L:if(u=i[l++],c=i[l++],(g=a?(e-n)/(u-n):(e-r)/(c-r))<=1&&g>=0){var m=a?(c-r)*g+r:(u-n)*g+n;return a?[e,m]:[m,e]}n=u,r=c;break;case o.C:u=i[l++],c=i[l++],d=i[l++],h=i[l++],p=i[l++],f=i[l++];var y=a?Ah(n,u,d,p,e,s):Ah(r,c,h,f,e,s);if(y>0)for(var v=0;v<y;v++){var x=s[v];if(x<=1&&x>=0){m=a?Ph(r,c,h,f,x):Ph(n,u,d,p,x);return a?[e,m]:[m,e]}}n=p,r=f}}},t}(Hf),wS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $u(t,e),t}(bS),SS=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return $u(t,e),t.prototype.getDefaultShape=function(){return new wS},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0&&vS(n[2*o-2],n[2*o-1]);o--);for(;i<o&&vS(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=xS(e,n,i,o,o,1,t.smooth,a,t.connectNulls);xS(e,r,i+s-1,s,o,-1,t.stackedOnSmooth,a,t.connectNulls),i+=s+1,e.closePath()}},t}(Hf);function kS(){var e=Xg();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var CS=Xg(),TS=kS(),MS=function(){function e(){this.group=new dy,this.uid=jb("viewChart"),this.renderTask=sw({plan:DS,reset:AS}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&PS(i,r,"emphasis")},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&PS(i,r,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Av(this.group,e)},e.markUpdateMethod=function(e,t){CS(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function IS(e,t,n){e&&Gm(e)&&("emphasis"===t?Mm:Im)(e,n)}function PS(e,t,n){var r=Ug(e,t),i=t&&null!=t.highlightKey?function(e){var t=nm[e];return null==t&&tm<=32&&(t=nm[e]=tm++),t}(t.highlightKey):null;null!=r?dc(Lg(r),function(t){IS(e.getItemGraphicEl(t),n,i)}):e.eachItemGraphicEl(function(e){IS(e,n,i)})}function DS(e){return TS(e.model)}function AS(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&CS(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,r,i),ES[l]}Jc(MS),id(MS);var ES={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};function RS(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function OS(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function LS(e,t){var n=OS(e),r=n[0],i=n[1],o=OS(t),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function NS(e){return wc(e)?e:e?.5:0}function zS(e,t,n,r){var i=t.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],s=0,l=[],u=[],c=[],d=[];if(r){for(s=0;s<e.length;s+=2)isNaN(e[s])||isNaN(e[s+1])||d.push(e[s],e[s+1]);e=d}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],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var h=(u[o]+c[o])/2,p=[];l[o]=p[o]=h,l[1-o]=u[1-o],p[1-o]=c[1-o],a.push(l[0],l[1]),a.push(p[0],p[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(e[s++],e[s++]),a}function BS(e,t){var n,r,i=[],o=e.length;function a(e,t,n){var r=e.coord;return{coord:n,color:function(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=tp(t[i]),s=tp(t[o]),l=r-i,u=ip([Hh(qh(a[0],s[0],l)),Hh(qh(a[1],s[1],l)),Hh(qh(a[2],s[2],l)),Gh(qh(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<o;s++){var l=e[s],u=l.coord;if(u<0)n=l;else{if(u>t){r?i.push(a(r,l,t)):n&&i.push(a(n,l,0),a(n,l,t));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}function FS(e,t,n){var r=e.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!function(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*oS.getSymbolSize(t,a)[e.isHorizontal()?1:0]>r)return!1;return!0}(o,t))){var a=t.mapDimension(o.dim),s={};return dc(o.getViewLabels(),function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1}),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function $S(e,t){return isNaN(e)||isNaN(t)}function WS(e,t){return[e[2*t],e[2*t+1]]}function jS(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<om.length;t++)if(e.get([om[t],"endLabel","show"]))return!0;return!1}function VS(e,t,n,r){if(function(e,t){return e.type===t}(t,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=jS(r)?function(n,r){e._endLabelOnDuring(n,r,a,s,o,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=function(e,t,n,r,i){var o=e.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var d=new ng({shape:{x:a,y:s,width:l,height:u}});if(t){var h=e.getBaseAxis(),p=h.isHorizontal(),f=h.inverse;p?(f&&(d.shape.x+=l),d.shape.width=0):(f||(d.shape.y+=u),d.shape.height=0);var g=xc(i)?function(e){i(e,d)}:null;sv(d,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return d}(t,n,r,function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var d=c.shape,h=Math.max(d.width,d.height);u?(d.y-=h,d.height+=2*h):(d.x-=h,d.width+=2*h)}return l&&l(1,c),c}return function(e,t,n){var r=e.getArea(),i=xg(r.r0,1),o=xg(r.r,1),a=new Dy({shape:{cx:xg(e.cx,1),cy:xg(e.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&("angle"===e.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,sv(a,{shape:{endAngle:r.endAngle,r:o}},n)),a}(t,n,r)}var HS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $u(t,e),t.prototype.init=function(){var e=new dy,t=new cS;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===i.type,d=this._coordSys,h=this._symbolDraw,p=this._polyline,f=this._polygon,g=this._lineGroup,m=!t.ssr&&e.get("animation"),y=!l.isEmpty(),v=l.get("origin"),x=dS(i,a,v),b=y&&function(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=gS(2*r),o=0;o<r;o++){var a=hS(n,e,t,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(i,a,x),_=e.get("showSymbol"),w=e.get("connectNulls"),S=_&&!c&&FS(e,a,i),k=this._data;k&&k.eachItemGraphicEl(function(e,t){e.__temp&&(o.remove(e),k.setItemGraphicEl(t,null))}),_||h.remove(),o.add(g);var C,T=!c&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(null!=(C=i.getArea()).width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var M=function(e,t,n){var r=e.getVisual("visualMeta");if(r&&r.length&&e.count()&&"cartesian2d"===t.type){for(var i,o,a=r.length-1;a>=0;a--){var s=e.getDimensionInfo(r[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){o=r[a];break}}if(o){var l=t.getAxis(i),u=hc(o.stops,function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}}),c=u.length,d=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var h=BS(u,"x"===i?n.getWidth():n.getHeight()),p=h.length;if(!p&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var f=h[0].coord-10,g=h[p-1].coord+10,m=g-f;if(m<.001)return"transparent";dc(h,function(e){e.offset=(e.coord-f)/m}),h.push({offset:p?h[p-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:p?h[0].offset:.5,color:d[0]||"transparent"});var y=new qy(0,0,0,0,h,!0);return y[i]=f,y[i+"2"]=g,y}}}(a,i,n)||a.getVisual("style")[a.getVisual("drawType")];if(p&&d.type===i.type&&T===this._step){y&&!f?f=this._newPolygon(u,b):f&&!y&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,V_(M));var I=g.getClipPath();if(I)sv(I,{shape:VS(this,i,!1,e).shape},e);else g.setClipPath(VS(this,i,!0,e));_&&h.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),RS(this._stackedOnPoints,b)&&RS(this._points,u)||(m?this._doUpdateAnimation(a,b,i,n,T,v,w):(T&&(u=zS(u,i,T,w),b&&(b=zS(b,i,T,w))),p.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:b})))}else _&&h.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),m&&this._initSymbolLabelAnimation(a,i,C),T&&(u=zS(u,i,T,w),b&&(b=zS(b,i,T,w))),p=this._newPolyline(u),y?f=this._newPolygon(u,b):f&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,V_(M)),g.setClipPath(VS(this,i,!0,e));var P=e.getModel("emphasis"),D=P.get("focus"),A=P.get("blurScope"),E=P.get("disabled");(p.useStyle(sc(s.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"})),Vm(p,e,"lineStyle"),p.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"]))&&(p.getState("emphasis").style.lineWidth=+p.style.lineWidth+1);em(p).seriesIndex=e.seriesIndex,$m(p,D,A,E);var R=NS(e.get("smooth")),O=e.get("smoothMonotone");if(p.setShape({smooth:R,smoothMonotone:O,connectNulls:w}),f){var L=a.getCalculationInfo("stackedOnSeries"),N=0;f.useStyle(sc(l.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),L&&(N=NS(L.get("smooth"))),f.setShape({smooth:R,stackedOnSmooth:N,smoothMonotone:O,connectNulls:w}),Vm(f,e,"areaStyle"),em(f).seriesIndex=e.seriesIndex,$m(f,D,A,E)}var z=function(e){r._changePolyState(e)};a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=z)}),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=i,this._stackedOnPoints=b,this._points=u,this._step=T,this._valueOrigin=v,e.get("triggerLineEvent")&&(this.packEventData(e,p),f&&this.packEventData(e,f))},t.prototype.packEventData=function(e,t){em(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),o=Ug(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel")||0,d=e.get("z")||0;(s=new oS(i,o)).x=l,s.y=u,s.setZ(c,d);var h=s.getSymbolPath().getTextContent();h&&(h.zlevel=c,h.z=d,h.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else MS.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),o=Ug(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else MS.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;wm(this._polyline,e),t&&wm(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new _S({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new SS({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(r=o.isHorizontal(),i=!1):"polar"===t.type&&(r="angle"===o.dim,i=!0);var s=e.hostModel,l=s.get("animationDuration");xc(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=xc(u)?u(null):u;e.eachItemGraphicEl(function(e,o){var s=e;if(s){var d=[e.x,e.y],h=void 0,p=void 0,f=void 0;if(n)if(i){var g=n,m=t.pointToCoord(d);r?(h=g.startAngle,p=g.endAngle,f=-m[1]/180*Math.PI):(h=g.r0,p=g.r,f=m[0])}else{var y=n;r?(h=y.x,p=y.x+y.width,f=e.x):(h=y.y+y.height,p=y.y,f=e.y)}var v=p===h?0:(f-h)/(p-h);a&&(v=1-v);var x=xc(u)?u(o):l*v+c,b=s.getSymbolPath(),_=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),_&&_.animateFrom({style:{opacity:0}},{duration:300,delay:x}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel("endLabel");if(jS(e)){var i=e.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new og({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(e){for(var t=e.length/2;t>0&&$S(e[2*t-2],e[2*t-1]);t--);return t-1}(a);l>=0&&(Lv(o,Nv(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?function(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!vc(t))return t+"";for(var r=[],i=0;i<n.length;i++){var o=e.getDimensionIndex(n[i]);o>=0&&r.push(t[o])}return r.join(" ")}(i,n):iS(i,e)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}(r,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,d=c.get("connectNulls"),h=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),m=f.inverse,y=t.shape,v=m?g?y.x:y.y+y.height:g?y.x+y.width:y.y,x=(g?p:0)*(m?-1:1),b=(g?0:-p)*(m?-1:1),_=g?"x":"y",w=function(e,t,n){for(var r,i,o=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(i=e[2*u+a],!isNaN(i)&&!isNaN(e[2*u+1-a]))if(0!==u){if(r<=t&&i>=t||r>=t&&i<=t){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(t-r)/(i-r)}}(u,v,_),S=w.range,k=S[1]-S[0],C=void 0;if(k>=1){if(k>1&&!d){var T=WS(u,S[0]);s.attr({x:T[0]+x,y:T[1]+b}),i&&(C=c.getRawValue(S[0]))}else{(T=l.getPointOn(v,_))&&s.attr({x:T[0]+x,y:T[1]+b});var M=c.getRawValue(S[0]),I=c.getRawValue(S[1]);i&&(C=function(e,t,n,r,i){var o=null==t||"auto"===t;if(null==r)return r;if(wc(r))return xg(f=Rg(n||0,r,i),o?Math.max(bg(n||0),bg(r)):t);if(bc(r))return i<1?n:r;for(var a=[],s=n,l=r,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var d=e.getDimensionInfo(c);if(d&&"ordinal"===d.type)a[c]=(i<1&&s?s:l)[c];else{var h=s&&s[c]?s[c]:0,p=l[c],f=Rg(h,p,i);a[c]=xg(f,o?Math.max(bg(h),bg(p)):t)}}return a}(n,h,M,I,w.t))}r.lastFrameIndex=S[0]}else{var P=1===e||r.lastFrameIndex>0?S[0]:0;T=WS(u,P);i&&(C=c.getRawValue(P)),s.attr({x:T[0]+x,y:T[1]+b})}if(i){var D=Gv(s);"function"==typeof D.setLabelText&&D.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=function(e,t,n,r,i,o,a){for(var s=function(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:"+",idx:e})}).update(function(e,t){n.push({cmd:"=",idx:t,idx1:e})}).remove(function(e){n.push({cmd:"-",idx:e})}).execute(),n}(e,t),l=[],u=[],c=[],d=[],h=[],p=[],f=[],g=dS(i,t,a),m=e.getLayout("points")||[],y=t.getLayout("points")||[],v=0;v<s.length;v++){var x=s[v],b=!0,_=void 0,w=void 0;switch(x.cmd){case"=":_=2*x.idx,w=2*x.idx1;var S=m[_],k=m[_+1],C=y[w],T=y[w+1];(isNaN(S)||isNaN(k))&&(S=C,k=T),l.push(S,k),u.push(C,T),c.push(n[_],n[_+1]),d.push(r[w],r[w+1]),f.push(t.getRawIndex(x.idx1));break;case"+":var M=x.idx,I=g.dataDimsForPoint,P=i.dataToPoint([t.get(I[0],M),t.get(I[1],M)]);w=2*M,l.push(P[0],P[1]),u.push(y[w],y[w+1]);var D=hS(g,i,t,M);c.push(D[0],D[1]),d.push(r[w],r[w+1]),f.push(t.getRawIndex(M));break;case"-":b=!1}b&&(h.push(x),p.push(p.length))}p.sort(function(e,t){return f[e]-f[t]});var A=l.length,E=gS(A),R=gS(A),O=gS(A),L=gS(A),N=[];for(v=0;v<p.length;v++){var z=p[v],B=2*v,F=2*z;E[B]=l[F],E[B+1]=l[F+1],R[B]=u[F],R[B+1]=u[F+1],O[B]=c[F],O[B+1]=c[F+1],L[B]=d[F],L[B+1]=d[F+1],N[v]=h[z]}return{current:E,next:R,stackedOnCurrent:O,stackedOnNext:L,status:N}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),d=c.current,h=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(i&&(d=zS(c.current,n,i,a),h=zS(c.stackedOnCurrent,n,i,a),p=zS(c.next,n,i,a),f=zS(c.stackedOnNext,n,i,a)),LS(d,p)>3e3||l&&LS(h,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=d;var g={shape:{points:p}};c.current!==d&&(g.shape.__points=c.next),s.stopAnimation(),av(s,g,u),l&&(l.setShape({points:d,stackedOnPoints:h}),l.stopAnimation(),av(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],y=c.status,v=0;v<y.length;v++){if("="===y[v].cmd){var x=e.getItemGraphicEl(y[v].idx1);x&&m.push({el:x,ptIdx:v})}}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<m.length;t++){var n=m[t].el,r=2*m[t].ptIdx;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(MS);var GS={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,n=-1/0,r=0;r<e.length;r++){var i=e[r],o=Math.abs(i);o>t&&(t=o,n=i)}return isFinite(n)?n:NaN},nearest:function(e){return e[0]}},US=function(e){return Math.round(e.length/2)};function XS(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function YS(e){return e.dim+e.index}function qS(e){var t=function(e){var t={};dc(e,function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=e.getData(),i=n.dim+"_"+n.index,o=r.getDimensionIndex(r.mapDimension(n.dim)),a=r.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);t[i]?t[i].push(u):t[i]=[u]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(e,t){return e-t});for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}(e),n=[];return dc(e,function(e){var r,i=e.coordinateSystem.getBaseAxis(),o=i.getExtent();if("category"===i.type)r=i.getBandWidth();else if("value"===i.type||"time"===i.type){var a=i.dim+"_"+i.index,s=t[a],l=Math.abs(o[1]-o[0]),u=i.scale.getExtent(),c=Math.abs(u[1]-u[0]);r=s?l/c*s:l}else{var d=e.getData();r=Math.abs(o[1]-o[0])/d.count()}var h=vg(e.get("barWidth"),r),p=vg(e.get("barMaxWidth"),r),f=vg(e.get("barMinWidth")||(function(e){return e.pipelineContext&&e.pipelineContext.large}(e)?.5:1),r),g=e.get("barGap"),m=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:h,barMaxWidth:p,barMinWidth:f,barGap:g,barCategoryGap:m,axisKey:YS(i),stackId:XS(e)})}),function(e){var t={};dc(e,function(e,n){var r=e.axisKey,i=e.bandWidth,o=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[r]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var d=e.barGap;null!=d&&(o.gap=d);var h=e.barCategoryGap;null!=h&&(o.categoryGap=h)});var n={};return dc(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,o=e.categoryGap;if(null==o){var a=gc(r).length;o=Math.max(35-4*a,15)+"%"}var s=vg(o,i),l=vg(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),dc(r,function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,u-=r+l*r,c--}else{var r=d;t&&t<r&&(r=Math.min(t,u)),n&&n>r&&(r=n),r!==d&&(e.width=r,u-=r+l*r,c--)}}),d=(u-s)/(c+(c-1)*l),d=Math.max(d,0);var h,p=0;dc(r,function(e,t){e.width||(e.width=d),h=e,p+=e.width*(1+l)}),h&&(p-=h.width*l);var f=-p/2;dc(r,function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:f,width:e.width},f+=e.width*(1+l)})}),n}(n)}var KS="\0__throttleOriginMethod",ZS="\0__throttleRate",QS="\0__throttleType";function JS(e,t,n){var r,i,o,a,s,l=0,u=0,c=null;function d(){u=(new Date).getTime(),c=null,e.apply(o,a||[])}t=t||0;var h=function(){for(var e=[],h=0;h<arguments.length;h++)e[h]=arguments[h];r=(new Date).getTime(),o=this,a=e;var p=s||t,f=s||n;s=null,i=r-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(d,p):i>=0?d():c=setTimeout(d,-i),l=r};return h.clear=function(){c&&(clearTimeout(c),c=null)},h.debounceNextCall=function(e){s=e},h}function ek(e,t,n,r){var i=e[t];if(i){var o=i[KS]||i,a=i[QS];if(i[ZS]!==n||a!==r){if(null==n)return e[t]=o;(i=e[t]=JS(o,n,"debounce"===r))[KS]=o,i[QS]=r,i[ZS]=n}return i}}function tk(e,t){var n=e[t];n&&n[KS]&&(n.clear&&n.clear(),e[t]=n[KS])}function nk(e,t,n,r,i){var o=e+t;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===t){var l=e.getData(),u=Ug(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:e.id,name:vc(u)?l.getName(u[0]):l.getName(u),selected:bc(r)?r:ac({},r)})}})}var rk=function(){return function(e,t){this.target=e,this.topTarget=t&&t.topTarget}}(),ik=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new rk(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,t.drift(i,o,e),this.handler.dispatchToElement(new rk(t,e),"drag",e.event);var a=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=a,t!==a&&(s&&a!==s&&this.handler.dispatchToElement(new rk(s,e),"dragleave",e.event),a&&a!==s&&this.handler.dispatchToElement(new rk(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new rk(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new rk(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),ok=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ak=[],sk=qc.browser.firefox&&+qc.browser.version.split(".")[0]<39;function lk(e,t,n,r){return n=n||{},r?uk(e,t,n):sk&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):uk(e,t,n),n}function uk(e,t,n){if(qc.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(qb(e)){var o=e.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(Yb(ak,e,r,i))return n.zrX=ak[0],void(n.zrY=ak[1])}n.zrX=n.zrY=0}function ck(e){return e||window.event}function dk(e,t,n){if(null!=(t=ck(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];i&&lk(e,i,t,n)}else{lk(e,t,t,n);var o=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var a=t.button;return null==t.which&&void 0!==a&&ok.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function hk(e,t,n,r){e.removeEventListener(t,n,r)}var pk=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},fk=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},o=0,a=r.length;o<a;o++){var s=r[o],l=lk(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in mk)if(mk.hasOwnProperty(t)){var n=mk[t](this._track,e);if(n)return n}},e}();function gk(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var mk={pinch:function(e,t){var n=e.length;if(n){var r,i=(e[n-1]||{}).points,o=(e[n-2]||{}).points||i;if(o&&o.length>1&&i&&i.length>1){var a=gk(i)/gk(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}},yk="silent";function vk(){pk(this.event)}var xk=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return $u(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(wp),bk=function(){return function(e,t){this.x=e,this.y=t}}(),_k=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],wk=new Dd(0,0,0,0),Sk=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a._hovered=new bk(0,0),a.storage=t,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new xk,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new ik(a),a}return $u(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(dc(_k,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=Tk(this,t,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?new bk(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new bk(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var r=(e=e||{}).target;if(!r||!r.silent){for(var i="on"+t,o=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:vk}}(t,e,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(t,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){"function"==typeof e[i]&&e[i].call(e,o),e.trigger&&e.trigger(t,o)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new bk(e,t);if(Ck(r,i,e,t,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Dd(e-s,t-s,a,a),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(wk.copy(c.getBoundingRect()),c.transform&&wk.applyTransform(c.transform),wk.intersect(l)&&o.push(c))}if(o.length)for(var d=Math.PI/12,h=2*Math.PI,p=0;p<s;p+=4)for(var f=0;f<h;f+=d){if(Ck(o,i,e+p*Math.cos(f),t+p*Math.sin(f),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new fk);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i;var o=new bk;o.target=r.target,this.dispatchToElement(o,i,r.event)}},t}(wp);function kk(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return!i||yk}return!1}function Ck(e,t,n,r,i){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=kk(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==yk)){t.target=a;break}}}function Tk(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}dc(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Sk.prototype[e]=function(t){var n,r,i=t.zrX,o=t.zrY,a=Tk(this,i,o);if("mouseup"===e&&a||(r=(n=this.findHover(i,o)).target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||oh(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}});function Mk(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;!function(e,t,n){n--;for(;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function Ik(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var o,a=e[r],s=t,l=r;s<l;)i(a,e[o=s+l>>>1])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;u>0;)e[s+u]=e[s+u-1],u--}e[s]=a}}function Pk(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){for(s=r-i;l<s&&o(e,t[n+i+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(e,t[n+i-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function Dk(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){for(s=i+1;l<s&&o(e,t[n+i-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(e,t[n+i+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function Ak(e,t){var n,r,i=7,o=0,a=[];function s(s){var l=n[s],u=r[s],c=n[s+1],d=r[s+1];r[s]=u+d,s===o-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),o--;var h=Dk(e[c],e,l,u,0,t);l+=h,0!==(u-=h)&&0!==(d=Pk(e[l+u-1],e,c,d,d-1,t))&&(u<=d?function(n,r,o,s){var l=0;for(l=0;l<r;l++)a[l]=e[n+l];var u=0,c=o,d=n;if(e[d++]=e[c++],0===--s){for(l=0;l<r;l++)e[d+l]=a[u+l];return}if(1===r){for(l=0;l<s;l++)e[d+l]=e[c+l];return void(e[d+s]=a[u])}var h,p,f,g=i;for(;;){h=0,p=0,f=!1;do{if(t(e[c],a[u])<0){if(e[d++]=e[c++],p++,h=0,0===--s){f=!0;break}}else if(e[d++]=a[u++],h++,p=0,1===--r){f=!0;break}}while((h|p)<g);if(f)break;do{if(0!==(h=Dk(e[c],a,u,r,0,t))){for(l=0;l<h;l++)e[d+l]=a[u+l];if(d+=h,u+=h,(r-=h)<=1){f=!0;break}}if(e[d++]=e[c++],0===--s){f=!0;break}if(0!==(p=Pk(a[u],e,c,s,0,t))){for(l=0;l<p;l++)e[d+l]=e[c+l];if(d+=p,c+=p,0===(s-=p)){f=!0;break}}if(e[d++]=a[u++],1===--r){f=!0;break}g--}while(h>=7||p>=7);if(f)break;g<0&&(g=0),g+=2}if((i=g)<1&&(i=1),1===r){for(l=0;l<s;l++)e[d+l]=e[c+l];e[d+s]=a[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)e[d+l]=a[u+l]}}(l,u,c,d):function(n,r,o,s){var l=0;for(l=0;l<s;l++)a[l]=e[o+l];var u=n+r-1,c=s-1,d=o+s-1,h=0,p=0;if(e[d--]=e[u--],0===--r){for(h=d-(s-1),l=0;l<s;l++)e[h+l]=a[l];return}if(1===s){for(p=(d-=r)+1,h=(u-=r)+1,l=r-1;l>=0;l--)e[p+l]=e[h+l];return void(e[d]=a[c])}var f=i;for(;;){var g=0,m=0,y=!1;do{if(t(a[c],e[u])<0){if(e[d--]=e[u--],g++,m=0,0===--r){y=!0;break}}else if(e[d--]=a[c--],m++,g=0,1===--s){y=!0;break}}while((g|m)<f);if(y)break;do{if(0!==(g=r-Dk(a[c],e,n,r,r-1,t))){for(r-=g,p=(d-=g)+1,h=(u-=g)+1,l=g-1;l>=0;l--)e[p+l]=e[h+l];if(0===r){y=!0;break}}if(e[d--]=a[c--],1===--s){y=!0;break}if(0!==(m=s-Pk(e[u],a,0,s,s-1,t))){for(s-=m,p=(d-=m)+1,h=(c-=m)+1,l=0;l<m;l++)e[p+l]=a[h+l];if(s<=1){y=!0;break}}if(e[d--]=e[u--],0===--r){y=!0;break}f--}while(g>=7||m>=7);if(y)break;f<0&&(f=0),f+=2}(i=f)<1&&(i=1);if(1===s){for(p=(d-=r)+1,h=(u-=r)+1,l=r-1;l>=0;l--)e[p+l]=e[h+l];e[d]=a[c]}else{if(0===s)throw new Error;for(h=d-(s-1),l=0;l<s;l++)e[h+l]=a[l]}}(l,u,c,d))}return n=[],r=[],{mergeRuns:function(){for(;o>1;){var e=o-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;s(e)}},forceMergeRuns:function(){for(;o>1;){var e=o-2;e>0&&r[e-1]<r[e+1]&&e--,s(e)}},pushRun:function(e,t){n[o]=e,r[o]=t,o+=1}}}function Ek(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var o=0;if(i<32)Ik(e,n,r,n+(o=Mk(e,n,r,t)),t);else{var a=Ak(e,t),s=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(i);do{if((o=Mk(e,n,r,t))<s){var l=i;l>s&&(l=s),Ik(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}}var Rk=!1;function Ok(){Rk||(Rk=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Lk(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Nk,zk=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Lk}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,Ek(n,Lk)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var a=e.childrenRef(),s=0;s<a.length;s++){var l=a[s];e.__dirty&&(l.__dirty|=1),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var u=e;t&&t.length?u.__clipPaths=t:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Ok(),u.z=0),isNaN(u.z2)&&(Ok(),u.z2=0),isNaN(u.zlevel)&&(Ok(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=lc(this._roots,e);r>=0&&this._roots.splice(r,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}();function Bk(){return(new Date).getTime()}Nk=qc.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Fk,$k,Wk=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return $u(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=Bk()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,Nk(function t(){e._running&&(Nk(t),!e._paused&&e.update())})},t.prototype.start=function(){this._running||(this._time=Bk(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Bk(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Bk()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new _p(e,t.loop);return this.addAnimator(n),n},t}(wp),jk=qc.domSupported,Vk=($k={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Fk=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:hc(Fk,function(e){var t=e.replace("mouse","pointer");return $k.hasOwnProperty(t)?t:e})}),Hk=["mousemove","mouseup"],Gk=["pointermove","pointerup"],Uk=!1;function Xk(e){var t=e.pointerType;return"pen"===t||"touch"===t}function Yk(e){e&&(e.zrByTouch=!0)}function qk(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Kk=function(){return function(e,t){this.stopPropagation=Uc,this.stopImmediatePropagation=Uc,this.preventDefault=Uc,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}}(),Zk={mousedown:function(e){e=dk(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=dk(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=dk(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){qk(this,(e=dk(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Uk=!0,e=dk(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Uk||(e=dk(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){Yk(e=dk(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Zk.mousemove.call(this,e),Zk.mousedown.call(this,e)},touchmove:function(e){Yk(e=dk(this.dom,e)),this.handler.processGesture(e,"change"),Zk.mousemove.call(this,e)},touchend:function(e){Yk(e=dk(this.dom,e)),this.handler.processGesture(e,"end"),Zk.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&Zk.click.call(this,e)},pointerdown:function(e){Zk.mousedown.call(this,e)},pointermove:function(e){Xk(e)||Zk.mousemove.call(this,e)},pointerup:function(e){Zk.mouseup.call(this,e)},pointerout:function(e){Xk(e)||Zk.mouseout.call(this,e)}};dc(["click","dblclick","contextmenu"],function(e){Zk[e]=function(t){t=dk(this.dom,t),this.trigger(e,t)}});var Qk={pointermove:function(e){Xk(e)||Qk.mousemove.call(this,e)},pointerup:function(e){Qk.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 Jk(e,t){var n=t.domHandlers;qc.pointerEventsSupported?dc(Vk.pointer,function(r){tC(t,r,function(t){n[r].call(e,t)})}):(qc.touchEventsSupported&&dc(Vk.touch,function(r){tC(t,r,function(i){n[r].call(e,i),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}(t)})}),dc(Vk.mouse,function(r){tC(t,r,function(i){i=ck(i),t.touching||n[r].call(e,i)})}))}function eC(e,t){function n(n){tC(t,n,function(r){r=ck(r),qk(e,r.target)||(r=function(e,t){return dk(e.dom,new Kk(e,t),!0)}(e,r),t.domHandlers[n].call(e,r))},{capture:!0})}qc.pointerEventsSupported?dc(Gk,n):qc.touchEventsSupported||dc(Hk,n)}function tC(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,function(e,t,n,r){e.addEventListener(t,n,r)}(e.domTarget,t,n,r)}function nC(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&hk(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var rC=function(){return function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}}(),iC=function(e){function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new rC(t,Zk),jk&&(r._globalHandlerScope=new rC(document,Qk)),Jk(r,r._localHandlerScope),r}return $u(t,e),t.prototype.dispose=function(){nC(this._localHandlerScope),jk&&nC(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,jk&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?eC(this,t):nC(t)}},t}(wp),oC={},aC={};var sC=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var i=new zk,o=n.renderer||"canvas";oC[o]||(o=gc(oC)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new oC[o](t,i,n,e),s=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var l,u=qc.node||qc.worker||s?null:new iC(a.getViewportRoot(),a.root),c=n.useCoarsePointer;(null==c||"auto"===c?qc.touchEventsSupported:!!c)&&(l=Dc(n.pointerSize,44)),this.handler=new Sk(i,a,u,a.root,l),this.animation=new Wk({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"==typeof e)return op(e,1)<.4;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=op(t[i].color,1);return(n/=r)<.4}return!1}(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||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(e){var t,n=Bk();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=Bk();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},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&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.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(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof dy&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){var e;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,e=this.id,delete aC[e])},e}();function lC(e,t){var n=new sC(nc(),e,t);return aC[n.id]=n,n}var uC="";"undefined"!=typeof navigator&&(uC=navigator.platform||"");var cC="rgba(0, 0, 0, 0.2)";const dC={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:cC,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:cC,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:cC,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:cC,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:cC,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:cC,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:uC.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 hC,pC,fC,gC=jc();var mC="\0_ec_inner",yC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $u(t,e),t.prototype.init=function(e,t,n,r,i,o){r=r||{},this.option=null,this._theme=new nx(r),this._locale=new nx(i),this._optionManager=o},t.prototype.setOption=function(e,t,n){var r=bC(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,bC(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):fC(this,i),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var a=r.getMediaOption(this);a.length&&dc(a,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=jc(),s=t&&t.replaceMergeMainTypeMap;vx(this).datasetMap=jc(),dc(e,function(e,t){null!=e&&(tw.hasClass(t)?t&&(o.push(t),a.set(t,!0)):n[t]=null==n[t]?ic(e):oc(n[t],e,!0))}),s&&s.each(function(e,t){tw.hasClass(t)&&!a.get(t)&&(o.push(t),a.set(t,!0))}),tw.topologicalTravel(o,tw.getAllClassMainTypes(),function(t){var o=function(e,t,n){var r=gC.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}(this,t,Lg(e[t])),a=r.get(t),l=a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",u=$g(a,o,l);(function(e,t,n){dc(e,function(e){var r=e.newOption;Sc(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}(t,r,e.existing,n))})})(u,t,tw),n[t]=null,r.set(t,null),i.set(t,0);var c,d=[],h=[],p=0;dc(u,function(e,n){var r=e.existing,i=e.newOption;if(i){var o="series"===t,a=tw.getClass(t,e.keyInfo.subType,!o);if(!a)return;if("tooltip"===t){if(c)return;c=!0}if(r&&r.constructor===a)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=ac({componentIndex:n},e.keyInfo);ac(r=new a(i,this,this,s),s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(d.push(r.option),h.push(r),p++):(d.push(void 0),h.push(void 0))},this),n[t]=d,r.set(t,h),i.set(t,p),"series"===t&&hC(this)},this),this._seriesIndices||hC(this)},t.prototype.getOption=function(){var e=ic(this.option);return dc(e,function(t,n){if(tw.hasClass(n)){for(var r=Lg(t),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!Gg(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,e[n]=r}}),delete e[mC],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(null==t)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,i=e.id,o=e.name,a=this._componentsMap.get(t);return a&&a.length?(null!=r?(n=[],dc(Lg(r),function(e){a[e]&&n.push(a[e])})):n=null!=i?vC("id",i,a):null!=o?vC("name",o,a):fc(a,function(e){return!!e}),xC(n,e)):[]},t.prototype.findComponents=function(e){var t,n,r,i,o,a=e.query,s=e.mainType,l=(n=s+"Index",r=s+"Id",i=s+"Name",!(t=a)||null==t[n]&&null==t[r]&&null==t[i]?null:{mainType:s,index:t[n],id:t[r],name:t[i]}),u=l?this.queryComponents(l):fc(this._componentsMap.get(s),function(e){return!!e});return o=xC(u,e),e.filter?fc(o,e.filter):o},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(xc(e)){var i=t,o=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&o.call(i,t,r,r.componentIndex)}})}else for(var a=bc(e)?r.get(e):Sc(e)?this.findComponents(e):null,s=0;a&&s<a.length;s++){var l=a[s];l&&t.call(n,l,l.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=Vg(e,null);return fc(this._componentsMap.get("series"),function(e){return!!e&&null!=t&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return fc(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return fc(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){pC(this),dc(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){dc(this._componentsMap.get("series"),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){pC(this),dc(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return dc(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return pC(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){pC(this);var n=[];dc(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=jc(n)},t.prototype.restoreData=function(e){hC(this);var t=this._componentsMap,n=[];t.each(function(e,t){tw.hasClass(t)&&n.push(t)}),tw.topologicalTravel(n,tw.getAllClassMainTypes(),function(n){dc(t.get(n),function(t){!t||"series"===n&&function(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}(t,e)||t.restoreData()})})},t.internalField=(hC=function(e){var t=e._seriesIndices=[];dc(e._componentsMap.get("series"),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=jc(t)},pC=function(e){},void(fC=function(e,t){e.option={},e.option[mC]=1,e._componentsMap=jc({series:[]}),e._componentsCount=jc();var n,r,i,o=t.aria;Sc(o)&&null==o.enabled&&(o.enabled=!0),n=t,r=e._theme.option,i=n.color&&!n.colorLayer,dc(r,function(e,t){"colorLayer"===t&&i||tw.hasClass(t)||("object"==typeof e?n[t]=n[t]?oc(n[t],e,!1):ic(e):null==n[t]&&(n[t]=e))}),oc(t,dC,!1),e._mergeOption(t,null)})),t}(nx);function vC(e,t,n){if(vc(t)){var r=jc();return dc(t,function(e){null!=e&&(null!=Vg(e,null)&&r.set(e,!0))}),fc(n,function(t){return t&&r.get(t[e])})}var i=Vg(t,null);return fc(n,function(t){return t&&null!=i&&t[e]===i})}function xC(e,t){return t.hasOwnProperty("subType")?fc(e,function(e){return e&&e.subType===t.subType}):e}function bC(e){var t=jc();return e&&dc(Lg(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}uc(yC,rw);var _C=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],wC=function(){return function(e){dc(_C,function(t){this[t]=mc(e[t],e)},this)}}(),SC=/^(min|max)?(.+)$/,kC=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(dc(Lg(e.series),function(e){e&&e.data&&Cc(e.data)&&zc(e.data)}),dc(Lg(e.dataset),function(e){e&&e.source&&Cc(e.source)&&zc(e.source)})),e=ic(e);var r=this._optionBackup,i=function(e,t,n){var r,i,o=[],a=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,d=!!(l||s||a&&a.timeline);a?(i=a).timeline||(i.timeline=s):((d||c)&&(e.options=e.media=null),i=e);c&&vc(u)&&dc(u,function(e){e&&e.option&&(e.query?o.push(e):r||(r=e))});function h(e){dc(t,function(t){t(e,n)})}return h(i),dc(l,function(e){return h(e)}),dc(o,function(e){return h(e.option)}),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],ic(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent("timeline");r&&(t=ic(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,r=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,c=o.length;u<c;u++)CC(o[u].query,r,i)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(l=hc(s,function(e){return ic(-1===e?a.option:o[e].option)})),this._currentMediaIndices=s,l},e}();function CC(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return dc(e,function(e,t){var n=t.match(SC);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(r[a],e,o)||(i=!1)}}),i}var TC=dc,MC=Sc,IC=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function PC(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=IC.length;n<r;n++){var i=IC[n],o=t.normal,a=t.emphasis;o&&o[i]&&(e[i]=e[i]||{},e[i].normal?oc(e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),a&&a[i]&&(e[i]=e[i]||{},e[i].emphasis?oc(e[i].emphasis,a[i]):e[i].emphasis=a[i],a[i]=null)}}function DC(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,sc(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function AC(e){DC(e,"itemStyle"),DC(e,"lineStyle"),DC(e,"areaStyle"),DC(e,"label"),DC(e,"labelLine"),DC(e,"upperLabel"),DC(e,"edgeLabel")}function EC(e,t){var n=MC(e)&&e[t],r=MC(n)&&n.textStyle;if(r)for(var i=0,o=zg.length;i<o;i++){var a=zg[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function RC(e){e&&(AC(e),EC(e,"label"),e.emphasis&&EC(e.emphasis,"label"))}function OC(e){return vc(e)?e:e?[e]:[]}function LC(e){return(vc(e)?e[0]:e)||{}}function NC(e,t){TC(OC(e.series),function(e){MC(e)&&function(e){if(MC(e)){PC(e),AC(e),EC(e,"label"),EC(e,"upperLabel"),EC(e,"edgeLabel"),e.emphasis&&(EC(e.emphasis,"label"),EC(e.emphasis,"upperLabel"),EC(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(PC(t),RC(t));var n=e.markLine;n&&(PC(n),RC(n));var r=e.markArea;r&&RC(r);var i=e.data;if("graph"===e.type){i=i||e.nodes;var o=e.links||e.edges;if(o&&!Cc(o))for(var a=0;a<o.length;a++)RC(o[a]);dc(e.categories,function(e){AC(e)})}if(i&&!Cc(i))for(a=0;a<i.length;a++)RC(i[a]);if((t=e.markPoint)&&t.data){var s=t.data;for(a=0;a<s.length;a++)RC(s[a])}if((n=e.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)vc(l[a])?(RC(l[a][0]),RC(l[a][1])):RC(l[a])}"gauge"===e.type?(EC(e,"axisLabel"),EC(e,"title"),EC(e,"detail")):"treemap"===e.type?(DC(e.breadcrumb,"itemStyle"),dc(e.levels,function(e){AC(e)})):"tree"===e.type&&AC(e.leaves)}}(e)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),TC(n,function(t){TC(OC(e[t]),function(e){e&&(EC(e,"axisLabel"),EC(e.axisPointer,"label"))})}),TC(OC(e.parallel),function(e){var t=e&&e.parallelAxisDefault;EC(t,"axisLabel"),EC(t&&t.axisPointer,"label")}),TC(OC(e.calendar),function(e){DC(e,"itemStyle"),EC(e,"dayLabel"),EC(e,"monthLabel"),EC(e,"yearLabel")}),TC(OC(e.radar),function(e){EC(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),TC(OC(e.geo),function(e){MC(e)&&(RC(e),TC(OC(e.regions),function(e){RC(e)}))}),TC(OC(e.timeline),function(e){RC(e),DC(e,"label"),DC(e,"itemStyle"),DC(e,"controlStyle",!0);var t=e.data;vc(t)&&dc(t,function(e){Sc(e)&&(DC(e,"label"),DC(e,"itemStyle"))})}),TC(OC(e.toolbox),function(e){DC(e,"iconStyle"),TC(e.feature,function(e){DC(e,"iconStyle")})}),EC(LC(e.axisPointer),"label"),EC(LC(e.tooltip).axisPointer,"label")}function zC(e){e&&dc(BC,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var BC=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],FC=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],$C=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function WC(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<$C.length;n++){var r=$C[n][1],i=$C[n][0];null!=t[r]&&(t[i]=t[r])}}function jC(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function VC(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function HC(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&HC(e[n].children,t)}function GC(e,t){NC(e,t),e.series=Lg(e.series),dc(e.series,function(e){if(Sc(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){if(null!=e.clockWise&&(e.clockwise=e.clockWise),jC(e.label),(i=e.data)&&!Cc(i))for(var n=0;n<i.length;n++)jC(i[n]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var r=function(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(e,"pointer.color");null!=r&&function(e,t,n){for(var r,i=t.split(","),o=e,a=0;a<i.length-1;a++)null==o[r=i[a]]&&(o[r]={}),o=o[r];null==o[i[a]]&&(o[i[a]]=n)}(e,"itemStyle.color",r)}else if("bar"===t){var i;if(WC(e),WC(e.backgroundStyle),WC(e.emphasis),(i=e.data)&&!Cc(i))for(n=0;n<i.length;n++)"object"==typeof i[n]&&(WC(i[n]),WC(i[n]&&i[n].emphasis))}else if("sunburst"===t){var o=e.highlightPolicy;o&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=o)),VC(e),HC(e.data,VC)}else"graph"===t||"sankey"===t?function(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&sc(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),zC(e)}}),e.dataRange&&(e.visualMap=e.dataRange),dc(FC,function(t){var n=e[t];n&&(vc(n)||(n=[n]),dc(n,function(e){zC(e)}))})}function UC(e){dc(e,function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,c){var d,h,p=a.get(t.stackedDimension,c);if(isNaN(p))return i;s?h=a.getRawIndex(c):d=a.get(t.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var m=e[g];if(s||(h=m.data.rawIndexOf(m.stackedByDimension,d)),h>=0){var y=m.data.getByRawIndex(m.stackResultDimension,h);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&p>=0&&y>0||"samesign"===l&&p<=0&&y<0){p=_g(p,y),f=y;break}}}return r[0]=p,r[1]=f,r})})}var XC=function(){function e(){this.group=new dy,this.uid=jb("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Jc(XC),id(XC);var YC=Xg(),qC={itemStyle:od(Jv,!0),lineStyle:od(Kv,!0)},KC={lineStyle:"stroke",itemStyle:"fill"};function ZC(e,t){var n=e.visualStyleMapper||qC[t];return n||(console.warn("Unknown style type '"+t+"'."),qC.itemStyle)}function QC(e,t){var n=e.visualDrawType||KC[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var JC={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=ZC(e,r)(i),a=i.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=QC(e,r),l=o[s],u=xc(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[s]||(o[s]=d,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||xc(o.fill)?d:o.fill,o.stroke="auto"===o.stroke||xc(o.stroke)?d:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=ac({},o);i[s]=u(r),t.setItemVisual(n,"style",i)}}}},eT=new nx,tT={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=ZC(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){eT.option=n[r];var a=i(eT);ac(e.ensureUniqueItemVisual(t,"style"),a),eT.option.decal&&(e.setItemVisual(t,"decal",eT.option.decal),eT.option.decal.dirty=!0),o in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},nT={performRawSeries:!0,overallReset:function(e){var t=jc();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,i=t.get(r);i||(i={},t.set(r,i)),YC(e).scope=i}}),e.eachSeries(function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},i=t.getData(),o=YC(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=QC(t,a);i.each(function(e){var t=i.getRawIndex(e);r[t]=e}),n.each(function(e){var a=r[e];if(i.getItemVisual(a,"colorFromPalette")){var l=i.ensureUniqueItemVisual(a,"style"),u=n.getName(e)||e+"",c=n.count();l[s]=t.getColorFromPalette(u,o,c)}})}})}},rT=Math.PI;var iT=function(){function e(e,t,n,r){this._stageTaskMap=jc(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount;return{step:i,modBy:null!=o?Math.ceil(o/i):null,modDataCount:o}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,o=e.get("large")&&r>=e.get("largeThreshold"),a="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=jc();e.eachSeries(function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;dc(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});Oc(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r=r||{};var i=!1,o=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}dc(e,function(e,s){if(!r.visualType||r.visualType===e.visualType){var l=o._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var d,h=c.agentStubMap;h.each(function(e){a(r,e)&&(e.dirty(),d=!0)}),d&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,r.block);h.each(function(e){e.perform(p)}),c.perform(p)&&(i=!0)}else u&&u.each(function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)})}}),this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,o=t.seriesTaskMap,a=t.seriesTaskMap=jc(),s=e.seriesType,l=e.getTargetSeries;function u(t){var s=t.uid,l=a.set(s,o&&o.get(s)||sw({plan:uT,reset:cT,count:pT}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,o=t.overallTask=t.overallTask||sw({reset:oT});o.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=jc(),l=e.seriesType,u=e.getTargetSeries,c=!0,d=!1;function h(e){var t=e.uid,n=s.set(t,a&&a.get(t)||(d=!0,sw({reset:aT,onDirty:lT})));n.context={model:e,overallProgress:c},n.agent=o,n.__block=c,i._pipe(e,n)}Oc(!e.createOnAllSeries,""),l?n.eachRawSeriesByType(l,h):u?u(n,r).each(h):(c=!1,dc(n.getSeries(),h)),d&&o.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return xc(e)&&(e={overallReset:e,seriesType:fT(e)}),e.uid=jb("stageHandler"),t&&(e.visualType=t),e},e}();function oT(e){e.overallReset(e.ecModel,e.api,e.payload)}function aT(e){return e.overallProgress&&sT}function sT(){this.agent.dirty(),this.getDownstream().dirty()}function lT(){this.agent&&this.agent.dirty()}function uT(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function cT(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Lg(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?hc(t,function(e,t){return hT(t)}):dT}var dT=hT(0);function hT(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(t,r)}}function pT(e){return e.data.count()}function fT(e){gT=null;try{e(mT,yT)}catch(t){}return gT}var gT,mT={},yT={};function vT(e,t){for(var n in t.prototype)e[n]=Uc}vT(mT,yC),vT(yT,wC),mT.eachSeriesByType=mT.eachRawSeriesByType=function(e){gT=e},mT.eachComponent=function(e){"series"===e.mainType&&e.subType&&(gT=e.subType)};var xT=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const bT={color:xT,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],xT]};var _T="#B9B8CE",wT="#100C2A",ST=function(){return{axisLine:{lineStyle:{color:_T}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},kT=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],CT={darkMode:!0,color:kT,backgroundColor:wT,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:_T}},textStyle:{color:_T},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:_T}},dataZoom:{borderColor:"#71708A",textStyle:{color:_T},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:_T}},timeline:{lineStyle:{color:_T},label:{color:_T},controlStyle:{color:_T,borderColor:_T}},calendar:{itemStyle:{color:wT},dayLabel:{color:_T},monthLabel:{color:_T},yearLabel:{color:_T}},timeAxis:ST(),logAxis:ST(),valueAxis:ST(),categoryAxis:ST(),line:{symbol:"circle"},graph:{color:kT},gauge:{title:{color:_T},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:_T},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};CT.categoryAxis.splitLine.show=!1;var TT=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(bc(e)){var i=Qc(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};dc(e,function(e,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var d=i.slice(0,c);"data"!==d&&(t.mainType=d,t[u.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,r,i));function u(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),MT=["symbol","symbolSize","symbolRotate","symbolOffset"],IT=MT.concat(["symbolKeepAspect"]),PT={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<MT.length;a++){var s=MT[a],l=e.get(s);xc(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(ac({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),!t.isSeriesFiltered(e)){var u=gc(i);return{dataEach:o?function(t,n){for(var r=e.getRawValue(n),o=e.getDataParams(n),a=0;a<u.length;a++){var s=u[a];t.setItemVisual(n,s,i[s](r,o))}}:null}}}}},DT={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),r=0;r<IT.length;r++){var i=IT[r],o=n.getShallow(i,!0);null!=o&&e.setItemVisual(t,i,o)}}:null}}};function AT(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}var ET=Math.round(9*Math.random()),RT="function"==typeof Object.defineProperty,OT=function(){function e(){this._id="__ec_inner_"+ET++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return RT?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}();function LT(e){return isFinite(e)}function NT(e,t,n){for(var r="radial"===t.type?function(e,t,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;return t.global||(a=a*r+n.x,s=s*i+n.y,l*=o),a=LT(a)?a:.5,s=LT(s)?s:.5,l=l>=0&<(l)?l:.5,e.createRadialGradient(a,s,0,a,s,l)}(e,t,n):function(e,t,n){var r=null==t.x?0:t.x,i=null==t.x2?1:t.x2,o=null==t.y?0:t.y,a=null==t.y2?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=LT(r)?r:0,i=LT(i)?i:1,o=LT(o)?o:0,a=LT(a)?a:0,e.createLinearGradient(r,o,i,a)}(e,t,n),i=t.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function zT(e){return parseInt(e,10)}function BT(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||zT(s[r])||zT(e.style[r]))-(zT(s[o])||0)-(zT(s[a])||0)|0}function FT(e){var t,n,r=e.style,i=r.lineDash&&r.lineWidth>0&&(t=r.lineDash,n=r.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:wc(t)?[t]:vc(t)?t:null:null),o=r.lineDashOffset;if(i){var a=r.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&1!==a&&(i=hc(i,function(e){return e/a}),o/=a)}return[i,o]}var $T=new Sf(!0);function WT(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function jT(e){return"string"==typeof e&&"none"!==e}function VT(e){var t=e.fill;return null!=t&&"none"!==t}function HT(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function GT(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function UT(e,t,n){var r=pd(t.image,t.__image,n);if(gd(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*Xc),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}var XT=["shadowBlur","shadowOffsetX","shadowOffsetY"],YT=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function qT(e,t,n,r,i){var o=!1;if(!r&&t===(n=n||{}))return!1;if(r||t.opacity!==n.opacity){QT(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?Bp.opacity:a}(r||t.blend!==n.blend)&&(o||(QT(e,i),o=!0),e.globalCompositeOperation=t.blend||Bp.blend);for(var s=0;s<XT.length;s++){var l=XT[s];(r||t[l]!==n[l])&&(o||(QT(e,i),o=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(o||(QT(e,i),o=!0),e.shadowColor=t.shadowColor||Bp.shadowColor),o}function KT(e,t,n,r,i){var o=JT(t,i.inHover),a=r?null:n&&JT(n,i.inHover)||{};if(o===a)return!1;var s=qT(e,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(QT(e,i),s=!0),jT(o.fill)&&(e.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(QT(e,i),s=!0),jT(o.stroke)&&(e.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(QT(e,i),s=!0),e.globalAlpha=null==o.opacity?1:o.opacity),t.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(QT(e,i),s=!0),e.lineWidth=l)}for(var u=0;u<YT.length;u++){var c=YT[u],d=c[0];(r||o[d]!==a[d])&&(s||(QT(e,i),s=!0),e[d]=o[d]||c[1])}return s}function ZT(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function QT(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function JT(e,t){return t&&e.__hoverStyle||e.style}function eM(e,t){tM(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function tM(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=-2,void(t.__isRendered=!1);var o=t.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}(o,a)||(a&&a.length&&(QT(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(QT(e,n),e.save(),function(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];r=r||o.isZeroArea(),ZT(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=r}(o,e,n),s=!0),n.prevElClipPaths=o),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c,d,h=t instanceof Hf&&t.autoBatch&&function(e){var t=VT(e),n=WT(e);return!(e.lineDash||!(+t^+n)||t&&"string"!=typeof e.fill||n&&"string"!=typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}(t.style);s||(c=i,d=u.transform,c&&d?c[0]!==d[0]||c[1]!==d[1]||c[2]!==d[2]||c[3]!==d[3]||c[4]!==d[4]||c[5]!==d[5]:c||d)?(QT(e,n),ZT(e,t)):h||QT(e,n);var p=JT(t,n.inHover);t instanceof Hf?(1!==n.lastDrawType&&(l=!0,n.lastDrawType=1),KT(e,t,u,l,n),h&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,r){var i,o=WT(n),a=VT(n),s=n.strokePercent,l=s<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var c=t.path||$T,d=t.__dirty;if(!r){var h=n.fill,p=n.stroke,f=a&&!!h.colorStops,g=o&&!!p.colorStops,m=a&&!!h.image,y=o&&!!p.image,v=void 0,x=void 0,b=void 0,_=void 0,w=void 0;(f||g)&&(w=t.getBoundingRect()),f&&(v=d?NT(e,h,w):t.__canvasFillGradient,t.__canvasFillGradient=v),g&&(x=d?NT(e,p,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),m&&(b=d||!t.__canvasFillPattern?UT(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=b),y&&(_=d||!t.__canvasStrokePattern?UT(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),f?e.fillStyle=v:m&&(b?e.fillStyle=b:a=!1),g?e.strokeStyle=x:y&&(_?e.strokeStyle=_:o=!1)}var S,k,C=t.getGlobalScale();c.setScale(C[0],C[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(S=(i=FT(t))[0],k=i[1]);var T=!0;(u||4&d)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),T=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),T&&c.rebuildPath(e,l?s:1),S&&(e.setLineDash(S),e.lineDashOffset=k),r||(n.strokeFirst?(o&>(e,n),a&&HT(e,n)):(a&&HT(e,n),o&>(e,n))),S&&e.setLineDash([])}(e,t,p,h),h&&(n.batchFill=p.fill||"",n.batchStroke=p.stroke||"")):t instanceof Uf?(3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),KT(e,t,u,l,n),function(e,t,n){var r,i=n.text;if(null!=i&&(i+=""),i){e.font=n.font||Wu,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(o=(r=FT(t))[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(WT(n)&&e.strokeText(i,n.x,n.y),VT(n)&&e.fillText(i,n.x,n.y)):(VT(n)&&e.fillText(i,n.x,n.y),WT(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}(e,t,p)):t instanceof qf?(2!==n.lastDrawType&&(l=!0,n.lastDrawType=2),function(e,t,n,r,i){qT(e,JT(t,i.inHover),n&&JT(n,i.inHover),r,i)}(e,t,u,l,n),function(e,t,n){var r=t.__image=pd(n.image,t.__image,t,t.onload);if(r&&gd(r)){var i=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var d=a-(u=n.sx),h=s-(c=n.sy);e.drawImage(r,u,c,d,h,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}(e,t,p)):t.getTemporalDisplayables&&(4!==n.lastDrawType&&(l=!0,n.lastDrawType=4),function(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=t.getCursor(),a=r.length;o<a;o++){(c=r[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),tM(e,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var l=0,u=i.length;l<u;l++){var c;(c=i[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),tM(e,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n)),h&&r&&QT(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}var nM=new OT,rM=new cd(100),iM=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function oM(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&nM.delete(e);var o=nM.get(e);if(o)return o;var a=sc(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});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(e){for(var t,o=[n],s=!0,l=0;l<iM.length;++l){var u=a[iM[l]];if(null!=u&&!vc(u)&&!bc(u)&&!wc(u)&&"boolean"!=typeof u){s=!1;break}o.push(u)}if(s){t=o.join(",")+(i?"-svg":"");var c=rM.get(t);c&&(i?e.svgElement=c:e.image=c)}var d,h=sM(a.dashArrayX),p=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if(wc(e)){var t=Math.ceil(e);return[t,t]}var n=hc(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}(a.dashArrayY),f=aM(a.symbol),g=(b=h,hc(b,function(e){return lM(e)})),m=lM(p),y=!i&&Vu.createCanvas(),v=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var e=1,t=0,n=g.length;t<n;++t)e=Ag(e,g[t]);var r=1;for(t=0,n=f.length;t<n;++t)r=Ag(r,f[t].length);e*=r;var i=m*g.length*f.length;return{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();var b;y&&(y.width=x.width*n,y.height=x.height*n,d=y.getContext("2d"));(function(){d&&(d.clearRect(0,0,y.width,y.height),a.backgroundColor&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,y.width,y.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(e<=0)return;var o=-m,s=0,l=0,u=0;for(;o<x.height;){if(s%2==0){for(var c=l/2%f.length,g=0,b=0,_=0;g<2*x.width;){var w=0;for(t=0;t<h[u].length;++t)w+=h[u][t];if(w<=0)break;if(b%2==0){var S=.5*(1-a.symbolSize),k=g+h[u][b]*S,C=o+p[s]*S,T=h[u][b]*a.symbolSize,M=p[s]*a.symbolSize,I=_/2%f[c].length;P(k,C,T,M,f[c][I])}g+=h[u][b],++_,++b===h[u].length&&(b=0)}++u===h.length&&(u=0)}o+=p[s],++l,++s===p.length&&(s=0)}function P(e,t,o,s,l){var u=i?1:n,c=tS(l,e*u,t*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var h=r.painter.renderOneToVNode(c);h&&v.children.push(h)}else eM(d,c)}})(),s&&rM.put(t,y||v);e.image=y,e.svgElement=v,e.svgWidth=x.width,e.svgHeight=x.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,nM.set(e,s),e.dirty=!1,s}function aM(e){if(!e||0===e.length)return[["rect"]];if(bc(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!bc(e[n])){t=!1;break}if(t)return aM([e]);var r=[];for(n=0;n<e.length;++n)bc(e[n])?r.push([e[n]]):r.push(e[n]);return r}function sM(e){if(!e||0===e.length)return[[0,0]];if(wc(e))return[[i=Math.ceil(e),i]];for(var t=!0,n=0;n<e.length;++n)if(!wc(e[n])){t=!1;break}if(t)return sM([e]);var r=[];for(n=0;n<e.length;++n)if(wc(e[n])){var i=Math.ceil(e[n]);r.push([i,i])}else{(i=hc(e[n],function(e){return Math.ceil(e)})).length%2==1?r.push(i.concat(i)):r.push(i)}return r}function lM(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}var uM=new wp,cM={};var dM=2e3,hM=4500,pM={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:dM,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:hM,ARIA:6e3,DECAL:7e3}},fM="__flagInMainProcess",gM="__pendingUpdate",mM="__needsUpdateStatus",yM=/^[a-zA-Z0-9_]+$/,vM="__connectUpdateStatus";function xM(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return _M(this,e,t);this.id}}function bM(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return _M(this,e,t)}}function _M(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),wp.prototype[t].apply(e,n)}var wM,SM,kM,CM,TM,MM,IM,PM,DM,AM,EM,RM,OM,LM,NM,zM,BM,FM,$M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $u(t,e),t}(wp),WM=$M.prototype;WM.on=bM("on"),WM.off=bM("off");var jM=function(e){function t(t,n,r){var i=e.call(this,new TT)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},bc(n)&&(n=KM[n]),i._dom=t;r.ssr;var o=i._zr=lC(t,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:Dc(r.useDirtyRect,!1),useCoarsePointer:Dc(r.useCoarsePointer,"auto"),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=JS(mc(o.flush,o),17),(n=ic(n))&&GC(n,!0),i._theme=n,i._locale=function(e){if(bc(e)){var t=n_[e.toUpperCase()]||{};return e===Jb||e===e_?ic(t):oc(ic(t),ic(n_[t_]),!1)}return oc(ic(e),ic(n_[t_]),!1)}(r.locale||i_),i._coordSysMgr=new Ob;var a=i._api=NM(i);function s(e,t){return e.__prio-t.__prio}return Ek(qM,s),Ek(XM,s),i._scheduler=new iT(i,a,XM,qM),i._messageCenter=new $M,i._initEvents(),i.resize=mc(i.resize,i),o.animation.on("frame",i._onframe,i),AM(o,i),EM(o,i),zc(i),i}return $u(t,e),t.prototype._onframe=function(){if(!this._disposed){FM(this);var e=this._scheduler;if(this[gM]){var t=this[gM].silent;this[fM]=!0;try{wM(this),CM.update.call(this,null,this[gM].updateParams)}catch(a){throw this[fM]=!1,this[gM]=null,a}this._zr.flush(),this[fM]=!1,this[gM]=null,PM.call(this,t),DM.call(this,t)}else if(e.unfinished){var n=1,r=this._model,i=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),MM(this,r),e.performVisualTasks(r),LM(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&e.unfinished);e.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(e,t,n){if(!this[fM])if(this._disposed)this.id;else{var r,i,o;if(Sc(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,o=t.transition,t=t.notMerge),this[fM]=!0,!this._model||t){var a=new kC(this._api),s=this._theme,l=this._model=new yC;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:i},YM);var u={seriesTransition:o,optionChanged:!0};if(n)this[gM]={silent:r,updateParams:u},this[fM]=!1,this.getZr().wakeUp();else{try{wM(this),CM.update.call(this,null,u)}catch(c){throw this[gM]=null,this[fM]=!1,c}this._ssr||this._zr.flush(),this[gM]=null,this[fM]=!1,PM.call(this,r),DM.call(this,r)}}},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||qc.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(qc.svgSupported){var e=this._zr;return dc(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,r=[],i=this;dc(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return dc(r,function(e){e.group.ignore=!1}),o}this.id},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(JM[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();dc(QM,function(o,d){if(o.group===n){var h=t?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(ic(e)),p=o.getDom().getBoundingClientRect();a=r(p.left,a),s=r(p.top,s),l=i(p.right,l),u=i(p.bottom,u),c.push({dom:h,left:p.left,top:p.top})}});var h=(l*=d)-(a*=d),p=(u*=d)-(s*=d),f=Vu.createCanvas(),g=lC(f,{renderer:t?"svg":"canvas"});if(g.resize({width:h,height:p}),t){var m="";return dc(c,function(e){var t=e.left-a,n=e.top-s;m+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new ng({shape:{x:0,y:0,width:h,height:p},style:{fill:e.connectedBackgroundColor}})),dc(c,function(e){var t=new qf({style:{x:e.left*d-a,y:e.top*d-s,image:e.dom}});g.add(t)}),g.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}this.id},t.prototype.convertToPixel=function(e,t){return TM(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return TM(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var n;if(!this._disposed)return dc(qg(this._model,e),function(e,r){r.indexOf("Models")>=0&&dc(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}},this)},this),!!n;this.id},t.prototype.getVisual=function(e,t){var n=qg(this._model,e,{defaultMainType:"series"}),r=n.seriesModel.getData(),i=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=i?function(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}(r,i,t):function(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}(r,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e,t,n,r=this;dc(HM,function(e){var t=function(t){var n,i=r.getModel(),o=t.target;if("globalout"===e?n={}:o&&AT(o,function(e){var t=em(e);if(t&&null!=t.dataIndex){var r=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return n=r&&r.getDataParams(t.dataIndex,t.dataType,o)||{},!0}if(t.eventData)return n=ac({},t.eventData),!0},!0),n){var a=n.componentType,s=n.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=n.seriesIndex);var l=a&&null!=s&&i.getComponent(a,s),u=l&&r["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=t,n.type=e,r._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:l,view:u},r.trigger(e,n)}};t.zrEventfulCallAtLast=!0,r._zr.on(e,t,r)}),dc(UM,function(e,t){r._messageCenter.on(t,function(e){this.trigger(t,e)},r)}),dc(["selectchanged"],function(e){r._messageCenter.on(e,function(t){this.trigger(e,t)},r)}),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",function(e){var r=n.getModel();e.isFromClick?(nk("map","selectchanged",t,r,e),nk("pie","selectchanged",t,r,e)):"select"===e.fromAction?(nk("map","selected",t,r,e),nk("pie","selected",t,r,e)):"unselect"===e.fromAction&&(nk("map","unselected",t,r,e),nk("pie","unselected",t,r,e))})},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&Jg(this.getDom(),nI,"");var e=this,t=e._api,n=e._model;dc(e._componentsViews,function(e){e.dispose(n,t)}),dc(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete QM[e.id]}},t.prototype.resize=function(e){if(!this[fM])if(this._disposed)this.id;else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this[gM]&&(null==r&&(r=this[gM].silent),n=!0,this[gM]=null),this[fM]=!0;try{n&&wM(this),CM.update.call(this,{type:"resize",animation:ac({duration:0},e&&e.animation)})}catch(i){throw this[fM]=!1,i}this[fM]=!1,PM.call(this,r),DM.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)this.id;else if(Sc(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),ZM[e]){var n=ZM[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=ac({},e);return t.type=UM[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)this.id;else if(Sc(t)||(t={silent:!!t}),GM[e.type]&&this._model)if(this[fM])this._pendingActions.push(e);else{var n=t.silent;IM.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&qc.browser.weChat&&this._throttledZrFlush(),PM.call(this,n),DM.call(this,n)}},t.prototype.updateLabelLayout=function(){uM.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)this.id;else{var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function t(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i)}e.selected&&e.states.select&&t.push("select"),2===e.hoverState&&e.states.emphasis?t.push("emphasis"):1===e.hoverState&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,i=e.get("zlevel")||0;t.eachRendered(function(e){return r(e,n,i,-1/0),!0})}}function r(e,t,n,i){var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)i=Math.max(r(s[l],t,n,i),i);else e.z=t,e.zlevel=n,i=Math.max(e.z2,i);if(o&&(o.z=t,o.zlevel=n,isFinite(i)&&(o.z2=i+2)),a){var u=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function i(e,t){t.eachRendered(function(e){if(!lv(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}})}function o(e,n){var r=e.getModel("stateAnimation"),i=e.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered(function(e){if(e.states&&e.states.emphasis){if(lv(e))return;if(e instanceof Hf&&function(e){var t=rm(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(i){e.stateTransition=a;var r=e.getTextContent(),o=e.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}})}wM=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),SM(e,!0),SM(e,!1),t.plan()},SM=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&o[u];if(!c){var d=Qc(e.type);(c=new(t?XC.getClass(d.main,d.sub):MS.getClass(d.sub))).init(n,s),o[u]=c,i.push(c),a.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(c,e,n,s)}t?n.eachComponent(function(e,t){"series"!==e&&u(t)}):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!t&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},kM=function(e,t,n,r,i){var o=e._model;if(o.setUpdatePayload(n),r){var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};i&&(s.subType=i);var l,u=n.excludeSeriesId;null!=u&&(l=jc(),dc(Lg(u),function(e){var t=Vg(e,null);null!=t&&l.set(t,!0)})),o&&o.eachComponent(s,function(t){if(!(l&&null!=l.get(t.id)))if(Xm(n))if(t instanceof Fw)n.type!==sm||n.notBlur||t.get(["emphasis","disabled"])||function(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var o=Ug(i,t);o=(vc(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=em(a);Om(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);null!=c&&Om(r,c,d,n)}}}(t,n,e._api);else{var r=Nm(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,o=r.dispatchers;n.type===sm&&i&&!n.notBlur&&Lm(t.mainType,t.componentIndex,e._api),o&&dc(o,function(e){n.type===sm?Mm(e):Im(e)})}else Um(n)&&t instanceof Fw&&(!function(e,t){if(Um(t)){var n=t.dataType,r=Ug(e.getData(n),t);vc(r)||(r=[r]),e[t.type===dm?"toggleSelect":t.type===um?"select":"unselect"](r,n)}}(t,n,e._api),zm(t),BM(e))},e),o&&o.eachComponent(s,function(t){l&&null!=l.get(t.id)||c(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])},e)}else dc([].concat(e._componentsViews).concat(e._chartsViews),c);function c(r){r&&r.__alive&&r[t]&&r[t](r.__model,o,e._api,n)}},CM={prepareAndUpdate:function(e){wM(this),CM.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,t),MM(this,r),a.update(r,i),e(r),s.performVisualTasks(r,t),RM(this,r,i,t,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),uM.trigger("afterupdate",r,i)}},updateTransform:function(t){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(t);var o=[];r.eachComponent(function(e,a){if("series"!==e){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,t);l&&l.update&&o.push(s)}else o.push(s)}});var a=jc();r.eachSeries(function(e){var o=n._chartsMap[e.__viewId];if(o.updateTransform){var s=o.updateTransform(e,r,i,t);s&&s.update&&a.set(e.uid,1)}else a.set(e.uid,1)}),e(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:a}),LM(this,r,i,t,{},a),uM.trigger("afterupdate",r,i)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),MS.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),RM(this,n,this._api,t,{}),uM.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries(function(e){e.getData().clearAllVisual()}),MS.markUpdateMethod(t,"updateVisual"),e(r),this._scheduler.performVisualTasks(r,t,{visualType:"visual",setDirty:!0}),r.eachComponent(function(e,i){if("series"!==e){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,t)}}),r.eachSeries(function(e){n._chartsMap[e.__viewId].updateVisual(e,r,n._api,t)}),uM.trigger("afterupdate",r,this._api))},updateLayout:function(e){CM.update.call(this,e)}},TM=function(e,t,n,r){if(e._disposed)e.id;else for(var i,o=e._model,a=e._coordSysMgr.getCoordinateSystems(),s=qg(o,n),l=0;l<a.length;l++){var u=a[l];if(u[t]&&null!=(i=u[t](o,s,r)))return i}},MM=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},IM=function(e,t){var n=this,r=this.getModel(),i=e.type,o=e.escapeConnect,a=GM[i],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&Qc(l[0]);this[fM]=!0;var d=[e],h=!1;e.batch&&(h=!0,d=hc(e.batch,function(t){return(t=sc(ac({},t),e)).batch=null,t}));var p,f=[],g=Um(e),m=Xm(e);if(m&&Rm(this._api),dc(d,function(t){if((p=(p=a.action(t,n._model,n._api))||ac({},t)).type=s.event||p.type,f.push(p),m){var r=Kg(e),i=r.queryOptionMap,o=r.mainTypeSpecified?i.keys()[0]:"series";kM(n,u,t,o),BM(n)}else g?(kM(n,u,t,"series"),BM(n)):c&&kM(n,u,t,c.main,c.sub)}),"none"!==u&&!m&&!g&&!c)try{this[gM]?(wM(this),CM.update.call(this,e),this[gM]=null):CM[u].call(this,e)}catch(x){throw this[fM]=!1,x}if(p=h?{type:s.event||i,escapeConnect:o,batch:f}:f[0],this[fM]=!1,!t){var y=this._messageCenter;if(y.trigger(p.type,p),g){var v={type:"selectchanged",escapeConnect:o,selected:Bm(r),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};y.trigger(v.type,v)}}},PM=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();IM.call(this,n,e)}},DM=function(e){!e&&this.trigger("updated")},AM=function(e,t){e.on("rendered",function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[gM]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")})},EM=function(e,t){e.on("mouseover",function(e){var n=AT(e.target,Gm);n&&(!function(e,t,n){var r=em(e),i=Nm(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&Lm(r.componentMainType,r.componentIndex,n),dc(o,function(e){return Cm(e,t)})):(Om(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&Lm(r.componentMainType,r.componentIndex,n),Cm(e,t))}(n,e,t._api),BM(t))}).on("mouseout",function(e){var n=AT(e.target,Gm);n&&(!function(e,t,n){Rm(n);var r=em(e),i=Nm(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?dc(i,function(e){return Tm(e,t)}):Tm(e,t)}(n,e,t._api),BM(t))}).on("click",function(e){var n=AT(e.target,function(e){return null!=em(e).dataIndex},!0);if(n){var r=n.selected?"unselect":"select",i=em(n);t._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}})},RM=function(e,t,n,r,i){!function(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:i.componentIndex,type:e,key:s})}),r){var i,o,a=t.concat(n);Ek(a,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),dc(a,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,a=t.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)})}}(t),OM(e,t,n,r,i),dc(e._chartsViews,function(e){e.__alive=!1}),LM(e,t,n,r,i),dc(e._chartsViews,function(e){e.__alive||e.remove(t,n)})},OM=function(e,t,r,a,s,l){dc(l||e._componentsViews,function(e){var s=e.__model;i(s,e),e.render(s,t,r,a),n(s,e),o(s,e)})},LM=function(e,t,r,a,s,l){var u=e._scheduler;s=ac(s||{},{updatedSeries:t.getSeries()}),uM.trigger("series:beforeupdate",t,r,s);var c=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var r=n.renderTask;u.updatePayload(r,a),i(t,n),l&&l.get(t.uid)&&r.dirty(),r.perform(u.getPerformArgs(r))&&(c=!0),n.group.silent=!!t.get("silent"),function(e,t){var n=e.get("blendMode")||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}(t,n),zm(t)}),u.unfinished=c||u.unfinished,uM.trigger("series:layoutlabels",t,r,s),uM.trigger("series:transition",t,r,s),t.eachSeries(function(t){var r=e._chartsMap[t.__viewId];n(t,r),o(t,r)}),function(e,t){var n=e._zr,r=n.storage,i=0;r.traverse(function(e){e.isGroup||i++}),i>t.get("hoverLayerThreshold")&&!qc.node&&!qc.worker&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}})}(e,t),uM.trigger("series:afterupdate",t,r,s)},BM=function(e){e[mM]=!0,e.getZr().wakeUp()},FM=function(e){e[mM]&&(e.getZr().storage.traverse(function(e){lv(e)||t(e)}),e[mM]=!1)},NM=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return $u(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Mm(t,n),BM(e)},n.prototype.leaveEmphasis=function(t,n){Im(t,n),BM(e)},n.prototype.enterBlur=function(t){!function(e){_m(e,mm)}(t),BM(e)},n.prototype.leaveBlur=function(t){Pm(t),BM(e)},n.prototype.enterSelect=function(t){Dm(t),BM(e)},n.prototype.leaveSelect=function(t){Am(t),BM(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(wC))(e)},zM=function(e){function t(e,t){for(var n=0;n<e.length;n++){e[n][vM]=t}}dc(UM,function(n,r){e._messageCenter.on(r,function(n){if(JM[e.group]&&0!==e[vM]){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];dc(QM,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,0),dc(i,function(e){1!==e[vM]&&e.dispatchAction(r)}),t(i,2)}})})}}(),t}(wp),VM=jM.prototype;VM.on=xM("on"),VM.off=xM("off"),VM.one=function(e,t,n){var r=this;this.on.call(this,e,function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),r.off(e,n)},n)};var HM=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var GM={},UM={},XM=[],YM=[],qM=[],KM={},ZM={},QM={},JM={},eI=+new Date-0,tI=+new Date-0,nI="_echarts_instance_";function rI(e){return QM[function(e,t){return e.getAttribute?e.getAttribute(t):e[t]}(e,nI)]}function iI(e,t){KM[e]=t}function oI(e){lc(YM,e)<0&&YM.push(e)}function aI(e,t){dI(XM,e,t,2e3)}function sI(e,t){uM.on(e,t)}function lI(e,t,n){xc(t)&&(n=t,t="");var r=Sc(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,UM[t]||(Oc(yM.test(r)&&yM.test(t)),GM[r]||(GM[r]={action:n,actionInfo:e}),UM[t]=r)}function uI(e,t){dI(qM,e,t,3e3,"visual")}var cI=[];function dI(e,t,n,r,i){if((xc(t)||Sc(t))&&(n=t,t=r),!(lc(cI,n)>=0)){cI.push(n);var o=iT.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function hI(e,t){ZM[e]=t}var pI=function(e){var t=(e=ic(e)).type;t||Eg("");var n=t.split(":");2!==n.length&&Eg("");var r=!1;"echarts"===n[0]&&(t=n[1],r=!0),e.__isBuiltIn=r,gw.set(t,e)};uI(dM,JC),uI(hM,tT),uI(hM,nT),uI(dM,PT),uI(hM,DT),uI(7e3,function(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,"decal");n&&(r.ensureUniqueItemVisual(e,"style").decal=oM(n,t))});var i=r.getVisual("decal");if(i)r.getVisual("style").decal=oM(i,t)}})}),oI(GC),aI(900,function(e){var t=jc();e.eachSeries(function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}}),t.each(UC)}),hI("default",function(e,t){sc(t=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 n=new dy,r=new ng({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,o=new og({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 ng({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&((i=new Uy({shape:{startAngle:-rT/2,endAngle:-rT/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*rT/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*rT/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),u=e.getHeight()/2;t.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}),lI({type:sm,event:sm,update:sm},Uc),lI({type:lm,event:lm,update:lm},Uc),lI({type:um,event:um,update:um},Uc),lI({type:cm,event:cm,update:cm},Uc),lI({type:dm,event:dm,update:dm},Uc),iI("light",bT),iI("dark",CT);var fI=[],gI={registerPreprocessor:oI,registerProcessor:aI,registerPostInit:function(e){sI("afterinit",e)},registerPostUpdate:function(e){sI("afterupdate",e)},registerUpdateLifecycle:sI,registerAction:lI,registerCoordinateSystem:function(e,t){Ob.register(e,t)},registerLayout:function(e,t){dI(qM,e,t,1e3,"layout")},registerVisual:uI,registerTransform:pI,registerLoading:hI,registerMap:function(e,t,n){var r=cM["registerMap"];r&&r(e,t,n)},registerImpl:function(e,t){cM[e]=t},PRIORITY:pM,ComponentModel:tw,ComponentView:XC,SeriesModel:Fw,ChartView:MS,registerComponentModel:function(e){tw.registerClass(e)},registerComponentView:function(e){XC.registerClass(e)},registerSeriesModel:function(e){Fw.registerClass(e)},registerChartView:function(e){MS.registerClass(e)},registerSubTypeDefaulter:function(e,t){tw.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){var n;n=t,oC[e]=n}};function mI(e){vc(e)?dc(e,function(e){mI(e)}):lc(fI,e)>=0||(fI.push(e),xc(e)&&(e={install:e}),e.install(gI))}var yI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $u(t,e),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}(tw),vI=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),xI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $u(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Zg).models[0]},t.type="cartesian2dAxis",t}(tw);uc(xI,vI);var bI={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)"]}}},_I=oc({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},bI),wI=oc({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}}},bI);const SI={category:_I,value:wI,time:oc({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},wI),log:sc({logBase:10},wI)};var kI=0,CI=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++kI}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&hc(r,TI);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!bc(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return null==(t=r.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=jc(this.categories))},e}();function TI(e){return Sc(e)&&null!=e.value?e.value:e+""}var MI={value:1,category:1,time:1,log:1};function II(e,t,n,r){dc(MI,function(i,o){var a=oc(oc({},SI[o],!0),r,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+o,n}return $u(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Z_(this),r=n?J_(e):{};oc(e,t.getTheme().get(o+"Axis")),oc(e,this.getDefaultOption()),e.type=PI(e),n&&Q_(e,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=CI.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+o,n.defaultOption=a,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",PI)}function PI(e){return e.type||(e.data?"category":"value")}var DI=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();function AI(e){return"interval"===e.type||"log"===e.type}function EI(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=Mg(o/t);null!=n&&a<n&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=OI(a);return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),LI(e,0,t),LI(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(i.niceTickExtent=[xg(Math.ceil(e[0]/a)*a,s),xg(Math.floor(e[1]/a)*a,s)],e),i}function RI(e){var t=Math.pow(10,Tg(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,xg(n*t)}function OI(e){return bg(e)+2}function LI(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function NI(e,t){return e>=t[0]&&e<=t[1]}function zI(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function BI(e,t){return e*(t[1]-t[0])+t[0]}id(DI);var FI=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new CI({})),vc(r)&&(r=new CI({categories:hc(r,function(e){return Sc(e)?e.value:e})})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return $u(t,e),t.prototype.parse=function(e){return null==e?NaN:bc(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return NI(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return zI(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(BI(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);i<a;++i){var s=t[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(DI);DI.registerClass(FI);var $I=xg,WI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return $u(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return NI(e,this._extent)},t.prototype.normalize=function(e){return zI(e,this._extent)},t.prototype.scale=function(e){return BI(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=OI(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!t)return o;n[0]<r[0]&&(e?o.push({value:$I(r[0]-t,i)}):o.push({value:n[0]}));for(var a=r[0];a<=r[1]&&(o.push({value:a}),(a=$I(a+t,i))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:r[1];return n[1]>s&&(e?o.push({value:$I(s+t,i)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){for(var o=t[i],a=t[i-1],s=0,l=[],u=(o.value-a.value)/e;s<e-1;){var c=$I(a.value+(s+1)*u);c>r[0]&&c<r[1]&&l.push(c),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=bg(e.value)||0:"auto"===n&&(n=this._intervalPrecision),N_($I(e.value,n,!0))},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=EI(r,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=$I(Math.floor(t[0]/i)*i)),e.fixMax||(t[1]=$I(Math.ceil(t[1]/i)*i))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(DI);DI.registerClass(WI);var jI=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return $u(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return x_(e.value,p_[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(y_(this._minLevelUnit))]||p_.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC");return function(e,t,n,r,i){var o=null;if(bc(n))o=n;else if(xc(n))o=n(e.value,t,{level:e.level});else{var a=ac({},d_);if(e.level>0)for(var s=0;s<f_.length;++s)a[f_[s]]="{primary|"+a[f_[s]]+"}";var l=n?!1===n.inherit?n:sc(n,a):a,u=b_(e.value,i);if(l[u])o=l[u];else if(l.inherit){for(s=g_.indexOf(u)-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(vc(o)){var c=null==e.level?0:e.level>=0?e.level:o.length+e.level;o=o[c=Math.min(c,o.length-1)]}}return x_(new Date(e.value),o,i,r)}(e,t,n,this.getSetting("locale"),r)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting("useUTC"),i=function(e,t,n,r){var i=1e4,o=g_,a=0;function s(e,t,n,i,o,a,s){for(var l=new Date(t),u=t,c=l[i]();u<n&&u<=r[1];)s.push({value:u}),c+=e,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(e,i,o){var a=[],l=!i.length;if(!function(e,t,n,r){var i=Cg(t),o=Cg(n),a=function(e){return __(i,e,r)===__(o,e,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},d=function(){return c()&&a("minute")},h=function(){return d()&&a("second")},p=function(){return h()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return h();case"millisecond":return p()}}(y_(e),r[0],r[1],n)){l&&(i=[{value:qI(new Date(r[0]),e,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,d=i[u+1].value;if(c!==d){var h=void 0,p=void 0,f=void 0,g=!1;switch(e){case"year":h=Math.max(1,Math.round(t/u_/365)),p=w_(n),f=P_(n);break;case"half-year":case"quarter":case"month":h=GI(t),p=S_(n),f=D_(n);break;case"week":case"half-week":case"day":h=HI(t),p=k_(n),f=A_(n),g=!0;break;case"half-day":case"quarter-day":case"hour":h=UI(t),p=C_(n),f=E_(n);break;case"minute":h=XI(t,!0),p=T_(n),f=R_(n);break;case"second":h=XI(t,!1),p=M_(n),f=O_(n);break;case"millisecond":h=YI(t),p=I_(n),f=L_(n)}s(h,c,d,p,f,g,a),"year"===e&&o.length>1&&0===u&&o.unshift({value:o[0].value-h})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],d=0,h=0,p=0;p<o.length&&a++<i;++p){var f=y_(o[p]);if(v_(o[p]))if(l(o[p],u[u.length-1]||[],c),f!==(o[p+1]?y_(o[p+1]):null)){if(c.length){h=d,c.sort(function(e,t){return e.value-t.value});for(var g=[],m=0;m<c.length;++m){var y=c[m].value;0!==m&&c[m-1].value===y||(g.push(c[m]),y>=r[0]&&y<=r[1]&&d++)}var v=(r[1]-r[0])/t;if(d>1.5*v&&h>v/1.5)break;if(u.push(g),d>v||e===o[p])break}c=[]}}var x=fc(hc(u,function(e){return fc(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),b=[],_=x.length-1;for(p=0;p<x.length;++p)for(var w=x[p],S=0;S<w.length;++S)b.push({value:w[S].value,level:_-p});b.sort(function(e,t){return e.value-t.value});var k=[];for(p=0;p<b.length;++p)0!==p&&b[p].value===b[p-1].value||k.push(b[p]);return k}(this._minLevelUnit,this._approxInterval,r,t);return(n=n.concat(i)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=u_,t[1]+=u_),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-u_}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=VI.length,a=Math.min(function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n}(VI,this._approxInterval,0,o),o-1);this._interval=VI[a][1],this._minLevelUnit=VI[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return wc(e)?e:+Cg(e)},t.prototype.contain=function(e){return NI(this.parse(e),this._extent)},t.prototype.normalize=function(e){return zI(this.parse(e),this._extent)},t.prototype.scale=function(e){return BI(e,this._extent)},t.type="time",t}(WI),VI=[["second",a_],["minute",s_],["hour",l_],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",c_/2],["year",c_]];function HI(e,t){return(e/=u_)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function GI(e){return(e/=2592e6)>6?6:e>3?3:e>2?2:1}function UI(e){return(e/=l_)>12?12:e>6?6:e>3.5?4:e>2?2:1}function XI(e,t){return(e/=t?s_:a_)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function YI(e){return Mg(e)}function qI(e,t,n){var r=new Date(e);switch(y_(t)){case"year":case"month":r[D_(n)](0);case"day":r[A_(n)](1);case"hour":r[E_(n)](0);case"minute":r[R_(n)](0);case"second":r[O_(n)](0),r[L_(n)](0)}return r.getTime()}DI.registerClass(jI);var KI=DI.prototype,ZI=WI.prototype,QI=xg,JI=Math.floor,eP=Math.ceil,tP=Math.pow,nP=Math.log,rP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new WI,t._interval=0,t}return $u(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent();return hc(ZI.getTicks.call(this,e),function(e){var t=e.value,i=xg(tP(this.base,t));return i=t===n[0]&&this._fixMin?oP(i,r[0]):i,{value:i=t===n[1]&&this._fixMax?oP(i,r[1]):i}},this)},t.prototype.setExtent=function(e,t){var n=nP(this.base);e=nP(Math.max(0,e))/n,t=nP(Math.max(0,t))/n,ZI.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=KI.getExtent.call(this);t[0]=tP(e,t[0]),t[1]=tP(e,t[1]);var n=this._originalScale.getExtent();return this._fixMin&&(t[0]=oP(t[0],n[0])),this._fixMax&&(t[1]=oP(t[1],n[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=nP(e[0])/nP(t),e[1]=nP(e[1])/nP(t),KI.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var r,i=(r=n,Math.pow(10,Tg(r)));for(e/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[xg(eP(t[0]/i)*i),xg(JI(t[1]/i)*i)];this._interval=i,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){ZI.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return NI(e=nP(e)/nP(this.base),this._extent)},t.prototype.normalize=function(e){return zI(e=nP(e)/nP(this.base),this._extent)},t.prototype.scale=function(e){return e=BI(e,this._extent),tP(this.base,e)},t.type="log",t}(DI),iP=rP.prototype;function oP(e,t){return QI(e,bg(t))}iP.getMinorTicks=ZI.getMinorTicks,iP.getLabel=ZI.getLabel,DI.registerClass(rP);var aP=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);null==i&&(i=t.get("startValue",!0));var o=this._modelMinRaw=i;xc(o)?this._modelMinNum=uP(e,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=uP(e,o));var a=this._modelMaxRaw=t.get("max",!0);if(xc(a)?this._modelMaxNum=uP(e,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=uP(e,a)),r)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=vc(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Bd(l[0],1),Bd(l[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=e?r?0:NaN:t-i[0]*o),null==s&&(s=e?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=Ic(a)||Ic(s)||e&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var d=this._determinedMin,h=this._determinedMax;return null!=d&&(a=d,l=!0),null!=h&&(s=h,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},e.prototype.modifyDataMinMax=function(e,t){this[lP[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){this[sP[e]]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),sP={min:"_determinedMin",max:"_determinedMax"},lP={min:"_dataMin",max:"_dataMax"};function uP(e,t){return null==t?null:Ic(t)?NaN:e.parse(t)}function cP(e,t){var n=e.type,r=function(e,t,n){var r=e.rawExtentInfo;return r||(r=new aP(e,t,n),e.rawExtentInfo=r,r)}(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,o=r.max,a=t.ecModel;if(a&&"time"===n){var s=function(e,t){var n=[];return t.eachSeriesByType(e,function(e){(function(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type})(e)&&n.push(e)}),n}("bar",a),l=!1;if(dc(s,function(e){l=l||e.getBaseAxis()===t.axis}),l){var u=qS(s),c=function(e,t,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=function(e,t){if(e&&t)return e[YS(t)]}(r,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;dc(a,function(e){s=Math.min(e.offset,s)});var l=-1/0;dc(a,function(e){l=Math.max(e.offset+e.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,d=c/(1-(s+l)/o)-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function dP(e,t){var n=t,r=cP(e,n),i=r.extent,o=n.get("splitNumber");e instanceof rP&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function hP(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(n,r){return e.scale.getFormattedLabel(n,r,t)}}(t):bc(t)?function(t){return function(n){var r=e.scale.getLabel(n);return t.replace("{value}",null!=r?r:"")}}(t):xc(t)?function(t){return function(r,i){return null!=n&&(i=r.value-n),t(pP(e,r),i,null!=r.level?{level:r.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function pP(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function fP(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n));return new Dd(e.x,e.y,o,a)}function gP(e){var t=e.get("interval");return null==t?"auto":t}function mP(e){return"category"===e.type&&0===gP(e.getLabelModel())}function yP(e,t){var n={};return dc(e.mapDimensionsAll(t),function(t){n[function(e,t){return Fb(e,t)?e.getCalculationInfo("stackResultDimension"):t}(e,t)]=!0}),gc(n)}var vP=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return hc(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),fc(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),xP=["x","y"];function bP(e){return"interval"===e.type||"time"===e.type}var _P=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=xP,t}return $u(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(bP(e)&&bP(t)){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,d=i[1]-r[0]*u,h=this._transform=[l,0,0,u,c,d];this._invTransform=bd([],h)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),o=new Dd(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return sh(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,t)),n[1]=a.toGlobalCoord(a.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(e[0]),s=r.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return sh(n,e,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e,o=Math.max(t[0],t[1])-r+e,a=Math.max(n[0],n[1])-i+e;return new Dd(r,i,o,a)},t}(vP),wP=Xg();function SP(e,t){var n=hc(t,function(t){return e.scale.parse(t)});return"time"===e.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function kP(e){var t=e.getLabelModel().get("customValues");if(t){var n=hP(e);return{labels:SP(e,t).map(function(t){var r={value:t};return{formattedLabel:n(r),rawLabel:e.scale.getLabel(r),tickValue:t}})}}return"category"===e.type?function(e){var t=e.getLabelModel(),n=TP(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=hP(e);return{labels:hc(t,function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}})}}(e)}function CP(e,t){var n=e.getTickModel().get("customValues");return n?{ticks:SP(e,n)}:"category"===e.type?function(e,t){var n,r,i=MP(e,"ticks"),o=gP(t),a=IP(i,o);if(a)return a;t.get("show")&&!e.scale.isBlank()||(n=[]);if(xc(o))n=AP(e,o,!0);else if("auto"===o){var s=TP(e,e.getLabelModel());r=s.labelCategoryInterval,n=hc(s.labels,function(e){return e.tickValue})}else n=DP(e,r=o,!0);return PP(i,o,{ticks:n,tickCategoryInterval:r})}(e,t):{ticks:hc(e.scale.getTicks(),function(e){return e.value})}}function TP(e,t){var n,r,i=MP(e,"labels"),o=gP(t),a=IP(i,o);return a||(xc(o)?n=AP(e,o):(r="auto"===o?function(e){var t=wP(e).autoInterval;return null!=t?t:wP(e).autoInterval=e.calculateCategoryInterval()}(e):o,n=DP(e,r)),PP(i,o,{labels:n,labelCategoryInterval:r}))}function MP(e,t){return wP(e)[t]||(wP(e)[t]=[])}function IP(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function PP(e,t,n){return e.push({key:t,value:n}),n}function DP(e,t,n){var r=hP(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=mP(e),h=a.get("showMinLabel")||d,p=a.get("showMaxLabel")||d;h&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return p&&f-l!==o[1]&&g(o[1]),s}function AP(e,t,n){var r=e.scale,i=hP(e),o=[];return dc(r.getTicks(),function(e){var a=r.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:i(e),rawLabel:a,tickValue:s})}),o}var EP=[0,1];function RP(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}var OP=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return $u(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return function(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&RP(n=n.slice(),r.count()),yg(e,EP,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&RP(n=n.slice(),r.count());var i=yg(e,n,EP,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=hc(CP(this,t).ticks,function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}},this);return function(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var o,a,s=e.getExtent();if(1===i)t[0].coord=s[0],o=t[1]={coord:s[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;dc(t,function(e){e.coord-=u/2}),a=1+e.scale.getExtent()[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*a},t.push(o)}var c=s[0]>s[1];d(t[0].coord,s[0])&&(r?t[0].coord=s[0]:t.shift());r&&d(s[0],t[0].coord)&&t.unshift({coord:s[0]});d(s[1],o.coord)&&(r?o.coord=s[1]:t.pop());r&&d(o.coord,s[1])&&t.push({coord:s[1]});function d(e,t){return e=xg(e),t=xg(t),c?e>t:e<t}}(this,n,t.get("alignWithLabel"),e.clamp),n},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");return e>0&&e<100||(e=5),hc(this.scale.getMinorTicks(e),function(e){return hc(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(){return kP(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 e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return function(e){var t=function(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()}}(e),n=hP(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),h=0,p=0;l<=o[1];l+=s){var f,g,m=Od(n({value:l}),t.font,"center","top");f=1.3*m.width,g=1.3*m.height,h=Math.max(h,f,7),p=Math.max(p,g,7)}var y=h/c,v=p/d;isNaN(y)&&(y=1/0),isNaN(v)&&(v=1/0);var x=Math.max(0,Math.floor(Math.min(y,v))),b=wP(e.model),_=e.getExtent(),w=b.lastAutoInterval,S=b.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&b.axisExtent0===_[0]&&b.axisExtent1===_[1]?x=w:(b.lastTickCount=a,b.lastAutoInterval=x,b.axisExtent0=_[0],b.axisExtent1=_[1]),x}(this)},e}());function LP(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,f="x"===u?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[h.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[h[l]]:d[0],"x"===u?f[h[l]]:d[3]],o.rotation=Math.PI/2*("x"===u?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[h[s]]-f[h.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Pc(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-m:m,o.z2=1,o}function NP(e){return"cartesian2d"===e.get("coordinateSystem")}function zP(e){var t={xAxisModel:null,yAxisModel:null};return dc(t,function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,Zg).models[0];t[r]=o}),t}var BP=Math.log;var FP=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=xP,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function r(e){var t,n=gc(e),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=e[+n[o]],s=a.model,l=a.scale;AI(l)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(dP(l,s),AI(l)&&(t=a))}i.length&&(t||dP((t=i.pop()).scale,t.model),dc(i,function(e){!function(e,t,n){var r=WI.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=cP(e,t),u=l.extent,c=l.fixMin,d=l.fixMax;if("log"===e.type){var h=BP(e.base);u=[BP(u[0])/h,BP(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:d});var p=r.getExtent.call(e);c&&(u[0]=p[0]),d&&(u[1]=p[1]);var f=r.getInterval.call(e),g=u[0],m=u[1];if(c&&d)f=(m-g)/a;else if(c)for(m=u[0]+f*a;m<u[1]&&isFinite(m)&&isFinite(u[1]);)f=RI(f),m=u[0]+f*a;else if(d)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=RI(f),g=u[1]-f*a;else{e.getTicks().length-1>a&&(f=RI(f));var y=f*a;(g=xg((m=Math.ceil(u[1]/f)*f)-y))<0&&u[0]>=0?(g=0,m=xg(y)):m>0&&u[1]<=0&&(m=0,g=-xg(y))}var v=(i[0].value-o[0].value)/s,x=(i[a].value-o[a].value)/s;r.setExtent.call(e,g+f*v,m+f*x),r.setInterval.call(e,f),(v||x)&&r.setNiceExtent.call(e,g+f,m-f)}(e.scale,e.model,t.scale)}))}}this._updateScale(e,this.model),r(n.x),r(n.y);var i={};dc(n.x,function(e){WP(n,"y",e,i)}),dc(n.y,function(e){WP(n,"x",e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=K_(r,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){dc(a,function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),function(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}(e,t?o.x:o.y)})}s(),i&&(dc(a,function(e){if(!e.model.get(["axisLabel","inside"])){var t=function(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();i=n instanceof FI?n.count():(r=n.getTicks()).length;var a,s=e.getLabelModel(),l=hP(e),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var d=l(r?r[c]:{value:o[0]+c},c),h=fP(s.getTextRect(d),s.get("rotate")||0);a?a.union(h):a=h}return a}}(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+r,"top"===e.position?o.y+=t.height+r:"left"===e.position&&(o.x+=t.width+r)}}}),s()),dc(this._coordsList,function(e){e.calcAffineTransform()})},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}Sc(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===e||i[r].getAxis("y").index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",Zg).models[0],o=e.yAxisModel||r&&r.getReferringComponents("yAxis",Zg).models[0],a=e.gridModel,s=this._coordsList;if(r)lc(s,t=r.coordinateSystem)<0&&(t=null);else if(i&&o)t=this.getCartesian(i.componentIndex,o.componentIndex);else if(i)n=this.getAxis("x",i.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){a.coordinateSystem===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,r){if($P(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new OP(t,function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new FI({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new jI({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(DI.getClass(t)||WI)}}(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),a[t][r]=u,s[t]++}}}this._axesMap=a,dc(a.x,function(t,n){dc(a.y,function(i,o){var a="x"+n+"y"+o,s=new _P(a);s.master=r,s.model=e,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})})},e.prototype._updateScale=function(e,t){function n(e,t){dc(yP(e,t.dim),function(n){t.scale.unionExtentFromData(e,n)})}dc(this._axesList,function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}}),e.eachSeries(function(e){if(NP(e)){var r=zP(e),i=r.xAxisModel,o=r.yAxisModel;if(!$P(i,t)||!$P(o,t))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=e.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}},this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return dc(this.getCartesians(),function(r){var i=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),o=r.getOtherAxis(i);lc(t,i)<0&&t.push(i),lc(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent("grid",function(i,o){var a=new e(i,t,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)}),t.eachSeries(function(e){if(NP(e)){var t=zP(e),n=t.xAxisModel,r=t.yAxisModel,i=n.getCoordSysModel().coordinateSystem;e.coordinateSystem=i.getCartesian(n.componentIndex,r.componentIndex)}}),r},e.dimensions=xP,e}();function $P(e,t){return e.getCoordSysModel()===t}function WP(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=e[t],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)jP(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&jP(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(e){return e.dim+"_"+e.index}}function jP(e){return e&&"category"!==e.type&&"time"!==e.type&&function(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}(e)}var VP=Math.PI,HP=function(){function e(e,t){this.group=new dy,this.opt=t,this.axisModel=e,sc(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new dy({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!GP[e]},e.prototype.add=function(e){GP[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var r,i,o=wg(t-e);return Sg(o)?(i=n>0?"top":"bottom",r="center"):Sg(o-VP)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<VP?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),GP={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if("auto"===i&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),i){var o=t.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(sh(s,s,a),sh(l,l,a));var c=ac({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new $y({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});_v(d.shape,d.style.lineWidth),d.anid="line",n.add(d);var h=t.get(["axisLine","symbol"]);if(null!=h){var p=t.get(["axisLine","symbolSize"]);bc(h)&&(h=[h,h]),(bc(p)||wc(p))&&(p=[p,p]);var f=nS(t.get(["axisLine","symbolOffset"])||0,p),g=p[0],m=p[1];dc([{rotate:e.rotation+Math.PI/2,offset:f[0],r:0},{rotate:e.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(t,r){if("none"!==h[r]&&null!=h[r]){var i=tS(h[r],-g/2,-m/2,g,m,c.stroke,!0),o=t.r+t.offset,a=u?l:s;i.attr({rotation:t.rotate,x:a[0]+o*Math.cos(e.rotation),y:a[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(i)}})}}},axisTickLabel:function(e,t,n,r){var i=function(e,t,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick"));if(!a||i.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=qP(i.getTicksCoords(),t.transform,l,sc(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)e.add(u[c]);return u}(n,r,t,e),o=function(e,t,n,r){var i=n.axis,o=Pc(r.axisLabelShow,n.get(["axisLabel","show"]));if(!o||i.scale.isBlank())return;var a=n.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),u=(Pc(r.labelRotate,a.get("rotate"))||0)*VP/180,c=HP.innerTextLayout(r.rotation,u,r.labelDirection),d=n.getCategories&&n.getCategories(!0),h=[],p=HP.isLabelSilent(n),f=n.get("triggerEvent");return dc(l,function(o,u){var g="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,m=o.formattedLabel,y=o.rawLabel,v=a;if(d&&d[g]){var x=d[g];Sc(x)&&x.textStyle&&(v=new nx(x.textStyle,a,n.ecModel))}var b=v.getTextColor()||n.get(["axisLine","lineStyle","color"]),_=i.dataToCoord(g),w=v.getShallow("align",!0)||c.textAlign,S=Dc(v.getShallow("alignMinLabel",!0),w),k=Dc(v.getShallow("alignMaxLabel",!0),w),C=v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||c.textVerticalAlign,T=Dc(v.getShallow("verticalAlignMinLabel",!0),C),M=Dc(v.getShallow("verticalAlignMaxLabel",!0),C),I=new og({x:_,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:p,z2:10+(o.level||0),style:zv(v,{text:m,align:0===u?S:u===l.length-1?k:w,verticalAlign:0===u?T:u===l.length-1?M:C,fill:xc(b)?b("category"===i.type?y:"value"===i.type?g+"":g,u):b})});if(I.anid="label_"+g,f){var P=HP.makeAxisEventDataBase(n);P.targetType="axisLabel",P.value=y,P.tickIndex=u,"category"===i.type&&(P.dataIndex=g),em(I).eventData=P}t.add(I),I.updateTransform(),h.push(I),e.add(I),I.decomposeTransform()}),h}(n,r,t,e);(function(e,t,n){if(mP(e.axis))return;var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],d=n[n.length-1],h=n[n.length-2];!1===r?(UP(o),UP(u)):XP(o,a)&&(r?(UP(a),UP(c)):(UP(o),UP(u)));!1===i?(UP(s),UP(d)):XP(l,s)&&(i?(UP(l),UP(h)):(UP(s),UP(d)))}(t,o,i),function(e,t,n,r){var i=n.axis,o=n.getModel("minorTick");if(!o.get("show")||i.scale.isBlank())return;var a=i.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=sc(s.getLineStyle(),sc(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var d=qP(a[c],t.transform,l,u,"minorticks_"+c),h=0;h<d.length;h++)e.add(d[h])}(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"]))&&function(e){var t=[];e.sort(function(e,t){return t.priority-e.priority});var n=new Dd(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i<e.length;i++){var o=e[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=o.obb,h=!1,p=0;p<t.length;p++){var f=t[p];if(n.intersect(f.rect)){if(a&&f.axisAligned){h=!0;break}if(f.obb||(f.obb=new tv(f.localRect,f.transform)),d||(d=new tv(s,l)),d.intersect(f.obb)){h=!0;break}}}h?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new tv(a,o):null;t.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return t}(hc(o,function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})))},axisName:function(e,t,n,r){var i=Pc(e.axisName,t.get("name"));if(i){var o,a,s=t.get("nameLocation"),l=e.nameDirection,u=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,d=t.axis.getExtent(),h=d[0]>d[1]?-1:1,p=["start"===s?d[0]-h*c:"end"===s?d[1]+h*c:(d[0]+d[1])/2,YP(s)?e.labelOffset+l*c:0],f=t.get("nameRotate");null!=f&&(f=f*VP/180),YP(s)?o=HP.innerTextLayout(e.rotation,null!=f?f:e.rotation,l):(o=function(e,t,n,r){var i,o,a=wg(n-e),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;Sg(a-VP/2)?(o=l?"bottom":"top",i="center"):Sg(a-1.5*VP)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*VP&&a>VP/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:i,textVerticalAlign:o}}(e.rotation,s,f||0,d),null!=(a=e.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),m=t.get("nameTruncate",!0)||{},y=m.ellipsis,v=Pc(e.nameTruncateMaxWidth,m.maxWidth,a),x=new og({x:p[0],y:p[1],rotation:o.rotation,silent:HP.isLabelSilent(t),style:zv(u,{text:i,font:g,overflow:"truncate",width:v,ellipsis:y,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Pv({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var b=HP.makeAxisEventDataBase(t);b.targetType="axisName",b.name=i,em(x).eventData=b}r.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function UP(e){e&&(e.ignore=!0)}function XP(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var i=md([]);return xd(i,i,-e.rotation),n.applyTransform(yd([],i,e.getLocalTransform())),r.applyTransform(yd([],i,t.getLocalTransform())),n.intersect(r)}}function YP(e){return"middle"===e||"center"===e}function qP(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,t&&(sh(a,a,t),sh(s,s,t));var c=new $y({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});_v(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,o.push(c)}return o}function KP(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];dc(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=eD(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var u=n.model.getModel("tooltip",r);if(dc(n.getAxes(),yc(p,!1,null)),n.getTooltipAxes&&r&&u.get("show")){var c="axis"===u.get("trigger"),d="cross"===u.get(["axisPointer","type"]),h=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||d)&&dc(h.baseAxes,yc(p,!d||"cross",c)),d&&dc(h.otherAxes,yc(p,"cross",!1))}}function p(r,s,c){var d=c.model.getModel("axisPointer",i),h=d.get("show");if(h&&("auto"!==h||r||JP(d))){null==s&&(s=d.get("triggerTooltip")),d=r?function(e,t,n,r,i,o){var a=t.getModel("axisPointer"),s={};dc(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(e){s[e]=ic(a.get(e))}),s.snap="category"!==e.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===i){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&sc(l,c.textStyle)}}return e.model.getModel("axisPointer",new nx(s,n,r))}(c,u,i,t,r,s):d;var p=d.get("snap"),f=d.get("triggerEmphasis"),g=eD(c.model),m=s||p||"category"===c.type,y=e.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:f,involveSeries:m,snap:p,useHandle:JP(d),seriesModels:[],linkGroup:null};l[g]=y,e.seriesInvolved=e.seriesInvolved||m;var v=function(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(ZP(o[r+"AxisId"],n.id)||ZP(o[r+"AxisIndex"],n.componentIndex)||ZP(o[r+"AxisName"],n.name))return i}}(o,c);if(null!=v){var x=a[v]||(a[v]={axesInfo:{}});x.axesInfo[g]=y,x.mapper=o[v].mapper,y.linkGroup=x}}}})}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&dc(e.coordSysAxesInfo[eD(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())})})}(n,e),n}function ZP(e,t){return"all"===e||vc(e)&&lc(e,t)>=0||e===t}function QP(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[eD(e)]}function JP(e){return!!e.get(["handle","show"])}function eD(e){return e.type+"||"+e.id}var tD={},nD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return $u(t,e),t.prototype.render=function(t,n,r,i){this.axisPointerClass&&function(e){var t=QP(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=JP(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=function(e){var t=QP(e);return t&&t.axisPointerModel}(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){tD[e]=t},t.getAxisPointerClass=function(e){return e&&tD[e]},t.type="axis",t}(XC),rD=Xg();var iD=["axisLine","axisTickLabel","axisName"],oD=["splitArea","splitLine","minorSplitLine"],aD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return $u(t,e),t.prototype.render=function(t,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new dy,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),s=LP(a,t),l=new HP(t,ac({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(AI(n[r].getOtherAxis(t.axis).scale))return!0;return!1}},s));dc(iD,l.add,l),this._axisGroup.add(l.getGroup()),dc(oD,function(e){t.get([e,"show"])&&sD[e](this,this._axisGroup,t,a)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||Cv(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)}},t.prototype.remove=function(){rD(this).splitAreaColors=null},t.type="cartesianAxis",t}(nD),sD={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=vc(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,d=i.getTicksCoords({tickModel:o}),h=[],p=[],f=a.getLineStyle(),g=0;g<d.length;g++){var m=i.toGlobalCoord(d[g].coord);u?(h[0]=m,h[1]=l.y,p[0]=m,p[1]=l.y+l.height):(h[0]=l.x,h[1]=m,p[0]=l.x+l.width,p[1]=m);var y=c++%s.length,v=d[g].tickValue,x=new $y({anid:null!=v?"line_"+d[g].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:p[0],y2:p[1]},style:sc({stroke:s[y]},f),silent:!0});_v(x.shape,f.lineWidth),t.add(x)}}},minorSplitLine:function(e,t,n,r){var i=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=r.coordinateSystem.getRect(),s=i.isHorizontal(),l=i.getMinorTicksCoords();if(l.length)for(var u=[],c=[],d=o.getLineStyle(),h=0;h<l.length;h++)for(var p=0;p<l[h].length;p++){var f=i.toGlobalCoord(l[h][p].coord);s?(u[0]=f,u[1]=a.y,c[0]=f,c[1]=a.y+a.height):(u[0]=a.x,u[1]=f,c[0]=a.x+a.width,c[1]=f);var g=new $y({anid:"minor_line_"+l[h][p].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:d,silent:!0});_v(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,n,r){!function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,d=rD(e).splitAreaColors,h=jc(),p=0;if(d)for(var f=0;f<u.length;f++){var g=d.get(u[f].tickValue);if(null!=g){p=(g+(c-1)*f)%c;break}}var m=i.toGlobalCoord(u[0].coord),y=a.getAreaStyle();for(s=vc(s)?s:[s],f=1;f<u.length;f++){var v=i.toGlobalCoord(u[f].coord),x=void 0,b=void 0,_=void 0,w=void 0;i.isHorizontal()?(x=m,b=l.y,_=v-x,w=l.height,m=x+_):(x=l.x,b=m,_=l.width,m=b+(w=v-b));var S=u[f-1].tickValue;null!=S&&h.set(S,p),t.add(new ng({anid:null!=S?"area_"+S:null,shape:{x:x,y:b,width:_,height:w},style:sc({fill:s[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%c}rD(e).splitAreaColors=h}}}(e,t,n,r)}},lD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return $u(t,e),t.type="xAxis",t}(aD),uD=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=lD.type,t}return $u(t,e),t.type="yAxis",t}(aD),cD=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return $u(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new ng({shape:e.coordinateSystem.getRect(),style:sc({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(XC),dD={offset:0};function hD(e){e.registerComponentView(cD),e.registerComponentModel(yI),e.registerCoordinateSystem("cartesian2d",FP),II(e,"x",xI,dD),II(e,"y",xI,dD),e.registerComponentView(lD),e.registerComponentView(uD),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var pD=Xg(),fD=ic,gD=mc;function mD(e,t,n,r){yD(pD(n).lastProp,r)||(pD(n).lastProp=r,t?av(n,r,e):(n.stopAnimation(),n.attr(r)))}function yD(e,t){if(Sc(e)&&Sc(t)){var n=!0;return dc(t,function(t,r){n=n&&yD(e[r],t)}),!!n}return e===t}function vD(e,t){e[t.get(["label","show"])?"show":"hide"]()}function xD(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function bD(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)})}function _D(e,t,n,r,i){var o=wD(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=B_(a.get("padding")||0),l=a.getFont(),u=Od(o,l),c=i.position,d=u.width+s[1]+s[3],h=u.height+s[0]+s[2],p=i.align;"right"===p&&(c[0]-=d),"center"===p&&(c[0]-=d/2);var f=i.verticalAlign;"bottom"===f&&(c[1]-=h),"middle"===f&&(c[1]-=h/2),function(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(c,d,h,r);var g=a.get("backgroundColor");g&&"auto"!==g||(g=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:zv(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function wD(e,t,n,r,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:pP(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};dc(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),bc(a)?o=a.replace("{value}",o):xc(a)&&(o=a(s))}return o}function SD(e,t,n){var r=[1,0,0,1,0,0];return xd(r,r,n.rotation),vd(r,r,n.position),Sv([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}var kD=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $u(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=CD(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=function(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle()).fill=null:"shadow"===n&&((t=r.getAreaStyle()).stroke=null),t}(r),d=TD[s](o,u,l);d.style=c,e.graphicKey=d.type,e.pointer=d}!function(e,t,n,r,i,o){var a=HP.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),_D(t,r,i,o,{position:SD(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}(t,e,LP(a.model,n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=LP(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=SD(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=CD(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,d=[c,c];d[l]=u[l];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},t}(function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,i,e,t,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(e,t);if(a){var d=yc(mD,t,c);this.updatePointerEl(a,l,d),this.updateLabelEl(a,l,d,t)}else a=this._group=new dy,this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);bD(a,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),r=e.axis,i="category"===r.type,o=t.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=QP(e).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var o=pD(e).pointerEl=new Ev[i.type](fD(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=pD(e).labelEl=new og(fD(t.label));e.add(i),vD(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=pD(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=pD(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),vD(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=Tv(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){pk(e.event)},onmousedown:gD(this._onHandleDragMove,this,0,0),drift:gD(this._onHandleDragMove,this),ondragend:gD(this._onHandleDragEnd,this)}),r.add(i)),bD(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");vc(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,ek(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){mD(this._axisPointerModel,!t&&this._moveAnimation,this._handle,xD(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(xD(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(xD(r)),pD(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),tk(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},e}());function CD(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var TD={line:function(e,t,n){var r,i,o;return{type:"Line",subPixelOptimize:!0,shape:(r=[t,n[0]],i=[t,n[1]],o=MD(e),{x1:r[o=o||0],y1:r[1-o],x2:i[o],y2:i[1-o]})}},shadow:function(e,t,n){var r,i,o,a=Math.max(1,e.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:(r=[t-a/2,n[0]],i=[a,s],o=MD(e),{x:r[o=o||0],y:r[1-o],width:i[o],height:i[1-o]})}}};function MD(e){return"x"===e.dim?0:1}var ID=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return $u(t,e),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}(tw),PD=Xg(),DD=dc;function AD(e,t,n){if(!qc.node){var r=t.getZr();PD(r).records||(PD(r).records={}),function(e,t){if(PD(e).initialized)return;function n(n,r){e.on(n,function(n){var i=function(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}(t);DD(PD(e).records,function(e){e&&r(e,n,i.dispatchAction)}),function(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]);n&&(n.dispatchAction=null,t.dispatchAction(n))}(i.pendings,t)})}PD(e).initialized=!0,n("click",yc(RD,"click")),n("mousemove",yc(RD,"mousemove")),n("globalout",ED)}(r,t),(PD(r).records[e]||(PD(r).records[e]={})).handler=n}}function ED(e,t,n){e.handler("leave",null,n)}function RD(e,t,n,r){t.handler(e,n,r)}function OD(e,t){if(!qc.node){var n=t.getZr();(PD(n).records||{})[e]&&(PD(n).records[e]=null)}}var LD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return $u(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),i=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";AD("axisPointer",n,function(e,t,n){"none"!==i&&("leave"===e||i.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){OD("axisPointer",t)},t.prototype.dispose=function(e,t){OD("axisPointer",t)},t.type="axisPointer",t}(XC);function ND(e,t){var n,r=[],i=e.seriesIndex;if(null==i||!(n=t.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=Ug(o,e);if(null==a||a<0||vc(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,d=u.dim,h="x"===c||"radius"===c?1:0,p=o.mapDimension(d),f=[];f[h]=o.get(p,a),f[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(f)||[]}else r=l.dataToPoint(o.getValues(hc(l.dimensions,function(e){return o.mapDimension(e)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var zD=Xg();function BD(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||mc(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){VD(i)&&(i=ND({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=VD(i),u=o.axesInfo,c=s.axesInfo,d="leave"===r||VD(i),h={},p={},f={list:[],map:{}},g={showPointer:yc($D,p),showTooltip:yc(WD,f)};dc(s.coordSysMap,function(e,t){var n=l||e.containPoint(i);dc(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,o=function(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}(u,e);if(!d&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&FD(e,a,g,!1,h)}})});var m={};return dc(c,function(e,t){var n=e.linkGroup;n&&!p[t]&&dc(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var o=i.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,jD(t),jD(e)))),m[e.key]=o}})}),dc(m,function(e,t){FD(c[t],e,g,!0,h)}),function(e,t,n){var r=n.axesInfo=[];dc(t,function(t,n){var i=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}(p,c,h),function(e,t,n,r){if(VD(t)||!e.list.length)return void r({type:"hideTip"});var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}(f,i,e,a),function(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=zD(r)[i]||{},a=zD(r)[i]={};dc(e,function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&dc(n.seriesDataIndices,function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e})});var s=[],l=[];dc(o,function(e,t){!a[t]&&l.push(e)}),dc(a,function(e,t){!o[t]&&s.push(e)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),h}}function FD(e,t,n,r,i){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=function(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return dc(t.seriesModels,function(t,l){var u,c,d=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var h=t.getAxisTooltipData(d,e,n);c=h.dataIndices,u=h.nestestValue}else{if(!(c=t.getData().indicesOfNearest(d[0],e,"category"===n.type?.5:null)).length)return;u=t.getData().get(d[0],c[0])}if(null!=u&&isFinite(u)){var p=e-u,f=Math.abs(p);f<=a&&((f<a||p>=0&&s<0)&&(a=f,s=p,i=u,o.length=0),dc(c,function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:o,snapToValue:i}}(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&ac(i,s[0]),!r&&e.snap&&o.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}else n.showPointer(e,t)}function $D(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function WD(e,t,n,r){var i=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var l=t.coordSys.model,u=eD(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:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function jD(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function VD(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function HD(e){nD.registerAxisPointerClass("CartesianAxisPointer",kD),e.registerComponentModel(ID),e.registerComponentView(LD),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!vc(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=KP(e,t)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},BD)}var GD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return $u(t,e),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}(tw);function UD(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function XD(e){if(qc.domSupported)for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}var YD=XD(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function qD(e,t){if(!e)return t;t=z_(t,!0);var n=e.indexOf(t);return(e=-1===n?t:"-"+e.slice(0,n)+"-"+t).toLowerCase()}var KD=qD(XD(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),ZD=qD(YD,"transform"),QD="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(qc.transform3dSupported?"will-change:transform;":"");function JD(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!qc.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=qc.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+ZD+":"+a+";":[["top",0],["left",0],[YD,a]]}function eA(e,t,n){var r=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),d=Ow(e,"html"),h=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+h),t&&i&&r.push(function(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=qc.transformSupported?","+ZD+r:",left"+r+",top"+r),KD+":"+i}(i,n)),o&&r.push("background-color:"+o),dc(["width","color","radius"],function(t){var n="border-"+t,i=z_(n),o=e.get(i);null!=o&&r.push(n+":"+o+("color"===t?"":"px"))}),r.push(function(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),dc(["decoration","align"],function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)}),t.join(";")}(c)),null!=d&&r.push("padding:"+B_(d).join("px ")+"px"),r.join(";")+";"}function tA(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&function(e,t,n,r,i){Yb(Xb,t,r,i,!0)&&Yb(e,n,Xb[0],Xb[1])}(e,a,n,r,i)}else{e[0]=r,e[1]=i;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var nA=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,qc.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,o=i&&(bc(i)?document.querySelector(i):Tc(i)?i:xc(i)&&i(e.getDom()));tA(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=r.handler;dk(r.painter.getViewportRoot(),e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=(o="position",(a=(i=t).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?a[o]:null),r=t.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var i,o,a,s=e.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=QD+eA(e,!this._firstShow,this._longHide)+JD(i[0],i[1],!0)+"border-color:"+V_(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var o=this.el;if(null!=e){var a="";if(bc(i)&&"item"===n.get("trigger")&&!UD(n)&&(a=function(e,t,n){if(!bc(n)||"inside"===n)return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=V_(t);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(i),6),u="",c=ZD+":";lc(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var d=a*Math.PI/180,h=l+i,p=h*Math.abs(Math.cos(d))+h*Math.abs(Math.sin(d)),f=t+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(u+=";"+s+":-"+Math.round(100*((p-Math.SQRT2*i)/2+Math.SQRT2*i-(p-h)/2))/100+"px")+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+r+";"].join("")+'"></div>'}(n,r,i)),bc(e))o.innerHTML=e+a;else if(e){o.innerHTML="",vc(e)||(e=[e]);for(var s=0;s<e.length;s++)Tc(e[s])&&e[s].parentNode!==o&&o.appendChild(e[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},e.prototype.moveTo=function(e,t){var n=this._styleCoord;if(tA(n,this._zr,this._container,e,t),null!=n[0]&&null!=n[1]){var r=this.el.style;dc(JD(n[0],n[1]),function(e){r[e[0]]=e[1]})}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",qc.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(mc(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},e}(),rA=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),aA(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var o=this;Sc(e)&&Eg(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new og({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Ow(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),dc(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(e){o.el.style[e]=n.get(e)}),dc(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(e){o.el.style[e]=a.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=oA(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;aA(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,o=iA(i.borderWidth||0),a=oA(i);n.x=e+o+a.left,n.y=t+o+a.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(mc(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function iA(e){return Math.max(0,e)}function oA(e){var t=iA(e.shadowBlur||0),n=iA(e.shadowOffsetX||0),r=iA(e.shadowOffsetY||0);return{left:iA(t-n),right:iA(t+n),top:iA(t-r),bottom:iA(t+r)}}function aA(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var sA=new ng({shape:{x:-1,y:-1,width:2,height:2}}),lA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return $u(t,e),t.prototype.init=function(e,t){if(!qc.node&&t.getDom()){var n,r=e.getComponent("tooltip"),i=this._renderMode="auto"===(n=r.get("renderMode"))?qc.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===i?new rA(t):new nA(t,{appendTo:r.get("appendToBody",!0)?"body":r.get("appendTo",!0)})}},t.prototype.render=function(e,t,n){if(!qc.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?ek(this,"_updatePosition",50,"fixRate"):tk(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");AD("itemTooltip",this._api,mc(function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!qc.node&&n.getDom()){var i=cA(r,n);this._ticket="";var o=r.dataByCoordSys,a=function(e,t,n){var r=Kg(e).queryOptionMap,i=r.keys()[0];if(!i||"series"===i)return;var o=Qg(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(!a)return;var s,l=n.getViewOfComponentModel(a);if(l.group.traverse(function(t){var n=em(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}(r,t,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=sA;l.x=r.x,l.y=r.y,l.update(),em(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var u=ND(r,t),c=u.point[0],d=u.point[1];null!=c&&null!=d&&this._tryShow({offsetX:c,offsetY:d,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(cA(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,o=r.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=t.getSeriesByIndex(i);if(s)if("axis"===uA([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var i,o;if("legend"===em(n).ssrType)return;this._lastDataByCoordSys=null,AT(n,function(e){return null!=em(e).dataIndex?(i=e,!0):null!=em(e).tooltipConfig?(o=e,!0):void 0},!0),i?this._showSeriesItemTooltip(e,i,t):o?this._showComponentItemTooltip(e,o,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=mc(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],o=uA([t.tooltipOption],r),a=this._renderMode,s=[],l=Cw("section",{blocks:[],noHeader:!0}),u=[],c=new Lw;dc(e,function(e){dc(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value;if(t&&null!=i){var o=wD(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=Cw("section",{header:o,noHeader:!Lc(o),sortBlocks:!0,blocks:[]});l.blocks.push(d),dc(e.seriesDataIndices,function(l){var h=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=h.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=pP(t.axis,{value:i}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",V_(f.color),a);var g=aw(h.formatTooltip(p,!0,null)),m=g.frag;if(m){var y=uA([h],r).get("valueFormatter");d.blocks.push(y?ac({valueFormatter:y},m):m)}g.text&&u.push(g.text),s.push(f)}})}})}),l.blocks.reverse(),u.reverse();var d=t.position,h=o.get("order"),p=Aw(l,c,a,h,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var f="richText"===a?"\n\n":"<br/>",g=u.join(f);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(o,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],d,null,c)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=em(t),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),d=this._renderMode,h=e.positionDefault,p=uA([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),m=new Lw;g.marker=m.makeTooltipMarker("item",V_(g.color),d);var y=aw(s.formatTooltip(l,!1,u)),v=p.get("order"),x=p.get("valueFormatter"),b=y.frag,_=b?Aw(x?ac({valueFormatter:x},b):b,m,d,v,r.get("useUTC"),p.get("textStyle")):y.text,w="item_"+s.name+"_"+l;this._showOrMove(p,function(){this._showTooltipContent(p,_,g,w,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r="html"===this._renderMode,i=em(t),o=i.tooltipConfig.option||{},a=o.encodeHTMLContent;if(bc(o)){o={content:o,formatter:o},a=!0}a&&r&&o.content&&((o=ic(o)).content=Qb(o.content));var s=[o],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=e.positionDefault,c=uA(s,this._tooltipModel,u?{position:u}:null),d=c.get("content"),h=Math.random()+"",p=new Lw;this._showOrMove(c,function(){var n=ic(c.get("formatterParams")||{});this._showTooltipContent(c,d,n,h,e.offsetX,e.offsetY,e.position,t,p)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,o,a,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent;u.setEnterable(e.get("enterable"));var c=e.get("formatter");a=a||e.get("position");var d=t,h=this._getNearestPoint([i,o],n,e.get("trigger"),e.get("borderColor")).color;if(c)if(bc(c)){var p=e.ecModel.get("useUTC"),f=vc(n)?n[0]:n;d=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(d=x_(f.axisValue,d,p)),d=j_(d,n,!0)}else if(xc(c)){var g=mc(function(t,r){t===this._ticket&&(u.setContent(r,l,e,h,a),this._updatePosition(e,a,i,o,u,n,s))},this);this._ticket=r,d=c(n,r,g)}else d=c;u.setContent(d,l,e,h,a),u.show(e,h),this._updatePosition(e,a,i,o,u,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||vc(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:vc(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u=i.getSize(),c=e.get("align"),d=e.get("verticalAlign"),h=a&&a.getBoundingRect().clone();if(a&&h.applyTransform(a.transform),xc(t)&&(t=t([n,r],o,i.el,h,{viewSize:[s,l],contentSize:u.slice()})),vc(t))n=vg(t[0],s),r=vg(t[1],l);else if(Sc(t)){var p=t;p.width=u[0],p.height=u[1];var f=K_(p,{width:s,height:l});n=f.x,r=f.y,c=null,d=null}else if(bc(t)&&a){var g=function(e,t,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+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-o/2;break;case"top":s=t.x+u/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+a;break;case"left":s=t.x-i-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}(t,h,u,e.get("borderWidth"));n=g[0],r=g[1]}else{g=function(e,t,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];null!=o&&(e+l+o+2>r?e-=l+o:e+=o);null!=a&&(t+u+a>i?t-=u+a:t+=a);return[e,t]}(n,r,i,s,l,c?null:20,d?null:20);n=g[0],r=g[1]}if(c&&(n-=dA(c)?u[0]/2:"right"===c?u[0]:0),d&&(r-=dA(d)?u[1]/2:"bottom"===d?u[1]:0),UD(e)){g=function(e,t,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&dc(n,function(n,o){var a=n.dataByAxis||[],s=(e[o]||{}).dataByAxis||[];(i=i&&a.length===s.length)&&dc(a,function(e,n){var o=s[n]||{},a=e.seriesDataIndices||[],l=o.seriesDataIndices||[];(i=i&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===l.length)&&dc(a,function(e,t){var n=l[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&dc(e.seriesDataIndices,function(e){var n=e.seriesIndex,o=t[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!qc.node&&t.getDom()&&(tk(this,"_updatePosition"),this._tooltipContent.dispose(),OD("itemTooltip",t))},t.type="tooltip",t}(XC);function uA(e,t,n){var r,i=t.ecModel;n?(r=new nx(n,i,i),r=new nx(t.option,r,i)):r=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof nx&&(a=a.get("tooltip",!0)),bc(a)&&(a={formatter:a}),a&&(r=new nx(a,r,i)))}return r}function cA(e,t){return e.dispatchAction||mc(t.dispatchAction,t)}function dA(e){return"center"===e||"middle"===e}var hA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return $u(t,e),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}(tw),pA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return $u(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,i=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=Dc(e.get("textBaseline"),e.get("textVerticalAlign")),l=new og({style:zv(i,{text:e.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=e.get("subtext"),d=new og({style:zv(o,{text:c,fill:o.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=e.get("link"),p=e.get("sublink"),f=e.get("triggerEvent",!0);l.silent=!h&&!f,d.silent=!p&&!f,h&&l.on("click",function(){H_(h,"_"+e.get("target"))}),p&&d.on("click",function(){H_(p,"_"+e.get("subtarget"))}),em(l).eventData=em(d).eventData=f?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(l),c&&r.add(d);var g=r.getBoundingRect(),m=e.getBoxLayoutParams();m.width=g.width,m.height=g.height;var y=K_(m,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||("middle"===(a=e.get("left")||e.get("right"))&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||("center"===(s=e.get("top")||e.get("bottom"))&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),r.x=y.x,r.y=y.y,r.markRedraw();var v={align:a,verticalAlign:s};l.setStyle(v),d.setStyle(v),g=r.getBoundingRect();var x=y.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var _=new ng({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});r.add(_)}},t.type="title",t}(XC);var fA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return $u(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),vc(t)&&dc(t,function(e,r){bc(e)&&(e={type:e}),t[r]=oc(e,function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get("name");if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(a)),a.length?t=t.concat(a):i=!0}else i=!0;i&&Hg(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get("data")||t,i=jc(),o=hc(r,function(e){return(bc(e)||wc(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new nx(e,this,this.ecModel))},this);this._data=fc(o,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;"single"===this.get("selectedMode")&&dc(this._data,function(e){t[e.get("name")]=!1});t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;dc(e,function(e){t[e.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;dc(e,function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&lc(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{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}(tw),gA=yc,mA=dc,yA=dy,vA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return $u(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new yA),this.group.add(this._selectorGroup=new yA),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var i=e.get("align"),o=e.get("orient");i&&"auto"!==i||(i="right"===e.get("left")&&"vertical"===o?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,e,t,n,a,o,s);var l=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),d=K_(l,u,c),h=this.layoutInner(e,i,d,r,a,s),p=K_(sc({width:h.width,height:h.height},l),u,c);this.group.x=p.x-h.x,this.group.y=p.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function(e,t){var n=B_(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),new ng({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1})}(h,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,o,a){var s=this.getContentGroup(),l=jc(),u=t.get("selectedMode"),c=[];n.eachRawSeries(function(e){!e.get("legendHoverLink")&&c.push(e.id)}),mA(t.getData(),function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var d=new yA;return d.newline=!0,void s.add(d)}var h=n.getSeriesByName(a)[0];if(!l.get(a))if(h){var p=h.getData(),f=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),m=p.getVisual("style"),y=this._createItem(h,a,o,i,t,e,f,m,g,u,r);y.on("click",gA(xA,a,null,r,c)).on("mouseover",gA(_A,h.name,null,r,c)).on("mouseout",gA(wA,h.name,null,r,c)),n.ssr&&y.eachChild(function(e){var t=em(e);t.seriesIndex=h.seriesIndex,t.dataIndex=o,t.ssrType="legend"}),l.set(a,!0)}else n.eachRawSeries(function(s){if(!l.get(a)&&s.legendVisualProvider){var d=s.legendVisualProvider;if(!d.containName(a))return;var h=d.indexOfName(a),p=d.getItemVisual(h,"style"),f=d.getItemVisual(h,"legendIcon"),g=tp(p.fill);g&&0===g[3]&&(g[3]=.2,p=ac(ac({},p),{fill:ip(g,"rgba")}));var m=this._createItem(s,a,o,i,t,e,{},p,f,u,r);m.on("click",gA(xA,null,a,r,c)).on("mouseover",gA(_A,null,a,r,c)).on("mouseout",gA(wA,null,a,r,c)),n.ssr&&m.eachChild(function(e){var t=em(e);t.seriesIndex=s.seriesIndex,t.dataIndex=o,t.ssrType="legend"}),l.set(a,!0)}},this)},this),i&&this._createSelector(i,t,r,o,a)},t.prototype._createSelector=function(e,t,n,r,i){var o=this.getSelectorGroup();mA(e,function(e){var r=e.type,i=new og({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i),Lv(i,{normal:t.getModel("selectorLabel"),emphasis:t.getModel(["emphasis","selectorLabel"])},{defaultText:e.title}),Fm(i)})},t.prototype._createItem=function(e,t,n,r,i,o,a,s,l,u,c){var d=e.visualDrawType,h=i.get("itemWidth"),p=i.get("itemHeight"),f=i.isSelected(t),g=r.get("symbolRotate"),m=r.get("symbolKeepAspect"),y=r.get("icon"),v=function(e,t,n,r,i,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),mA(e,function(n,r){"inherit"===e[r]&&(e[r]=t[r])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");u.decal=d&&"inherit"!==d?oM(d,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]);"inherit"===u.stroke&&(u.stroke=r[c]);"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity);s(u,r);var h=t.getModel("lineStyle"),p=h.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===p.stroke&&(p.stroke=r.fill),!o){var f=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),p.stroke=h.get("inactiveColor"),p.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(l=y||l||"roundRect",r,a,s,d,f,c),x=new yA,b=r.getModel("textStyle");if(!xc(e.getLegendIcon)||y&&"inherit"!==y){var _="inherit"===y&&e.getData().getVisual("symbol")?"inherit"===g?e.getData().getVisual("symbolRotate"):g:0;x.add(function(e){var t=e.icon||"roundRect",n=tS(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:h,itemHeight:p,icon:l,iconRotate:_,itemStyle:v.itemStyle,symbolKeepAspect:m}))}else x.add(e.getLegendIcon({itemWidth:h,itemHeight:p,icon:l,iconRotate:g,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:m}));var w="left"===o?h+5:-5,S=o,k=i.get("formatter"),C=t;bc(k)&&k?C=k.replace("{name}",null!=t?t:""):xc(k)&&(C=k(t));var T=f?b.getTextColor():r.get("inactiveColor");x.add(new og({style:zv(b,{text:C,x:w,y:p/2,fill:T,align:S,verticalAlign:"middle"},{inheritColor:T})}));var M=new ng({shape:x.getBoundingRect(),style:{fill:"transparent"}}),I=r.getModel("tooltip");return I.get("show")&&Pv({el:M,componentModel:i,itemName:t,itemTooltipOption:I.option}),x.add(M),x.eachChild(function(e){e.silent=!0}),M.silent=!u,this.getContentGroup().add(x),Fm(x),x.__legendDataIndex=n,x},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();q_(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){q_("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),d=[-c.x,-c.y],h=e.get("selectorButtonGap",!0),p=e.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",m=0===p?"y":"x";"end"===o?d[p]+=l[f]+h:u[p]+=c[f]+h,d[1-p]+=l[g]/2-c[g]/2,s.x=d[0],s.y=d[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[f]=l[f]+h+c[f],y[g]=Math.max(l[g],c[g]),y[m]=Math.min(0,c[m]+d[1-p]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(XC);function xA(e,t,n,r){wA(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),_A(e,t,n,r)}function bA(e){for(var t,n=e.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(t=n[r].states.emphasis);)r++;return t&&t.hoverLayer}function _A(e,t,n,r){bA(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function wA(e,t,n,r){bA(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}function SA(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function kA(e,t,n){var r,i={},o="toggleSelected"===e;return n.eachComponent("legend",function(n){o&&null!=r?n[r?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),r=n.isSelected(t.name)),dc(n.getData(),function(e){var t=e.get("name");if("\n"!==t&&""!==t){var r=n.isSelected(t);i.hasOwnProperty(t)?i[t]=i[t]&&r:i[t]=r}})}),"allSelect"===e||"inverseSelect"===e?{selected:i}:{name:t.name,selected:i}}function CA(e){e.registerComponentModel(fA),e.registerComponentView(vA),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,SA),e.registerSubTypeDefaulter("legend",function(){return"plain"}),function(e){e.registerAction("legendToggleSelect","legendselectchanged",yc(kA,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",yc(kA,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",yc(kA,"inverseSelect")),e.registerAction("legendSelect","legendselected",yc(kA,"select")),e.registerAction("legendUnSelect","legendunselected",yc(kA,"unSelect"))}(e)}var TA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}var n,r;return $u(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=J_(t);e.prototype.init.call(this,t,n,r),MA(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),MA(this,this.option,t)},t.type="legend.scroll",t.defaultOption=(n=fA.defaultOption,r={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},oc(oc({},n,!0),r,!0)),t}(fA);function MA(e,t,n){var r=[1,1];r[e.getOrient().index]=0,Q_(t,n,{type:"box",ignoreSize:!!r})}var IA=dy,PA=["width","height"],DA=["x","y"],AA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return $u(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new IA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new IA)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,o,a,s){var l=this;e.prototype.renderInner.call(this,t,n,r,i,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),d=vc(c)?c:[c,c];p("pagePrev",0);var h=n.getModel("pageTextStyle");function p(e,t){var r=e+"DataIndex",o=Tv(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:mc(l._pageGo,l,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});o.name=e,u.add(o)}u.add(new og({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getSelectorGroup(),s=e.getOrient().index,l=PA[s],u=DA[s],c=PA[1-s],d=DA[1-s];i&&q_("horizontal",a,e.get("selectorItemGap",!0));var h=e.get("selectorButtonGap",!0),p=a.getBoundingRect(),f=[-p.x,-p.y],g=ic(n);i&&(g[l]=n[l]-p[l]-h);var m=this._layoutContentAndController(e,r,g,s,l,c,d,u);if(i){if("end"===o)f[s]+=m[l]+h;else{var y=p[l]+h;f[s]-=y,m[u]-=y}m[l]+=p[l]+h,f[1-s]+=m[d]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[d]=Math.min(m[d],p[d]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,t,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;q_(e.get("orient"),l,e.get("itemGap"),r?n.width:null,r?null:n.height),q_("horizontal",c,e.get("pageButtonItemGap",!0));var d=l.getBoundingRect(),h=c.getBoundingRect(),p=this._showController=d[i]>n[i],f=[-d.x,-d.y];t||(f[r]=l[s]);var g=[0,0],m=[-h.x,-h.y],y=Dc(e.get("pageButtonGap",!0),e.get("itemGap",!0));p&&("end"===e.get("pageButtonPosition",!0)?m[r]+=n[i]-h[i]:g[r]+=h[i]+y);m[1-r]+=d[o]/2-h[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(m);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[o]=Math.max(d[o],h[o]),v[a]=Math.min(0,h[a]+m[1-r]),u.__rectSize=n[i],p){var x={x:0,y:0};x[i]=Math.max(n[i]-h[i]-y,0),x[o]=v[o],u.setClipPath(new ng({shape:x})),u.__rectSize=x[i]}else c.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return null!=b.pageIndex&&av(l,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;dc(["pagePrev","pageNext"],function(r){var i=null!=t[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",i?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")});var r=n.childOfName("pageText"),i=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;r&&i&&r.setStyle("text",bc(i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,o=PA[i],a=DA[i],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,d=c?1:0,h={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return h;var p=v(u);h.contentPosition[i]=-p.s;for(var f=s+1,g=p,m=p,y=null;f<=c;++f)(!(y=v(l[f]))&&m.e>g.s+r||y&&!x(y,g.s))&&(g=m.i>g.i?m:y)&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=g.i),++h.pageCount),m=y;for(f=s-1,g=p,m=p,y=null;f>=-1;--f)(y=v(l[f]))&&x(m,y.s)||!(g.i<m.i)||(m=g,null==h.pagePrevDataIndex&&(h.pagePrevDataIndex=g.i),++h.pageCount,++h.pageIndex),g=y;return h;function v(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function x(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild(function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===e&&(t=i)}),null!=t?t:n):0;var t,n},t.type="legend.scroll",t}(vA);function EA(e){mI(CA),e.registerComponentModel(TA),e.registerComponentView(AA),function(e){e.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(e){e.setScrollDataIndex(n)})})}(e)}function RA(e,t,n){var r=Vu.createCanvas(),i=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=o*n,r}var OA=function(e){function t(t,n,r){var i,o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||kp,"string"==typeof t?i=RA(t,n,r):Sc(t)&&(t=(i=t).id),o.id=t,o.dom=i;var a=i.style;return a&&(Hc(i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return $u(t,e),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 e=this.dpr;this.domBack=RA("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new Dd(0,0,0,0);function u(e){if(e.isFinite()&&!e.isZero())if(0===o.length){(t=new Dd(0,0,0,0)).copy(e),o.push(t)}else{for(var t,n=!1,r=1/0,i=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(e)){var d=new Dd(0,0,0,0);d.copy(c),d.union(e),o[u]=d,n=!0;break}if(s){l.copy(e),l.union(c);var h=e.width*e.height,p=c.width*c.height,f=l.width*l.height-h-p;f<r&&(r=f,i=u)}}if(s&&(o[i].union(e),n=!0),!n)(t=new Dd(0,0,0,0)).copy(e),o.push(t);s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){if(p=e[c]){var d=p.shouldBePainted(n,r,!0,!0);(f=p.__isRendered&&(1&p.__dirty||!d)?p.getPrevPaintRect():null)&&u(f);var h=d&&(1&p.__dirty||!p.__isRendered)?p.getPaintRect():null;h&&u(h)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var p,f;d=(p=t[c])&&p.shouldBePainted(n,r,!0,!0);if(p&&(!d||!p.__zr)&&p.__isRendered)(f=p.getPrevPaintRect())&&u(f)}do{i=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(i=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(i);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=e+"px",i.height=t+"px"),r.width=e*n,r.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height;t=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/u,a/u));var d=this.domBack;function h(e,n,r,o){if(i.clearRect(e,n,r,o),t&&"transparent"!==t){var a=void 0;if(Mc(t))a=(t.global||t.__width===r&&t.__height===o)&&t.__canvasGradient||NT(i,t,{x:0,y:0,width:r,height:o}),t.__canvasGradient=a,t.__width=r,t.__height=o;else null!=t.image&&(t.scaleX=t.scaleX||u,t.scaleY=t.scaleY||u,a=UT(i,t,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));i.save(),i.fillStyle=a||t,i.fillRect(e,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(d,e,n,r,o),i.restore())}!n||s?h(0,0,o,a):n.length&&dc(n,function(e){h(e.x*u,e.y*u,e.width*u,e.height*u)})},t}(wp),LA=1e5,NA=314159,zA=.01;var BA=function(){function e(e,t,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=ac({},n||{}),this.dpr=n.devicePixelRatio||kp,this._singleCanvas=i,this.root=e,e.style&&(Hc(e),e.innerHTML=""),this.storage=t;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(i){var s=e,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new OA(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[314159]=c,c.zlevel=NA,o.push(NA),this._domRoot=e}else{this._width=BT(e,0,n),this._height=BT(e,1,n);var d=this._domRoot=function(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);e.appendChild(d)}}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 e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<t;o++){var a=e[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(LA)),r||(r=n.ctx).save(),tM(r,a,i,o===t-1))}r&&r.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(LA)},e.prototype.paintOne=function(e,t){eM(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(e),o)this.eachLayer(function(e){e.afterBrush&&e.afterBrush()});else{var s=this;Nk(function(){s._paintList(e,t,n,r)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(NA).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)})},e.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,c=!1,d=function(a){var s,l=i[a],d=l.ctx,p=o&&l.createRepaintRects(e,t,h._width,h._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,m=g&&Date.now(),y=l.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,y,p);else if(f===l.__startIndex){var v=e[f];v.incremental&&v.notClear&&!n||l.clear(!1,y,p)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=f;s<l.__endIndex;s++){var i=e[s];if(i.__inHover&&(c=!0),r._doPaintEl(i,l,o,t,n,s===l.__endIndex-1),g)if(Date.now()-m>15)break}n.prevElClipPaths&&d.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var b=h.dpr,_=0;_<p.length;++_){var w=p[_];d.save(),d.beginPath(),d.rect(w.x*b,w.y*b,w.width*b,w.height*b),d.clip(),x(w),d.restore()}else d.save(),x(),d.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},h=this,p=0;p<i.length;p++)d(p);return qc.wxa&&dc(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),{finished:u,needsRefreshHover:c}},e.prototype._doPaintEl=function(e,t,n,r,i,o){var a=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(tM(a,e,i,o),e.setPrevPaintRect(s))}else tM(a,e,i,o)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=NA);var n=this._layers[e];return n||((n=new OA("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?oc(n,this._layerConfig[e],!0):this._layerConfig[e-zA]&&oc(n,this._layerConfig[e-zA],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(!n[e]&&function(e){return!!e&&(!!e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh)}(t)){if(i>0&&e>r[0]){for(s=0;s<i-1&&!(r[s]<e&&r[s+1]>e);s++);a=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1}),this._singleCanvas)for(var n=1;n<e.length;n++){if((s=e[n]).zlevel!==e[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var r,i,o=null,a=0;for(i=0;i<e.length;i++){var s,l=(s=e[i]).zlevel,u=void 0;r!==l&&(r=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?zA:0),this._needsManuallyCompositing),u.__builtin__||rc("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,t(i),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=i))}t(i),this.eachBuiltinLayer(function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,dc(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?oc(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===e||i===e+zA)oc(this._layers[i],n[e],!0)}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(lc(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=BT(i,0,r),t=BT(i,1,r),n.style.display="",this._width!==e||t!==this._height){for(var o in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(NA).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new OA("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;this.eachLayer(function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];tM(n,u,o,s===l-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const FA={DARK:{textColor:"#b3c3bc",axisColor:"#5b6f66",backgroundColor:"#27272a",splitLine:"#4c4c52"},LIGHT:{textColor:"#000",axisColor:"#000",backgroundColor:"#fff",splitLine:"#ddd"}},$A=e=>e&&!isNaN(new Date(e).getTime())?new Date(e).toLocaleString():"",WA=({charts:e,lines:t,scatterplot:n})=>t.map(({key:t,name:r})=>({symbolSize:4,type:n?"scatter":"line",name:r,data:e[t]})),jA={type:"value",boundaryGap:[0,"5%"]},VA=({splitAxis:e,yAxisLabels:t})=>!e||t&&!Array.isArray(t)?{...jA,...t?{name:t}:{}}:Array(2).fill(jA).map((e,n)=>({...e,...t?{name:t[n]}:{}})),HA=e=>new Date(e).toLocaleTimeString(),GA=({charts:e,title:t,lines:n,colors:r,chartValueFormatter:i,splitAxis:o,yAxisLabels:a,xAxis:s,grid:l,scatterplot:u})=>({title:{text:t},tooltip:{trigger:"axis",formatter:e=>Array.isArray(e)&&e.length>0&&e.some(e=>!!e.value)?e.reduce((e,{axisValue:t,color:n,seriesName:r,value:o},a)=>`\n ${0===a?$A(t):""}\n ${e}\n <br>\n <span style="color:${n};">\n ${r}: ${(({chartValueFormatter:e,value:t})=>e?e(t):Array.isArray(t)?t[1]:t)({chartValueFormatter:i,value:o})}\n </span>\n `,""):"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:HA}},grid:l||{left:60,right:40},yAxis:VA({splitAxis:o,yAxisLabels:a}),series:WA({charts:e,lines:n,scatterplot:u}),color:r,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}}),UA=e=>({symbol:"none",label:{formatter:e=>`Run #${e.dataIndex+1}`,padding:[0,0,8,0]},data:(e.markers||[]).map(e=>({xAxis:e}))});function XA({charts:e,title:t,lines:n,colors:r,chartValueFormatter:i,splitAxis:o,yAxisLabels:a,xAxis:s,grid:l,scatterplot:u,shouldReplaceMergeLines:c=!1,isDarkMode:d=!1}){const[h,p]=P.useState(null),f=P.useRef(null);return P.useEffect(()=>{if(!f.current)return;const c=function(e,t,n){var r=rI(e);if(r)return r;var i=new jM(e,t,n);return i.id="ec_"+eI++,QM[i.id]=i,Jg(e,nI,i.id),zM(i),uM.trigger("afterinit",i),i}(f.current);c.setOption(GA({charts:e,title:t,lines:n,colors:r,chartValueFormatter:i,splitAxis:o,yAxisLabels:a,xAxis:s,grid:l,scatterplot:u})),c.on("datazoom",(e=>t=>{const{batch:n}=t;if(!n)return;const[{start:r,startValue:i,end:o}]=n,a=r>0&&o<=100||i>0;e.setOption({dataZoom:[{type:"slider",show:a}]})})(c));const d=()=>{c.resize(),c.setOption({xAxis:{splitNumber:window.innerWidth<900?2:7}})};return window.addEventListener("resize",d),c.group="swarmCharts",function(e){if(vc(e)){var t=e;e=null,dc(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+tI++,dc(t,function(t){t.group=e})}JM[e]=!0}("swarmCharts"),p(c),()=>{!function(e){bc(e)?e=QM[e]:e instanceof jM||(e=rI(e)),e instanceof jM&&!e.isDisposed()&&e.dispose()}(c),window.removeEventListener("resize",d)}},[f]),P.useEffect(()=>{const t=n.every(({key:t})=>!!e[t]);h&&t&&h.setOption({series:n.map(({key:t,yAxisIndex:n,...r},i)=>({...r,data:e[t],...o?{yAxisIndex:n||i}:{},...0===i?{markLine:UA(e)}:{}}))})},[e,h,n]),P.useEffect(()=>{if(h){const{textColor:e,axisColor:t,backgroundColor:n,splitLine:r}=d?FA.DARK:FA.LIGHT;h.setOption({backgroundColor:n,textStyle:{color:e},title:{textStyle:{color:e}},legend:{icon:"circle",inactiveColor:e,textStyle:{color:e}},tooltip:{backgroundColor:n,textStyle:{color:e}},xAxis:{axisLine:{lineStyle:{color:t}}},yAxis:{axisLine:{lineStyle:{color:t}},splitLine:{lineStyle:{color:r}}}})}},[h,d]),P.useEffect(()=>{h&&h.setOption({series:WA({charts:e,lines:n,scatterplot:u})},c?{replaceMerge:["series"]}:void 0)},[n]),x.jsx("div",{ref:f,style:{width:"100%",height:"300px"}})}mI([function(e){e.registerChartView(HS),e.registerSeriesModel(rS),e.registerLayout({seriesType:"line",plan:kS(),reset:function(e){var t=e.getData(),n=e.coordinateSystem;if(e.pipelineContext,n){var r=hc(n.dimensions,function(e){return t.mapDimension(e)}).slice(0,2),i=r.length,o=t.getCalculationInfo("stackResultDimension");Fb(t,r[0])&&(r[0]=o),Fb(t,r[1])&&(r[1]=o);var a=t.getStore(),s=t.getDimensionIndex(r[0]),l=t.getDimensionIndex(r[1]);return i&&{progress:function(e,t){for(var r=gS((e.end-e.start)*i),o=[],u=[],c=e.start,d=0;c<e.end;c++){var h=void 0;if(1===i){var p=a.get(s,c);h=n.dataToPoint(p,null,u)}else o[0]=a.get(s,c),o[1]=a.get(l,c),h=n.dataToPoint(o,null,u);r[d++]=h[0],r[d++]=h[1]}t.setLayout("points",r)}}}}}),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),d=Math.abs(u[1]-u[0])*(c||1),h=Math.round(a/d);if(isFinite(h)&&h>1){"lttb"===i&&e.setData(r.lttbDownSample(r.mapDimension(l.dim),1/h));var p=void 0;bc(i)?p=GS[i]:xc(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(l.dim),1/h,p,US))}}}}}("line"))},function(e){e.registerComponentModel(hA),e.registerComponentView(pA)},function(e){mI(HD),e.registerComponentModel(GD),e.registerComponentView(lA),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Uc),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Uc)},function(e){mI(hD),mI(HD)},function(e){mI(CA),mI(EA)},function(e){e.registerPainter("canvas",BA)}]);const YA=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:B.percentilesToChart?B.percentilesToChart.map(e=>({name:100*e+"th percentile",key:`responseTimePercentile${e}`})):[],colors:["#ff9f00","#9966CC","#8A2BE2","#8E4585","#E0B0FF","#C8A2C8","#E6E6FA"]},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}],colors:["#0099ff"]}];function qA({charts:e,isDarkMode:t}){return YA.map((n,r)=>x.jsx(XA,{...n,charts:e,isDarkMode:t},`swarm-chart-${r}`))}function KA(e){return(100*e).toFixed(1)+"%"}function ZA({classRatio:e}){return x.jsx("ul",{children:Object.entries(e).map(([e,{ratio:t,tasks:n}])=>x.jsxs("li",{children:[`${KA(t)} ${e}`,n&&x.jsx(ZA,{classRatio:n})]},`nested-ratio-${e}`))})}function QA({ratios:{perClass:e,total:t}}){return e||t?x.jsxs("div",{children:[e&&x.jsxs(x.Fragment,{children:[x.jsx("h3",{children:"Ratio Per Class"}),x.jsx(ZA,{classRatio:e})]}),t&&x.jsxs(x.Fragment,{children:[x.jsx("h3",{children:"Total Ratio"}),x.jsx(ZA,{classRatio:t})]})]}):null}const JA="dark",eE="light",tE=localStorage.theme===JA||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?JA:eE,nE=No({palette:{mode:window.theme||tE,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"},p:{margin:0},ul:{paddingLeft:"16px"}}}}});const rE="dark"===(window.theme||tE),iE=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{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:"totalRps",title:"RPS",round:2},{key:"totalFailPerSec",title:"Failures/s",round:2}];function oE({locustfile:e,showDownloadLink:t,startTime:n,endTime:r,duration:i,charts:o,host:a,exceptionsStatistics:s,requestsStatistics:l,failuresStatistics:u,responseTimeStatistics:c,tasks:d}){return P.useEffect(()=>{document.title=window.templateArgs.profile?`Locust - ${window.templateArgs.profile}`:"Locust"},[]),x.jsxs(Yo,{theme:nE,children:[x.jsx(nl,{}),x.jsxs(qs,{maxWidth:"lg",sx:{my:4},children:[x.jsxs(Rs,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[x.jsx(bs,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),t&&x.jsx(Nl,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),x.jsxs(Rs,{sx:{my:2},children:[window.templateArgs.profile&&x.jsxs(Rs,{sx:{display:"flex",columnGap:.5},children:[x.jsx(bs,{fontWeight:600,children:"Profile:"}),x.jsx(bs,{children:window.templateArgs.profile})]}),x.jsxs(Rs,{sx:{display:"flex",columnGap:.5},children:[x.jsx(bs,{fontWeight:600,children:"During:"}),x.jsxs(bs,{children:[$A(n)," - ",$A(r)," (",i,")"]})]}),x.jsxs(Rs,{sx:{display:"flex",columnGap:.5},children:[x.jsx(bs,{fontWeight:600,children:"Target Host:"}),x.jsx(bs,{children:a||"None"})]}),x.jsxs(Rs,{sx:{display:"flex",columnGap:.5},children:[x.jsx(bs,{fontWeight:600,children:"Script:"}),x.jsx(bs,{children:e})]})]}),x.jsxs(Rs,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[x.jsxs(Rs,{children:[x.jsx(bs,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),x.jsx(Bu,{stats:l,tableStructure:iE})]}),!!c.length&&x.jsxs(Rs,{children:[x.jsx(bs,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),x.jsx(Ou,{responseTimes:c})]}),x.jsxs(Rs,{children:[x.jsx(bs,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),x.jsx(Eu,{errors:u})]}),!!s.length&&x.jsxs(Rs,{children:[x.jsx(bs,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),x.jsx(Du,{exceptions:s})]}),x.jsxs(Rs,{children:[x.jsx(bs,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),x.jsx(qA,{charts:o,isDarkMode:rE})]}),x.jsxs(Rs,{children:[x.jsx(bs,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),x.jsx(QA,{ratios:d})]})]})]})]})}I.createRoot(document.getElementById("root")).render(x.jsx(O,{fallbackRender:function({error:e}){return x.jsxs("div",{role:"alert",children:[x.jsx("p",{children:"Something went wrong"}),e.message&&x.jsx("pre",{style:{color:"red"},children:e.message}),"If the issue persists, please consider opening an"," ",x.jsx("a",{href:"https://github.com/locustio/locust/issues/new?assignees=&labels=bug&projects=&template=bug.yml",children:"issue"})]})},children:x.jsx(oE,{...$})}));</script>
|
144
|
+
***************************************************************************** */var Fu=function(e,t){return(Fu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function Vu(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Fu(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var $u="12px sans-serif";var Wu=function(e){var t={};if("undefined"==typeof JSON)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-20)/100;t[r]=i}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),Hu={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,r){if(!e){var i=Hu.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==r&&(t=e.font=r||$u),e.measureText(n);n=n||"";var o=/((?:\d+)?\.?\d*)px/.exec(r=r||$u),a=o&&+o[1]||12,s=0;if(r.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=Wu[n[l]];s+=null==u?a:u*a}return{width:s}}}(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},ju=pc(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),Gu=pc(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Uu=Object.prototype.toString,Xu=Array.prototype,Yu=Xu.forEach,Zu=Xu.filter,qu=Xu.slice,Ku=Xu.map,Qu=function(){}.constructor,Ju=Qu?Qu.prototype:null,ec="__proto__",tc=2311;function nc(){return tc++}function rc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!=typeof console&&console.error.apply(console,e)}function ic(e){if(null==e||"object"!=typeof e)return e;var t=e,n=Uu.call(e);if("[object Array]"===n){if(!Bc(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=ic(e[r])}}else if(Gu[n]){if(!Bc(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!ju[n]&&!Bc(e)&&!Mc(e))for(var a in t={},e)e.hasOwnProperty(a)&&a!==ec&&(t[a]=ic(e[a]));return t}function oc(e,t,n){if(!Sc(t)||!Sc(e))return n?ic(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==ec){var i=e[r],o=t[r];!Sc(o)||!Sc(i)||vc(o)||vc(i)||Mc(o)||Mc(i)||kc(o)||kc(i)||Bc(o)||Bc(i)?!n&&r in e||(e[r]=ic(t[r])):oc(i,o,n)}return e}function ac(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==ec&&(e[n]=t[n]);return e}function sc(e,t,n){for(var r=gc(t),i=0;i<r.length;i++){var o=r[i];null==e[o]&&(e[o]=t[o])}return e}function lc(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function uc(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&null==e[o]&&(e[o]=t[o])}else sc(e,t)}function cc(e){return!!e&&("string"!=typeof e&&"number"==typeof e.length)}function dc(e,t,n){if(e&&t)if(e.forEach&&e.forEach===Yu)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function hc(e,t,n){if(!e)return[];if(!t)return Ec(e);if(e.map&&e.map===Ku)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}function pc(e,t,n,r){if(e&&t){for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}}function fc(e,t,n){if(!e)return[];if(!t)return Ec(e);if(e.filter&&e.filter===Zu)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function gc(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}var mc=Ju&&xc(Ju.bind)?Ju.call.bind(Ju.bind):function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(qu.call(arguments)))}};function yc(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(qu.call(arguments)))}}function vc(e){return Array.isArray?Array.isArray(e):"[object Array]"===Uu.call(e)}function xc(e){return"function"==typeof e}function _c(e){return"string"==typeof e}function bc(e){return"[object String]"===Uu.call(e)}function wc(e){return"number"==typeof e}function Sc(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function kc(e){return!!ju[Uu.call(e)]}function Cc(e){return!!Gu[Uu.call(e)]}function Mc(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function Tc(e){return null!=e.colorStops}function Ic(e){return e!=e}function Pc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(null!=e[n])return e[n]}function Dc(e,t){return null!=e?e:t}function Ac(e,t,n){return null!=e?e:null!=t?t:n}function Ec(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return qu.apply(e,t)}function Rc(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function Oc(e,t){if(!e)throw new Error(t)}function Lc(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var zc="__ec_primitive__";function Nc(e){e[zc]=!0}function Bc(e){return e[zc]}var Fc=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return gc(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Vc="function"==typeof Map;var $c=function(){function e(t){var n=vc(t);this.data=Vc?new Map:new Fc;var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&dc(t,i)}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return Vc?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function Wc(e){return new $c(e)}function Hc(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&ac(n,t),n}function jc(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Gc(e,t){return e.hasOwnProperty(t)}function Uc(){}var Xc=180/Math.PI,Yc=function(){return function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}}(),Zc=new(function(){return function(){this.browser=new Yc,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="undefined"!=typeof window}}());"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(Zc.wxa=!0,Zc.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?Zc.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(Zc.node=!0,Zc.svgSupported=!0):function(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);t.svgSupported="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!=typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,Zc);var qc="___EC__COMPONENT__CONTAINER___",Kc="___EC__EXTENDED_CLASS___";function Qc(e){var t={main:"",sub:""};if(e){var n=e.split(".");t.main=n[0]||"",t.sub=n[1]||""}return t}function Jc(e,t){e.$constructor=e,e.extend=function(e){var t,n,r=this;return xc(n=r)&&/^class\s/.test(Function.prototype.toString.call(n))?t=function(e){function t(){return e.apply(this,arguments)||this}return Vu(t,e),t}(r):(t=function(){(e.$constructor||r).apply(this,arguments)},function(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}(t,this)),ac(t.prototype,e),t[Kc]=!0,t.extend=this.extend,t.superCall=nd,t.superApply=rd,t.superClass=r,t}}function ed(e,t){e.extend=t.extend}var td=Math.round(10*Math.random());function nd(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function rd(e,t,n){return this.superClass.prototype[t].apply(e,n)}function id(e){var t={};e.registerClass=function(e){var n,r=e.type||e.prototype.type;if(r){Oc(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),'componentType "'+n+'" illegal'),e.prototype.type=r;var i=Qc(r);if(i.sub){if(i.sub!==qc){var o=function(e){var n=t[e.main];n&&n[qc]||((n=t[e.main]={})[qc]=!0);return n}(i);o[i.sub]=e}}else t[i.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[qc]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return i},e.getClassesByMainType=function(e){var n=Qc(e),r=[],i=t[n.main];return i&&i[qc]?dc(i,function(e,t){t!==qc&&r.push(e)}):r.push(i),r},e.hasClass=function(e){var n=Qc(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return dc(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=Qc(e),r=t[n.main];return r&&r[qc]}}function od(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,i){for(var o={},a=0;a<e.length;a++){var s=e[a][1];if(!(r&&lc(r,s)>=0||i&&lc(i,s)<0)){var l=n.getShallow(s,t);null!=l&&(o[e[a][0]]=l)}}return o}}var ad=od([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),sd=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return ad(this,e,t)},e}(),ld=function(){return function(e){this.value=e}}(),ud=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new ld(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),cd=function(){function e(e){this._list=new ud,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(null==r[e]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}a?a.value=t:a=new ld(t),a.key=e,n.insertEntry(a),r[e]=a}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),dd=new cd(50);function hd(e){if("string"==typeof e){var t=dd.get(e);return t&&t.image}return e}function pd(e,t,n,r,i){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=dd.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?!gd(t=o.image)&&o.pending.push(a):((t=Hu.loadImage(e,fd,fd)).__zrImageSrc=e,dd.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}return e}return t}function fd(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function gd(e){return e&&e.width&&e.height}function md(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function yd(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function vd(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function xd(e,t,n,r){void 0===r&&(r=[0,0]);var i=t[0],o=t[2],a=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*c,e[1]=-i*c+s*d,e[2]=o*d+l*c,e[3]=-o*c+d*l,e[4]=d*(a-r[0])+c*(u-r[1])+r[0],e[5]=d*(u-r[1])-c*(a-r[0])+r[1],e}function _d(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}var bd=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),wd=Math.min,Sd=Math.max,kd=new bd,Cd=new bd,Md=new bd,Td=new bd,Id=new bd,Pd=new bd,Dd=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=wd(e.x,this.x),n=wd(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Sd(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Sd(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=[1,0,0,1,0,0];return vd(i,i,[-t.x,-t.y]),function(e,t,n){var r=n[0],i=n[1];e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i}(i,i,[n,r]),vd(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,d=t.y+t.height,h=!(o<l||u<i||s<c||d<a);if(n){var p=1/0,f=0,g=Math.abs(o-l),m=Math.abs(u-i),y=Math.abs(s-c),v=Math.abs(d-a),x=Math.min(g,m),_=Math.min(y,v);o<l||u<i?x>f&&(f=x,g<m?bd.set(Pd,-g,0):bd.set(Pd,m,0)):x<p&&(p=x,g<m?bd.set(Id,g,0):bd.set(Id,-m,0)),s<c||d<a?_>f&&(f=_,y<v?bd.set(Pd,0,-y):bd.set(Pd,0,v)):x<p&&(p=x,y<v?bd.set(Id,0,y):bd.set(Id,0,-v))}return n&&bd.copy(n,h?Id:Pd),h},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=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 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return t.x=n.x*i+a,t.y=n.y*o+s,t.width=n.width*i,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}kd.x=Md.x=n.x,kd.y=Td.y=n.y,Cd.x=Td.x=n.x+n.width,Cd.y=Md.y=n.y+n.height,kd.transform(r),Td.transform(r),Cd.transform(r),Md.transform(r),t.x=wd(kd.x,Cd.x,Md.x,Td.x),t.y=wd(kd.y,Cd.y,Md.y,Td.y);var l=Sd(kd.x,Cd.x,Md.x,Td.x),u=Sd(kd.y,Cd.y,Md.y,Td.y);t.width=l-t.x,t.height=u-t.y}else t!==n&&e.copy(t,n)},e}(),Ad={};function Ed(e,t){var n=Ad[t=t||$u];n||(n=Ad[t]=new cd(500));var r=n.get(e);return null==r&&(r=Hu.measureText(e,t).width,n.put(e,r)),r}function Rd(e,t,n,r){var i=Ed(e,t),o=Nd(t),a=Ld(0,i,n),s=zd(0,o,r);return new Dd(a,s,i,o)}function Od(e,t,n,r){var i=((e||"")+"").split("\n");if(1===i.length)return Rd(i[0],t,n,r);for(var o=new Dd(0,0,0,0),a=0;a<i.length;a++){var s=Rd(i[a],t,n,r);0===a?o.copy(s):o.union(s)}return o}function Ld(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function zd(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function Nd(e){return Ed("国",e)}function Bd(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Fd(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",d="top";if(r instanceof Array)l+=Bd(r[0],n.width),u+=Bd(r[1],n.height),c=null,d=null;else switch(r){case"left":l-=i,u+=s,c="right",d="middle";break;case"right":l+=i+a,u+=s,d="middle";break;case"top":l+=a/2,u-=i,c="center",d="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=i,u+=s,d="middle";break;case"insideRight":l+=a-i,u+=s,c="right",d="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",d="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,d="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",d="bottom"}return(e=e||{}).x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var Vd=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function $d(e,t,n,r,i){if(!t)return"";var o=(e+"").split("\n");i=Wd(t,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=Hd(o[a],i);return o.join("\n")}function Wd(e,t,n,r){var i=ac({},r=r||{});i.font=t,n=Dc(n,"..."),i.maxIterations=Dc(r.maxIterations,2);var o=i.minChar=Dc(r.minChar,0);i.cnCharWidth=Ed("国",t);var a=i.ascCharWidth=Ed("a",t);i.placeholder=Dc(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=a;l++)s-=a;var u=Ed(n,t);return u>s&&(n="",u=0),s=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function Hd(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var o=Ed(e,r);if(o<=n)return e;for(var a=0;;a++){if(o<=i||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?jd(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;o=Ed(e=e.substr(0,s),r)}return""===e&&(e=t.placeholder),e}function jd(e,t,n,r){for(var i=0,o=0,a=e.length;o<a&&i<t;o++){var s=e.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}var Gd=function(){return function(){}}(),Ud=function(){return function(e){this.tokens=[],e&&(this.tokens=e)}}(),Xd=function(){return function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}}();function Yd(e,t,n,r,i){var o,a,s=""===t,l=i&&n.rich[i]||{},u=e.lines,c=l.font||n.font,d=!1;if(r){var h=l.padding,p=h?h[1]+h[3]:0;if(null!=l.width&&"auto"!==l.width){var f=Bd(l.width,r.width)+p;u.length>0&&f+r.accumWidth>r.width&&(o=t.split("\n"),d=!0),r.accumWidth=f}else{var g=Kd(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=t.split("\n");for(var m=0;m<o.length;m++){var y=o[m],v=new Gd;if(v.styleName=i,v.text=y,v.isLineHolder=!y&&!s,"number"==typeof l.width?v.width=l.width:v.width=a?a[m]:Ed(y,c),m||d)u.push(new Ud([v]));else{var x=(u[u.length-1]||(u[0]=new Ud)).tokens,_=x.length;1===_&&x[0].isLineHolder?x[0]=v:(y||!_||s)&&x.push(v)}}}var Zd=pc(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function qd(e){return!function(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}(e)||!!Zd[e]}function Kd(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,d=0;d<e.length;d++){var h=e.charAt(d);if("\n"!==h){var p=Ed(h,t),f=!r&&!qd(h);(o.length?c+p>n:i+c+p>n)?c?(s||l)&&(f?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=h,s="",c=u+=p):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=h,c=p)):f?(o.push(l),a.push(u),l=h,u=p):(o.push(h),a.push(p)):(c+=p,f?(l+=h,u+=p):(l&&(s+=l,l="",u=0),s+=h))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}function Qd(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function Jd(e){return[e[0],e[1]]}function eh(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function th(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function nh(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function rh(e,t){var n=function(e){return Math.sqrt(function(e){return e[0]*e[0]+e[1]*e[1]}(e))}(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function ih(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var oh=ih;var ah=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function sh(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function lh(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function uh(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var ch=md;function dh(e){return e>5e-5||e<-5e-5}var hh=[],ph=[],fh=[1,0,0,1,0,0],gh=Math.abs,mh=function(){function e(){}var t;return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return dh(this.rotation)||dh(this.x)||dh(this.y)||dh(this.scaleX-1)||dh(this.scaleY-1)||dh(this.skewX)||dh(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||[1,0,0,1,0,0],t?this.getLocalTransform(n):ch(n),e&&(t?yd(n,e,n):function(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]}(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(ch(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(hh);var n=hh[0]<0?-1:1,r=hh[1]<0?-1:1,i=((hh[0]-n)*t+n)/hh[0]||0,o=((hh[1]-r)*t+r)/hh[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],_d(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||[1,0,0,1,0,0],yd(ph,e.invTransform,t),t=ph);var n=this.originX,r=this.originY;(n||r)&&(fh[4]=n,fh[5]=r,yd(ph,t,fh),ph[4]-=n,ph[5]-=r,t=ph),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&sh(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&sh(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&gh(e[0]-1)>1e-10&&gh(e[3]-1)>1e-10?Math.sqrt(gh(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){!function(e,t){for(var n=0;n<yh.length;n++){var r=yh[n];e[r]=t[r]}}(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,o=e.scaleY,a=e.anchorX,s=e.anchorY,l=e.rotation||0,u=e.x,c=e.y,d=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||r||a||s){var p=n+a,f=r+s;t[4]=-p*i-d*f*o,t[5]=-f*o-h*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=d*o,l&&xd(t,t,l),t[4]+=n+u,t[5]+=r+c,t},e.initDefaultProps=((t=e.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,void(t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0)),e}(),yh=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];var vh={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 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},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,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.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?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-vh.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?.5*vh.bounceIn(2*e):.5*vh.bounceOut(2*e-1)+.5}},xh=Math.pow,_h=Math.sqrt,bh=1e-4,wh=_h(3),Sh=1/3,kh=Qd(),Ch=Qd(),Mh=Qd();function Th(e){return e>-1e-8&&e<1e-8}function Ih(e){return e>1e-8||e<-1e-8}function Ph(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function Dh(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function Ah(e,t,n,r,i,o){var a=r+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-i,c=s*s-3*a*l,d=s*l-9*a*u,h=l*l-3*s*u,p=0;if(Th(c)&&Th(d)){if(Th(s))o[0]=0;else(k=-l/s)>=0&&k<=1&&(o[p++]=k)}else{var f=d*d-4*c*h;if(Th(f)){var g=d/c,m=-g/2;(k=-s/a+g)>=0&&k<=1&&(o[p++]=k),m>=0&&m<=1&&(o[p++]=m)}else if(f>0){var y=_h(f),v=c*s+1.5*a*(-d+y),x=c*s+1.5*a*(-d-y);(k=(-s-((v=v<0?-xh(-v,Sh):xh(v,Sh))+(x=x<0?-xh(-x,Sh):xh(x,Sh))))/(3*a))>=0&&k<=1&&(o[p++]=k)}else{var _=(2*c*s-3*a*d)/(2*_h(c*c*c)),b=Math.acos(_)/3,w=_h(c),S=Math.cos(b),k=(-s-2*w*S)/(3*a),C=(m=(-s+w*(S+wh*Math.sin(b)))/(3*a),(-s+w*(S-wh*Math.sin(b)))/(3*a));k>=0&&k<=1&&(o[p++]=k),m>=0&&m<=1&&(o[p++]=m),C>=0&&C<=1&&(o[p++]=C)}}return p}function Eh(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(Th(a)){if(Ih(o))(c=-s/o)>=0&&c<=1&&(i[l++]=c)}else{var u=o*o-4*a*s;if(Th(u))i[0]=-o/(2*a);else if(u>0){var c,d=_h(u),h=(-o-d)/(2*a);(c=(-o+d)/(2*a))>=0&&c<=1&&(i[l++]=c),h>=0&&h<=1&&(i[l++]=h)}}return l}function Rh(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,d=(c-u)*i+u;o[0]=e,o[1]=a,o[2]=u,o[3]=d,o[4]=d,o[5]=c,o[6]=l,o[7]=r}function Oh(e,t,n,r,i,o,a,s,l){for(var u=e,c=t,d=0,h=1/l,p=1;p<=l;p++){var f=p*h,g=Ph(e,n,i,a,f),m=Ph(t,r,o,s,f),y=g-u,v=m-c;d+=Math.sqrt(y*y+v*v),u=g,c=m}return d}function Lh(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function zh(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Nh(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function Bh(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function Fh(e,t,n,r,i,o,a){for(var s=e,l=t,u=0,c=1/a,d=1;d<=a;d++){var h=d*c,p=Lh(e,n,i,h),f=Lh(t,r,o,h),g=p-s,m=f-l;u+=Math.sqrt(g*g+m*m),s=p,l=f}return u}var Vh=/cubic-bezier\(([0-9,\.e ]+)\)/;function $h(e){var t=e&&Vh.exec(e);if(t){var n=t[1].split(","),r=+Lc(n[0]),i=+Lc(n[1]),o=+Lc(n[2]),a=+Lc(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(e){return e<=0?0:e>=1?1:Ah(0,r,o,1,e,s)&&Ph(0,i,a,1,s[0])}}}var Wh=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Uc,this.ondestroy=e.ondestroy||Uc,this.onrestart=e.onrestart||Uc,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=xc(e)?e:vh[e]||$h(e)},e}(),Hh={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 jh(e){return(e=Math.round(e))<0?0:e>255?255:e}function Gh(e){return e<0?0:e>1?1:e}function Uh(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?jh(parseFloat(t)/100*255):jh(parseInt(t,10))}function Xh(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?Gh(parseFloat(t)/100):Gh(parseFloat(t))}function Yh(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function Zh(e,t,n){return e+(t-e)*n}function qh(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Kh(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Qh=new cd(20),Jh=null;function ep(e,t){Jh&&Kh(Jh,t),Jh=Qh.put(e,Jh||t.slice())}function tp(e,t){if(e){t=t||[];var n=Qh.get(e);if(n)return Kh(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in Hh)return Kh(t,Hh[r]),ep(e,t),t;var i,o=r.length;if("#"===r.charAt(0))return 4===o||5===o?(i=parseInt(r.slice(1,4),16))>=0&&i<=4095?(qh(t,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===o?parseInt(r.slice(4),16)/15:1),ep(e,t),t):void qh(t,0,0,0,1):7===o||9===o?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(qh(t,(16711680&i)>>16,(65280&i)>>8,255&i,9===o?parseInt(r.slice(7),16)/255:1),ep(e,t),t):void qh(t,0,0,0,1):void 0;var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?qh(t,+u[0],+u[1],+u[2],1):qh(t,0,0,0,1);c=Xh(u.pop());case"rgb":return u.length>=3?(qh(t,Uh(u[0]),Uh(u[1]),Uh(u[2]),3===u.length?c:Xh(u[3])),ep(e,t),t):void qh(t,0,0,0,1);case"hsla":return 4!==u.length?void qh(t,0,0,0,1):(u[3]=Xh(u[3]),np(u,t),ep(e,t),t);case"hsl":return 3!==u.length?void qh(t,0,0,0,1):(np(u,t),ep(e,t),t);default:return}}qh(t,0,0,0,1)}}function np(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Xh(e[1]),i=Xh(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=2*i-o;return qh(t=t||[],jh(255*Yh(a,o,n+1/3)),jh(255*Yh(a,o,n)),jh(255*Yh(a,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function rp(e,t){var n=tp(e);if(n){for(var r=0;r<3;r++)n[r]=n[r]*(1-t)|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return ip(n,4===n.length?"rgba":"rgb")}}function ip(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function op(e,t){var n=tp(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var ap=new cd(100);function sp(e){if(_c(e)){var t=ap.get(e);return t||(t=rp(e,-.1),ap.put(e,t)),t}if(Tc(e)){var n=ac({},e);return n.colorStops=hc(e.colorStops,function(e){return{offset:e.offset,color:rp(e.color,-.1)}}),n}return e}Zc.hasGlobalWindow&&xc(window.btoa);var lp=Array.prototype.slice;function up(e,t,n){return(t-e)*n+e}function cp(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=up(t[o],n[o],r);return e}function dp(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+n[o]*r;return e}function hp(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*r}return e}function pp(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function fp(e,t,n){var r=e,i=t;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a)if(o>a)r.length=a;else for(var s=o;s<a;s++)r.push(1===n?i[s]:lp.call(i[s]));var l=r[0]&&r[0].length;for(s=0;s<r.length;s++)if(1===n)isNaN(r[s])&&(r[s]=i[s]);else for(var u=0;u<l;u++)isNaN(r[s][u])&&(r[s][u]=i[s][u])}}function gp(e){if(cc(e)){var t=e.length;if(cc(e[0])){for(var n=[],r=0;r<t;r++)n.push(lp.call(e[r]));return n}return lp.call(e)}return e}function mp(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]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function yp(e){return 4===e||5===e}function vp(e){return 1===e||2===e}var xp=[0,0,0,0],_p=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}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(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=6,s=t;if(cc(t)){var l=function(e){return cc(e&&e[0])?2:1}(t);a=l,(1===l&&!wc(t[0])||2===l&&!wc(t[0][0]))&&(o=!0)}else if(wc(t)&&!Ic(t))a=0;else if(_c(t))if(isNaN(+t)){var u=tp(t);u&&(s=u,a=3)}else a=0;else if(Tc(t)){var c=ac({},s);c.colorStops=hc(t.colorStops,function(e){return{offset:e.offset,color:tp(e.color)}}),"linear"===t.type?a=4:function(e){return"radial"===e.type}(t)&&(a=5),s=c}0===i?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=xc(n)?n:vh[n]||$h(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=vp(r),l=yp(r),u=0;u<i;u++){var c=n[u],d=c.value,h=o.value;c.percent=c.time/e,a||(s&&u!==i-1?fp(d,h,r):l&&pp(d.colorStops,h.colorStops))}if(!a&&5!==r&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;var p=n[0].value;for(u=0;u<i;u++)0===r?n[u].additiveValue=n[u].value-p:3===r?n[u].additiveValue=dp([],n[u].value,p,-1):vp(r)&&(n[u].additiveValue=1===r?dp([],n[u].value,p,-1):hp([],n[u].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,d=3===s,h=this._lastFr,p=Math.min;if(1===u)r=i=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=p(h+1,u-1);n>=0&&!(l[n].percent<=t);n--);n=p(n,u-2)}else{for(n=h;n<u&&!(l[n].percent>t);n++);n=p(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var f=i.percent-r.percent,g=0===f?1:p((t-r.percent)/f,1);i.easingFunc&&(g=i.easingFunc(g));var m=o?this._additiveValue:d?xp:e[c];if(!vp(s)&&!d||m||(m=this._additiveValue=[]),this.discrete)e[c]=g<1?r.rawValue:i.rawValue;else if(vp(s))1===s?cp(m,r[a],i[a],g):function(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=up(t[a][s],n[a][s],r)}}(m,r[a],i[a],g);else if(yp(s)){var y=r[a],v=i[a],x=4===s;e[c]={type:x?"linear":"radial",x:up(y.x,v.x,g),y:up(y.y,v.y,g),colorStops:hc(y.colorStops,function(e,t){var n=v.colorStops[t];return{offset:up(e.offset,n.offset,g),color:mp(cp([],e.color,n.color,g))}}),global:v.global},x?(e[c].x2=up(y.x2,v.x2,g),e[c].y2=up(y.y2,v.y2,g)):e[c].r=up(y.r,v.r,g)}else if(d)cp(m,r[a],i[a],g),o||(e[c]=mp(m));else{var _=up(r[a],i[a],g);o?this._additiveValue=_:e[c]=_}o&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;0===t?e[n]=e[n]+r:3===t?(tp(e[n],xp),dp(xp,xp,r,1),e[n]=mp(xp)):1===t?dp(e[n],e[n],r,1):2===t&&hp(e[n],e[n],r,1)},e}(),bp=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?rc("Can' use additive animation on looped animation."):(this._additiveAnimators=r,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(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,gc(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new _p(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,d=c[c.length-1];l=d&&d.value,3===u.valType&&l&&(l=mp(l))}else l=this._target[a];if(null==l)continue;e>0&&s.addKeyframe(0,gp(l),r),this._trackKeys.push(a)}s.addKeyframe(e,gp(t[a]),r)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(t._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var d=new Wh({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(t._target,e);var a=t._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return hc(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(e[i]=gp(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||gc(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),wp=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof t&&(r=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var a=0;a<i[e].length;a++)if(i[e][a].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[e].length-1,u=i[e][l];return u&&u.callAtLast?i[e].splice(l,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=t[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(e,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,t[0]);break;case 2:u.h.call(a,t[0],t[1]);break;default:u.h.apply(a,t.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}(),Sp=1;Zc.hasGlobalWindow&&(Sp=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var kp=Sp,Cp="#333",Mp="#ccc",Tp="__zr_normal__",Ip=yh.concat(["ignore"]),Pp=pc(yh,function(e,t){return e[t]=!0,e},{ignore:!1}),Dp={},Ap=new Dd(0,0,0,0),Ep=function(){function e(e){this.id=nc(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,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(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(t),null!=n.position){var u=Ap;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Dp,n,u):Fd(Dp,n,u),i.x=Dp.x,i.y=Dp.y,o=Dp.align,a=Dp.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var d=void 0,h=void 0;"center"===c?(d=.5*u.width,h=.5*u.height):(d=Bd(c[0],u.width),h=Bd(c[1],u.height)),l=!0,i.originX=-i.x+d+(r?0:u.x),i.originY=-i.y+h+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],l||(i.originX=-p[0],i.originY=-p[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,v=void 0;f&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(m),v=!0)):(m=n.outsideFill,y=n.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(m),v=!0)),(m=m||"#000")===g.fill&&y===g.stroke&&v===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=m,g.stroke=y,g.autoStroke=v,g.align=o,g.verticalAlign=a,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Mp:Cp},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&tp(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,ip(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},ac(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(Sc(e))for(var n=gc(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==Tp)){var o=r.targetName,a=o?t[o]:t;r.saveTo(a)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Ip)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null==e[i]||i in t||(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(Tp,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===Tp;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!(lc(o,e)>=0)||!t&&1!==o.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||(s=this.states&&this.states[e]),s||i){i||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(e,t,n,l),c&&c.useState(e,t,n,l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}rc("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,o=e.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(e[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(e,t,d),g&&g.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=lc(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=lc(r,e),o=lc(r,t)>=0;i>=0?o?r.splice(i,1):r[i]=t:n&&!o&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r<e.length;r++){var i=e[r];ac(n,i),i.textConfig&&ac(t=t||{},i.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,o){var a=!(t&&r);t&&t.textConfig?(this.textConfig=ac({},r?this.textConfig:n.textConfig),ac(this.textConfig,t.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Ip.length;u++){var c=Ip[u],d=i&&Pp[c];t&&null!=t[c]?d?(l=!0,s[c]=t[c]):this[c]=t[c]:a&&null!=n[c]&&(d?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(u=0;u<this.animators.length;u++){var h=this.animators[u],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(t||n)[p]:t||n)}l&&this._transitionState(e,s,o)},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new mh,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),ac(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=e?this[e]:this,i=new bp(r,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=lc(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];e&&e!==a.scope?i.push(a):a.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){Rp(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Rp(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=Rp(this,t,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;function n(e,n,r,i){function o(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}Object.defineProperty(t,e,{get:function(){this[n]||o(this,this[n]=[]);return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,o(this,e)}})}t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function Rp(e,t,n,r,i){var o=[];zp(e,"",e,t,n=n||{},r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},d=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(e,t){n.during(t)});for(var h=0;h<o.length;h++){var p=o[h];c&&p.done(c),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function Op(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Lp(e,t,n){if(cc(t[n]))if(cc(e[n])||(e[n]=[]),Cc(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),Op(e[n],t[n],r))}else{var i=t[n],o=e[n],a=i.length;if(cc(i[0]))for(var s=i[0].length,l=0;l<a;l++)o[l]?Op(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else Op(o,i,a);o.length=i.length}else e[n]=t[n]}function zp(e,t,n,r,i,o,a,s){for(var l=gc(r),u=i.duration,c=i.delay,d=i.additive,h=i.setToFinal,p=!Sc(o),f=e.animators,g=[],m=0;m<l.length;m++){var y=l[m],v=r[y];if(null!=v&&null!=n[y]&&(p||o[y]))if(!Sc(v)||cc(v)||Tc(v))g.push(y);else{if(t){s||(n[y]=v,e.updateDuringAnimation(t));continue}zp(e,y,n[y],v,i,o&&o[y],a,s)}else s||(n[y]=v,e.updateDuringAnimation(t),g.push(y))}var x=g.length;if(!d&&x)for(var _=0;_<f.length;_++){if((w=f[_]).targetName===t)if(w.stopTracks(g)){var b=lc(f,w);f.splice(b,1)}}if(i.force||(g=fc(g,function(e){return t=r[e],i=n[e],!(t===i||cc(t)&&cc(i)&&function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}(t,i));var t,i}),x=g.length),x>0||i.force&&!a.length){var w,S=void 0,k=void 0,C=void 0;if(s){k={},h&&(S={});for(_=0;_<x;_++){k[y=g[_]]=n[y],h?S[y]=r[y]:n[y]=r[y]}}else if(h){C={};for(_=0;_<x;_++){C[y=g[_]]=gp(n[y]),Lp(n,r,y)}}(w=new bp(n,!1,!1,d?fc(f,function(e){return e.targetName===t}):null)).targetName=t,i.scope&&(w.scope=i.scope),h&&S&&w.whenWithKeys(0,S,g),C&&w.whenWithKeys(0,C,g),w.whenWithKeys(null==u?500:u,s?k:r,g).delay(c||0),e.addAnimator(w,t),a.push(w)}}uc(Ep,wp),uc(Ep,mh);var Np="__zr_style_"+Math.round(10*Math.random()),Bp={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Fp={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Bp[Np]=!0;var Vp=["z","z2","invisible"],$p=["invisible"],Wp=function(e){function t(t){return e.call(this,t)||this}var n;return Vu(t,e),t.prototype._init=function(t){for(var n=gc(t),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(e,t,n){Hp.copy(e.getBoundingRect()),e.transform&&Hp.applyTransform(e.transform);return jp.width=t,jp.height=n,!Hp.intersect(jp)}(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new Dd(0,0,0,0)),t?Dd.applyTransform(e,n,t):e.copy(n),(i||o||a)&&(e.width+=2*i+Math.abs(o),e.height+=2*i+Math.abs(a),e.x=Math.min(e.x,e.x+o-i),e.y=Math.min(e.y,e.y+a-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Dd(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:ac(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Hc(Bp,e)},t.prototype.useStyle=function(e){e[Np]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Np]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Vp)},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=gc(u),d=0;d<c.length;d++){(p=c[d])in s&&(s[p]=s[p],this.style[p]=u[p])}var h=gc(s);for(d=0;d<h.length;d++){var p=h[d];this.style[p]=this.style[p]}this._transitionState(t,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?$p:Vp;for(d=0;d<f.length;d++){p=f[d];n&&null!=n[p]?this[p]=n[p]:l&&null!=r[p]&&(this[p]=r[p])}},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,t){return ac(e,t),e},t.prototype.getAnimationStyleProps=function(){return Fp},t.initDefaultProps=((n=t.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=3)),t}(Ep),Hp=new Dd(0,0,0,0),jp=new Dd(0,0,0,0);var Gp=Math.min,Up=Math.max,Xp=Math.sin,Yp=Math.cos,Zp=2*Math.PI,qp=Qd(),Kp=Qd(),Qp=Qd();function Jp(e,t,n,r,i,o){i[0]=Gp(e,n),i[1]=Gp(t,r),o[0]=Up(e,n),o[1]=Up(t,r)}var ef=[],tf=[];function nf(e,t,n,r,i,o,a,s,l,u){var c=Eh,d=Ph,h=c(e,n,i,a,ef);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<h;p++){var f=d(e,n,i,a,ef[p]);l[0]=Gp(f,l[0]),u[0]=Up(f,u[0])}h=c(t,r,o,s,tf);for(p=0;p<h;p++){var g=d(t,r,o,s,tf[p]);l[1]=Gp(g,l[1]),u[1]=Up(g,u[1])}l[0]=Gp(e,l[0]),u[0]=Up(e,u[0]),l[0]=Gp(a,l[0]),u[0]=Up(a,u[0]),l[1]=Gp(t,l[1]),u[1]=Up(t,u[1]),l[1]=Gp(s,l[1]),u[1]=Up(s,u[1])}function rf(e,t,n,r,i,o,a,s){var l=Nh,u=Lh,c=Up(Gp(l(e,n,i),1),0),d=Up(Gp(l(t,r,o),1),0),h=u(e,n,i,c),p=u(t,r,o,d);a[0]=Gp(e,i,h),a[1]=Gp(t,o,p),s[0]=Up(e,i,h),s[1]=Up(t,o,p)}function of(e,t,n,r,i,o,a,s,l){var u=lh,c=uh,d=Math.abs(i-o);if(d%Zp<1e-4&&d>1e-4)return s[0]=e-n,s[1]=t-r,l[0]=e+n,void(l[1]=t+r);if(qp[0]=Yp(i)*n+e,qp[1]=Xp(i)*r+t,Kp[0]=Yp(o)*n+e,Kp[1]=Xp(o)*r+t,u(s,qp,Kp),c(l,qp,Kp),(i%=Zp)<0&&(i+=Zp),(o%=Zp)<0&&(o+=Zp),i>o&&!a?o+=Zp:i<o&&a&&(i+=Zp),a){var h=o;o=i,i=h}for(var p=0;p<o;p+=Math.PI/2)p>i&&(Qp[0]=Yp(p)*n+e,Qp[1]=Xp(p)*r+t,u(s,Qp,s),c(l,Qp,l))}var af={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},sf=[],lf=[],uf=[],cf=[],df=[],hf=[],pf=Math.min,ff=Math.max,gf=Math.cos,mf=Math.sin,yf=Math.abs,vf=Math.PI,xf=2*vf,_f="undefined"!=typeof Float32Array,bf=[];function wf(e){return Math.round(e/vf*1e8)/1e8%2*vf}var Sf=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}var t;return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){(n=n||0)>0&&(this._ux=yf(n/kp/e)||0,this._uy=yf(n/kp/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},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(e,t){return this._drawPendingPt(),this.addData(af.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=yf(e-this._xi),r=yf(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(af.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){return this._drawPendingPt(),this.addData(af.C,e,t,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(af.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,o){this._drawPendingPt(),bf[0]=r,bf[1]=i,function(e,t){var n=wf(e[0]);n<0&&(n+=xf);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=xf?i=n+xf:t&&n-i>=xf?i=n-xf:!t&&n>i?i=n+(xf-wf(n-i)):t&&n<i&&(i=n-(xf-wf(i-n))),e[0]=n,e[1]=i}(bf,o),r=bf[0];var a=(i=bf[1])-r;return this.addData(af.A,e,t,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,o),this._xi=gf(i)*n+e,this._yi=mf(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(af.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(af.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!_f||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();_f&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<t;i++)for(var o=e[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},e.prototype.addData=function(e,t,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},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 e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,_f&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){uf[0]=uf[1]=df[0]=df[1]=Number.MAX_VALUE,cf[0]=cf[1]=hf[0]=hf[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,i=0,o=0;for(e=0;e<this._len;){var a=t[e++],s=1===e;switch(s&&(i=n=t[e],o=r=t[e+1]),a){case af.M:n=i=t[e++],r=o=t[e++],df[0]=i,df[1]=o,hf[0]=i,hf[1]=o;break;case af.L:Jp(n,r,t[e],t[e+1],df,hf),n=t[e++],r=t[e++];break;case af.C:nf(n,r,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],df,hf),n=t[e++],r=t[e++];break;case af.Q:rf(n,r,t[e++],t[e++],t[e],t[e+1],df,hf),n=t[e++],r=t[e++];break;case af.A:var l=t[e++],u=t[e++],c=t[e++],d=t[e++],h=t[e++],p=t[e++]+h;e+=1;var f=!t[e++];s&&(i=gf(h)*c+l,o=mf(h)*d+u),of(l,u,c,d,h,p,f,df,hf),n=gf(p)*c+l,r=mf(p)*d+u;break;case af.R:Jp(i=n=t[e++],o=r=t[e++],i+t[e++],o+t[e++],df,hf);break;case af.Z:n=i,r=o}lh(uf,uf,df),uh(cf,cf,hf)}return 0===e&&(uf[0]=uf[1]=cf[0]=cf[1]=0),new Dd(uf[0],uf[1],cf[0]-uf[0],cf[1]-uf[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,d=0;d<t;){var h=e[d++],p=1===d;p&&(a=i=e[d],s=o=e[d+1]);var f=-1;switch(h){case af.M:i=a=e[d++],o=s=e[d++];break;case af.L:var g=e[d++],m=(x=e[d++])-o;(yf(P=g-i)>n||yf(m)>r||d===t-1)&&(f=Math.sqrt(P*P+m*m),i=g,o=x);break;case af.C:var y=e[d++],v=e[d++],x=(g=e[d++],e[d++]),_=e[d++],b=e[d++];f=Oh(i,o,y,v,g,x,_,b,10),i=_,o=b;break;case af.Q:f=Fh(i,o,y=e[d++],v=e[d++],g=e[d++],x=e[d++],10),i=g,o=x;break;case af.A:var w=e[d++],S=e[d++],k=e[d++],C=e[d++],M=e[d++],T=e[d++],I=T+M;d+=1,p&&(a=gf(M)*k+w,s=mf(M)*C+S),f=ff(k,C)*pf(xf,Math.abs(T)),i=gf(I)*k+w,o=mf(I)*C+S;break;case af.R:a=i=e[d++],s=o=e[d++],f=2*e[d++]+2*e[d++];break;case af.Z:var P=a-i;m=s-o;f=Math.sqrt(P*P+m*m),i=a,o=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},e.prototype.rebuildPath=function(e,t){var n,r,i,o,a,s,l,u,c,d,h=this.data,p=this._ux,f=this._uy,g=this._len,m=t<1,y=0,v=0,x=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=t*this._pathLen))e:for(var _=0;_<g;){var b=h[_++],w=1===_;switch(w&&(n=i=h[_],r=o=h[_+1]),b!==af.L&&x>0&&(e.lineTo(c,d),x=0),b){case af.M:n=i=h[_++],r=o=h[_++],e.moveTo(i,o);break;case af.L:a=h[_++],s=h[_++];var S=yf(a-i),k=yf(s-o);if(S>p||k>f){if(m){if(y+(Y=l[v++])>u){var C=(u-y)/Y;e.lineTo(i*(1-C)+a*C,o*(1-C)+s*C);break e}y+=Y}e.lineTo(a,s),i=a,o=s,x=0}else{var M=S*S+k*k;M>x&&(c=a,d=s,x=M)}break;case af.C:var T=h[_++],I=h[_++],P=h[_++],D=h[_++],A=h[_++],E=h[_++];if(m){if(y+(Y=l[v++])>u){Rh(i,T,P,A,C=(u-y)/Y,sf),Rh(o,I,D,E,C,lf),e.bezierCurveTo(sf[1],lf[1],sf[2],lf[2],sf[3],lf[3]);break e}y+=Y}e.bezierCurveTo(T,I,P,D,A,E),i=A,o=E;break;case af.Q:T=h[_++],I=h[_++],P=h[_++],D=h[_++];if(m){if(y+(Y=l[v++])>u){Bh(i,T,P,C=(u-y)/Y,sf),Bh(o,I,D,C,lf),e.quadraticCurveTo(sf[1],lf[1],sf[2],lf[2]);break e}y+=Y}e.quadraticCurveTo(T,I,P,D),i=P,o=D;break;case af.A:var R=h[_++],O=h[_++],L=h[_++],z=h[_++],N=h[_++],B=h[_++],F=h[_++],V=!h[_++],$=L>z?L:z,W=yf(L-z)>.001,H=N+B,j=!1;if(m)y+(Y=l[v++])>u&&(H=N+B*(u-y)/Y,j=!0),y+=Y;if(W&&e.ellipse?e.ellipse(R,O,L,z,F,N,H,V):e.arc(R,O,$,N,H,V),j)break e;w&&(n=gf(N)*L+R,r=mf(N)*z+O),i=gf(H)*L+R,o=mf(H)*z+O;break;case af.R:n=i=h[_],r=o=h[_+1],a=h[_++],s=h[_++];var G=h[_++],U=h[_++];if(m){if(y+(Y=l[v++])>u){var X=u-y;e.moveTo(a,s),e.lineTo(a+pf(X,G),s),(X-=G)>0&&e.lineTo(a+G,s+pf(X,U)),(X-=U)>0&&e.lineTo(a+ff(G-X,0),s+U),(X-=G)>0&&e.lineTo(a,s+ff(U-X,0));break e}y+=Y}e.rect(a,s,G,U);break;case af.Z:if(m){var Y;if(y+(Y=l[v++])>u){C=(u-y)/Y;e.lineTo(i*(1-C)+n*C,o*(1-C)+r*C);break e}y+=Y}e.closePath(),i=n,o=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=af,e.initDefaultProps=((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,void(t._version=0)),e}();function kf(e,t,n,r,i,o,a){if(0===i)return!1;var s=i,l=0;if(a>t+s&&a>r+s||a<t-s&&a<r-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e===n)return Math.abs(o-e)<=s/2;var u=(l=(t-r)/(e-n))*o-a+(e*r-n*t)/(e-n);return u*u/(l*l+1)<=s/2*s/2}function Cf(e,t,n,r,i,o,a,s,l,u,c){if(0===l)return!1;var d=l;if(c>t+d&&c>r+d&&c>o+d&&c>s+d||c<t-d&&c<r-d&&c<o-d&&c<s-d||u>e+d&&u>n+d&&u>i+d&&u>a+d||u<e-d&&u<n-d&&u<i-d&&u<a-d)return!1;var h=function(e,t,n,r,i,o,a,s,l,u){var c,d,h,p,f,g=.005,m=1/0;kh[0]=l,kh[1]=u;for(var y=0;y<1;y+=.05)Ch[0]=Ph(e,n,i,a,y),Ch[1]=Ph(t,r,o,s,y),(p=ah(kh,Ch))<m&&(c=y,m=p);m=1/0;for(var v=0;v<32&&!(g<bh);v++)d=c-g,h=c+g,Ch[0]=Ph(e,n,i,a,d),Ch[1]=Ph(t,r,o,s,d),p=ah(Ch,kh),d>=0&&p<m?(c=d,m=p):(Mh[0]=Ph(e,n,i,a,h),Mh[1]=Ph(t,r,o,s,h),f=ah(Mh,kh),h<=1&&f<m?(c=h,m=f):g*=.5);return _h(m)}(e,t,n,r,i,o,a,s,u,c);return h<=d/2}function Mf(e,t,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;if(l>t+u&&l>r+u&&l>o+u||l<t-u&&l<r-u&&l<o-u||s>e+u&&s>n+u&&s>i+u||s<e-u&&s<n-u&&s<i-u)return!1;var c=function(e,t,n,r,i,o,a,s){var l,u=.005,c=1/0;kh[0]=a,kh[1]=s;for(var d=0;d<1;d+=.05)Ch[0]=Lh(e,n,i,d),Ch[1]=Lh(t,r,o,d),(g=ah(kh,Ch))<c&&(l=d,c=g);c=1/0;for(var h=0;h<32&&!(u<bh);h++){var p=l-u,f=l+u;Ch[0]=Lh(e,n,i,p),Ch[1]=Lh(t,r,o,p);var g=ah(Ch,kh);if(p>=0&&g<c)l=p,c=g;else{Mh[0]=Lh(e,n,i,f),Mh[1]=Lh(t,r,o,f);var m=ah(Mh,kh);f<=1&&m<c?(l=f,c=m):u*=.5}}return _h(c)}(e,t,n,r,i,o,s,l);return c<=u/2}var Tf=2*Math.PI;function If(e){return(e%=Tf)<0&&(e+=Tf),e}var Pf=2*Math.PI;function Df(e,t,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%Pf<1e-4)return!0;if(o){var d=r;r=If(i),i=If(d)}else r=If(r),i=If(i);r>i&&(i+=Pf);var h=Math.atan2(l,s);return h<0&&(h+=Pf),h>=r&&h<=i||h+Pf>=r&&h+Pf<=i}function Af(e,t,n,r,i,o){if(o>t&&o>r||o<t&&o<r)return 0;if(r===t)return 0;var a=(o-t)/(r-t),s=r<t?1:-1;1!==a&&0!==a||(s=r<t?.5:-.5);var l=a*(n-e)+e;return l===i?1/0:l>i?s:0}var Ef=Sf.CMD,Rf=2*Math.PI;var Of=[-1,-1,-1],Lf=[-1,-1];function zf(){var e=Lf[0];Lf[0]=Lf[1],Lf[1]=e}function Nf(e,t,n,r,i,o,a,s,l,u){if(u>t&&u>r&&u>o&&u>s||u<t&&u<r&&u<o&&u<s)return 0;var c=Ah(t,r,o,s,u,Of);if(0===c)return 0;for(var d=0,h=-1,p=void 0,f=void 0,g=0;g<c;g++){var m=Of[g],y=0===m||1===m?.5:1;Ph(e,n,i,a,m)<l||(h<0&&(h=Eh(t,r,o,s,Lf),Lf[1]<Lf[0]&&h>1&&zf(),p=Ph(t,r,o,s,Lf[0]),h>1&&(f=Ph(t,r,o,s,Lf[1]))),2===h?m<Lf[0]?d+=p<t?y:-y:m<Lf[1]?d+=f<p?y:-y:d+=s<f?y:-y:m<Lf[0]?d+=p<t?y:-y:d+=s<p?y:-y)}return d}function Bf(e,t,n,r,i,o,a,s){if(s>t&&s>r&&s>o||s<t&&s<r&&s<o)return 0;var l=function(e,t,n,r,i){var o=e-2*t+n,a=2*(t-e),s=e-r,l=0;if(Th(o))Ih(a)&&(c=-s/a)>=0&&c<=1&&(i[l++]=c);else{var u=a*a-4*o*s;if(Th(u))(c=-a/(2*o))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,d=_h(u),h=(-a-d)/(2*o);(c=(-a+d)/(2*o))>=0&&c<=1&&(i[l++]=c),h>=0&&h<=1&&(i[l++]=h)}}return l}(t,r,o,s,Of);if(0===l)return 0;var u=Nh(t,r,o);if(u>=0&&u<=1){for(var c=0,d=Lh(t,r,o,u),h=0;h<l;h++){var p=0===Of[h]||1===Of[h]?.5:1;Lh(e,n,i,Of[h])<a||(Of[h]<u?c+=d<t?p:-p:c+=o<d?p:-p)}return c}p=0===Of[0]||1===Of[0]?.5:1;return Lh(e,n,i,Of[0])<a?0:o<t?p:-p}function Ff(e,t,n,r,i,o,a,s){if((s-=t)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Of[0]=-l,Of[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Rf-1e-4){r=0,i=Rf;var c=o?1:-1;return a>=Of[0]+e&&a<=Of[1]+e?c:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=Rf,i+=Rf);for(var h=0,p=0;p<2;p++){var f=Of[p];if(f+e>a){var g=Math.atan2(s,f);c=o?1:-1;g<0&&(g=Rf+g),(g>=r&&g<=i||g+Rf>=r&&g+Rf<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),h+=c)}}return h}function Vf(e,t,n,r,i){for(var o,a,s,l,u=e.data,c=e.len(),d=0,h=0,p=0,f=0,g=0,m=0;m<c;){var y=u[m++],v=1===m;switch(y===Ef.M&&m>1&&(n||(d+=Af(h,p,f,g,r,i))),v&&(f=h=u[m],g=p=u[m+1]),y){case Ef.M:h=f=u[m++],p=g=u[m++];break;case Ef.L:if(n){if(kf(h,p,u[m],u[m+1],t,r,i))return!0}else d+=Af(h,p,u[m],u[m+1],r,i)||0;h=u[m++],p=u[m++];break;case Ef.C:if(n){if(Cf(h,p,u[m++],u[m++],u[m++],u[m++],u[m],u[m+1],t,r,i))return!0}else d+=Nf(h,p,u[m++],u[m++],u[m++],u[m++],u[m],u[m+1],r,i)||0;h=u[m++],p=u[m++];break;case Ef.Q:if(n){if(Mf(h,p,u[m++],u[m++],u[m],u[m+1],t,r,i))return!0}else d+=Bf(h,p,u[m++],u[m++],u[m],u[m+1],r,i)||0;h=u[m++],p=u[m++];break;case Ef.A:var x=u[m++],_=u[m++],b=u[m++],w=u[m++],S=u[m++],k=u[m++];m+=1;var C=!!(1-u[m++]);o=Math.cos(S)*b+x,a=Math.sin(S)*w+_,v?(f=o,g=a):d+=Af(h,p,o,a,r,i);var M=(r-x)*w/b+x;if(n){if(Df(x,_,w,S,S+k,C,t,M,i))return!0}else d+=Ff(x,_,w,S,S+k,C,M,i);h=Math.cos(S+k)*b+x,p=Math.sin(S+k)*w+_;break;case Ef.R:if(f=h=u[m++],g=p=u[m++],o=f+u[m++],a=g+u[m++],n){if(kf(f,g,o,g,t,r,i)||kf(o,g,o,a,t,r,i)||kf(o,a,f,a,t,r,i)||kf(f,a,f,g,t,r,i))return!0}else d+=Af(o,g,o,a,r,i),d+=Af(f,a,f,g,r,i);break;case Ef.Z:if(n){if(kf(h,p,f,g,t,r,i))return!0}else d+=Af(h,p,f,g,r,i);h=f,p=g}}return n||(s=p,l=g,Math.abs(s-l)<1e-4)||(d+=Af(h,p,f,g,r,i)||0),0!==d}var $f=sc({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Bp),Wf={style:sc({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Fp.style)},Hf=yh.concat(["invisible","culling","z","z2","zlevel","parent"]),jf=function(e){function t(t){return e.call(this,t)||this}var n;return Vu(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<Hf.length;++s)i[Hf[s]]=this[Hf[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=gc(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=t[o];"style"===o?this.style?ac(this.style,a):this.useStyle(a):"shape"===o?ac(this.shape,a):e.prototype.attrKV.call(this,o,a)}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 e=this.style.fill;if("none"!==e){if(_c(e)){var t=op(e,0);return t>.5?Cp:t>.2?"#eee":Mp}if(e)return Mp}return Cp},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(_c(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())===op(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Sf(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||4&this.__dirty)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(e,t,n,r){return Vf(e,t,!0,n,r)}(o,a/s,e,t)))return!0}if(this.hasFill())return function(e,t,n){return Vf(e,0,!1,t,n)}(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:ac(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(4&this.__dirty)},t.prototype.createStyle=function(e){return Hc($f,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=ac({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=ac({},r.shape),ac(s,n.shape)):(s=ac({},i?this.shape:r.shape),ac(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=ac({},this.shape);for(var u={},c=gc(s),d=0;d<c.length;d++){var h=c[d];"object"==typeof s[h]?this.shape[h]=s[h]:u[h]=s[h]}this._transitionState(t,{shape:u},a)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return Wf},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return Vu(n,t),n.prototype.getDefaultStyle=function(){return ic(e.style)},n.prototype.getDefaultShape=function(){return ic(e.shape)},n}(t);for(var r in e)"function"==typeof e[r]&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=((n=t.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=7)),t}(Wp),Gf=sc({strokeFirst:!0,font:$u,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},$f),Uf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vu(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return Hc(Gf,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=Od(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(Wp);Uf.prototype.type="tspan";var Xf=sc({x:0,y:0},Bp),Yf={style:sc({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Fp.style)};var Zf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vu(t,e),t.prototype.createStyle=function(e){return Hc(Xf,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r,i=(r=t.image)&&"string"!=typeof r&&r.width&&r.height?t.image:this.__image;if(!i)return 0;var o="width"===e?"height":"width",a=t[o];return null==a?i[e]:i[e]/i[o]*a},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Yf},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Dd(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Wp);Zf.prototype.type="image";var qf=Math.round;function Kf(e,t,n){if(t){var r=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=r,e.x2=i,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s?(qf(2*r)===qf(2*i)&&(e.x1=e.x2=Jf(r,s,!0)),qf(2*o)===qf(2*a)&&(e.y1=e.y2=Jf(o,s,!0)),e):e}}function Qf(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,a=t.height;e.x=r,e.y=i,e.width=o,e.height=a;var s=n&&n.lineWidth;return s?(e.x=Jf(r,s,!0),e.y=Jf(i,s,!0),e.width=Math.max(Jf(r+o,s,!1)-e.x,0===o?0:1),e.height=Math.max(Jf(i+a,s,!1)-e.y,0===a?0:1),e):e}}function Jf(e,t,n){if(!t)return e;var r=qf(2*e);return(r+qf(t))%2==0?r/2:(r+(n?1:-1))/2}var eg=function(){return function(){this.x=0,this.y=0,this.width=0,this.height=0}}(),tg={},ng=function(e){function t(t){return e.call(this,t)||this}return Vu(t,e),t.prototype.getDefaultShape=function(){return new eg},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var a=Qf(tg,t,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=t.r,t=a}else n=t.x,r=t.y,i=t.width,o=t.height;t.r?function(e,t){var n,r,i,o,a,s=t.x,l=t.y,u=t.width,c=t.height,d=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof d?n=r=i=o=d:d instanceof Array?1===d.length?n=r=i=o=d[0]:2===d.length?(n=i=d[0],r=o=d[1]):3===d.length?(n=d[0],r=o=d[1],i=d[2]):(n=d[0],r=d[1],i=d[2],o=d[3]):n=r=i=o=0,n+r>u&&(n*=u/(a=n+r),r*=u/a),i+o>u&&(i*=u/(a=i+o),o*=u/a),r+i>c&&(r*=c/(a=r+i),i*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-r,l),0!==r&&e.arc(s+u-r,l+r,r,-Math.PI/2,0),e.lineTo(s+u,l+c-i),0!==i&&e.arc(s+u-i,l+c-i,i,0,Math.PI/2),e.lineTo(s+o,l+c),0!==o&&e.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(e,t):e.rect(n,r,i,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(jf);ng.prototype.type="rect";var rg={fill:"#000"},ig={style:sc({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},Fp.style)},og=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=rg,n.attr(t),n}return Vu(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];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 t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,dg(e=this.style),dc(e.rich,dg),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);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 e=new Dd(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var o=t[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(e.copy(a),e.applyTransform(s),(r=r||e.clone()).union(e)):(r=r||a.clone()).union(a)}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||rg},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return ac(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=gc(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},ac(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return ig},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||$u,n=e.padding,r=function(e,t){null!=e&&(e+="");var n,r=t.overflow,i=t.padding,o=t.font,a="truncate"===r,s=Nd(o),l=Dc(t.lineHeight,s),u=!!t.backgroundColor,c="truncate"===t.lineOverflow,d=t.width,h=(n=null==d||"break"!==r&&"breakAll"!==r?e?e.split("\n"):[]:e?Kd(e,t.font,d,"breakAll"===r,0).lines:[]).length*l,p=Dc(t.height,h);if(h>p&&c){var f=Math.floor(p/l);n=n.slice(0,f)}if(e&&a&&null!=d)for(var g=Wd(d,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m=0;m<n.length;m++)n[m]=Hd(n[m],g);var y=p,v=0;for(m=0;m<n.length;m++)v=Math.max(Ed(n[m],o),v);null==d&&(d=v);var x=v;return i&&(y+=i[0]+i[2],x+=i[1]+i[3],d+=i[1]+i[3]),u&&(x=d),{lines:n,height:p,outerWidth:x,outerHeight:y,lineHeight:l,calculatedLineHeight:s,contentWidth:v,contentHeight:h,width:d}}(gg(e),e),i=mg(e),o=!!e.backgroundColor,a=r.outerHeight,s=r.outerWidth,l=r.contentWidth,u=r.lines,c=r.lineHeight,d=this._defaultStyle,h=e.x||0,p=e.y||0,f=e.align||d.align||"left",g=e.verticalAlign||d.verticalAlign||"top",m=h,y=zd(p,r.contentHeight,g);if(i||n){var v=Ld(h,s,f),x=zd(p,a,g);i&&this._renderBackground(e,e,v,x,s,a)}y+=c/2,n&&(m=fg(h,f,n),"top"===g?y+=n[0]:"bottom"===g&&(y-=n[2]));for(var _=0,b=!1,w=(pg("fill"in e?e.fill:(b=!0,d.fill))),S=(hg("stroke"in e?e.stroke:o||d.autoStroke&&!b?null:(_=2,d.stroke))),k=e.textShadowBlur>0,C=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),M=r.calculatedLineHeight,T=0;T<u.length;T++){var I=this._getOrCreateChild(Uf),P=I.createStyle();I.useStyle(P),P.text=u[T],P.x=m,P.y=y,P.textAlign=f,P.textBaseline="middle",P.opacity=e.opacity,P.strokeFirst=!0,k&&(P.shadowBlur=e.textShadowBlur||0,P.shadowColor=e.textShadowColor||"transparent",P.shadowOffsetX=e.textShadowOffsetX||0,P.shadowOffsetY=e.textShadowOffsetY||0),P.stroke=S,P.fill=w,S&&(P.lineWidth=e.lineWidth||_,P.lineDash=e.lineDash,P.lineDashOffset=e.lineDashOffset||0),P.font=t,cg(P,e),y+=c,C&&I.setBoundingRect(new Dd(Ld(P.x,e.width,P.textAlign),zd(P.y,M,P.textBaseline),l,M))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n=new Xd;if(null!=e&&(e+=""),!e)return n;for(var r,i=t.width,o=t.height,a=t.overflow,s="break"!==a&&"breakAll"!==a||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===a},l=Vd.lastIndex=0;null!=(r=Vd.exec(e));){var u=r.index;u>l&&Yd(n,e.substring(l,u),t,s),Yd(n,r[2],t,s,r[1]),l=Vd.lastIndex}l<e.length&&Yd(n,e.substring(l,e.length),t,s);var c=[],d=0,h=0,p=t.padding,f="truncate"===a,g="truncate"===t.lineOverflow;function m(e,t,n){e.width=t,e.lineHeight=n,d+=n,h=Math.max(h,t)}e:for(var y=0;y<n.lines.length;y++){for(var v=n.lines[y],x=0,_=0,b=0;b<v.tokens.length;b++){var w=(E=v.tokens[b]).styleName&&t.rich[E.styleName]||{},S=E.textPadding=w.padding,k=S?S[1]+S[3]:0,C=E.font=w.font||t.font;E.contentHeight=Nd(C);var M=Dc(w.height,E.contentHeight);if(E.innerHeight=M,S&&(M+=S[0]+S[2]),E.height=M,E.lineHeight=Ac(w.lineHeight,t.lineHeight,M),E.align=w&&w.align||t.align,E.verticalAlign=w&&w.verticalAlign||"middle",g&&null!=o&&d+E.lineHeight>o){b>0?(v.tokens=v.tokens.slice(0,b),m(v,_,x),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break e}var T=w.width,I=null==T||"auto"===T;if("string"==typeof T&&"%"===T.charAt(T.length-1))E.percentWidth=T,c.push(E),E.contentWidth=Ed(E.text,C);else{if(I){var P=w.backgroundColor,D=P&&P.image;D&&gd(D=hd(D))&&(E.width=Math.max(E.width,D.width*M/D.height))}var A=f&&null!=i?i-_:null;null!=A&&A<E.width?!I||A<k?(E.text="",E.width=E.contentWidth=0):(E.text=$d(E.text,A-k,C,t.ellipsis,{minChar:t.truncateMinChar}),E.width=E.contentWidth=Ed(E.text,C)):E.contentWidth=Ed(E.text,C)}E.width+=k,_+=E.width,w&&(x=Math.max(x,E.lineHeight))}m(v,_,x)}for(n.outerWidth=n.width=Dc(i,h),n.outerHeight=n.height=Dc(o,d),n.contentHeight=d,n.contentWidth=h,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]),y=0;y<c.length;y++){var E,R=(E=c[y]).percentWidth;E.width=parseInt(R,10)/100*n.width}return n}(gg(e),e),n=t.width,r=t.outerWidth,i=t.outerHeight,o=e.padding,a=e.x||0,s=e.y||0,l=this._defaultStyle,u=e.align||l.align,c=e.verticalAlign||l.verticalAlign,d=Ld(a,r,u),h=zd(s,i,c),p=d,f=h;o&&(p+=o[3],f+=o[0]);var g=p+n;mg(e)&&this._renderBackground(e,e,d,h,r,i);for(var m=!!e.backgroundColor,y=0;y<t.lines.length;y++){for(var v=t.lines[y],x=v.tokens,_=x.length,b=v.lineHeight,w=v.width,S=0,k=p,C=g,M=_-1,T=void 0;S<_&&(!(T=x[S]).align||"left"===T.align);)this._placeToken(T,e,b,f,k,"left",m),w-=T.width,k+=T.width,S++;for(;M>=0&&"right"===(T=x[M]).align;)this._placeToken(T,e,b,f,C,"right",m),w-=T.width,C-=T.width,M--;for(k+=(n-(k-p)-(g-C)-w)/2;S<=M;)T=x[S],this._placeToken(T,e,b,f,k+T.width/2,"center",m),k+=T.width,S++;f+=b}},t.prototype._placeToken=function(e,t,n,r,i,o,a){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,u=r+n/2;"top"===l?u=r+e.height/2:"bottom"===l&&(u=r+n-e.height/2),!e.isLineHolder&&mg(s)&&this._renderBackground(s,t,"right"===o?i-e.width:"center"===o?i-e.width/2:i,u-e.height/2,e.width,e.height);var c=!!s.backgroundColor,d=e.textPadding;d&&(i=fg(i,o,d),u-=e.height/2-d[0]-e.innerHeight/2);var h=this._getOrCreateChild(Uf),p=h.createStyle();h.useStyle(p);var f=this._defaultStyle,g=!1,m=0,y=pg("fill"in s?s.fill:"fill"in t?t.fill:(g=!0,f.fill)),v=hg("stroke"in s?s.stroke:"stroke"in t?t.stroke:c||a||f.autoStroke&&!g?null:(m=2,f.stroke)),x=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=u,x&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=e.font||$u,p.opacity=Ac(s.opacity,t.opacity,1),cg(p,s),v&&(p.lineWidth=Ac(s.lineWidth,t.lineWidth,m),p.lineDash=Dc(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=v),y&&(p.fill=y);var _=e.contentWidth,b=e.contentHeight;h.setBoundingRect(new Dd(Ld(p.x,_,p.textAlign),zd(p.y,b,p.textBaseline),_,b))},t.prototype._renderBackground=function(e,t,n,r,i,o){var a,s,l,u=e.backgroundColor,c=e.borderWidth,d=e.borderColor,h=u&&u.image,p=u&&!h,f=e.borderRadius,g=this;if(p||e.lineHeight||c&&d){(a=this._getOrCreateChild(ng)).useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=n,m.y=r,m.width=i,m.height=o,m.r=f,a.dirtyShape()}if(p)(l=a.style).fill=u||null,l.fillOpacity=Dc(e.fillOpacity,1);else if(h){(s=this._getOrCreateChild(Zf)).onload=function(){g.dirtyStyle()};var y=s.style;y.image=u.image,y.x=n,y.y=r,y.width=i,y.height=o}c&&d&&((l=a.style).lineWidth=c,l.stroke=d,l.strokeOpacity=Dc(e.strokeOpacity,1),l.lineDash=e.borderDash,l.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var v=(a||s).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||"transparent",v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=Ac(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return function(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}(e)&&(t=[e.fontStyle,e.fontWeight,ug(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Lc(t)||e.textFont||e.font},t}(Wp),ag={left:!0,right:1,center:1},sg={top:1,bottom:1,middle:1},lg=["fontStyle","fontWeight","fontSize","fontFamily"];function ug(e){return"string"!=typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?"12px":e+"px":e}function cg(e,t){for(var n=0;n<lg.length;n++){var r=lg[n],i=t[r];null!=i&&(e[r]=i)}}function dg(e){if(e){e.font=og.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||ag[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||sg[n]?n:"top",e.padding&&(e.padding=Rc(e.padding))}}function hg(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function pg(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function fg(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function gg(e){var t=e.text;return null!=t&&(t+=""),t}function mg(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}function yg(e,t,n,r){var i=t[0],o=t[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*u+a}function vg(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return _c(e)?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function xg(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function _g(e){return e.sort(function(e,t){return e-t}),e}function bg(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return function(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}(e)}function wg(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function Sg(e,t){var n=Math.max(bg(e),bg(t)),r=e+t;return n>20?r:xg(r,n)}function kg(e){var t=2*Math.PI;return(e%t+t)%t}function Cg(e){return e>-1e-4&&e<1e-4}var Mg=/^(?:(\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 Tg(e){if(e instanceof Date)return e;if(_c(e)){var t=Mg.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}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)}return null==e?new Date(NaN):new Date(Math.round(e))}function Ig(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function Pg(e,t){var n=Ig(e),r=Math.pow(10,n),i=e/r;return e=(i<1.5?1:i<2.5?2:i<4?3:i<7?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function Dg(e){var t=parseFloat(e);return t==e&&(0!==t||!_c(e)||e.indexOf("x")<=0)?t:NaN}function Ag(){return Math.round(9*Math.random())}function Eg(e,t){return 0===t?e:Eg(t,e%t)}function Rg(e,t){return null==e?t:null==t?e:e*t/Eg(e,t)}function Og(e){throw new Error(e)}function Lg(e,t,n){return(t-e)*n+e}var zg="series\0",Ng="\0_ec_\0";function Bg(e){return e instanceof Array?e:null==e?[]:[e]}function Fg(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var Vg=["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 $g(e){return!Sc(e)||vc(e)||e instanceof Date?e:e.value}function Wg(e){return Sc(e)&&!(e instanceof Array)}function Hg(e,t,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;e=e||[],t=(t||[]).slice();var a=Wc();dc(t,function(e,n){Sc(e)||(t[n]=null)});var s,l,u=function(e,t,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<e.length;i++){var o=e[i];o&&null!=o.id&&t.set(o.id,i),r.push({existing:"replaceMerge"===n||Yg(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(e,a,n);return(r||i)&&function(e,t,n,r){dc(r,function(i,o){if(i&&null!=i.id){var a=Gg(i.id),s=n.get(a);if(null!=s){var l=e[s];Oc(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=t[s],r[o]=null}}})}(u,e,a,t),r&&function(e,t){dc(t,function(n,r){if(n&&null!=n.name)for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(null==o.id||null==n.id)&&!Yg(n)&&!Yg(o)&&jg("name",o,n))return e[i].newOption=n,void(t[r]=null)}})}(u,t),r||i?function(e,t,n){dc(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||Yg(r.existing)||r.existing&&null!=t.id&&!jg("id",t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}(u,t,i):o&&function(e,t){dc(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}(u,t),s=u,l=Wc(),dc(s,function(e){var t=e.existing;t&&l.set(t.id,e)}),dc(s,function(e){var t=e.newOption;Oc(!t||null==t.id||!l.get(t.id)||l.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&l.set(t.id,e),!e.keyInfo&&(e.keyInfo={})}),dc(s,function(e,t){var n=e.existing,r=e.newOption,i=e.keyInfo;if(Sc(r)){if(i.name=null!=r.name?Gg(r.name):n?n.name:zg+t,n)i.id=Gg(n.id);else if(null!=r.id)i.id=Gg(r.id);else{var o=0;do{i.id="\0"+i.name+"\0"+o++}while(l.get(i.id))}l.set(i.id,e)}}),u}function jg(e,t,n){var r=Ug(t[e],null),i=Ug(n[e],null);return null!=r&&null!=i&&r===i}function Gg(e){return Ug(e,"")}function Ug(e,t){return null==e?t:_c(e)?e:wc(e)||bc(e)?e+"":t}function Xg(e){var t=e.name;return!(!t||!t.indexOf(zg))}function Yg(e){return e&&null!=e.id&&0===Gg(e.id).indexOf(Ng)}function Zg(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?vc(t.dataIndex)?hc(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?vc(t.name)?hc(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function qg(){var e="__ec_inner_"+Kg++;return function(t){return t[e]||(t[e]={})}}var Kg=Ag();function Qg(e,t,n){var r=Jg(t,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=n?n.defaultMainType:null;return!i&&s&&o.set(s,{}),o.each(function(t,r){var i=nm(e,r,t,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[r+"Models"]=i.models,a[r+"Model"]=i.models[0]}),a}function Jg(e,t){var n;if(_c(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var i=Wc(),o={},a=!1;return dc(n,function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(t&&t.includeMainTypes&&lc(t.includeMainTypes,s)<0))a=a||!!s,(i.get(s)||i.set(s,{}))[l]=e}else o[n]=e}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var em={useDefault:!0,enableAll:!1,enableNone:!1},tm={useDefault:!1,enableAll:!0,enableNone:!0};function nm(e,t,n,r){r=r||em;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return"none"===i||!1===i?(Oc(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(Oc(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=e.queryComponents({mainType:t,index:i,id:o,name:a}),s)}function rm(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}var im=qg(),om=1,am={},sm=qg(),lm=qg(),um=["emphasis","blur","select"],cm=["normal","emphasis","blur","select"],dm="highlight",hm="downplay",pm="select",fm="unselect",gm="toggleSelect";function mm(e){return null!=e&&"none"!==e}function ym(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function vm(e){ym(e,"emphasis",2)}function xm(e){2===e.hoverState&&ym(e,"normal",0)}function _m(e){ym(e,"blur",1)}function bm(e){1===e.hoverState&&ym(e,"normal",0)}function wm(e){e.selected=!0}function Sm(e){e.selected=!1}function km(e,t,n){t(e,n)}function Cm(e,t,n){km(e,t,n),e.isGroup&&e.traverse(function(e){km(e,t,n)})}function Mm(e,t){switch(t){case"emphasis":e.hoverState=2;break;case"normal":e.hoverState=0;break;case"blur":e.hoverState=1;break;case"select":e.selected=!0}}function Tm(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,r){var i=n&&lc(n,"select")>=0,o=!1;if(e instanceof jf){var a=sm(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(mm(s)||mm(l)){var u=(r=r||{}).style||{};"inherit"===u.fill?(o=!0,r=ac({},r),(u=ac({},u)).fill=s):!mm(u.fill)&&mm(s)?(o=!0,r=ac({},r),(u=ac({},u)).fill=sp(s)):!mm(u.stroke)&&mm(l)&&(o||(r=ac({},r),u=ac({},u)),u.stroke=sp(l)),r.style=u}}if(r&&null==r.z2){o||(r=ac({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(null!=c?c:10)}return r}(this,0,t,n);if("blur"===e)return function(e,t,n){var r=lc(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:function(e,t,n,r){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,t)}return o}(e,["opacity"],t,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=ac({},n),a=ac({opacity:r?i:.1*o.opacity},a),n.style=a),n}(this,e,n);if("select"===e)return function(e,t,n){if(n&&null==n.z2){n=ac({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:9)}return n}(this,0,n)}return n}function Im(e){e.stateProxy=Tm;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Tm),n&&(n.stateProxy=Tm)}function Pm(e,t){!zm(e,t)&&!e.__highByOuter&&Cm(e,vm)}function Dm(e,t){!zm(e,t)&&!e.__highByOuter&&Cm(e,xm)}function Am(e,t){e.__highByOuter|=1<<(t||0),Cm(e,vm)}function Em(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Cm(e,xm)}function Rm(e){Cm(e,bm)}function Om(e){Cm(e,wm)}function Lm(e){Cm(e,Sm)}function zm(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Nm(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var o=lm(i),a="series"===t,s=a?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse(function(e){bm(e)}),a&&n.push(i)),o.isBlured=!1}),dc(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Bm(e,t,n,r){var i=r.getModel();function o(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&Rm(r)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var a=i.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(e){var i=a===e,u=e.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!i||"coordinateSystem"===n&&!(u&&s?u===s:i)||"series"===t&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&"self"===t||_m(e)}),cc(t))o(e.getData(),t);else if(Sc(t))for(var c=gc(t),d=0;d<c.length;d++)o(e.getData(c[d]),t[c[d]]);l.push(e),lm(e).isBlured=!0}}),i.eachComponent(function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}})}}function Fm(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){lm(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(e){_m(e)})}}}function Vm(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return i;var o=r.getModel().getComponent(e,t);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===im(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function $m(e){dc(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?Om(t):Lm(t)})})}function Wm(e){var t=[];return e.eachSeries(function(e){dc(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:e.seriesIndex};null!=r&&(o.dataType=r),t.push(o)}})}),t}function Hm(e,t,n){Ym(e,!0),Cm(e,Im),function(e,t,n){var r=im(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}(e,t,n)}function jm(e,t,n,r){r?function(e){Ym(e,!1)}(e):Hm(e,t,n)}var Gm=["emphasis","blur","select"],Um={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Xm(e,t,n,r){n=n||"itemStyle";for(var i=0;i<Gm.length;i++){var o=Gm[i],a=t.getModel([o,n]);e.ensureState(o).style=a[Um[n]]()}}function Ym(e,t){var n=!1===t,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Zm(e){return!(!e||!e.__highDownDispatcher)}function qm(e){var t=e.type;return t===pm||t===fm||t===gm}function Km(e){var t=e.type;return t===dm||t===hm}var Qm=Sf.CMD,Jm=[[],[],[]],ey=Math.sqrt,ty=Math.atan2;var ny=Math.sqrt,ry=Math.sin,iy=Math.cos,oy=Math.PI;function ay(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function sy(e,t){return(e[0]*t[0]+e[1]*t[1])/(ay(e)*ay(t))}function ly(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(sy(e,t))}function uy(e,t,n,r,i,o,a,s,l,u,c){var d=l*(oy/180),h=iy(d)*(e-n)/2+ry(d)*(t-r)/2,p=-1*ry(d)*(e-n)/2+iy(d)*(t-r)/2,f=h*h/(a*a)+p*p/(s*s);f>1&&(a*=ny(f),s*=ny(f));var g=(i===o?-1:1)*ny((a*a*(s*s)-a*a*(p*p)-s*s*(h*h))/(a*a*(p*p)+s*s*(h*h)))||0,m=g*a*p/s,y=g*-s*h/a,v=(e+n)/2+iy(d)*m-ry(d)*y,x=(t+r)/2+ry(d)*m+iy(d)*y,_=ly([1,0],[(h-m)/a,(p-y)/s]),b=[(h-m)/a,(p-y)/s],w=[(-1*h-m)/a,(-1*p-y)/s],S=ly(b,w);if(sy(b,w)<=-1&&(S=oy),sy(b,w)>=1&&(S=0),S<0){var k=Math.round(S/oy*1e6)/1e6;S=2*oy+k%2*oy}c.addData(u,v,x,a,s,_,S,d,o)}var cy=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,dy=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var hy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vu(t,e),t.prototype.applyTransform=function(e){},t}(jf);function py(e){return null!=e.setData}function fy(e,t){var n=function(e){var t=new Sf;if(!e)return t;var n,r=0,i=0,o=r,a=i,s=Sf.CMD,l=e.match(cy);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],d=c.charAt(0),h=void 0,p=c.match(dy)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);for(var m=0;m<f;){var y=void 0,v=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,k=r,C=i,M=void 0,T=void 0;switch(d){case"l":r+=p[m++],i+=p[m++],h=s.L,t.addData(h,r,i);break;case"L":r=p[m++],i=p[m++],h=s.L,t.addData(h,r,i);break;case"m":r+=p[m++],i+=p[m++],h=s.M,t.addData(h,r,i),o=r,a=i,d="l";break;case"M":r=p[m++],i=p[m++],h=s.M,t.addData(h,r,i),o=r,a=i,d="L";break;case"h":r+=p[m++],h=s.L,t.addData(h,r,i);break;case"H":r=p[m++],h=s.L,t.addData(h,r,i);break;case"v":i+=p[m++],h=s.L,t.addData(h,r,i);break;case"V":i=p[m++],h=s.L,t.addData(h,r,i);break;case"C":h=s.C,t.addData(h,p[m++],p[m++],p[m++],p[m++],p[m++],p[m++]),r=p[m-2],i=p[m-1];break;case"c":h=s.C,t.addData(h,p[m++]+r,p[m++]+i,p[m++]+r,p[m++]+i,p[m++]+r,p[m++]+i),r+=p[m-2],i+=p[m-1];break;case"S":y=r,v=i,M=t.len(),T=t.data,n===s.C&&(y+=r-T[M-4],v+=i-T[M-3]),h=s.C,k=p[m++],C=p[m++],r=p[m++],i=p[m++],t.addData(h,y,v,k,C,r,i);break;case"s":y=r,v=i,M=t.len(),T=t.data,n===s.C&&(y+=r-T[M-4],v+=i-T[M-3]),h=s.C,k=r+p[m++],C=i+p[m++],r+=p[m++],i+=p[m++],t.addData(h,y,v,k,C,r,i);break;case"Q":k=p[m++],C=p[m++],r=p[m++],i=p[m++],h=s.Q,t.addData(h,k,C,r,i);break;case"q":k=p[m++]+r,C=p[m++]+i,r+=p[m++],i+=p[m++],h=s.Q,t.addData(h,k,C,r,i);break;case"T":y=r,v=i,M=t.len(),T=t.data,n===s.Q&&(y+=r-T[M-4],v+=i-T[M-3]),r=p[m++],i=p[m++],h=s.Q,t.addData(h,y,v,r,i);break;case"t":y=r,v=i,M=t.len(),T=t.data,n===s.Q&&(y+=r-T[M-4],v+=i-T[M-3]),r+=p[m++],i+=p[m++],h=s.Q,t.addData(h,y,v,r,i);break;case"A":x=p[m++],_=p[m++],b=p[m++],w=p[m++],S=p[m++],uy(k=r,C=i,r=p[m++],i=p[m++],w,S,x,_,b,h=s.A,t);break;case"a":x=p[m++],_=p[m++],b=p[m++],w=p[m++],S=p[m++],uy(k=r,C=i,r+=p[m++],i+=p[m++],w,S,x,_,b,h=s.A,t)}}"z"!==d&&"Z"!==d||(h=s.Z,t.addData(h),r=o,i=a),n=h}return t.toStatic(),t}(e),r=ac({},t);return r.buildPath=function(e){if(py(e)){e.setData(n.data),(t=e.getContext())&&e.rebuildPath(t,1)}else{var t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){!function(e,t){if(t){var n,r,i,o,a,s,l=e.data,u=e.len(),c=Qm.M,d=Qm.C,h=Qm.L,p=Qm.R,f=Qm.A,g=Qm.Q;for(i=0,o=0;i<u;){switch(n=l[i++],o=i,r=0,n){case c:case h:r=1;break;case d:r=3;break;case g:r=2;break;case f:var m=t[4],y=t[5],v=ey(t[0]*t[0]+t[1]*t[1]),x=ey(t[2]*t[2]+t[3]*t[3]),_=ty(-t[1]/x,t[0]/v);l[i]*=v,l[i++]+=m,l[i]*=x,l[i++]+=y,l[i++]*=v,l[i++]*=x,l[i++]+=_,l[i++]+=_,o=i+=2;break;case p:s[0]=l[i++],s[1]=l[i++],sh(s,s,t),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],sh(s,s,t),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var b=Jm[a];b[0]=l[i++],b[1]=l[i++],sh(b,b,t),l[o++]=b[0],l[o++]=b[1]}}e.increaseVersion()}}(n,e),this.dirtyShape()},r}var gy=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return Vu(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=lc(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=lc(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new Dd(0,0,0,0),n=e||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(Dd.applyTransform(t,s,l),(i=i||t.clone()).union(t)):(i=i||s.clone()).union(s)}}return i||t},t}(Ep);gy.prototype.type="group";var my=function(){return function(){this.cx=0,this.cy=0,this.r=0}}(),yy=function(e){function t(t){return e.call(this,t)||this}return Vu(t,e),t.prototype.getDefaultShape=function(){return new my},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(jf);yy.prototype.type="circle";var vy=function(){return function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}}(),xy=function(e){function t(t){return e.call(this,t)||this}return Vu(t,e),t.prototype.getDefaultShape=function(){return new vy},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,o=t.rx,a=t.ry,s=o*n,l=a*n;e.moveTo(r-o,i),e.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),e.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),e.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),e.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),e.closePath()},t}(jf);xy.prototype.type="ellipse";var _y=Math.PI,by=2*_y,wy=Math.sin,Sy=Math.cos,ky=Math.acos,Cy=Math.atan2,My=Math.abs,Ty=Math.sqrt,Iy=Math.max,Py=Math.min,Dy=1e-4;function Ay(e,t,n,r,i,o,a){var s=e-n,l=t-r,u=(a?o:-o)/Ty(s*s+l*l),c=u*l,d=-u*s,h=e+c,p=t+d,f=n+c,g=r+d,m=(h+f)/2,y=(p+g)/2,v=f-h,x=g-p,_=v*v+x*x,b=i-o,w=h*g-f*p,S=(x<0?-1:1)*Ty(Iy(0,b*b*_-w*w)),k=(w*x-v*S)/_,C=(-w*v-x*S)/_,M=(w*x+v*S)/_,T=(-w*v+x*S)/_,I=k-m,P=C-y,D=M-m,A=T-y;return I*I+P*P>D*D+A*A&&(k=M,C=T),{cx:k,cy:C,x0:-c,y0:-d,x1:k*(i/b-1),y1:C*(i/b-1)}}function Ey(e,t){var n,r=Iy(t.r,0),i=Iy(t.r0||0,0),o=r>0;if(o||i>0){if(o||(r=i,i=0),i>r){var a=r;r=i,i=a}var s=t.startAngle,l=t.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=t.cx,c=t.cy,d=!!t.clockwise,h=My(l-s),p=h>by&&h%by;if(p>Dy&&(h=p),r>Dy)if(h>by-Dy)e.moveTo(u+r*Sy(s),c+r*wy(s)),e.arc(u,c,r,s,l,!d),i>Dy&&(e.moveTo(u+i*Sy(l),c+i*wy(l)),e.arc(u,c,i,l,s,d));else{var f=void 0,g=void 0,m=void 0,y=void 0,v=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,k=void 0,C=void 0,M=void 0,T=void 0,I=void 0,P=void 0,D=r*Sy(s),A=r*wy(s),E=i*Sy(l),R=i*wy(l),O=h>Dy;if(O){var L=t.cornerRadius;L&&(f=(n=function(e){var t;if(vc(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}(L))[0],g=n[1],m=n[2],y=n[3]);var z=My(r-i)/2;if(v=Py(z,m),x=Py(z,y),_=Py(z,f),b=Py(z,g),k=w=Iy(v,x),C=S=Iy(_,b),(w>Dy||S>Dy)&&(M=r*Sy(l),T=r*wy(l),I=i*Sy(s),P=i*wy(s),h<_y)){var N=function(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,d=s-o,h=d*l-c*u;if(!(h*h<Dy))return[e+(h=(c*(t-o)-d*(e-i))/h)*l,t+h*u]}(D,A,I,P,M,T,E,R);if(N){var B=D-N[0],F=A-N[1],V=M-N[0],$=T-N[1],W=1/wy(ky((B*V+F*$)/(Ty(B*B+F*F)*Ty(V*V+$*$)))/2),H=Ty(N[0]*N[0]+N[1]*N[1]);k=Py(w,(r-H)/(W+1)),C=Py(S,(i-H)/(W-1))}}}if(O)if(k>Dy){var j=Py(m,k),G=Py(y,k),U=Ay(I,P,D,A,r,j,d),X=Ay(M,T,E,R,r,G,d);e.moveTo(u+U.cx+U.x0,c+U.cy+U.y0),k<w&&j===G?e.arc(u+U.cx,c+U.cy,k,Cy(U.y0,U.x0),Cy(X.y0,X.x0),!d):(j>0&&e.arc(u+U.cx,c+U.cy,j,Cy(U.y0,U.x0),Cy(U.y1,U.x1),!d),e.arc(u,c,r,Cy(U.cy+U.y1,U.cx+U.x1),Cy(X.cy+X.y1,X.cx+X.x1),!d),G>0&&e.arc(u+X.cx,c+X.cy,G,Cy(X.y1,X.x1),Cy(X.y0,X.x0),!d))}else e.moveTo(u+D,c+A),e.arc(u,c,r,s,l,!d);else e.moveTo(u+D,c+A);if(i>Dy&&O)if(C>Dy){j=Py(f,C),U=Ay(E,R,M,T,i,-(G=Py(g,C)),d),X=Ay(D,A,I,P,i,-j,d);e.lineTo(u+U.cx+U.x0,c+U.cy+U.y0),C<S&&j===G?e.arc(u+U.cx,c+U.cy,C,Cy(U.y0,U.x0),Cy(X.y0,X.x0),!d):(G>0&&e.arc(u+U.cx,c+U.cy,G,Cy(U.y0,U.x0),Cy(U.y1,U.x1),!d),e.arc(u,c,i,Cy(U.cy+U.y1,U.cx+U.x1),Cy(X.cy+X.y1,X.cx+X.x1),d),j>0&&e.arc(u+X.cx,c+X.cy,j,Cy(X.y1,X.x1),Cy(X.y0,X.x0),!d))}else e.lineTo(u+E,c+R),e.arc(u,c,i,l,s,d);else e.lineTo(u+E,c+R)}else e.moveTo(u,c);e.closePath()}}}var Ry=function(){return function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}}(),Oy=function(e){function t(t){return e.call(this,t)||this}return Vu(t,e),t.prototype.getDefaultShape=function(){return new Ry},t.prototype.buildPath=function(e,t){Ey(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(jf);Oy.prototype.type="sector";var Ly=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.r0=0}}(),zy=function(e){function t(t){return e.call(this,t)||this}return Vu(t,e),t.prototype.getDefaultShape=function(){return new Ly},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(jf);function Ny(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var o=function(e,t,n,r){var i,o,a,s,l=[],u=[],c=[],d=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var h=0,p=e.length;h<p;h++)lh(a,a,e[h]),uh(s,s,e[h]);lh(a,a,r[0]),uh(s,s,r[1])}for(h=0,p=e.length;h<p;h++){var f=e[h];if(n)i=e[h?h-1:p-1],o=e[(h+1)%p];else{if(0===h||h===p-1){l.push(Jd(e[h]));continue}i=e[h-1],o=e[h+1]}th(u,o,i),nh(u,u,t);var g=ih(f,i),m=ih(f,o),y=g+m;0!==y&&(g/=y,m/=y),nh(c,u,-g),nh(d,u,m);var v=eh([],f,c),x=eh([],f,d);r&&(uh(v,v,a),lh(v,v,s),uh(x,x,a),lh(x,x,s)),l.push(v),l.push(x)}return n&&l.push(l.shift()),l}(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);s=1;for(var d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}zy.prototype.type="ring";var By=function(){return function(){this.points=null,this.smooth=0,this.smoothConstraint=null}}(),Fy=function(e){function t(t){return e.call(this,t)||this}return Vu(t,e),t.prototype.getDefaultShape=function(){return new By},t.prototype.buildPath=function(e,t){Ny(e,t,!0)},t}(jf);Fy.prototype.type="polygon";var Vy=function(){return function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}}(),$y=function(e){function t(t){return e.call(this,t)||this}return Vu(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Vy},t.prototype.buildPath=function(e,t){Ny(e,t,!1)},t}(jf);$y.prototype.type="polyline";var Wy={},Hy=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}(),jy=function(e){function t(t){return e.call(this,t)||this}return Vu(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Hy},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var a=Kf(Wy,t,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=t.x1,r=t.y1,i=t.x2,o=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),e.lineTo(i,o))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(jf);jy.prototype.type="line";var Gy=[],Uy=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}}();function Xy(e,t,n){var r=e.cpx2,i=e.cpy2;return null!=r||null!=i?[(n?Dh:Ph)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Dh:Ph)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?zh:Lh)(e.x1,e.cpx1,e.x2,t),(n?zh:Lh)(e.y1,e.cpy1,e.y2,t)]}var Yy=function(e){function t(t){return e.call(this,t)||this}return Vu(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Uy},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2,a=t.cpx1,s=t.cpy1,l=t.cpx2,u=t.cpy2,c=t.percent;0!==c&&(e.moveTo(n,r),null==l||null==u?(c<1&&(Bh(n,a,i,c,Gy),a=Gy[1],i=Gy[2],Bh(r,s,o,c,Gy),s=Gy[1],o=Gy[2]),e.quadraticCurveTo(a,s,i,o)):(c<1&&(Rh(n,a,l,i,c,Gy),a=Gy[1],l=Gy[2],i=Gy[3],Rh(r,s,u,o,c,Gy),s=Gy[1],u=Gy[2],o=Gy[3]),e.bezierCurveTo(a,s,l,u,i,o)))},t.prototype.pointAt=function(e){return Xy(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Xy(this.shape,e,!0);return rh(t,t)},t}(jf);Yy.prototype.type="bezier-curve";var Zy=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),qy=function(e){function t(t){return e.call(this,t)||this}return Vu(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Zy},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(o),u=Math.sin(o);e.moveTo(l*i+n,u*i+r),e.arc(n,r,i,o,a,!s)},t}(jf);qy.prototype.type="arc";var Ky=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return Vu(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),jf.prototype.getBoundingRect.call(this)},t}(jf),Qy=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Jy=function(e){function t(t,n,r,i,o,a){var s=e.call(this,o)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return Vu(t,e),t}(Qy),ev=function(e){function t(t,n,r,i,o){var a=e.call(this,i)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return Vu(t,e),t}(Qy),tv=[0,0],nv=[0,0],rv=new bd,iv=new bd,ov=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new bd;for(n=0;n<2;n++)this._axes[n]=new bd;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,o=e.y,a=i+e.width,s=o+e.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),t)for(var l=0;l<4;l++)n[l].transform(t);bd.sub(r[0],n[1],n[0]),bd.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return rv.set(1/0,1/0),iv.set(0,0),!this._intersectCheckOneSide(this,e,rv,iv,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,rv,iv,r,-1)&&(n=!1,r)||r||bd.copy(t,n?rv:iv),n},e.prototype._intersectCheckOneSide=function(e,t,n,r,i,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,tv),this._getProjMinMaxOnAxis(s,t._corners,nv),tv[1]<nv[0]||tv[0]>nv[1]){if(a=!1,i)return a;var u=Math.abs(nv[0]-tv[1]),c=Math.abs(tv[0]-nv[1]);Math.min(u,c)>r.len()&&(u<c?bd.scale(r,l,-u*o):bd.scale(r,l,c*o))}else if(n){u=Math.abs(nv[0]-tv[1]),c=Math.abs(tv[0]-nv[1]);Math.min(u,c)<n.len()&&(u<c?bd.scale(n,l,u*o):bd.scale(n,l,-c*o))}}return a},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,o=t[0].dot(r)+i[e],a=o,s=o,l=1;l<t.length;l++){var u=t[l].dot(r)+i[e];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},e}(),av=[],sv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return Vu(t,e),t.prototype.traverse=function(e,t){e.call(t,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(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){(t=this._displayables[e]).parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Dd(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(av)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){if(this._displayables[r].contain(e,t))return!0}return!1},t}(Wp),lv=qg();function uv(e,t,n,r,i,o,a){var s,l=!1;xc(i)?(a=o,o=i,i=null):Sc(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===e;u||t.stopAnimation("leave");var c=function(e,t,n,r,i){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===e;if(t&&t.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return r?(l=Dc(r.duration,200),u=Dc(r.easing,"cubicOut"),c=0):(l=t.getShallow(s?"animationDurationUpdate":"animationDuration"),u=t.getShallow(s?"animationEasingUpdate":"animationEasing"),c=t.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),xc(c)&&(c=c(n,i)),xc(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}(e,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var d={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};l?t.animateFrom(n,d):t.animateTo(n,d)}else t.stopAnimation(),!l&&t.attr(n),a&&a(1),o&&o()}function cv(e,t,n,r,i,o){uv("update",e,t,n,r,i,o)}function dv(e,t,n,r,i,o){uv("enter",e,t,n,r,i,o)}function hv(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){if("leave"===e.animators[t].scope)return!0}return!1}function pv(e,t,n,r,i,o){hv(e)||uv("leave",e,t,n,r,i,o)}function fv(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),pv(e,{style:{opacity:0}},t,n,r)}var gv=Math.max,mv=Math.min,yv={};var vv=function(e,t){var n=fy(e,t);return function(e){function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return Vu(t,e),t}(hy)};function xv(e,t){yv[e]=t}function _v(e,t,n,r){var i=function(e,t){return new hy(fy(e,t))}(e,t);return n&&("center"===r&&(n=wv(n,i.getBoundingRect())),kv(i,n)),i}function bv(e,t,n){var r=new Zf({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var i={width:e.width,height:e.height};r.setStyle(wv(t,i))}}});return r}function wv(e,t){var n,r=t.width/t.height,i=e.height*r;return n=i<=e.width?e.height:(i=e.width)/r,{x:e.x+e.width/2-i/2,y:e.y+e.height/2-n/2,width:i,height:n}}var Sv=function(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var o=e[i];n.push(o.getUpdatedPathProxy(!0))}var a=new jf(t);return a.createPathProxy(),a.buildPath=function(e){if(py(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},a};function kv(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Cv(e,t){return Kf(e,e,{lineWidth:t}),e}var Mv=Jf;function Tv(e,t){for(var n=md([]);e&&e!==t;)yd(n,e.getLocalTransform(),n),e=e.parent;return n}function Iv(e,t,n){return t&&!cc(t)&&(t=mh.getLocalTransform(t)),n&&(t=_d([],t)),sh([],e,t)}function Pv(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return o=Iv(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Dv(e){return!e.isGroup}function Av(e,t,n){if(e&&t){var r,i=(r={},e.traverse(function(e){Dv(e)&&e.anid&&(r[e.anid]=e)}),r);t.traverse(function(e){if(Dv(e)&&e.anid){var t=i[e.anid];if(t){var r=o(e);e.attr(o(t)),cv(e,r,n,im(e).dataIndex)}}})}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=ac({},e.shape)),t}}function Ev(e,t){return hc(e,function(e){var n=e[0];n=gv(n,t.x),n=mv(n,t.x+t.width);var r=e[1];return r=gv(r,t.y),[n,r=mv(r,t.y+t.height)]})}function Rv(e,t,n){var r=ac({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),sc(i,n),new Zf(r)):_v(e.replace("path://",""),r,n,"center")}function Ov(e,t,n,r,i,o,a,s){var l,u=n-e,c=r-t,d=a-i,h=s-o,p=Lv(d,h,u,c);if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=e-i,g=t-o,m=Lv(f,g,u,c)/p;if(m<0||m>1)return!1;var y=Lv(f,g,d,h)/p;return!(y<0||y>1)}function Lv(e,t,n,r){return e*r-n*t}function zv(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=_c(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&dc(gc(l),function(e){Gc(s,e)||(s[e]=l[e],s.$vars.push(e))});var u=im(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:sc({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Nv(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Bv(e,t){if(e)if(vc(e))for(var n=0;n<e.length;n++)Nv(e[n],t);else Nv(e,t)}xv("circle",yy),xv("ellipse",xy),xv("sector",Oy),xv("ring",zy),xv("polygon",Fy),xv("polyline",$y),xv("rect",ng),xv("line",jy),xv("bezierCurve",Yy),xv("arc",qy);const Fv=Object.freeze(Object.defineProperty({__proto__:null,Arc:qy,BezierCurve:Yy,BoundingRect:Dd,Circle:yy,CompoundPath:Ky,Ellipse:xy,Group:gy,Image:Zf,IncrementalDisplayable:sv,Line:jy,LinearGradient:Jy,OrientedBoundingRect:ov,Path:jf,Point:bd,Polygon:Fy,Polyline:$y,RadialGradient:ev,Rect:ng,Ring:zy,Sector:Oy,Text:og,applyTransform:Iv,clipPointsByRect:Ev,clipRectByRect:function(e,t){var n=gv(e.x,t.x),r=mv(e.x+e.width,t.x+t.width),i=gv(e.y,t.y),o=mv(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}},createIcon:Rv,extendPath:function(e,t){return vv(e,t)},extendShape:function(e){return jf.extend(e)},getShapeClass:function(e){if(yv.hasOwnProperty(e))return yv[e]},getTransform:Tv,groupTransition:Av,initProps:dv,isElementRemoved:hv,lineLineIntersect:Ov,linePolygonIntersect:function(e,t,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Ov(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:bv,makePath:_v,mergePath:Sv,registerShape:xv,removeElement:pv,removeElementWithFadeOut:function(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||fv(e,t,n,r)}):fv(e,t,n,r)},resizePath:kv,setTooltipConfig:zv,subPixelOptimize:Mv,subPixelOptimizeLine:Cv,subPixelOptimizeRect:function(e){return Qf(e.shape,e.shape,e.style),e},transformDirection:Pv,traverseElements:Bv,updateProps:cv},Symbol.toStringTag,{value:"Module"}));var Vv={};function $v(e,t,n){var r,i=e.labelFetcher,o=e.labelDataIndex,a=e.labelDimIndex,s=t.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=xc(e.defaultText)?e.defaultText(o,e,n):e.defaultText);for(var l={normal:r},u=0;u<um.length;u++){var c=um[u],d=t[c];l[c]=Dc(i?i.getFormattedLabel(o,c,null,a,d&&d.get("formatter")):null,r)}return l}function Wv(e,t,n,r){n=n||Vv;for(var i=e instanceof og,o=!1,a=0;a<cm.length;a++){if((h=t[cm[a]])&&h.getShallow("show")){o=!0;break}}var s=i?e:e.getTextContent();if(o){i||(s||(s=new og,e.setTextContent(s)),e.stateProxy&&(s.stateProxy=e.stateProxy));var l=$v(n,t),u=t.normal,c=!!u.getShallow("show"),d=jv(u,r&&r.normal,n,!1,!i);d.text=l.normal,i||e.setTextConfig(Gv(u,n,!1));for(a=0;a<um.length;a++){var h,p=um[a];if(h=t[p]){var f=s.ensureState(p),g=!!Dc(h.getShallow("show"),c);if(g!==c&&(f.ignore=!g),f.style=jv(h,r&&r[p],n,!0,!i),f.style.text=l[p],!i)e.ensureState(p).textConfig=Gv(h,n,!0)}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(d.x=s.style.x),null!=s.style.y&&(d.y=s.style.y),s.ignore=!c,s.useStyle(d),s.dirty(),n.enableTextSetter&&(Jv(s).setLabelText=function(e){var r=$v(n,t,e);!function(e,t){for(var n=0;n<um.length;n++){var r=um[n],i=t[r],o=e.ensureState(r);o.style=o.style||{},o.style.text=i}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}(s,r)})}else s&&(s.ignore=!0);e.dirty()}function Hv(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<um.length;r++){var i=um[r];n[i]=e.getModel([i,t])}return n}function jv(e,t,n,r,i){var o={};return function(e,t,n,r,i){n=n||Vv;var o,a=t.ecModel,s=a&&a.option.textStyle,l=function(e){var t;for(;e&&e!==e.ecModel;){var n=(e.option||Vv).rich;if(n){t=t||{};for(var r=gc(n),i=0;i<r.length;i++){t[r[i]]=1}}e=e.parentModel}return t}(t);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=t.getModel(["rich",u]);Zv(o[u]={},c,s,n,r,i,!1,!0)}o&&(e.rich=o);var d=t.get("overflow");d&&(e.overflow=d);var h=t.get("minMargin");null!=h&&(e.margin=h);Zv(e,t,s,n,r,i,!0,!1)}(o,e,n,r,i),t&&ac(o,t),o}function Gv(e,t,n){t=t||{};var r,i={},o=e.getShallow("rotate"),a=Dc(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return"outside"===(r=e.getShallow("position")||(n?null:"inside"))&&(r=t.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",i}var Uv=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Xv=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Yv=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Zv(e,t,n,r,i,o,a,s){n=!i&&n||Vv;var l=r&&r.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),d=Dc(t.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==c&&"auto"!==c||(c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(e.fill=u),null!=c&&(e.stroke=c);var h=Dc(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=h&&(e.lineWidth=h);var p=Dc(t.getShallow("textBorderType"),n.textBorderType);null!=p&&(e.lineDash=p);var f=Dc(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(e.lineDashOffset=f),i||null!=d||s||(d=r&&r.defaultOpacity),null!=d&&(e.opacity=d),i||o||null==e.fill&&r.inheritColor&&(e.fill=r.inheritColor);for(var g=0;g<Uv.length;g++){var m=Uv[g];null!=(v=Dc(t.getShallow(m),n[m]))&&(e[m]=v)}for(g=0;g<Xv.length;g++){m=Xv[g];null!=(v=t.getShallow(m))&&(e[m]=v)}if(null==e.verticalAlign){var y=t.getShallow("baseline");null!=y&&(e.verticalAlign=y)}if(!a||!r.disableBox){for(g=0;g<Yv.length;g++){var v;m=Yv[g];null!=(v=t.getShallow(m))&&(e[m]=v)}var x=t.getShallow("borderType");null!=x&&(e.borderDash=x),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!l||(e.backgroundColor=l),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!l||(e.borderColor=l)}}function qv(e,t){var n=t&&t.getModel("textStyle");return Lc([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Kv,Qv,Jv=qg(),ex=["textStyle","color"],tx=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],nx=new og,rx=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(ex):null)},e.prototype.getFont=function(){return qv({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<tx.length;n++)t[tx[n]]=this.getShallow(tx[n]);return nx.useStyle(t),nx.update(),nx.getBoundingRect()},e}(),ix=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],ox=od(ix),ax=function(){function e(){}return e.prototype.getLineStyle=function(e){return ox(this,e)},e}(),sx=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],lx=od(sx),ux=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return lx(this,e,t)},e}(),cx=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){oc(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=null==n?n:n[e];if(null==r&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=null!=t,i=r?this.parsePath(t):null;return new e(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new(0,this.constructor)(ic(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!Zc.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&(!e[r]||null!=(n=n&&"object"==typeof n?n[e[r]]:null));r++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();function dx(e){return null==e?0:e.length||1}function hx(e){return e}Jc(cx),Kv=cx,Qv=["__\0is_clz",td++].join("_"),Kv.prototype[Qv]=!0,Kv.isInstance=function(e){return!(!e||!e[Qv])},uc(cx,ax),uc(cx,ux),uc(cx,sd),uc(cx,rx);var px=function(){function e(e,t,n,r,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||hx,this._newKeyGetter=r||hx,this.context=i,this._diffModeMultiple="multiple"===o}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var a=r[o],s=n[a],l=dx(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=dx(l),d=dx(u);if(c>1&&1===d)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&d>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===d)this._update&&this._update(u,l),r[s]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],o=dx(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var a="_ec_"+this[r](e[o],o);if(i||(n[o]=a),t){var s=t[a],l=dx(s);0===l?(t[a]=o,i&&n.push(a)):1===l?t[a]=[s,o]:s.push(o)}}},e}(),fx=Wc(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),gx="original",mx="arrayRows",yx="objectRows",vx="keyedColumns",xx="typedArray",_x="unknown",bx="column",Sx="row",kx=1,Cx=2,Mx=3,Tx=qg();function Ix(e,t,n){var r={},i=Px(t);if(!i||!e)return r;var o,a,s=[],l=[],u=t.ecModel,c=Tx(u).datasetMap,d=i.uid+"_"+n.seriesLayoutBy;dc(e=e.slice(),function(t,n){var i=Sc(t)?t:e[n]={name:t};"ordinal"===i.type&&null==o&&(o=n,a=f(i)),r[i.name]=[]});var h=c.get(d)||c.set(d,{categoryWayDim:a,valueWayDim:0});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function f(e){var t=e.dimsDef;return t?t.length:1}return dc(e,function(e,t){var n=e.name,i=f(e);if(null==o){var a=h.valueWayDim;p(r[n],a,i),p(l,a,i),h.valueWayDim+=i}else if(o===t)p(r[n],0,i),p(s,0,i);else{a=h.categoryWayDim;p(r[n],a,i),p(l,a,i),h.categoryWayDim+=i}}),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function Px(e){if(!e.get("data",!0))return nm(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},em).models[0]}function Dx(e,t){return function(e,t,n,r,i,o){var a,s,l,u=5;if(Cc(e))return Mx;if(r){var c=r[o];Sc(c)?(s=c.name,l=c.type):_c(c)&&(s=c)}if(null!=l)return"ordinal"===l?kx:Mx;if(t===mx){var d=e;if(n===Sx){for(var h=d[o],p=0;p<(h||[]).length&&p<u;p++)if(null!=(a=x(h[i+p])))return a}else for(p=0;p<d.length&&p<u;p++){var f=d[i+p];if(f&&null!=(a=x(f[o])))return a}}else if(t===yx){var g=e;if(!s)return Mx;for(p=0;p<g.length&&p<u;p++){if((y=g[p])&&null!=(a=x(y[s])))return a}}else if(t===vx){if(!s)return Mx;if(!(h=e[s])||Cc(h))return Mx;for(p=0;p<h.length&&p<u;p++)if(null!=(a=x(h[p])))return a}else if(t===gx){var m=e;for(p=0;p<m.length&&p<u;p++){var y,v=$g(y=m[p]);if(!vc(v))return Mx;if(null!=(a=x(v[o])))return a}}function x(e){var t=_c(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?Cx:Mx:t&&"-"!==e?kx:void 0}return Mx}(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}var Ax,Ex,Rx,Ox,Lx,zx=function(){return function(e){this.data=e.data||(e.sourceFormat===vx?{}:[]),this.sourceFormat=e.sourceFormat||_x,this.seriesLayoutBy=e.seriesLayoutBy||bx,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];null==r.type&&Dx(this,n)===kx&&(r.type="ordinal")}}}();function Nx(e){return e instanceof zx}function Bx(e,t,n){n=n||Vx(e);var r=t.seriesLayoutBy,i=function(e,t,n,r,i){var o,a;if(!e)return{dimensionsDefine:$x(i),startIndex:a,dimensionsDetectedCount:o};if(t===mx){var s=e;"auto"===r||null==r?Wx(function(e){null!=e&&"-"!==e&&(_c(e)?null==a&&(a=1):a=0)},n,s,10):a=wc(r)?r:r?1:0,i||1!==a||(i=[],Wx(function(e,t){i[t]=null!=e?e+"":""},n,s,1/0)),o=i?i.length:n===Sx?s.length:s[0]?s[0].length:null}else if(t===yx)i||(i=function(e){var t,n=0;for(;n<e.length&&!(t=e[n++]););if(t)return gc(t)}(e));else if(t===vx)i||(i=[],dc(e,function(e,t){i.push(t)}));else if(t===gx){var l=$g(e[0]);o=vc(l)&&l.length||1}return{startIndex:a,dimensionsDefine:$x(i),dimensionsDetectedCount:o}}(e,n,r,t.sourceHeader,t.dimensions);return new zx({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:ic(t)})}function Fx(e){return new zx({data:e,sourceFormat:Cc(e)?xx:gx})}function Vx(e){var t=_x;if(Cc(e))t=xx;else if(vc(e)){0===e.length&&(t=mx);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(null!=i){if(vc(i)||Cc(i)){t=mx;break}if(Sc(i)){t=yx;break}}}}else if(Sc(e))for(var o in e)if(Gc(e,o)&&cc(e[o])){t=vx;break}return t}function $x(e){if(e){var t=Wc();return hc(e,function(e,n){var r={name:(e=Sc(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=t.get(r.name);return i?r.name+="-"+i.count++:t.set(r.name,{count:1}),r})}}function Wx(e,t,n,r){if(t===Sx)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)e(o[i],i)}}function Hx(e){var t=e.sourceFormat;return t===yx||t===vx}var jx=function(){function e(e,t){var n=Nx(e)?e:Fx(e);this._source=n;var r=this._data=n.data;n.sourceFormat===xx&&(this._offset=0,this._dimSize=t,this._data=r),Lx(this,r,n)}var t;return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=((t=e.prototype).pure=!1,void(t.persistent=!0)),e.internalField=function(){var e;Lx=function(e,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine;if(ac(e,Ox[e_(a,s)]),a===xx)e.getItem=t,e.count=r,e.fillStorage=n;else{var c=Xx(a,s);e.getItem=mc(c,null,i,l,u);var d=qx(a,s);e.count=mc(d,null,i,l,u)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,i=r*e,o=0;o<r;o++)t[o]=n[i+o];return t},n=function(e,t,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,d=n[a],h=0;h<c;h++){var p=i[h*o+a];d[e+h]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[mx+"_"+bx]={pure:!0,appendData:i},e[mx+"_"+Sx]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[yx]={pure:!0,appendData:i},e[vx]={pure:!0,appendData:function(e){var t=this._data;dc(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[gx]={appendData:i},e[xx]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},Ox=e}(),e}(),Gx=function(e,t,n,r){return e[r]},Ux=((Ax={})[mx+"_"+bx]=function(e,t,n,r){return e[r+t]},Ax[mx+"_"+Sx]=function(e,t,n,r,i){r+=t;for(var o=i||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},Ax[yx]=Gx,Ax[vx]=function(e,t,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=e[n[a].name];o[a]=s?s[r]:null}return o},Ax[gx]=Gx,Ax);function Xx(e,t){return Ux[e_(e,t)]}var Yx=function(e,t,n){return e.length},Zx=((Ex={})[mx+"_"+bx]=function(e,t,n){return Math.max(0,e.length-t)},Ex[mx+"_"+Sx]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Ex[yx]=Yx,Ex[vx]=function(e,t,n){var r=e[n[0].name];return r?r.length:0},Ex[gx]=Yx,Ex);function qx(e,t){return Zx[e_(e,t)]}var Kx=function(e,t,n){return e[t]},Qx=((Rx={})[mx]=Kx,Rx[yx]=function(e,t,n){return e[n]},Rx[vx]=Kx,Rx[gx]=function(e,t,n){var r=$g(e);return r instanceof Array?r[t]:r},Rx[xx]=Kx,Rx);function Jx(e){return Qx[e]}function e_(e,t){return e===mx?e+"_"+t:e}function t_(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i=e.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=e.getDimensionIndex(n),s=i.getDimensionProperty(a);return Jx(o)(r,a,s)}var l=r;return o===gx&&(l=$g(r)),l}}}var n_=function(){function e(e,t){this._encode=e,this._schema=t}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 r_(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}var i_=function(){return function(e){this.otherDims={},null!=e&&ac(this,e)}}();function o_(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||wc(e)||null==e||"-"===e||(e=+Tg(e)),null==e||""===e?NaN:Number(e))}Wc({number:function(e){return parseFloat(e)},time:function(e){return+Tg(e)},trim:function(e){return _c(e)?Lc(e):e}});var a_,s_=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=wc(e)?e:Dg(e),r=wc(t)?t:Dg(t),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=_c(e),s=_c(t);a&&(n=s?e:0),s&&(r=a?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),l_="undefined",u_=typeof Uint32Array===l_?Array:Uint32Array,c_=typeof Uint16Array===l_?Array:Uint16Array,d_=typeof Int32Array===l_?Array:Int32Array,h_=typeof Float64Array===l_?Array:Float64Array,p_={float:h_,int:d_,ordinal:Array,number:Array,time:h_};function f_(e){return e>65535?u_:c_}function g_(){return[1/0,-1/0]}function m_(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function y_(e,t,n,r,i){var o=p_[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new o(r)}var v_=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Wc()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=a_[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],Hx(r),this._dimensions=hc(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(null!=i){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new p_[t||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[e]=[1/0,-1/0]);for(var s=i[e],l=o;l<a;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=t,r.ordinalOffset=a,r.type="ordinal"},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(e.length,t||0),l=0;l<i;l++){y_(n,l,(p=r[l]).type,s,!0)}for(var u=[],c=a;c<s;c++)for(var d=c-a,h=0;h<i;h++){var p=r[h],f=a_.arrayRows.call(this,e[d]||u,p.property,d,h);n[h][c]=f;var g=o[h];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=hc(o,function(e){return e.property}),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=g_()),y_(i,u,c.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],h=e;h<t;h++){d=r.getItem(h,d);for(var p=0;p<a;p++){var f=i[p],g=this._dimValueGetter(d,l[p],h,p);f[h]=g;var m=s[p];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(null==t){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=0;if(this._chunks[e])for(var n=0,r=this.count();n<r;n++){var i=this.get(e,n);isNaN(i)||(t+=i)}return t},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)});var n=t.sort(function(e,t){return e-t}),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(t[o]<e)r=o+1;else{if(!(t[o]>e))return o;i=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],i=[];if(!r)return i;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var c=t-r[this.getRawIndex(l)],d=Math.abs(c);d<=n&&((d<o||d===o&&c>=0&&a<0)&&(o=d,a=c,s=0),c===a&&(i[s++]=l))}return i.length=s,i},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{e=new(n=f_(this._rawCount))(this.count());for(i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(f_(n._rawCount))(r),o=[],a=e.length,s=0,l=e[0],u=n._chunks,c=0;c<r;c++){var d=void 0,h=n.getRawIndex(c);if(0===a)d=t(c);else if(1===a){d=t(u[l][h],c)}else{for(var p=0;p<a;p++)o[p]=u[e[p]][h];o[p]=c,d=t.apply(null,o)}d&&(i[s++]=h)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=gc(e),i=r.length;if(!i)return this;var o=t.count(),a=new(f_(t._rawCount))(o),s=0,l=r[0],u=e[l][0],c=e[l][1],d=t._chunks,h=!1;if(!t._indices){var p=0;if(1===i){for(var f=d[r[0]],g=0;g<n;g++){((x=f[g])>=u&&x<=c||isNaN(x))&&(a[s++]=p),p++}h=!0}else if(2===i){f=d[r[0]];var m=d[r[1]],y=e[r[1]][0],v=e[r[1]][1];for(g=0;g<n;g++){var x=f[g],_=m[g];(x>=u&&x<=c||isNaN(x))&&(_>=y&&_<=v||isNaN(_))&&(a[s++]=p),p++}h=!0}}if(!h)if(1===i)for(g=0;g<o;g++){var b=t.getRawIndex(g);((x=d[r[0]][b])>=u&&x<=c||isNaN(x))&&(a[s++]=b)}else for(g=0;g<o;g++){for(var w=!0,S=(b=t.getRawIndex(g),0);S<i;S++){var k=r[S];((x=d[k][b])<e[k][0]||x>e[k][1])&&(w=!1)}w&&(a[s++]=t.getRawIndex(g))}return s<o&&(t._indices=a),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],o=t.length,a=e.count(),s=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=g_();for(var c=0;c<a;c++){for(var d=e.getRawIndex(c),h=0;h<o;h++)s[h]=r[t[h]][d];s[o]=c;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(i[0]=p,p=i);for(u=0;u<p.length;u++){var f=t[u],g=p[u],m=l[f],y=r[f];y&&(y[d]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,o=this.clone([e],!0),a=o._chunks[e],s=this.count(),l=0,u=Math.floor(1/t),c=this.getRawIndex(0),d=new(f_(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));d[l++]=c;for(var h=1;h<s-1;h+=u){for(var p=Math.min(h+u,s-1),f=Math.min(h+2*u,s),g=(f+p)/2,m=0,y=p;y<f;y++){var v=a[C=this.getRawIndex(y)];isNaN(v)||(m+=v)}m/=f-p;var x=h,_=Math.min(h+u,s),b=h-1,w=a[c];n=-1,i=x;var S=-1,k=0;for(y=x;y<_;y++){var C;v=a[C=this.getRawIndex(y)];isNaN(v)?(k++,S<0&&(S=C)):(r=Math.abs((b-g)*(v-w)-(b-y)*(m-w)))>n&&(n=r,i=C)}k>0&&k<_-x&&(d[l++]=Math.min(S,i),i=Math.max(S,i)),d[l++]=i,c=i}return d[l++]=this.getRawIndex(s-1),o._count=l,o._indices=d,o.getRawIndex=this._getRawIdx,o},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),o=i._chunks,a=[],s=Math.floor(1/t),l=o[e],u=this.count(),c=i._rawExtent[e]=[1/0,-1/0],d=new(f_(this._rawCount))(Math.ceil(u/s)),h=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);a[f]=l[g]}var m=n(a),y=this.getRawIndex(Math.min(p+r(a,m)||0,u-1));l[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),d[h++]=y}return i._count=h,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][a],i);break;case 2:t(r[e[0]][a],r[e[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[e[s]][a];l[s]=i,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=[1/0,-1/0];if(!t)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[e].slice();if(r=this._extent[e])return r.slice();for(var o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=t[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return r=[o,a],this._extent[e]=r,r},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,o=t&&pc(t,function(e,t){return e[t]=!0,e},{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?m_(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=ic(this._extent),e._rawExtent=ic(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return o_(e[r],this._dimensions[r])}a_={arrayRows:e,objectRows:function(e,t,n,r){return o_(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return o_(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),x_=qg(),__={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},b_=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=k_(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return Dc(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Hx(this.source),n=!C_(e),r="",i=[],o=0,a=0;o<e;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=t?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var d=this.getSourceDimension(o);d&&(s=t?d.name:null,l=d.type)}i.push({property:s,type:l,ordinalMeta:u}),!t||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=__[l]||"f",u&&(r+=u.uid),r+="$"}var h=this.source;return{dimensions:i,hash:[h.seriesLayoutBy,h.startIndex,r].join("$$")}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(t);o&&(r=o.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function w_(e){return e instanceof b_}function S_(e){for(var t=Wc(),n=0;n<(e||[]).length;n++){var r=e[n],i=Sc(r)?r.name:r;null!=i&&null==t.get(i)&&t.set(i,n)}return t}function k_(e){var t=x_(e);return t.dimNameMap||(t.dimNameMap=S_(e.dimensionsDefine))}function C_(e){return e>30}var M_,T_,I_,P_,D_,A_,E_,R_=Sc,O_=hc,L_="undefined"==typeof Int32Array?Array:Int32Array,z_=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],N_=["_approximateExtent"],B_=function(){function e(e,t){var n;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 r=!1;w_(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],d=_c(c)?new i_({name:c}):c instanceof i_?c:new i_(c),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};o.push(h),i[h]=d,null!=l[h]&&(s=!0),d.createInvertedIndices&&(a[h]=[]),0===p.itemName&&(this._nameDimIdx=u),0===p.itemId&&(this._idDimIdx=u),r&&(d.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=Wc();dc(o,function(e){f.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var r=this._schema.getSourceDimension(t);return r?r.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(wc(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r,i=this;if(e instanceof v_&&(r=e),!r){var o=this.dimensions,a=Nx(e)||cc(e)?new jx(e,o.length):e;r=new v_;var s=O_(o,function(e){return{type:i._dimInfos[e].type,property:e}});r.initData(a,s,n)}this._store=r,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(e,t){var n={},r=n.encode={},i=Wc(),o=[],a=[],s={};dc(e.dimensions,function(t){var n,l=e.getDimensionInfo(t),u=l.coordDim;if(u){var c=l.coordDimIndex;r_(r,u)[c]=t,l.isExtraCoord||(i.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=t),r_(s,u)[c]=e.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(t)}fx.each(function(e,t){var n=r_(r,t),i=l.otherDims[t];null!=i&&!1!==i&&(n[i]=l.name)})});var l=[],u={};i.each(function(e,t){var n=r[t];u[t]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=hc(l,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var d=r.tooltip;return d&&d.length?a=d.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new n_(s,t),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=t[s],o&&E_(this,a)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==xx&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===gx&&!n.pure)for(var o=[],a=e;a<t;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&Wg(s)&&(this.hasItemOption=!0),s){var l=s.name;null==r[a]&&null!=l&&(r[a]=Ug(l,null));var u=s.id;null==i[a]&&null!=u&&(i[a]=Ug(u,null))}}if(this._shouldMakeIdFromName())for(a=e;a<t;a++)E_(this,a);M_(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){R_(e)?ac(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=I_(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return T_(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return vc(e)?r.getValues(O_(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=(e&&this._invertedIndicesMap[e])[t];return null==n||isNaN(n)?-1:n},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){xc(e)&&(n=t,t=e,e=[]);var r=n||this,i=O_(P_(e),this._getStoreDimIndex,this);this._store.each(i,r?mc(t,r):t)},e.prototype.filterSelf=function(e,t,n){xc(e)&&(n=t,t=e,e=[]);var r=n||this,i=O_(P_(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?mc(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={};return dc(gc(e),function(r){var i=t._getStoreDimIndex(r);n[i]=e[r]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){xc(e)&&(n=t,t=e,e=[]),n=n||this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,o=O_(P_(e),this._getStoreDimIndex,this),a=A_(this);return a._store=this._store.map(o,i?mc(t,i):t),a},e.prototype.modify=function(e,t,n,r){var i=n||r||this,o=O_(P_(e),this._getStoreDimIndex,this);this._store.modify(o,i?mc(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=A_(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.lttbDownSample=function(e,t){var n=A_(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new cx(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new px(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return T_(e,t)},function(e){return T_(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},R_(e)?ac(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(vc(i=this.getVisual(t))?i=i.slice():R_(i)&&(i=ac({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,R_(t)?ac(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){R_(e)?ac(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?ac(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){!function(e,t,n,r){if(r){var i=im(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType="chart","group"===r.type&&r.traverse(function(r){var i=im(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType="chart"})}}(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){dc(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:O_(this.dimensions,this._getDimInfo,this),this.hostModel)),D_(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];xc(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(Ec(arguments)))})},e.internalField=(M_=function(e){var t=e._invertedIndicesMap;dc(t,function(n,r){var i=e._dimInfos[r],o=i.ordinalMeta,a=e._store;if(o){n=t[r]=new L_(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}})},I_=function(e,t,n){return Ug(e._getCategory(t,n),null)},T_=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=I_(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},P_=function(e){return vc(e)||(e=null!=e?[e]:[]),e},A_=function(t){var n=new e(t._schema?t._schema:O_(t.dimensions,t._getDimInfo,t),t.hostModel);return D_(n,t),n},D_=function(e,t){dc(z_.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,dc(N_,function(n){e[n]=ic(t[n])}),e._calculationInfo=ac({},t._calculationInfo)},void(E_=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,o=e._idDimIdx,a=n[t],s=r[t];if(null==a&&null!=i&&(n[t]=a=I_(e,i,t)),null==s&&null!=o&&(r[t]=s=I_(e,o,t)),null==s&&null!=a){var l=e._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[t]=s}})),e}();function F_(e,t){Nx(e)||(e=Fx(e));var n=(t=t||{}).coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Wc(),o=[],a=function(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return dc(t,function(e){var t;Sc(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&C_(a),l=r===e.dimensionsDefine,u=l?k_(e):S_(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var d=Wc(c),h=new d_(a),p=0;p<h.length;p++)h[p]=-1;function f(e){var t=h[e];if(t<0){var n=r[e],i=Sc(n)?n:{name:n},a=new i_,s=i.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=o.length;return h[e]=l,a.storeDimIndex=e,o.push(a),a}return o[t]}if(!s)for(p=0;p<a;p++)f(p);d.each(function(e,t){var n=Bg(e).slice();if(1===n.length&&!_c(n[0])&&n[0]<0)d.set(t,!1);else{var r=d.set(t,[]);dc(n,function(e,n){var i=_c(e)?u.get(e):e;null!=i&&i<a&&(r[n]=i,m(f(i),t,n))})}});var g=0;function m(e,t,n){null!=fx.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0))}dc(n,function(e){var t,n,r,i;if(_c(e))t=e,i={};else{t=(i=e).name;var o=i.ordinalMeta;i.ordinalMeta=null,(i=ac({},i)).ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(!1!==s){if(!(s=Bg(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=f(g).coordDim;)g++;g<a&&s.push(g++)}dc(s,function(e,o){var a=f(e);if(l&&null!=i.type&&(a.type=i.type),m(sc(a,i),t,o),null==a.name&&n){var s=n[o];!Sc(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&sc(a.otherDims,r)})}});var y=t.generateCoord,v=t.generateCoordCount,x=null!=v;v=y?v||1:0;var _=y||"value";function b(e){null==e.name&&(e.name=e.coordDim)}if(s)dc(o,function(e){b(e)}),o.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var w=0;w<a;w++){var S=f(w);null==S.coordDim&&(S.coordDim=V_(_,i,x),S.coordDimIndex=0,(!y||v<=0)&&(S.isExtraCoord=!0),v--),b(S),null!=S.type||Dx(e,w)!==kx&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(e){for(var t=Wc(),n=0;n<e.length;n++){var r=e[n],i=r.name,o=t.get(i)||0;o>0&&(r.name=i+(o-1)),o++,t.set(i,o)}}(o),new b_({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function V_(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var $_={},W_=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];dc($_,function(r,i){var o=r.create(e,t);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(e,t){dc(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){$_[e]=t},e.get=function(e){return $_[e]},e}(),H_=function(){return function(e){this.coordSysDims=[],this.axisMap=Wc(),this.categoryAxisMap=Wc(),this.coordSysName=e}}();var j_={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",em).models[0],o=e.getReferringComponents("yAxis",em).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),G_(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),G_(o)&&(r.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",em).models[0];t.coordSysDims=["single"],n.set("single",i),G_(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",em).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),G_(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),G_(a)&&(r.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();dc(o.parallelAxisIndex,function(e,o){var s=i.getComponent("parallelAxis",e),l=a[o];n.set(l,s),G_(s)&&(r.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))})}};function G_(e){return"category"===e.get("type")}function U_(e,t,n){var r,i,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(e){return!w_(e.schema)}(t)?(i=t.schema,r=i.dimensions,o=t.store):r=t;var l,u,c,d,h=!(!e||!e.get("stack"));if(dc(r,function(e,t){_c(e)&&(r[t]=e={name:e}),h&&!e.isExtraCoord&&(a||l||!e.ordinalMeta||(l=e),u||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(u=e))}),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,f=u.type,g=0;dc(r,function(e){e.coordDim===p&&g++});var m={name:c,coordDim:p,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:d,coordDim:d,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(m.storeDimIndex=o.ensureCalculationDimension(d,f),y.storeDimIndex=o.ensureCalculationDimension(c,f)),i.appendCalculationDimension(m),i.appendCalculationDimension(y)):(r.push(m),r.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:c}}function X_(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Y_(e,t,n){n=n||{};var r,i,o=t.getSourceManager();i=(r=o.getSource()).sourceFormat===gx;var a=function(e){var t=e.get("coordinateSystem"),n=new H_(t),r=j_[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}(t),s=function(e,t){var n,r=e.get("coordinateSystem"),i=W_.get(r);return t&&t.coordSysDims&&(n=hc(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);if(r){var i=r.get("type");n.type=function(e){return"category"===e?"ordinal":"time"===e?"time":"float"}(i)}return n})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}(t,a),l=n.useEncodeDefaulter,u=xc(l)?l:l?yc(Ix,s,t):null,c=F_(r,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i}),d=function(e,t,n){var r,i;return n&&dc(e,function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(i=!0)}),i||null==r||(e[r].otherDims.itemName=0),r}(c.dimensions,n.createInvertedIndices,a),h=i?null:o.getSharedDataStore(c),p=U_(t,{schema:c,store:h}),f=new B_(c,t);f.setCalculationInfo(p);var g=null!=d&&function(e){if(e.sourceFormat===gx){return!vc($g(function(e){var t=0;for(;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[])))}}(r)?function(e,t,n,r){return r===d?n:this.defaultDimValueGetter(e,t,n,r)}:null;return f.hasItemOption=!1,f.initData(i?r:h,null,g),f}var Z_=Math.round(10*Math.random());function q_(e){return[e||"",Z_++].join("_")}function K_(e,t){return oc(oc({},e,!0),t,!0)}var Q_=Math.log(2);function J_(e,t,n,r,i,o){var a=r+"-"+i,s=e.length;if(o.hasOwnProperty(a))return o[a];if(1===t){var l=Math.round(Math.log((1<<s)-1&~i)/Q_);return e[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var d=0,h=0,p=0;h<s;h++){var f=1<<h;f&i||(d+=(p%2?-1:1)*e[n][h]*J_(e,t-1,c,u,i|f,o),p++)}return o[a]=d,d}function eb(e,t){var n=[[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]]],r={},i=J_(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*J_(n,7,0===a?1:0,1<<a,1<<s,r)/i*t[a];return function(e,t,n){var r=t*o[6]+n*o[7]+1;e[0]=(t*o[0]+n*o[1]+o[2])/r,e[1]=(t*o[3]+n*o[4]+o[5])/r}}}var tb="___zrEVENTSAVED",nb=[];function rb(e,t,n,r,i){if(t.getBoundingClientRect&&Zc.domSupported&&!ib(t)){var o=t[tb]||(t[tb]={}),a=function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[s]+":0",i[l]+":0",r[1-s]+":auto",i[1-l]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}(t,o),s=function(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,h=c.left,p=c.top;a.push(h,p),l=l&&o&&h===o[d]&&p===o[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?eb(s,a):eb(a,s))}(a,o,i);if(s)return s(e,n,r),!0}return!1}function ib(e){return"CANVAS"===e.nodeName.toUpperCase()}var ob=/([&<>"'])/g,ab={"&":"&","<":"<",">":">",'"':""","'":"'"};function sb(e){return null==e?"":(e+"").replace(ob,function(e,t){return ab[t]})}var lb="ZH",ub="EN",cb=ub,db={},hb={},pb=Zc.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||cb).toUpperCase().indexOf(lb)>-1?lb:cb;function fb(e,t){e=e.toUpperCase(),hb[e]=new cx(t),db[e]=t}fb(ub,{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:". "}}}}),fb(lb,{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 gb=1e3,mb=6e4,yb=36e5,vb=864e5,xb=31536e6,_b={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}"},bb="{yyyy}-{MM}-{dd}",wb={year:"{yyyy}",month:"{yyyy}-{MM}",day:bb,hour:bb+" "+_b.hour,minute:bb+" "+_b.minute,second:bb+" "+_b.second,millisecond:_b.none},Sb=["year","month","day","hour","minute","second","millisecond"],kb=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Cb(e,t){return"0000".substr(0,t-(e+="").length)+e}function Mb(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 Tb(e){return e===Mb(e)}function Ib(e,t,n,r){var i=Tg(e),o=i[Ab(n)](),a=i[Eb(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[Rb(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Ob(n)](),d=(c-1)%12+1,h=i[Lb(n)](),p=i[zb(n)](),f=i[Nb(n)](),g=c>=12?"pm":"am",m=g.toUpperCase(),y=r instanceof cx?r:function(e){return hb[e]}(r||pb)||hb[cb],v=y.getModel("time"),x=v.get("month"),_=v.get("monthAbbr"),b=v.get("dayOfWeek"),w=v.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Cb(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[a-1]).replace(/{MMM}/g,_[a-1]).replace(/{MM}/g,Cb(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Cb(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Cb(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Cb(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Cb(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Cb(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Cb(f,3)).replace(/{S}/g,f+"")}function Pb(e,t){var n=Tg(e),r=n[Eb(t)]()+1,i=n[Rb(t)](),o=n[Ob(t)](),a=n[Lb(t)](),s=n[zb(t)](),l=0===n[Nb(t)](),u=l&&0===s,c=u&&0===a,d=c&&0===o,h=d&&1===i;return h&&1===r?"year":h?"month":d?"day":c?"hour":u?"minute":l?"second":"millisecond"}function Db(e,t,n){var r=wc(e)?Tg(e):e;switch(t=t||Pb(e,n)){case"year":return r[Ab(n)]();case"half-year":return r[Eb(n)]()>=6?1:0;case"quarter":return Math.floor((r[Eb(n)]()+1)/4);case"month":return r[Eb(n)]();case"day":return r[Rb(n)]();case"half-day":return r[Ob(n)]()/24;case"hour":return r[Ob(n)]();case"minute":return r[Lb(n)]();case"second":return r[zb(n)]();case"millisecond":return r[Nb(n)]()}}function Ab(e){return e?"getUTCFullYear":"getFullYear"}function Eb(e){return e?"getUTCMonth":"getMonth"}function Rb(e){return e?"getUTCDate":"getDate"}function Ob(e){return e?"getUTCHours":"getHours"}function Lb(e){return e?"getUTCMinutes":"getMinutes"}function zb(e){return e?"getUTCSeconds":"getSeconds"}function Nb(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Bb(e){return e?"setUTCFullYear":"setFullYear"}function Fb(e){return e?"setUTCMonth":"setMonth"}function Vb(e){return e?"setUTCDate":"setDate"}function $b(e){return e?"setUTCHours":"setHours"}function Wb(e){return e?"setUTCMinutes":"setMinutes"}function Hb(e){return e?"setUTCSeconds":"setSeconds"}function jb(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Gb(e){if(isNaN(Dg(e)))return _c(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Ub(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Xb=Rc;function Yb(e,t,n){function r(e){return e&&Lc(e)?e:"-"}function i(e){return!(null==e||isNaN(e)||!isFinite(e))}var o="time"===t,a=e instanceof Date;if(o||a){var s=o?Tg(e):e;if(!isNaN(+s))return Ib(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===t)return bc(e)?r(e):wc(e)&&i(e)?e+"":"-";var l=Dg(e);return i(l)?Gb(l):bc(e)?r(e):"boolean"==typeof e?e+"":"-"}var Zb=["a","b","c","d","e","f","g"],qb=function(e,t){return"{"+e+(null==t?"":t)+"}"};function Kb(e,t,n){vc(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o<i.length;o++){var a=Zb[o];e=e.replace(qb(a),qb(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(qb(Zb[l],s),n?sb(u):u)}return e}function Qb(e,t){return t=t||"transparent",_c(e)?e:Sc(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Jb(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var ew=dc,tw=["left","right","top","bottom","width","height"],nw=[["width","left","right"],["height","top","bottom"]];function rw(e,t,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild(function(l,u){var c,d,h=l.getBoundingRect(),p=t.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===e){var g=h.width+(f?-f.x+h.x:0);(c=o+g)>r||l.newline?(o=0,c=g,a+=s+n,s=h.height):s=Math.max(s,h.height)}else{var m=h.height+(f?-f.y+h.y:0);(d=a+m)>i||l.newline?(o+=s+n,a=0,d=m,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=c+n:a=d+n)})}var iw=rw;function ow(e,t,n){n=Xb(n||0);var r=t.width,i=t.height,o=vg(e.left,r),a=vg(e.top,i),s=vg(e.right,r),l=vg(e.bottom,i),u=vg(e.width,r),c=vg(e.height,i),d=n[2]+n[0],h=n[1]+n[3],p=e.aspect;switch(isNaN(u)&&(u=r-s-h-o),isNaN(c)&&(c=i-l-d-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=r-s-u-h),isNaN(a)&&(a=i-l-c-d),e.left||e.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-h}switch(e.top||e.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-d}o=o||0,a=a||0,isNaN(u)&&(u=r-h-o-(s||0)),isNaN(c)&&(c=i-d-a-(l||0));var f=new Dd(o+n[3],a+n[0],u,c);return f.margin=n,f}function aw(e){var t=e.layoutMode||e.constructor.layoutMode;return Sc(t)?t:t?{type:t}:null}function sw(e,t,n){var r=n&&n.ignoreSize;!vc(r)&&(r=[r,r]);var i=a(nw[0],0),o=a(nw[1],1);function a(n,i){var o={},a=0,u={},c=0;if(ew(n,function(t){u[t]=e[t]}),ew(n,function(e){s(t,e)&&(o[e]=u[e]=t[e]),l(o,e)&&a++,l(u,e)&&c++}),r[i])return l(t,n[1])?u[n[2]]=null:l(t,n[2])&&(u[n[1]]=null),u;if(2!==c&&a){if(a>=2)return o;for(var d=0;d<n.length;d++){var h=n[d];if(!s(o,h)&&s(e,h)){o[h]=e[h];break}}return o}return u}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function u(e,t,n){ew(e,function(e){t[e]=n[e]})}u(nw[0],e,i),u(nw[1],e,o)}function lw(e){return function(e,t){return t&&e&&ew(tw,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}({},e)}yc(rw,"vertical"),yc(rw,"horizontal");var uw=qg(),cw=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=q_("ec_cpt_model"),i}var n;return Vu(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=aw(this),r=n?lw(e):{};oc(e,t.getTheme().get(this.mainType)),oc(e,this.getDefaultOption()),n&&sw(e,r,n)},t.prototype.mergeOption=function(e,t){oc(this.option,e,!0);var n=aw(this);n&&sw(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(e){return!(!e||!e[Kc])}(e))return e.defaultOption;var t=uw(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=oc(o,n[a],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return nm(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=((n=t.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),t}(cx);ed(cw,cx),id(cw),function(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Qc(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var o=Qc(n).main;e.hasSubTypes(n)&&t[o]&&(i=t[o](r))}return i}}(cw),function(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,r,i,o){if(e.length){var a=function(e){var r={},i=[];return dc(e,function(o){var a=n(r,o),s=function(e,t){var n=[];return dc(e,function(e){lc(t,e)>=0&&n.push(e)}),n}(a.originalDeps=t(o),e);a.entryCount=s.length,0===a.entryCount&&i.push(o),dc(s,function(e){lc(a.predecessor,e)<0&&a.predecessor.push(e);var t=n(r,e);lc(t.successor,e)<0&&t.successor.push(o)})}),{graph:r,noEntryList:i}}(r),s=a.graph,l=a.noEntryList,u={};for(dc(e,function(e){u[e]=!0});l.length;){var c=l.pop(),d=s[c],h=!!u[c];h&&(i.call(o,c,d.originalDeps.slice()),delete u[c]),dc(d.successor,h?f:p)}dc(u,function(){throw new Error("")})}function p(e){s[e].entryCount--,0===s[e].entryCount&&l.push(e)}function f(e){u[e]=!0,p(e)}}}(cw,function(e){var t=[];dc(cw.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=hc(t,function(e){return Qc(e).main}),"dataset"!==e&&lc(t,"dataset")<=0&&t.unshift("dataset");return t});var dw=qg();qg();var hw=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Bg(this.get("color",!0)),i=this.get("colorLayer",!0);return function(e,t,n,r,i,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}(r,a):n;if(c=c||n,!c||!c.length)return;var d=c[l];i&&(u[i]=d);return s.paletteIdx=(l+1)%c.length,d}(this,dw,r,i,e,t,n)},e.prototype.clearColorPalette=function(){var e,t;(t=dw)(e=this).paletteIdx=0,t(e).paletteNameMap={}},e}();var pw=/\{@(.+?)\}/g,fw=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,d="series"===c,h=n.userOutput&&n.userOutput.get();return{componentType:c,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:i,data:a,dataType:t,value:r,color:l,borderColor:u,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,o){t=t||"normal";var a=this.getData(n),s=this.getDataParams(e,n);(o&&(s.value=o.interpolatedValue),null!=r&&vc(s.value)&&(s.value=s.value[r]),i)||(i=a.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"]));return xc(i)?(s.status=t,s.dimensionIndex=r,i(s)):_c(i)?Kb(i,s).replace(pw,function(t,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=t_(a,e,i);if(o&&vc(o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},e.prototype.getRawValue=function(e,t){return t_(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function gw(e){var t,n;return Sc(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function mw(e){return new yw(e)}var yw=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;function c(e){return!(e>=1)&&(e=1),e}a===l&&s===u||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(o||h<p)){var f=this._progress;if(vc(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],h,p,l,u);else this._doProgress(f,h,p,l,u)}this._dueIndex=p;var m=null!=this._settedOutputEnd?this._settedOutputEnd:p;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){vw.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:vw.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),vc(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.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(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),vw=function(){var e,t,n,r,i,o={reset:function(l,u,c,d){t=l,e=u,n=c,r=d,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var o=t%i*n+Math.ceil(t/i),a=t>=e?null:o<r?o:t;return t++,a}}(),xw=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return o_(e,t)},e}();function _w(e){if(!Mw(e.sourceFormat)){Og("")}return e.data}function bw(e){var t=e.sourceFormat,n=e.data;if(!Mw(t)){Og("")}if(t===mx){for(var r=[],i=0,o=n.length;i<o;i++)r.push(n[i].slice());return r}if(t===yx){for(r=[],i=0,o=n.length;i<o;i++)r.push(ac({},n[i]));return r}}function ww(e,t,n){if(null!=n)return wc(n)||!isNaN(n)&&!Gc(t,n)?e[n]:Gc(t,n)?t[n]:void 0}function Sw(e){return ic(e)}var kw=Wc();function Cw(e,t,n,r){t.length||Og(""),Sc(e)||Og("");var i=e.type,o=kw.get(i);o||Og("");var a=hc(t,function(e){return function(e,t){var n=new xw,r=e.data,i=n.sourceFormat=e.sourceFormat,o=e.startIndex;e.seriesLayoutBy!==bx&&Og("");var a=[],s={},l=e.dimensionsDefine;if(l)dc(l,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};a.push(r),null!=n&&(Gc(s,n)&&Og(""),s[n]=r)});else for(var u=0;u<e.dimensionsDetectedCount;u++)a.push({index:u});var c=Xx(i,bx);t.__isBuiltIn&&(n.getRawDataItem=function(e){return c(r,o,a,e)},n.getRawData=mc(_w,null,e)),n.cloneRawData=mc(bw,null,e);var d=qx(i,bx);n.count=mc(d,null,r,o,a);var h=Jx(i);n.retrieveValue=function(e,t){var n=c(r,o,a,e);return p(n,t)};var p=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=a[t];return n?h(e,t,n.name):void 0}};return n.getDimensionInfo=mc(ww,null,a,s),n.cloneAllDimensionInfo=mc(Sw,null,a),n}(e,o)});return hc(Bg(o.transform({upstream:a[0],upstreamList:a,config:ic(e.config)})),function(e,n){var r;Sc(e)||Og(""),e.data||Og(""),Mw(Vx(e.data))||Og("");var i=t[0];if(i&&0===n&&!e.dimensions){var o=i.startIndex;o&&(e.data=i.data.slice(0,o).concat(e.data)),r={seriesLayoutBy:bx,sourceHeader:o,dimensions:i.metaRawOption.dimensions}}else r={seriesLayoutBy:bx,sourceHeader:0,dimensions:e.dimensions};return Bx(e.data,r,null)})}function Mw(e){return e===mx||e===yx}var Tw=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,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 e,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(Iw(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,t=[u._getVersionSign()]}else s=Cc(a=o.get("data",!0))?xx:gx,t=[];var c=this._getSourceMetaRawOption()||{},d=l&&l.metaRawOption||{},h=Dc(c.seriesLayoutBy,d.seriesLayoutBy)||null,p=Dc(c.sourceHeader,d.sourceHeader),f=Dc(c.dimensions,d.dimensions);e=h!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||f?[Bx(a,{seriesLayoutBy:h,sourceHeader:p,dimensions:f},s)]:[]}else{var g=n;if(i){var m=this._applyTransform(r);e=m.sourceList,t=m.upstreamSignList}else{e=[Bx(g.get("source",!0),this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){1!==e.length&&Pw("")}var o,a=[],s=[];return dc(e,function(e){e.prepareSource();var t=e.getSource(i||0);null==i||t||Pw(""),a.push(t),s.push(e._getVersionSign())}),r?t=function(e,t){var n=Bg(e),r=n.length;r||Og("");for(var i=0,o=r;i<o;i++)t=Cw(n[i],t),i!==o-1&&(t.length=Math.max(t.length,1));return t}(r,a,n.componentIndex):null!=i&&(t=[(o=a[0],new zx({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:ic(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount}))]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=this._storeList,i=r[0];i||(i=r[0]={});var o=i[n];if(!o){var a=this._getUpstreamSourceManagers()[0];Iw(this._sourceHost)&&a?o=a._innerGetDataStore(e,t,n):(o=new v_).initData(new jx(t,e.length),e),i[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Iw(e)){var t=Px(e);return t?[t.getSourceManager()]:[]}return hc(function(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?nm(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},em).models:[]}(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(Iw(r))e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function Iw(e){return"series"===e.mainType}function Pw(e){throw new Error(e)}var Dw="line-height:1";function Aw(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,i=e.fontWeight||"400",o=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+sb(r+"")+"px;color:"+sb(n)+";font-weight:"+sb(i+""),valueStyle:"font-size:"+sb(a+"")+"px;color:"+sb(o)+";font-weight:"+sb(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var Ew=[0,10,20,30],Rw=["","\n","\n\n","\n\n\n"];function Ow(e,t){return t.type=e,t}function Lw(e){return"section"===e.type}function zw(e){return Lw(e)?Bw:Fw}function Nw(e){if(Lw(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return dc(e.blocks,function(e){var n=Nw(e);n>=t&&(t=n+ +(r&&(!n||Lw(e)&&!e.noHeader)))}),t}return 0}function Bw(e,t,n,r){var i,o=t.noHeader,a=(i=Nw(t),{html:Ew[i],richText:Rw[i]}),s=[],l=t.blocks||[];Oc(!l||vc(l)),l=l||[];var u=e.orderMode;if(t.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Gc(c,u)){var d=new s_(c[u],null);l.sort(function(e,t){return d.evaluate(e.sortParam,t.sortParam)})}else"seriesDesc"===u&&l.reverse()}dc(l,function(n,i){var o=t.valueFormatter,l=zw(n)(o?ac(ac({},e),{valueFormatter:o}):e,n,i>0?a.html:0,r);null!=l&&s.push(l)});var h="richText"===e.renderMode?s.join(a.richText):$w(s.join(""),o?n:a.html);if(o)return h;var p=Yb(t.header,"ordinal",e.useUTC),f=Aw(r,e.renderMode).nameStyle;return"richText"===e.renderMode?Ww(e,p,f)+a.richText+h:$w('<div style="'+f+";"+Dw+';">'+sb(p)+"</div>"+h,n)}function Fw(e,t,n,r){var i=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(e){return hc(e=vc(e)?e:[e],function(e,t){return Yb(e,vc(p)?p[t]:p,u)})};if(!o||!a){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=o?"":Yb(l,"ordinal",u),p=t.valueType,f=a?[]:c(t.value,t.dataIndex),g=!s||!o,m=!s&&o,y=Aw(r,i),v=y.nameStyle,x=y.valueStyle;return"richText"===i?(s?"":d)+(o?"":Ww(e,h,v))+(a?"":function(e,t,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(vc(t)?t.join(" "):t,o)}(e,f,g,m,x)):$w((s?"":d)+(o?"":function(e,t,n){return'<span style="'+n+";"+(t?"margin-left:2px":"")+'">'+sb(e)+"</span>"}(h,!s,v))+(a?"":function(e,t,n,r){var i=n?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=vc(e)?e:[e],'<span style="'+o+";"+r+'">'+hc(e,function(e){return sb(e)}).join(" ")+"</span>"}(f,g,m,x)),n)}}function Vw(e,t,n,r,i,o){if(e)return zw(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,o)}function $w(e,t){return'<div style="'+("margin: "+t+"px 0 0")+";"+Dw+';">'+e+'<div style="clear:both"></div></div>'}function Ww(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Hw(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var jw=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Ag()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r="richText"===n?this._generateStyleName():null,i=function(e,t){var n=_c(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var o=n.renderMode||"html";return r?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+sb(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+sb(r)+";"+(t||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}({color:t,type:e,renderMode:n,markerId:r});return _c(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};vc(t)?dc(t,function(e){return ac(n,e)}):ac(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}();function Gw(e){var t,n,r,i,o=e.series,a=e.dataIndex,s=e.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,d=o.getRawValue(a),h=vc(d),p=function(e,t){return Qb(e.getData().getItemVisual(t,"style")[e.visualDrawType])}(o,a);if(c>1||h&&!c){var f=function(e,t,n,r,i){var o=t.getData(),a=pc(e,function(e,t,n){var r=o.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName},!1),s=[],l=[],u=[];function c(e,t){var n=o.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?u.push(Ow("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return r.length?dc(r,function(e){c(t_(o,n,e),e)}):dc(e,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(d,o,a,u,p);t=f.inlineValues,n=f.inlineValueTypes,r=f.blocks,i=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=t=t_(l,a,u[0]),n=g.type}else i=t=h?d[0]:d;var m=Xg(o),y=m&&o.name||"",v=l.getName(a),x=s?y:v;return Ow("section",{header:y,noHeader:s||!m,sortParam:i,blocks:[Ow("nameValue",{markerType:"item",markerColor:p,name:x,noName:!Lc(x),value:t,valueType:n,dataIndex:a})].concat(r||[])})}var Uw=qg();function Xw(e,t){return e.getName(t)||e.getId(t)}var Yw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}var n;return Vu(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=mw({count:qw,reset:Kw}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(Uw(this).sourceManager=new Tw(this)).prepareSource();var r=this.getInitialData(e,n);Jw(r,this),this.dataTask.context.data=r,Uw(this).dataBeforeProcessed=r,Zw(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=aw(this),r=n?lw(e):{},i=this.subType;cw.hasClass(i)&&(i+="Series"),oc(e,t.getTheme().get(this.subType)),oc(e,this.getDefaultOption()),Fg(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&sw(e,r,n)},t.prototype.mergeOption=function(e,t){e=oc(this.option,e,!0),this.fillDataTextStyle(e.data);var n=aw(this);n&&sw(this.option,e,n);var r=Uw(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);Jw(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Uw(this).dataBeforeProcessed=i,Zw(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!Cc(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Fg(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=tS(this);if(t){var n=t.context.data;return null!=e&&n.getLinkedData?n.getLinkedData(e):n}return Uw(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=tS(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}Uw(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Wc(e)},t.prototype.getSourceManager=function(){return Uw(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Uw(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return Gw({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Zc.node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=hw.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<e.length;o++){var a=Xw(i,e[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=gc(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return("all"===n||n[Xw(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,o=i.selectedMode,a=t.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){Sc(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<a;l++){var u=t[l];s[d=Xw(e,u)]=!0,this._selectedDataIndicesMap[d]=e.getRawIndex(u)}}else if("single"===o||!0===o){var c=t[a-1],d=Xw(e,c);i.selectedMap=((n={})[d]=!0,n),this._selectedDataIndicesMap=((r={})[d]=e.getRawIndex(c),r)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return cw.registerClass(e)},t.protoInitialize=((n=t.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),t}(cw);function Zw(e){var t=e.name;Xg(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return dc(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(" ")}(e)||t)}function qw(e){return e.model.getRawData().count()}function Kw(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Qw}function Qw(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Jw(e,t){dc(function(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var i=e.length;for(r=0;r<t.length;r++)n[r+i]=t[r];return n}(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,yc(eS,t))})}function eS(e,t){var n=tS(e);return n&&n.setOutputEnd((t||this).count()),t}function tS(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}uc(Yw,fw),uc(Yw,hw),ed(Yw,cw);var nS=jf.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r+o),e.lineTo(n-i,r+o),e.closePath()}}),rS=jf.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r),e.lineTo(n,r+o),e.lineTo(n-i,r),e.closePath()}}),iS=jf.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,d=Math.sin(u),h=Math.cos(u),p=.6*a,f=.7*a;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-d*p,l+s+h*p,n,r-f,n,r),e.bezierCurveTo(n,r-f,n-c+d*p,l+s+h*p,n-c,l+s),e.closePath()}}),oS=jf.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,o=t.y,a=r/3*2;e.moveTo(i,o),e.lineTo(i+a,o+n),e.lineTo(i,o+n/4*3),e.lineTo(i-a,o+n),e.lineTo(i,o),e.closePath()}}),aS={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var o=Math.min(n,r);i.x=e,i.y=t,i.width=o,i.height=o},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},sS={};dc({line:jy,rect:ng,roundRect:ng,square:ng,circle:yy,diamond:rS,pin:iS,arrow:oS,triangle:nS},function(e,t){sS[t]=new e});var lS=jf.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Fd(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=sS[r];i||(i=sS[r="rect"]),aS[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function uS(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function cS(e,t,n,r,i,o,a){var s,l=0===e.indexOf("empty");return l&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=0===e.indexOf("image://")?bv(e.slice(8),new Dd(t,n,r,i),a?"center":"cover"):0===e.indexOf("path://")?_v(e.slice(7),{},new Dd(t,n,r,i),a?"center":"cover"):new lS({shape:{symbolType:e,x:t,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=uS,o&&s.setColor(o),s}function dS(e,t){if(null!=e)return vc(e)||(e=[e,e]),[vg(e[0],t[0])||0,vg(Dc(e[1],e[0]),t[1])||0]}var hS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Vu(t,e),t.prototype.getInitialData=function(e){return Y_(0,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new gy,n=cS("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*e.itemHeight,s=cS(o,(e.itemWidth-a)/2,(e.itemHeight-a)/2,a,a,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?i:e.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},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}(Yw);function pS(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=t_(e,t,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(t_(e,t,n[a]));return o.join(" ")}}var fS=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.updateData(t,n,r,i),o}return Vu(t,e),t.prototype._createSymbol=function(e,t,n,r,i){this.removeAll();var o=cS(e,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=gS,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Am(this.childAt(0))},t.prototype.downplay=function(){Em(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var o,a=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=a!==this._symbolType,c=i&&i.disableAnimation;if(u){var d=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,e,n,l,d)}else{(p=this.childAt(0)).silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?p.attr(h):cv(p,h,s,n),lv(o=p).oldStyle=o.style}if(this._updateCommon(e,n,l,r,i),u){var p=this.childAt(0);if(!c){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,dv(p,h,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,r,i){var o,a,s,l,u,c,d,h,p,f=this.childAt(0),g=e.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,d=r.labelStatesModels,h=r.hoverScale,p=r.cursorStyle,c=r.emphasisDisabled),!r||e.hasItemOption){var m=r&&r.itemModel?r.itemModel:e.getItemModel(t),y=m.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=m.getModel(["select","itemStyle"]).getItemStyle(),a=m.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),d=Hv(m),h=y.getShallow("scale"),p=m.getShallow("cursor")}var v=e.getItemVisual(t,"symbolRotate");f.attr("rotation",(v||0)*Math.PI/180||0);var x=dS(e.getItemVisual(t,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),p&&f.attr("cursor",p);var _=e.getItemVisual(t,"style"),b=_.fill;if(f instanceof Zf){var w=f.style;f.useStyle(ac({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(ac({},_)):f.useStyle(_),f.style.decal=null,f.setColor(b,i&&i.symbolInnerColor),f.style.strokeNoScale=!0;var S=e.getItemVisual(t,"liftZ"),k=this._z2;null!=S?null==k&&(this._z2=f.z2,f.z2+=S):null!=k&&(f.z2=k,this._z2=null);var C=i&&i.useNameLabel;Wv(f,d,{labelFetcher:g,labelDataIndex:t,defaultText:function(t){return C?e.getName(t):pS(e,t)},inheritColor:b,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=f.ensureState("emphasis");M.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var T=null==h||!0===h?Math.max(1.1,3/this._sizeY):isFinite(h)&&h>0?+h:1;M.scaleX=this._sizeX*T,M.scaleY=this._sizeY*T,this.setSymbolScale(1),jm(this,l,u,c)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=im(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&pv(a,{style:{opacity:0}},t,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();pv(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return vc(n=e.getItemVisual(t,"symbolSize"))||(n=[+n,+n]),[n[0]||0,n[1]||0];var n},t}(gy);function gS(e,t){this.parent.drift(e,t)}function mS(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function yS(e){return null==e||Sc(e)||(e={isIgnore:e}),e||{}}function vS(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Hv(t),cursorStyle:t.get("cursor")}}var xS=function(){function e(e){this.group=new gy,this._SymbolCtor=e||fS}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=yS(t);var n=this.group,r=e.hostModel,i=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=vS(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=u(r);if(mS(e,i,r,t)){var a=new o(e,r,s,l);a.setPosition(i),e.setItemGraphicEl(r,a),n.add(a)}}).update(function(c,d){var h=i.getItemGraphicEl(d),p=u(c);if(mS(e,p,c,t)){var f=e.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==f)n.remove(h),(h=new o(e,c,s,l)).setPosition(p);else{h.updateData(e,c,s,l);var m={x:p[0],y:p[1]};a?h.attr(m):cv(h,m,r)}n.add(h),e.setItemGraphicEl(c,h)}else n.remove(h)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=vS(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=yS(n);for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(mS(t,o,i,n)){var a=new this._SymbolCtor(t,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),t.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){Bv(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function _S(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),o=function(e,t){var n=0,r=e.scale.getExtent();"start"===t?n=r[0]:"end"===t?n=r[1]:wc(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]);return n}(i,n),a=r.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(a),c="x"===s||"radius"===s?1:0,d=hc(e.dimensions,function(e){return t.mapDimension(e)}),h=!1,p=t.getCalculationInfo("stackResultDimension");return X_(t,d[0])&&(h=!0,d[0]=p),X_(t,d[1])&&(h=!0,d[1]=p),{dataDimsForPoint:d,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function bS(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}var wS="undefined"!=typeof Float32Array,SS=wS?Float32Array:Array;function kS(e){return vc(e)?wS?new Float32Array(e):e:new SS(e)}var CS=Math.min,MS=Math.max;function TS(e,t){return isNaN(e)||isNaN(t)}function IS(e,t,n,r,i,o,a,s,l){for(var u,c,d,h,p,f,g=n,m=0;m<r;m++){var y=t[2*g],v=t[2*g+1];if(g>=i||g<0)break;if(TS(y,v)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](y,v),d=y,h=v;else{var x=y-u,_=v-c;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,w=t[2*b],S=t[2*b+1];w===y&&S===v&&m<r;)m++,g+=o,w=t[2*(b+=o)],S=t[2*b+1],x=(y=t[2*g])-u,_=(v=t[2*g+1])-c;var k=m+1;if(l)for(;TS(w,S)&&k<r;)k++,w=t[2*(b+=o)],S=t[2*b+1];var C=.5,M=0,T=0,I=void 0,P=void 0;if(k>=r||TS(w,S))p=y,f=v;else{M=w-u,T=S-c;var D=y-u,A=w-y,E=v-c,R=S-v,O=void 0,L=void 0;if("x"===s){var z=M>0?1:-1;p=y-z*(O=Math.abs(D))*a,f=v,I=y+z*(L=Math.abs(A))*a,P=v}else if("y"===s){var N=T>0?1:-1;p=y,f=v-N*(O=Math.abs(E))*a,I=y,P=v+N*(L=Math.abs(R))*a}else O=Math.sqrt(D*D+E*E),p=y-M*a*(1-(C=(L=Math.sqrt(A*A+R*R))/(L+O))),f=v-T*a*(1-C),P=v+T*a*C,I=CS(I=y+M*a*C,MS(w,y)),P=CS(P,MS(S,v)),I=MS(I,CS(w,y)),f=v-(T=(P=MS(P,CS(S,v)))-v)*O/L,p=CS(p=y-(M=I-y)*O/L,MS(u,y)),f=CS(f,MS(c,v)),I=y+(M=y-(p=MS(p,CS(u,y))))*L/O,P=v+(T=v-(f=MS(f,CS(c,v))))*L/O}e.bezierCurveTo(d,h,p,f,y,v),d=I,h=P}else e.lineTo(y,v)}u=y,c=v,g+=o}return m}var PS=function(){return function(){this.smooth=0,this.smoothConstraint=!0}}(),DS=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return Vu(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new PS},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&TS(n[2*i-2],n[2*i-1]);i--);for(;r<i&&TS(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=IS(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,o=Sf.CMD,a="x"===t,s=[],l=0;l<i.length;){var u=void 0,c=void 0,d=void 0,h=void 0,p=void 0,f=void 0,g=void 0;switch(i[l++]){case o.M:n=i[l++],r=i[l++];break;case o.L:if(u=i[l++],c=i[l++],(g=a?(e-n)/(u-n):(e-r)/(c-r))<=1&&g>=0){var m=a?(c-r)*g+r:(u-n)*g+n;return a?[e,m]:[m,e]}n=u,r=c;break;case o.C:u=i[l++],c=i[l++],d=i[l++],h=i[l++],p=i[l++],f=i[l++];var y=a?Ah(n,u,d,p,e,s):Ah(r,c,h,f,e,s);if(y>0)for(var v=0;v<y;v++){var x=s[v];if(x<=1&&x>=0){m=a?Ph(r,c,h,f,x):Ph(n,u,d,p,x);return a?[e,m]:[m,e]}}n=p,r=f}}},t}(jf),AS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vu(t,e),t}(PS),ES=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return Vu(t,e),t.prototype.getDefaultShape=function(){return new AS},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0&&TS(n[2*o-2],n[2*o-1]);o--);for(;i<o&&TS(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=IS(e,n,i,o,o,1,t.smooth,a,t.connectNulls);IS(e,r,i+s-1,s,o,-1,t.stackedOnSmooth,a,t.connectNulls),i+=s+1,e.closePath()}},t}(jf);function RS(){var e=qg();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var OS=qg(),LS=RS(),zS=function(){function e(){this.group=new gy,this.uid=q_("viewChart"),this.renderTask=mw({plan:FS,reset:VS}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&BS(i,r,"emphasis")},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&BS(i,r,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Bv(this.group,e)},e.markUpdateMethod=function(e,t){OS(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function NS(e,t,n){e&&Zm(e)&&("emphasis"===t?Am:Em)(e,n)}function BS(e,t,n){var r=Zg(e,t),i=t&&null!=t.highlightKey?function(e){var t=am[e];return null==t&&om<=32&&(t=am[e]=om++),t}(t.highlightKey):null;null!=r?dc(Bg(r),function(t){NS(e.getItemGraphicEl(t),n,i)}):e.eachItemGraphicEl(function(e){NS(e,n,i)})}function FS(e){return LS(e.model)}function VS(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&OS(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,r,i),$S[l]}Jc(zS),id(zS);var $S={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};function WS(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function HS(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function jS(e,t){var n=HS(e),r=n[0],i=n[1],o=HS(t),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function GS(e){return wc(e)?e:e?.5:0}function US(e,t,n,r){var i=t.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],s=0,l=[],u=[],c=[],d=[];if(r){for(s=0;s<e.length;s+=2)isNaN(e[s])||isNaN(e[s+1])||d.push(e[s],e[s+1]);e=d}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],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var h=(u[o]+c[o])/2,p=[];l[o]=p[o]=h,l[1-o]=u[1-o],p[1-o]=c[1-o],a.push(l[0],l[1]),a.push(p[0],p[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(e[s++],e[s++]),a}function XS(e,t){var n,r,i=[],o=e.length;function a(e,t,n){var r=e.coord;return{coord:n,color:function(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=tp(t[i]),s=tp(t[o]),l=r-i,u=ip([jh(Zh(a[0],s[0],l)),jh(Zh(a[1],s[1],l)),jh(Zh(a[2],s[2],l)),Gh(Zh(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<o;s++){var l=e[s],u=l.coord;if(u<0)n=l;else{if(u>t){r?i.push(a(r,l,t)):n&&i.push(a(n,l,0),a(n,l,t));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}function YS(e,t,n){var r=e.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!function(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*fS.getSymbolSize(t,a)[e.isHorizontal()?1:0]>r)return!1;return!0}(o,t))){var a=t.mapDimension(o.dim),s={};return dc(o.getViewLabels(),function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1}),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function ZS(e,t){return isNaN(e)||isNaN(t)}function qS(e,t){return[e[2*t],e[2*t+1]]}function KS(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<um.length;t++)if(e.get([um[t],"endLabel","show"]))return!0;return!1}function QS(e,t,n,r){if(function(e,t){return e.type===t}(t,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=KS(r)?function(n,r){e._endLabelOnDuring(n,r,a,s,o,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=function(e,t,n,r,i){var o=e.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var d=new ng({shape:{x:a,y:s,width:l,height:u}});if(t){var h=e.getBaseAxis(),p=h.isHorizontal(),f=h.inverse;p?(f&&(d.shape.x+=l),d.shape.width=0):(f||(d.shape.y+=u),d.shape.height=0);var g=xc(i)?function(e){i(e,d)}:null;dv(d,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return d}(t,n,r,function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var d=c.shape,h=Math.max(d.width,d.height);u?(d.y-=h,d.height+=2*h):(d.x-=h,d.width+=2*h)}return l&&l(1,c),c}return function(e,t,n){var r=e.getArea(),i=xg(r.r0,1),o=xg(r.r,1),a=new Oy({shape:{cx:xg(e.cx,1),cy:xg(e.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&("angle"===e.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,dv(a,{shape:{endAngle:r.endAngle,r:o}},n)),a}(t,n,r)}var JS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vu(t,e),t.prototype.init=function(){var e=new gy,t=new xS;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===i.type,d=this._coordSys,h=this._symbolDraw,p=this._polyline,f=this._polygon,g=this._lineGroup,m=!t.ssr&&e.get("animation"),y=!l.isEmpty(),v=l.get("origin"),x=_S(i,a,v),_=y&&function(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=kS(2*r),o=0;o<r;o++){var a=bS(n,e,t,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(i,a,x),b=e.get("showSymbol"),w=e.get("connectNulls"),S=b&&!c&&YS(e,a,i),k=this._data;k&&k.eachItemGraphicEl(function(e,t){e.__temp&&(o.remove(e),k.setItemGraphicEl(t,null))}),b||h.remove(),o.add(g);var C,M=!c&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(null!=(C=i.getArea()).width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var T=function(e,t,n){var r=e.getVisual("visualMeta");if(r&&r.length&&e.count()&&"cartesian2d"===t.type){for(var i,o,a=r.length-1;a>=0;a--){var s=e.getDimensionInfo(r[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){o=r[a];break}}if(o){var l=t.getAxis(i),u=hc(o.stops,function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}}),c=u.length,d=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var h=XS(u,"x"===i?n.getWidth():n.getHeight()),p=h.length;if(!p&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var f=h[0].coord-10,g=h[p-1].coord+10,m=g-f;if(m<.001)return"transparent";dc(h,function(e){e.offset=(e.coord-f)/m}),h.push({offset:p?h[p-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:p?h[0].offset:.5,color:d[0]||"transparent"});var y=new Jy(0,0,0,0,h,!0);return y[i]=f,y[i+"2"]=g,y}}}(a,i,n)||a.getVisual("style")[a.getVisual("drawType")];if(p&&d.type===i.type&&M===this._step){y&&!f?f=this._newPolygon(u,_):f&&!y&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,Qb(T));var I=g.getClipPath();if(I)dv(I,{shape:QS(this,i,!1,e).shape},e);else g.setClipPath(QS(this,i,!0,e));b&&h.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),WS(this._stackedOnPoints,_)&&WS(this._points,u)||(m?this._doUpdateAnimation(a,_,i,n,M,v,w):(M&&(u=US(u,i,M,w),_&&(_=US(_,i,M,w))),p.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:_})))}else b&&h.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),m&&this._initSymbolLabelAnimation(a,i,C),M&&(u=US(u,i,M,w),_&&(_=US(_,i,M,w))),p=this._newPolyline(u),y?f=this._newPolygon(u,_):f&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,Qb(T)),g.setClipPath(QS(this,i,!0,e));var P=e.getModel("emphasis"),D=P.get("focus"),A=P.get("blurScope"),E=P.get("disabled");(p.useStyle(sc(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),Xm(p,e,"lineStyle"),p.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"]))&&(p.getState("emphasis").style.lineWidth=+p.style.lineWidth+1);im(p).seriesIndex=e.seriesIndex,jm(p,D,A,E);var R=GS(e.get("smooth")),O=e.get("smoothMonotone");if(p.setShape({smooth:R,smoothMonotone:O,connectNulls:w}),f){var L=a.getCalculationInfo("stackedOnSeries"),z=0;f.useStyle(sc(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),L&&(z=GS(L.get("smooth"))),f.setShape({smooth:R,stackedOnSmooth:z,smoothMonotone:O,connectNulls:w}),Xm(f,e,"areaStyle"),im(f).seriesIndex=e.seriesIndex,jm(f,D,A,E)}var N=function(e){r._changePolyState(e)};a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=N)}),this._polyline.onHoverStateChange=N,this._data=a,this._coordSys=i,this._stackedOnPoints=_,this._points=u,this._step=M,this._valueOrigin=v,e.get("triggerLineEvent")&&(this.packEventData(e,p),f&&this.packEventData(e,f))},t.prototype.packEventData=function(e,t){im(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),o=Zg(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel")||0,d=e.get("z")||0;(s=new fS(i,o)).x=l,s.y=u,s.setZ(c,d);var h=s.getSymbolPath().getTextContent();h&&(h.zlevel=c,h.z=d,h.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else zS.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),o=Zg(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else zS.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;Mm(this._polyline,e),t&&Mm(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new DS({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new ES({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(r=o.isHorizontal(),i=!1):"polar"===t.type&&(r="angle"===o.dim,i=!0);var s=e.hostModel,l=s.get("animationDuration");xc(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=xc(u)?u(null):u;e.eachItemGraphicEl(function(e,o){var s=e;if(s){var d=[e.x,e.y],h=void 0,p=void 0,f=void 0;if(n)if(i){var g=n,m=t.pointToCoord(d);r?(h=g.startAngle,p=g.endAngle,f=-m[1]/180*Math.PI):(h=g.r0,p=g.r,f=m[0])}else{var y=n;r?(h=y.x,p=y.x+y.width,f=e.x):(h=y.y+y.height,p=y.y,f=e.y)}var v=p===h?0:(f-h)/(p-h);a&&(v=1-v);var x=xc(u)?u(o):l*v+c,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel("endLabel");if(KS(e)){var i=e.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new og({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(e){for(var t=e.length/2;t>0&&ZS(e[2*t-2],e[2*t-1]);t--);return t-1}(a);l>=0&&(Wv(o,Hv(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?function(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!vc(t))return t+"";for(var r=[],i=0;i<n.length;i++){var o=e.getDimensionIndex(n[i]);o>=0&&r.push(t[o])}return r.join(" ")}(i,n):pS(i,e)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}(r,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,d=c.get("connectNulls"),h=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),m=f.inverse,y=t.shape,v=m?g?y.x:y.y+y.height:g?y.x+y.width:y.y,x=(g?p:0)*(m?-1:1),_=(g?0:-p)*(m?-1:1),b=g?"x":"y",w=function(e,t,n){for(var r,i,o=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(i=e[2*u+a],!isNaN(i)&&!isNaN(e[2*u+1-a]))if(0!==u){if(r<=t&&i>=t||r>=t&&i<=t){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(t-r)/(i-r)}}(u,v,b),S=w.range,k=S[1]-S[0],C=void 0;if(k>=1){if(k>1&&!d){var M=qS(u,S[0]);s.attr({x:M[0]+x,y:M[1]+_}),i&&(C=c.getRawValue(S[0]))}else{(M=l.getPointOn(v,b))&&s.attr({x:M[0]+x,y:M[1]+_});var T=c.getRawValue(S[0]),I=c.getRawValue(S[1]);i&&(C=function(e,t,n,r,i){var o=null==t||"auto"===t;if(null==r)return r;if(wc(r))return xg(f=Lg(n||0,r,i),o?Math.max(bg(n||0),bg(r)):t);if(_c(r))return i<1?n:r;for(var a=[],s=n,l=r,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var d=e.getDimensionInfo(c);if(d&&"ordinal"===d.type)a[c]=(i<1&&s?s:l)[c];else{var h=s&&s[c]?s[c]:0,p=l[c],f=Lg(h,p,i);a[c]=xg(f,o?Math.max(bg(h),bg(p)):t)}}return a}(n,h,T,I,w.t))}r.lastFrameIndex=S[0]}else{var P=1===e||r.lastFrameIndex>0?S[0]:0;M=qS(u,P);i&&(C=c.getRawValue(P)),s.attr({x:M[0]+x,y:M[1]+_})}if(i){var D=Jv(s);"function"==typeof D.setLabelText&&D.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=function(e,t,n,r,i,o,a){for(var s=function(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:"+",idx:e})}).update(function(e,t){n.push({cmd:"=",idx:t,idx1:e})}).remove(function(e){n.push({cmd:"-",idx:e})}).execute(),n}(e,t),l=[],u=[],c=[],d=[],h=[],p=[],f=[],g=_S(i,t,a),m=e.getLayout("points")||[],y=t.getLayout("points")||[],v=0;v<s.length;v++){var x=s[v],_=!0,b=void 0,w=void 0;switch(x.cmd){case"=":b=2*x.idx,w=2*x.idx1;var S=m[b],k=m[b+1],C=y[w],M=y[w+1];(isNaN(S)||isNaN(k))&&(S=C,k=M),l.push(S,k),u.push(C,M),c.push(n[b],n[b+1]),d.push(r[w],r[w+1]),f.push(t.getRawIndex(x.idx1));break;case"+":var T=x.idx,I=g.dataDimsForPoint,P=i.dataToPoint([t.get(I[0],T),t.get(I[1],T)]);w=2*T,l.push(P[0],P[1]),u.push(y[w],y[w+1]);var D=bS(g,i,t,T);c.push(D[0],D[1]),d.push(r[w],r[w+1]),f.push(t.getRawIndex(T));break;case"-":_=!1}_&&(h.push(x),p.push(p.length))}p.sort(function(e,t){return f[e]-f[t]});var A=l.length,E=kS(A),R=kS(A),O=kS(A),L=kS(A),z=[];for(v=0;v<p.length;v++){var N=p[v],B=2*v,F=2*N;E[B]=l[F],E[B+1]=l[F+1],R[B]=u[F],R[B+1]=u[F+1],O[B]=c[F],O[B+1]=c[F+1],L[B]=d[F],L[B+1]=d[F+1],z[v]=h[N]}return{current:E,next:R,stackedOnCurrent:O,stackedOnNext:L,status:z}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),d=c.current,h=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(i&&(d=US(c.current,n,i,a),h=US(c.stackedOnCurrent,n,i,a),p=US(c.next,n,i,a),f=US(c.stackedOnNext,n,i,a)),jS(d,p)>3e3||l&&jS(h,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=d;var g={shape:{points:p}};c.current!==d&&(g.shape.__points=c.next),s.stopAnimation(),cv(s,g,u),l&&(l.setShape({points:d,stackedOnPoints:h}),l.stopAnimation(),cv(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],y=c.status,v=0;v<y.length;v++){if("="===y[v].cmd){var x=e.getItemGraphicEl(y[v].idx1);x&&m.push({el:x,ptIdx:v})}}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<m.length;t++){var n=m[t].el,r=2*m[t].ptIdx;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(zS);var ek={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,n=-1/0,r=0;r<e.length;r++){var i=e[r],o=Math.abs(i);o>t&&(t=o,n=i)}return isFinite(n)?n:NaN},nearest:function(e){return e[0]}},tk=function(e){return Math.round(e.length/2)};function nk(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function rk(e){return e.dim+e.index}function ik(e){var t=function(e){var t={};dc(e,function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=e.getData(),i=n.dim+"_"+n.index,o=r.getDimensionIndex(r.mapDimension(n.dim)),a=r.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);t[i]?t[i].push(u):t[i]=[u]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(e,t){return e-t});for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}(e),n=[];return dc(e,function(e){var r,i=e.coordinateSystem.getBaseAxis(),o=i.getExtent();if("category"===i.type)r=i.getBandWidth();else if("value"===i.type||"time"===i.type){var a=i.dim+"_"+i.index,s=t[a],l=Math.abs(o[1]-o[0]),u=i.scale.getExtent(),c=Math.abs(u[1]-u[0]);r=s?l/c*s:l}else{var d=e.getData();r=Math.abs(o[1]-o[0])/d.count()}var h=vg(e.get("barWidth"),r),p=vg(e.get("barMaxWidth"),r),f=vg(e.get("barMinWidth")||(function(e){return e.pipelineContext&&e.pipelineContext.large}(e)?.5:1),r),g=e.get("barGap"),m=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:h,barMaxWidth:p,barMinWidth:f,barGap:g,barCategoryGap:m,axisKey:rk(i),stackId:nk(e)})}),function(e){var t={};dc(e,function(e,n){var r=e.axisKey,i=e.bandWidth,o=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[r]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var d=e.barGap;null!=d&&(o.gap=d);var h=e.barCategoryGap;null!=h&&(o.categoryGap=h)});var n={};return dc(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,o=e.categoryGap;if(null==o){var a=gc(r).length;o=Math.max(35-4*a,15)+"%"}var s=vg(o,i),l=vg(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),dc(r,function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,u-=r+l*r,c--}else{var r=d;t&&t<r&&(r=Math.min(t,u)),n&&n>r&&(r=n),r!==d&&(e.width=r,u-=r+l*r,c--)}}),d=(u-s)/(c+(c-1)*l),d=Math.max(d,0);var h,p=0;dc(r,function(e,t){e.width||(e.width=d),h=e,p+=e.width*(1+l)}),h&&(p-=h.width*l);var f=-p/2;dc(r,function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:f,width:e.width},f+=e.width*(1+l)})}),n}(n)}var ok="\0__throttleOriginMethod",ak="\0__throttleRate",sk="\0__throttleType";function lk(e,t,n){var r,i,o,a,s,l=0,u=0,c=null;function d(){u=(new Date).getTime(),c=null,e.apply(o,a||[])}t=t||0;var h=function(){for(var e=[],h=0;h<arguments.length;h++)e[h]=arguments[h];r=(new Date).getTime(),o=this,a=e;var p=s||t,f=s||n;s=null,i=r-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(d,p):i>=0?d():c=setTimeout(d,-i),l=r};return h.clear=function(){c&&(clearTimeout(c),c=null)},h.debounceNextCall=function(e){s=e},h}function uk(e,t,n,r){var i=e[t];if(i){var o=i[ok]||i,a=i[sk];if(i[ak]!==n||a!==r){if(null==n)return e[t]=o;(i=e[t]=lk(o,n,"debounce"===r))[ok]=o,i[sk]=r,i[ak]=n}return i}}function ck(e,t){var n=e[t];n&&n[ok]&&(n.clear&&n.clear(),e[t]=n[ok])}function dk(e,t,n,r,i){var o=e+t;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===t){var l=e.getData(),u=Zg(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:e.id,name:vc(u)?l.getName(u[0]):l.getName(u),selected:_c(r)?r:ac({},r)})}})}var hk=function(){return function(e,t){this.target=e,this.topTarget=t&&t.topTarget}}(),pk=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new hk(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,t.drift(i,o,e),this.handler.dispatchToElement(new hk(t,e),"drag",e.event);var a=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=a,t!==a&&(s&&a!==s&&this.handler.dispatchToElement(new hk(s,e),"dragleave",e.event),a&&a!==s&&this.handler.dispatchToElement(new hk(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new hk(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new hk(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),fk=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,gk=[],mk=Zc.browser.firefox&&+Zc.browser.version.split(".")[0]<39;function yk(e,t,n,r){return n=n||{},r?vk(e,t,n):mk&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):vk(e,t,n),n}function vk(e,t,n){if(Zc.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(ib(e)){var o=e.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(rb(gk,e,r,i))return n.zrX=gk[0],void(n.zrY=gk[1])}n.zrX=n.zrY=0}function xk(e){return e||window.event}function _k(e,t,n){if(null!=(t=xk(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];i&&yk(e,i,t,n)}else{yk(e,t,t,n);var o=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var a=t.button;return null==t.which&&void 0!==a&&fk.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function bk(e,t,n,r){e.addEventListener(t,n,r)}function wk(e,t,n,r){e.removeEventListener(t,n,r)}var Sk=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},kk=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},o=0,a=r.length;o<a;o++){var s=r[o],l=yk(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in Mk)if(Mk.hasOwnProperty(t)){var n=Mk[t](this._track,e);if(n)return n}},e}();function Ck(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var Mk={pinch:function(e,t){var n=e.length;if(n){var r,i=(e[n-1]||{}).points,o=(e[n-2]||{}).points||i;if(o&&o.length>1&&i&&i.length>1){var a=Ck(i)/Ck(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}},Tk="silent";function Ik(){Sk(this.event)}var Pk=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return Vu(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(wp),Dk=function(){return function(e,t){this.x=e,this.y=t}}(),Ak=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ek=new Dd(0,0,0,0),Rk=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a._hovered=new Dk(0,0),a.storage=t,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new Pk,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new pk(a),a}return Vu(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(dc(Ak,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=zk(this,t,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?new Dk(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Dk(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var r=(e=e||{}).target;if(!r||!r.silent){for(var i="on"+t,o=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Ik}}(t,e,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(t,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){"function"==typeof e[i]&&e[i].call(e,o),e.trigger&&e.trigger(t,o)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new Dk(e,t);if(Lk(r,i,e,t,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Dd(e-s,t-s,a,a),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(Ek.copy(c.getBoundingRect()),c.transform&&Ek.applyTransform(c.transform),Ek.intersect(l)&&o.push(c))}if(o.length)for(var d=Math.PI/12,h=2*Math.PI,p=0;p<s;p+=4)for(var f=0;f<h;f+=d){if(Lk(o,i,e+p*Math.cos(f),t+p*Math.sin(f),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new kk);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i;var o=new Dk;o.target=r.target,this.dispatchToElement(o,i,r.event)}},t}(wp);function Ok(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return!i||Tk}return!1}function Lk(e,t,n,r,i){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=Ok(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==Tk)){t.target=a;break}}}function zk(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}dc(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Rk.prototype[e]=function(t){var n,r,i=t.zrX,o=t.zrY,a=zk(this,i,o);if("mouseup"===e&&a||(r=(n=this.findHover(i,o)).target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||oh(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}});function Nk(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;!function(e,t,n){n--;for(;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function Bk(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var o,a=e[r],s=t,l=r;s<l;)i(a,e[o=s+l>>>1])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;u>0;)e[s+u]=e[s+u-1],u--}e[s]=a}}function Fk(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){for(s=r-i;l<s&&o(e,t[n+i+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(e,t[n+i-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function Vk(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){for(s=i+1;l<s&&o(e,t[n+i-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(e,t[n+i+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function $k(e,t){var n,r,i=7,o=0,a=[];function s(s){var l=n[s],u=r[s],c=n[s+1],d=r[s+1];r[s]=u+d,s===o-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),o--;var h=Vk(e[c],e,l,u,0,t);l+=h,0!==(u-=h)&&0!==(d=Fk(e[l+u-1],e,c,d,d-1,t))&&(u<=d?function(n,r,o,s){var l=0;for(l=0;l<r;l++)a[l]=e[n+l];var u=0,c=o,d=n;if(e[d++]=e[c++],0===--s){for(l=0;l<r;l++)e[d+l]=a[u+l];return}if(1===r){for(l=0;l<s;l++)e[d+l]=e[c+l];return void(e[d+s]=a[u])}var h,p,f,g=i;for(;;){h=0,p=0,f=!1;do{if(t(e[c],a[u])<0){if(e[d++]=e[c++],p++,h=0,0===--s){f=!0;break}}else if(e[d++]=a[u++],h++,p=0,1===--r){f=!0;break}}while((h|p)<g);if(f)break;do{if(0!==(h=Vk(e[c],a,u,r,0,t))){for(l=0;l<h;l++)e[d+l]=a[u+l];if(d+=h,u+=h,(r-=h)<=1){f=!0;break}}if(e[d++]=e[c++],0===--s){f=!0;break}if(0!==(p=Fk(a[u],e,c,s,0,t))){for(l=0;l<p;l++)e[d+l]=e[c+l];if(d+=p,c+=p,0===(s-=p)){f=!0;break}}if(e[d++]=a[u++],1===--r){f=!0;break}g--}while(h>=7||p>=7);if(f)break;g<0&&(g=0),g+=2}if((i=g)<1&&(i=1),1===r){for(l=0;l<s;l++)e[d+l]=e[c+l];e[d+s]=a[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)e[d+l]=a[u+l]}}(l,u,c,d):function(n,r,o,s){var l=0;for(l=0;l<s;l++)a[l]=e[o+l];var u=n+r-1,c=s-1,d=o+s-1,h=0,p=0;if(e[d--]=e[u--],0===--r){for(h=d-(s-1),l=0;l<s;l++)e[h+l]=a[l];return}if(1===s){for(p=(d-=r)+1,h=(u-=r)+1,l=r-1;l>=0;l--)e[p+l]=e[h+l];return void(e[d]=a[c])}var f=i;for(;;){var g=0,m=0,y=!1;do{if(t(a[c],e[u])<0){if(e[d--]=e[u--],g++,m=0,0===--r){y=!0;break}}else if(e[d--]=a[c--],m++,g=0,1===--s){y=!0;break}}while((g|m)<f);if(y)break;do{if(0!==(g=r-Vk(a[c],e,n,r,r-1,t))){for(r-=g,p=(d-=g)+1,h=(u-=g)+1,l=g-1;l>=0;l--)e[p+l]=e[h+l];if(0===r){y=!0;break}}if(e[d--]=a[c--],1===--s){y=!0;break}if(0!==(m=s-Fk(e[u],a,0,s,s-1,t))){for(s-=m,p=(d-=m)+1,h=(c-=m)+1,l=0;l<m;l++)e[p+l]=a[h+l];if(s<=1){y=!0;break}}if(e[d--]=e[u--],0===--r){y=!0;break}f--}while(g>=7||m>=7);if(y)break;f<0&&(f=0),f+=2}(i=f)<1&&(i=1);if(1===s){for(p=(d-=r)+1,h=(u-=r)+1,l=r-1;l>=0;l--)e[p+l]=e[h+l];e[d]=a[c]}else{if(0===s)throw new Error;for(h=d-(s-1),l=0;l<s;l++)e[h+l]=a[l]}}(l,u,c,d))}return n=[],r=[],{mergeRuns:function(){for(;o>1;){var e=o-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;s(e)}},forceMergeRuns:function(){for(;o>1;){var e=o-2;e>0&&r[e-1]<r[e+1]&&e--,s(e)}},pushRun:function(e,t){n[o]=e,r[o]=t,o+=1}}}function Wk(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var o=0;if(i<32)Bk(e,n,r,n+(o=Nk(e,n,r,t)),t);else{var a=$k(e,t),s=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(i);do{if((o=Nk(e,n,r,t))<s){var l=i;l>s&&(l=s),Bk(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}}var Hk=!1;function jk(){Hk||(Hk=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Gk(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Uk,Xk=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Gk}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,Wk(n,Gk)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var a=e.childrenRef(),s=0;s<a.length;s++){var l=a[s];e.__dirty&&(l.__dirty|=1),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var u=e;t&&t.length?u.__clipPaths=t:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(jk(),u.z=0),isNaN(u.z2)&&(jk(),u.z2=0),isNaN(u.zlevel)&&(jk(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=lc(this._roots,e);r>=0&&this._roots.splice(r,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}();function Yk(){return(new Date).getTime()}Uk=Zc.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Zk,qk,Kk=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return Vu(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=Yk()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,Uk(function t(){e._running&&(Uk(t),!e._paused&&e.update())})},t.prototype.start=function(){this._running||(this._time=Yk(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Yk(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Yk()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new bp(e,t.loop);return this.addAnimator(n),n},t}(wp),Qk=Zc.domSupported,Jk=(qk={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Zk=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:hc(Zk,function(e){var t=e.replace("mouse","pointer");return qk.hasOwnProperty(t)?t:e})}),eC=["mousemove","mouseup"],tC=["pointermove","pointerup"],nC=!1;function rC(e){var t=e.pointerType;return"pen"===t||"touch"===t}function iC(e){e&&(e.zrByTouch=!0)}function oC(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var aC=function(){return function(e,t){this.stopPropagation=Uc,this.stopImmediatePropagation=Uc,this.preventDefault=Uc,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}}(),sC={mousedown:function(e){e=_k(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=_k(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=_k(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){oC(this,(e=_k(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){nC=!0,e=_k(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){nC||(e=_k(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){iC(e=_k(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),sC.mousemove.call(this,e),sC.mousedown.call(this,e)},touchmove:function(e){iC(e=_k(this.dom,e)),this.handler.processGesture(e,"change"),sC.mousemove.call(this,e)},touchend:function(e){iC(e=_k(this.dom,e)),this.handler.processGesture(e,"end"),sC.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&sC.click.call(this,e)},pointerdown:function(e){sC.mousedown.call(this,e)},pointermove:function(e){rC(e)||sC.mousemove.call(this,e)},pointerup:function(e){sC.mouseup.call(this,e)},pointerout:function(e){rC(e)||sC.mouseout.call(this,e)}};dc(["click","dblclick","contextmenu"],function(e){sC[e]=function(t){t=_k(this.dom,t),this.trigger(e,t)}});var lC={pointermove:function(e){rC(e)||lC.mousemove.call(this,e)},pointerup:function(e){lC.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 uC(e,t){var n=t.domHandlers;Zc.pointerEventsSupported?dc(Jk.pointer,function(r){dC(t,r,function(t){n[r].call(e,t)})}):(Zc.touchEventsSupported&&dc(Jk.touch,function(r){dC(t,r,function(i){n[r].call(e,i),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}(t)})}),dc(Jk.mouse,function(r){dC(t,r,function(i){i=xk(i),t.touching||n[r].call(e,i)})}))}function cC(e,t){function n(n){dC(t,n,function(r){r=xk(r),oC(e,r.target)||(r=function(e,t){return _k(e.dom,new aC(e,t),!0)}(e,r),t.domHandlers[n].call(e,r))},{capture:!0})}Zc.pointerEventsSupported?dc(tC,n):Zc.touchEventsSupported||dc(eC,n)}function dC(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,bk(e.domTarget,t,n,r)}function hC(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&wk(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var pC=function(){return function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}}(),fC=function(e){function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new pC(t,sC),Qk&&(r._globalHandlerScope=new pC(document,lC)),uC(r,r._localHandlerScope),r}return Vu(t,e),t.prototype.dispose=function(){hC(this._localHandlerScope),Qk&&hC(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Qk&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?cC(this,t):hC(t)}},t}(wp),gC={},mC={};var yC=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var i=new Xk,o=n.renderer||"canvas";gC[o]||(o=gc(gC)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new gC[o](t,i,n,e),s=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var l,u=Zc.node||Zc.worker||s?null:new fC(a.getViewportRoot(),a.root),c=n.useCoarsePointer;(null==c||"auto"===c?Zc.touchEventsSupported:!!c)&&(l=Dc(n.pointerSize,44)),this.handler=new Rk(i,a,u,a.root,l),this.animation=new Kk({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"==typeof e)return op(e,1)<.4;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=op(t[i].color,1);return(n/=r)<.4}return!1}(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||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(e){var t,n=Yk();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=Yk();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},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&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.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(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof gy&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){var e;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,e=this.id,delete mC[e])},e}();function vC(e,t){var n=new yC(nc(),e,t);return mC[n.id]=n,n}var xC="";"undefined"!=typeof navigator&&(xC=navigator.platform||"");var _C="rgba(0, 0, 0, 0.2)";const bC={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:_C,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:_C,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:_C,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:_C,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:_C,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:_C,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:xC.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 wC,SC,kC,CC=Wc();var MC="\0_ec_inner",TC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vu(t,e),t.prototype.init=function(e,t,n,r,i,o){r=r||{},this.option=null,this._theme=new cx(r),this._locale=new cx(i),this._optionManager=o},t.prototype.setOption=function(e,t,n){var r=DC(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,DC(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):kC(this,i),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var a=r.getMediaOption(this);a.length&&dc(a,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=Wc(),s=t&&t.replaceMergeMainTypeMap;Tx(this).datasetMap=Wc(),dc(e,function(e,t){null!=e&&(cw.hasClass(t)?t&&(o.push(t),a.set(t,!0)):n[t]=null==n[t]?ic(e):oc(n[t],e,!0))}),s&&s.each(function(e,t){cw.hasClass(t)&&!a.get(t)&&(o.push(t),a.set(t,!0))}),cw.topologicalTravel(o,cw.getAllClassMainTypes(),function(t){var o=function(e,t,n){var r=CC.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}(this,t,Bg(e[t])),a=r.get(t),l=a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",u=Hg(a,o,l);(function(e,t,n){dc(e,function(e){var r=e.newOption;Sc(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}(t,r,e.existing,n))})})(u,t,cw),n[t]=null,r.set(t,null),i.set(t,0);var c,d=[],h=[],p=0;dc(u,function(e,n){var r=e.existing,i=e.newOption;if(i){var o="series"===t,a=cw.getClass(t,e.keyInfo.subType,!o);if(!a)return;if("tooltip"===t){if(c)return;c=!0}if(r&&r.constructor===a)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=ac({componentIndex:n},e.keyInfo);ac(r=new a(i,this,this,s),s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(d.push(r.option),h.push(r),p++):(d.push(void 0),h.push(void 0))},this),n[t]=d,r.set(t,h),i.set(t,p),"series"===t&&wC(this)},this),this._seriesIndices||wC(this)},t.prototype.getOption=function(){var e=ic(this.option);return dc(e,function(t,n){if(cw.hasClass(n)){for(var r=Bg(t),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!Yg(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,e[n]=r}}),delete e[MC],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(null==t)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,i=e.id,o=e.name,a=this._componentsMap.get(t);return a&&a.length?(null!=r?(n=[],dc(Bg(r),function(e){a[e]&&n.push(a[e])})):n=null!=i?IC("id",i,a):null!=o?IC("name",o,a):fc(a,function(e){return!!e}),PC(n,e)):[]},t.prototype.findComponents=function(e){var t,n,r,i,o,a=e.query,s=e.mainType,l=(n=s+"Index",r=s+"Id",i=s+"Name",!(t=a)||null==t[n]&&null==t[r]&&null==t[i]?null:{mainType:s,index:t[n],id:t[r],name:t[i]}),u=l?this.queryComponents(l):fc(this._componentsMap.get(s),function(e){return!!e});return o=PC(u,e),e.filter?fc(o,e.filter):o},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(xc(e)){var i=t,o=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&o.call(i,t,r,r.componentIndex)}})}else for(var a=_c(e)?r.get(e):Sc(e)?this.findComponents(e):null,s=0;a&&s<a.length;s++){var l=a[s];l&&t.call(n,l,l.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=Ug(e,null);return fc(this._componentsMap.get("series"),function(e){return!!e&&null!=t&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return fc(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return fc(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){SC(this),dc(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){dc(this._componentsMap.get("series"),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){SC(this),dc(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return dc(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return SC(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){SC(this);var n=[];dc(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=Wc(n)},t.prototype.restoreData=function(e){wC(this);var t=this._componentsMap,n=[];t.each(function(e,t){cw.hasClass(t)&&n.push(t)}),cw.topologicalTravel(n,cw.getAllClassMainTypes(),function(n){dc(t.get(n),function(t){!t||"series"===n&&function(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}(t,e)||t.restoreData()})})},t.internalField=(wC=function(e){var t=e._seriesIndices=[];dc(e._componentsMap.get("series"),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=Wc(t)},SC=function(e){},void(kC=function(e,t){e.option={},e.option[MC]=1,e._componentsMap=Wc({series:[]}),e._componentsCount=Wc();var n,r,i,o=t.aria;Sc(o)&&null==o.enabled&&(o.enabled=!0),n=t,r=e._theme.option,i=n.color&&!n.colorLayer,dc(r,function(e,t){"colorLayer"===t&&i||cw.hasClass(t)||("object"==typeof e?n[t]=n[t]?oc(n[t],e,!1):ic(e):null==n[t]&&(n[t]=e))}),oc(t,bC,!1),e._mergeOption(t,null)})),t}(cx);function IC(e,t,n){if(vc(t)){var r=Wc();return dc(t,function(e){null!=e&&(null!=Ug(e,null)&&r.set(e,!0))}),fc(n,function(t){return t&&r.get(t[e])})}var i=Ug(t,null);return fc(n,function(t){return t&&null!=i&&t[e]===i})}function PC(e,t){return t.hasOwnProperty("subType")?fc(e,function(e){return e&&e.subType===t.subType}):e}function DC(e){var t=Wc();return e&&dc(Bg(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}uc(TC,hw);var AC=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],EC=function(){return function(e){dc(AC,function(t){this[t]=mc(e[t],e)},this)}}(),RC=/^(min|max)?(.+)$/,OC=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(dc(Bg(e.series),function(e){e&&e.data&&Cc(e.data)&&Nc(e.data)}),dc(Bg(e.dataset),function(e){e&&e.source&&Cc(e.source)&&Nc(e.source)})),e=ic(e);var r=this._optionBackup,i=function(e,t,n){var r,i,o=[],a=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,d=!!(l||s||a&&a.timeline);a?(i=a).timeline||(i.timeline=s):((d||c)&&(e.options=e.media=null),i=e);c&&vc(u)&&dc(u,function(e){e&&e.option&&(e.query?o.push(e):r||(r=e))});function h(e){dc(t,function(t){t(e,n)})}return h(i),dc(l,function(e){return h(e)}),dc(o,function(e){return h(e.option)}),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],ic(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent("timeline");r&&(t=ic(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,r=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,c=o.length;u<c;u++)LC(o[u].query,r,i)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(l=hc(s,function(e){return ic(-1===e?a.option:o[e].option)})),this._currentMediaIndices=s,l},e}();function LC(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return dc(e,function(e,t){var n=t.match(RC);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(r[a],e,o)||(i=!1)}}),i}var zC=dc,NC=Sc,BC=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function FC(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=BC.length;n<r;n++){var i=BC[n],o=t.normal,a=t.emphasis;o&&o[i]&&(e[i]=e[i]||{},e[i].normal?oc(e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),a&&a[i]&&(e[i]=e[i]||{},e[i].emphasis?oc(e[i].emphasis,a[i]):e[i].emphasis=a[i],a[i]=null)}}function VC(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,sc(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function $C(e){VC(e,"itemStyle"),VC(e,"lineStyle"),VC(e,"areaStyle"),VC(e,"label"),VC(e,"labelLine"),VC(e,"upperLabel"),VC(e,"edgeLabel")}function WC(e,t){var n=NC(e)&&e[t],r=NC(n)&&n.textStyle;if(r)for(var i=0,o=Vg.length;i<o;i++){var a=Vg[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function HC(e){e&&($C(e),WC(e,"label"),e.emphasis&&WC(e.emphasis,"label"))}function jC(e){return vc(e)?e:e?[e]:[]}function GC(e){return(vc(e)?e[0]:e)||{}}function UC(e,t){zC(jC(e.series),function(e){NC(e)&&function(e){if(NC(e)){FC(e),$C(e),WC(e,"label"),WC(e,"upperLabel"),WC(e,"edgeLabel"),e.emphasis&&(WC(e.emphasis,"label"),WC(e.emphasis,"upperLabel"),WC(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(FC(t),HC(t));var n=e.markLine;n&&(FC(n),HC(n));var r=e.markArea;r&&HC(r);var i=e.data;if("graph"===e.type){i=i||e.nodes;var o=e.links||e.edges;if(o&&!Cc(o))for(var a=0;a<o.length;a++)HC(o[a]);dc(e.categories,function(e){$C(e)})}if(i&&!Cc(i))for(a=0;a<i.length;a++)HC(i[a]);if((t=e.markPoint)&&t.data){var s=t.data;for(a=0;a<s.length;a++)HC(s[a])}if((n=e.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)vc(l[a])?(HC(l[a][0]),HC(l[a][1])):HC(l[a])}"gauge"===e.type?(WC(e,"axisLabel"),WC(e,"title"),WC(e,"detail")):"treemap"===e.type?(VC(e.breadcrumb,"itemStyle"),dc(e.levels,function(e){$C(e)})):"tree"===e.type&&$C(e.leaves)}}(e)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),zC(n,function(t){zC(jC(e[t]),function(e){e&&(WC(e,"axisLabel"),WC(e.axisPointer,"label"))})}),zC(jC(e.parallel),function(e){var t=e&&e.parallelAxisDefault;WC(t,"axisLabel"),WC(t&&t.axisPointer,"label")}),zC(jC(e.calendar),function(e){VC(e,"itemStyle"),WC(e,"dayLabel"),WC(e,"monthLabel"),WC(e,"yearLabel")}),zC(jC(e.radar),function(e){WC(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),zC(jC(e.geo),function(e){NC(e)&&(HC(e),zC(jC(e.regions),function(e){HC(e)}))}),zC(jC(e.timeline),function(e){HC(e),VC(e,"label"),VC(e,"itemStyle"),VC(e,"controlStyle",!0);var t=e.data;vc(t)&&dc(t,function(e){Sc(e)&&(VC(e,"label"),VC(e,"itemStyle"))})}),zC(jC(e.toolbox),function(e){VC(e,"iconStyle"),zC(e.feature,function(e){VC(e,"iconStyle")})}),WC(GC(e.axisPointer),"label"),WC(GC(e.tooltip).axisPointer,"label")}function XC(e){e&&dc(YC,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var YC=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],ZC=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],qC=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function KC(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<qC.length;n++){var r=qC[n][1],i=qC[n][0];null!=t[r]&&(t[i]=t[r])}}function QC(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function JC(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function eM(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&eM(e[n].children,t)}function tM(e,t){UC(e,t),e.series=Bg(e.series),dc(e.series,function(e){if(Sc(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){if(null!=e.clockWise&&(e.clockwise=e.clockWise),QC(e.label),(i=e.data)&&!Cc(i))for(var n=0;n<i.length;n++)QC(i[n]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var r=function(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(e,"pointer.color");null!=r&&function(e,t,n){for(var r,i=t.split(","),o=e,a=0;a<i.length-1;a++)null==o[r=i[a]]&&(o[r]={}),o=o[r];null==o[i[a]]&&(o[i[a]]=n)}(e,"itemStyle.color",r)}else if("bar"===t){var i;if(KC(e),KC(e.backgroundStyle),KC(e.emphasis),(i=e.data)&&!Cc(i))for(n=0;n<i.length;n++)"object"==typeof i[n]&&(KC(i[n]),KC(i[n]&&i[n].emphasis))}else if("sunburst"===t){var o=e.highlightPolicy;o&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=o)),JC(e),eM(e.data,JC)}else"graph"===t||"sankey"===t?function(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&sc(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),XC(e)}}),e.dataRange&&(e.visualMap=e.dataRange),dc(ZC,function(t){var n=e[t];n&&(vc(n)||(n=[n]),dc(n,function(e){XC(e)}))})}function nM(e){dc(e,function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,c){var d,h,p=a.get(t.stackedDimension,c);if(isNaN(p))return i;s?h=a.getRawIndex(c):d=a.get(t.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var m=e[g];if(s||(h=m.data.rawIndexOf(m.stackedByDimension,d)),h>=0){var y=m.data.getByRawIndex(m.stackResultDimension,h);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&p>=0&&y>0||"samesign"===l&&p<=0&&y<0){p=Sg(p,y),f=y;break}}}return r[0]=p,r[1]=f,r})})}var rM=function(){function e(){this.group=new gy,this.uid=q_("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Jc(rM),id(rM);var iM=qg(),oM={itemStyle:od(sx,!0),lineStyle:od(ix,!0)},aM={lineStyle:"stroke",itemStyle:"fill"};function sM(e,t){var n=e.visualStyleMapper||oM[t];return n||(console.warn("Unknown style type '"+t+"'."),oM.itemStyle)}function lM(e,t){var n=e.visualDrawType||aM[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var uM={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=sM(e,r)(i),a=i.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=lM(e,r),l=o[s],u=xc(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[s]||(o[s]=d,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||xc(o.fill)?d:o.fill,o.stroke="auto"===o.stroke||xc(o.stroke)?d:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=ac({},o);i[s]=u(r),t.setItemVisual(n,"style",i)}}}},cM=new cx,dM={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=sM(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){cM.option=n[r];var a=i(cM);ac(e.ensureUniqueItemVisual(t,"style"),a),cM.option.decal&&(e.setItemVisual(t,"decal",cM.option.decal),cM.option.decal.dirty=!0),o in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},hM={performRawSeries:!0,overallReset:function(e){var t=Wc();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,i=t.get(r);i||(i={},t.set(r,i)),iM(e).scope=i}}),e.eachSeries(function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},i=t.getData(),o=iM(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=lM(t,a);i.each(function(e){var t=i.getRawIndex(e);r[t]=e}),n.each(function(e){var a=r[e];if(i.getItemVisual(a,"colorFromPalette")){var l=i.ensureUniqueItemVisual(a,"style"),u=n.getName(e)||e+"",c=n.count();l[s]=t.getColorFromPalette(u,o,c)}})}})}},pM=Math.PI;var fM=function(){function e(e,t,n,r){this._stageTaskMap=Wc(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount;return{step:i,modBy:null!=o?Math.ceil(o/i):null,modDataCount:o}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,o=e.get("large")&&r>=e.get("largeThreshold"),a="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Wc();e.eachSeries(function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;dc(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});Oc(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r=r||{};var i=!1,o=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}dc(e,function(e,s){if(!r.visualType||r.visualType===e.visualType){var l=o._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var d,h=c.agentStubMap;h.each(function(e){a(r,e)&&(e.dirty(),d=!0)}),d&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,r.block);h.each(function(e){e.perform(p)}),c.perform(p)&&(i=!0)}else u&&u.each(function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)})}}),this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,o=t.seriesTaskMap,a=t.seriesTaskMap=Wc(),s=e.seriesType,l=e.getTargetSeries;function u(t){var s=t.uid,l=a.set(s,o&&o.get(s)||mw({plan:xM,reset:_M,count:SM}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,o=t.overallTask=t.overallTask||mw({reset:gM});o.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=Wc(),l=e.seriesType,u=e.getTargetSeries,c=!0,d=!1;function h(e){var t=e.uid,n=s.set(t,a&&a.get(t)||(d=!0,mw({reset:mM,onDirty:vM})));n.context={model:e,overallProgress:c},n.agent=o,n.__block=c,i._pipe(e,n)}Oc(!e.createOnAllSeries,""),l?n.eachRawSeriesByType(l,h):u?u(n,r).each(h):(c=!1,dc(n.getSeries(),h)),d&&o.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return xc(e)&&(e={overallReset:e,seriesType:kM(e)}),e.uid=q_("stageHandler"),t&&(e.visualType=t),e},e}();function gM(e){e.overallReset(e.ecModel,e.api,e.payload)}function mM(e){return e.overallProgress&&yM}function yM(){this.agent.dirty(),this.getDownstream().dirty()}function vM(){this.agent&&this.agent.dirty()}function xM(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function _M(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Bg(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?hc(t,function(e,t){return wM(t)}):bM}var bM=wM(0);function wM(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(t,r)}}function SM(e){return e.data.count()}function kM(e){CM=null;try{e(MM,TM)}catch(t){}return CM}var CM,MM={},TM={};function IM(e,t){for(var n in t.prototype)e[n]=Uc}IM(MM,TC),IM(TM,EC),MM.eachSeriesByType=MM.eachRawSeriesByType=function(e){CM=e},MM.eachComponent=function(e){"series"===e.mainType&&e.subType&&(CM=e.subType)};var PM=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const DM={color:PM,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],PM]};var AM="#B9B8CE",EM="#100C2A",RM=function(){return{axisLine:{lineStyle:{color:AM}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},OM=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],LM={darkMode:!0,color:OM,backgroundColor:EM,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:AM}},textStyle:{color:AM},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:AM}},dataZoom:{borderColor:"#71708A",textStyle:{color:AM},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:AM}},timeline:{lineStyle:{color:AM},label:{color:AM},controlStyle:{color:AM,borderColor:AM}},calendar:{itemStyle:{color:EM},dayLabel:{color:AM},monthLabel:{color:AM},yearLabel:{color:AM}},timeAxis:RM(),logAxis:RM(),valueAxis:RM(),categoryAxis:RM(),line:{symbol:"circle"},graph:{color:OM},gauge:{title:{color:AM},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:AM},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};LM.categoryAxis.splitLine.show=!1;var zM=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(_c(e)){var i=Qc(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};dc(e,function(e,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var d=i.slice(0,c);"data"!==d&&(t.mainType=d,t[u.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,r,i));function u(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),NM=["symbol","symbolSize","symbolRotate","symbolOffset"],BM=NM.concat(["symbolKeepAspect"]),FM={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<NM.length;a++){var s=NM[a],l=e.get(s);xc(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(ac({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),!t.isSeriesFiltered(e)){var u=gc(i);return{dataEach:o?function(t,n){for(var r=e.getRawValue(n),o=e.getDataParams(n),a=0;a<u.length;a++){var s=u[a];t.setItemVisual(n,s,i[s](r,o))}}:null}}}}},VM={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),r=0;r<BM.length;r++){var i=BM[r],o=n.getShallow(i,!0);null!=o&&e.setItemVisual(t,i,o)}}:null}}};function $M(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}var WM=Math.round(9*Math.random()),HM="function"==typeof Object.defineProperty,jM=function(){function e(){this._id="__ec_inner_"+WM++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return HM?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}();function GM(e){return isFinite(e)}function UM(e,t,n){for(var r="radial"===t.type?function(e,t,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;return t.global||(a=a*r+n.x,s=s*i+n.y,l*=o),a=GM(a)?a:.5,s=GM(s)?s:.5,l=l>=0&&GM(l)?l:.5,e.createRadialGradient(a,s,0,a,s,l)}(e,t,n):function(e,t,n){var r=null==t.x?0:t.x,i=null==t.x2?1:t.x2,o=null==t.y?0:t.y,a=null==t.y2?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=GM(r)?r:0,i=GM(i)?i:1,o=GM(o)?o:0,a=GM(a)?a:0,e.createLinearGradient(r,o,i,a)}(e,t,n),i=t.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function XM(e){return parseInt(e,10)}function YM(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||XM(s[r])||XM(e.style[r]))-(XM(s[o])||0)-(XM(s[a])||0)|0}function ZM(e){var t,n,r=e.style,i=r.lineDash&&r.lineWidth>0&&(t=r.lineDash,n=r.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:wc(t)?[t]:vc(t)?t:null:null),o=r.lineDashOffset;if(i){var a=r.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&1!==a&&(i=hc(i,function(e){return e/a}),o/=a)}return[i,o]}var qM=new Sf(!0);function KM(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function QM(e){return"string"==typeof e&&"none"!==e}function JM(e){var t=e.fill;return null!=t&&"none"!==t}function eT(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function tT(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function nT(e,t,n){var r=pd(t.image,t.__image,n);if(gd(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*Xc),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}var rT=["shadowBlur","shadowOffsetX","shadowOffsetY"],iT=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function oT(e,t,n,r,i){var o=!1;if(!r&&t===(n=n||{}))return!1;if(r||t.opacity!==n.opacity){lT(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?Bp.opacity:a}(r||t.blend!==n.blend)&&(o||(lT(e,i),o=!0),e.globalCompositeOperation=t.blend||Bp.blend);for(var s=0;s<rT.length;s++){var l=rT[s];(r||t[l]!==n[l])&&(o||(lT(e,i),o=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(o||(lT(e,i),o=!0),e.shadowColor=t.shadowColor||Bp.shadowColor),o}function aT(e,t,n,r,i){var o=uT(t,i.inHover),a=r?null:n&&uT(n,i.inHover)||{};if(o===a)return!1;var s=oT(e,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(lT(e,i),s=!0),QM(o.fill)&&(e.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(lT(e,i),s=!0),QM(o.stroke)&&(e.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(lT(e,i),s=!0),e.globalAlpha=null==o.opacity?1:o.opacity),t.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(lT(e,i),s=!0),e.lineWidth=l)}for(var u=0;u<iT.length;u++){var c=iT[u],d=c[0];(r||o[d]!==a[d])&&(s||(lT(e,i),s=!0),e[d]=o[d]||c[1])}return s}function sT(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function lT(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function uT(e,t){return t&&e.__hoverStyle||e.style}function cT(e,t){dT(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function dT(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=-2,void(t.__isRendered=!1);var o=t.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}(o,a)||(a&&a.length&&(lT(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(lT(e,n),e.save(),function(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];r=r||o.isZeroArea(),sT(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=r}(o,e,n),s=!0),n.prevElClipPaths=o),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c,d,h=t instanceof jf&&t.autoBatch&&function(e){var t=JM(e),n=KM(e);return!(e.lineDash||!(+t^+n)||t&&"string"!=typeof e.fill||n&&"string"!=typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}(t.style);s||(c=i,d=u.transform,c&&d?c[0]!==d[0]||c[1]!==d[1]||c[2]!==d[2]||c[3]!==d[3]||c[4]!==d[4]||c[5]!==d[5]:c||d)?(lT(e,n),sT(e,t)):h||lT(e,n);var p=uT(t,n.inHover);t instanceof jf?(1!==n.lastDrawType&&(l=!0,n.lastDrawType=1),aT(e,t,u,l,n),h&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,r){var i,o=KM(n),a=JM(n),s=n.strokePercent,l=s<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var c=t.path||qM,d=t.__dirty;if(!r){var h=n.fill,p=n.stroke,f=a&&!!h.colorStops,g=o&&!!p.colorStops,m=a&&!!h.image,y=o&&!!p.image,v=void 0,x=void 0,_=void 0,b=void 0,w=void 0;(f||g)&&(w=t.getBoundingRect()),f&&(v=d?UM(e,h,w):t.__canvasFillGradient,t.__canvasFillGradient=v),g&&(x=d?UM(e,p,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),m&&(_=d||!t.__canvasFillPattern?nT(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=_),y&&(b=d||!t.__canvasStrokePattern?nT(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),f?e.fillStyle=v:m&&(_?e.fillStyle=_:a=!1),g?e.strokeStyle=x:y&&(b?e.strokeStyle=b:o=!1)}var S,k,C=t.getGlobalScale();c.setScale(C[0],C[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(S=(i=ZM(t))[0],k=i[1]);var M=!0;(u||4&d)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),M=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),M&&c.rebuildPath(e,l?s:1),S&&(e.setLineDash(S),e.lineDashOffset=k),r||(n.strokeFirst?(o&&tT(e,n),a&&eT(e,n)):(a&&eT(e,n),o&&tT(e,n))),S&&e.setLineDash([])}(e,t,p,h),h&&(n.batchFill=p.fill||"",n.batchStroke=p.stroke||"")):t instanceof Uf?(3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),aT(e,t,u,l,n),function(e,t,n){var r,i=n.text;if(null!=i&&(i+=""),i){e.font=n.font||$u,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(o=(r=ZM(t))[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(KM(n)&&e.strokeText(i,n.x,n.y),JM(n)&&e.fillText(i,n.x,n.y)):(JM(n)&&e.fillText(i,n.x,n.y),KM(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}(e,t,p)):t instanceof Zf?(2!==n.lastDrawType&&(l=!0,n.lastDrawType=2),function(e,t,n,r,i){oT(e,uT(t,i.inHover),n&&uT(n,i.inHover),r,i)}(e,t,u,l,n),function(e,t,n){var r=t.__image=pd(n.image,t.__image,t,t.onload);if(r&&gd(r)){var i=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var d=a-(u=n.sx),h=s-(c=n.sy);e.drawImage(r,u,c,d,h,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}(e,t,p)):t.getTemporalDisplayables&&(4!==n.lastDrawType&&(l=!0,n.lastDrawType=4),function(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=t.getCursor(),a=r.length;o<a;o++){(c=r[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),dT(e,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var l=0,u=i.length;l<u;l++){var c;(c=i[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),dT(e,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n)),h&&r&&lT(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}var hT=new jM,pT=new cd(100),fT=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function gT(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&hT.delete(e);var o=hT.get(e);if(o)return o;var a=sc(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});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(e){for(var t,o=[n],s=!0,l=0;l<fT.length;++l){var u=a[fT[l]];if(null!=u&&!vc(u)&&!_c(u)&&!wc(u)&&"boolean"!=typeof u){s=!1;break}o.push(u)}if(s){t=o.join(",")+(i?"-svg":"");var c=pT.get(t);c&&(i?e.svgElement=c:e.image=c)}var d,h=yT(a.dashArrayX),p=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if(wc(e)){var t=Math.ceil(e);return[t,t]}var n=hc(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}(a.dashArrayY),f=mT(a.symbol),g=(_=h,hc(_,function(e){return vT(e)})),m=vT(p),y=!i&&Hu.createCanvas(),v=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var e=1,t=0,n=g.length;t<n;++t)e=Rg(e,g[t]);var r=1;for(t=0,n=f.length;t<n;++t)r=Rg(r,f[t].length);e*=r;var i=m*g.length*f.length;return{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();var _;y&&(y.width=x.width*n,y.height=x.height*n,d=y.getContext("2d"));(function(){d&&(d.clearRect(0,0,y.width,y.height),a.backgroundColor&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,y.width,y.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(e<=0)return;var o=-m,s=0,l=0,u=0;for(;o<x.height;){if(s%2==0){for(var c=l/2%f.length,g=0,_=0,b=0;g<2*x.width;){var w=0;for(t=0;t<h[u].length;++t)w+=h[u][t];if(w<=0)break;if(_%2==0){var S=.5*(1-a.symbolSize),k=g+h[u][_]*S,C=o+p[s]*S,M=h[u][_]*a.symbolSize,T=p[s]*a.symbolSize,I=b/2%f[c].length;P(k,C,M,T,f[c][I])}g+=h[u][_],++b,++_===h[u].length&&(_=0)}++u===h.length&&(u=0)}o+=p[s],++l,++s===p.length&&(s=0)}function P(e,t,o,s,l){var u=i?1:n,c=cS(l,e*u,t*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var h=r.painter.renderOneToVNode(c);h&&v.children.push(h)}else cT(d,c)}})(),s&&pT.put(t,y||v);e.image=y,e.svgElement=v,e.svgWidth=x.width,e.svgHeight=x.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,hT.set(e,s),e.dirty=!1,s}function mT(e){if(!e||0===e.length)return[["rect"]];if(_c(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!_c(e[n])){t=!1;break}if(t)return mT([e]);var r=[];for(n=0;n<e.length;++n)_c(e[n])?r.push([e[n]]):r.push(e[n]);return r}function yT(e){if(!e||0===e.length)return[[0,0]];if(wc(e))return[[i=Math.ceil(e),i]];for(var t=!0,n=0;n<e.length;++n)if(!wc(e[n])){t=!1;break}if(t)return yT([e]);var r=[];for(n=0;n<e.length;++n)if(wc(e[n])){var i=Math.ceil(e[n]);r.push([i,i])}else{(i=hc(e[n],function(e){return Math.ceil(e)})).length%2==1?r.push(i.concat(i)):r.push(i)}return r}function vT(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}var xT=new wp,_T={};var bT=2e3,wT=4500,ST={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:bT,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:wT,ARIA:6e3,DECAL:7e3}},kT="__flagInMainProcess",CT="__pendingUpdate",MT="__needsUpdateStatus",TT=/^[a-zA-Z0-9_]+$/,IT="__connectUpdateStatus";function PT(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return AT(this,e,t);this.id}}function DT(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return AT(this,e,t)}}function AT(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),wp.prototype[t].apply(e,n)}var ET,RT,OT,LT,zT,NT,BT,FT,VT,$T,WT,HT,jT,GT,UT,XT,YT,ZT,qT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vu(t,e),t}(wp),KT=qT.prototype;KT.on=DT("on"),KT.off=DT("off");var QT=function(e){function t(t,n,r){var i=e.call(this,new zM)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},_c(n)&&(n=aI[n]),i._dom=t;r.ssr;var o=i._zr=vC(t,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:Dc(r.useDirtyRect,!1),useCoarsePointer:Dc(r.useCoarsePointer,"auto"),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=lk(mc(o.flush,o),17),(n=ic(n))&&tM(n,!0),i._theme=n,i._locale=function(e){if(_c(e)){var t=db[e.toUpperCase()]||{};return e===lb||e===ub?ic(t):oc(ic(t),ic(db[cb]),!1)}return oc(ic(e),ic(db[cb]),!1)}(r.locale||pb),i._coordSysMgr=new W_;var a=i._api=UT(i);function s(e,t){return e.__prio-t.__prio}return Wk(oI,s),Wk(rI,s),i._scheduler=new fM(i,a,rI,oI),i._messageCenter=new qT,i._initEvents(),i.resize=mc(i.resize,i),o.animation.on("frame",i._onframe,i),$T(o,i),WT(o,i),Nc(i),i}return Vu(t,e),t.prototype._onframe=function(){if(!this._disposed){ZT(this);var e=this._scheduler;if(this[CT]){var t=this[CT].silent;this[kT]=!0;try{ET(this),LT.update.call(this,null,this[CT].updateParams)}catch(a){throw this[kT]=!1,this[CT]=null,a}this._zr.flush(),this[kT]=!1,this[CT]=null,FT.call(this,t),VT.call(this,t)}else if(e.unfinished){var n=1,r=this._model,i=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),NT(this,r),e.performVisualTasks(r),GT(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&e.unfinished);e.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(e,t,n){if(!this[kT])if(this._disposed)this.id;else{var r,i,o;if(Sc(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,o=t.transition,t=t.notMerge),this[kT]=!0,!this._model||t){var a=new OC(this._api),s=this._theme,l=this._model=new TC;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:i},iI);var u={seriesTransition:o,optionChanged:!0};if(n)this[CT]={silent:r,updateParams:u},this[kT]=!1,this.getZr().wakeUp();else{try{ET(this),LT.update.call(this,null,u)}catch(c){throw this[CT]=null,this[kT]=!1,c}this._ssr||this._zr.flush(),this[CT]=null,this[kT]=!1,FT.call(this,r),VT.call(this,r)}}},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||Zc.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(Zc.svgSupported){var e=this._zr;return dc(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,r=[],i=this;dc(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return dc(r,function(e){e.group.ignore=!1}),o}this.id},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(uI[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();dc(lI,function(o,d){if(o.group===n){var h=t?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(ic(e)),p=o.getDom().getBoundingClientRect();a=r(p.left,a),s=r(p.top,s),l=i(p.right,l),u=i(p.bottom,u),c.push({dom:h,left:p.left,top:p.top})}});var h=(l*=d)-(a*=d),p=(u*=d)-(s*=d),f=Hu.createCanvas(),g=vC(f,{renderer:t?"svg":"canvas"});if(g.resize({width:h,height:p}),t){var m="";return dc(c,function(e){var t=e.left-a,n=e.top-s;m+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new ng({shape:{x:0,y:0,width:h,height:p},style:{fill:e.connectedBackgroundColor}})),dc(c,function(e){var t=new Zf({style:{x:e.left*d-a,y:e.top*d-s,image:e.dom}});g.add(t)}),g.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}this.id},t.prototype.convertToPixel=function(e,t){return zT(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return zT(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var n;if(!this._disposed)return dc(Qg(this._model,e),function(e,r){r.indexOf("Models")>=0&&dc(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}},this)},this),!!n;this.id},t.prototype.getVisual=function(e,t){var n=Qg(this._model,e,{defaultMainType:"series"}),r=n.seriesModel.getData(),i=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=i?function(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}(r,i,t):function(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}(r,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e,t,n,r=this;dc(eI,function(e){var t=function(t){var n,i=r.getModel(),o=t.target;if("globalout"===e?n={}:o&&$M(o,function(e){var t=im(e);if(t&&null!=t.dataIndex){var r=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return n=r&&r.getDataParams(t.dataIndex,t.dataType,o)||{},!0}if(t.eventData)return n=ac({},t.eventData),!0},!0),n){var a=n.componentType,s=n.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=n.seriesIndex);var l=a&&null!=s&&i.getComponent(a,s),u=l&&r["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=t,n.type=e,r._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:l,view:u},r.trigger(e,n)}};t.zrEventfulCallAtLast=!0,r._zr.on(e,t,r)}),dc(nI,function(e,t){r._messageCenter.on(t,function(e){this.trigger(t,e)},r)}),dc(["selectchanged"],function(e){r._messageCenter.on(e,function(t){this.trigger(e,t)},r)}),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",function(e){var r=n.getModel();e.isFromClick?(dk("map","selectchanged",t,r,e),dk("pie","selectchanged",t,r,e)):"select"===e.fromAction?(dk("map","selected",t,r,e),dk("pie","selected",t,r,e)):"unselect"===e.fromAction&&(dk("map","unselected",t,r,e),dk("pie","unselected",t,r,e))})},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&rm(this.getDom(),hI,"");var e=this,t=e._api,n=e._model;dc(e._componentsViews,function(e){e.dispose(n,t)}),dc(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete lI[e.id]}},t.prototype.resize=function(e){if(!this[kT])if(this._disposed)this.id;else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this[CT]&&(null==r&&(r=this[CT].silent),n=!0,this[CT]=null),this[kT]=!0;try{n&&ET(this),LT.update.call(this,{type:"resize",animation:ac({duration:0},e&&e.animation)})}catch(i){throw this[kT]=!1,i}this[kT]=!1,FT.call(this,r),VT.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)this.id;else if(Sc(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),sI[e]){var n=sI[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=ac({},e);return t.type=nI[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)this.id;else if(Sc(t)||(t={silent:!!t}),tI[e.type]&&this._model)if(this[kT])this._pendingActions.push(e);else{var n=t.silent;BT.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&Zc.browser.weChat&&this._throttledZrFlush(),FT.call(this,n),VT.call(this,n)}},t.prototype.updateLabelLayout=function(){xT.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)this.id;else{var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function t(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i)}e.selected&&e.states.select&&t.push("select"),2===e.hoverState&&e.states.emphasis?t.push("emphasis"):1===e.hoverState&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,i=e.get("zlevel")||0;t.eachRendered(function(e){return r(e,n,i,-1/0),!0})}}function r(e,t,n,i){var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)i=Math.max(r(s[l],t,n,i),i);else e.z=t,e.zlevel=n,i=Math.max(e.z2,i);if(o&&(o.z=t,o.zlevel=n,isFinite(i)&&(o.z2=i+2)),a){var u=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function i(e,t){t.eachRendered(function(e){if(!hv(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}})}function o(e,n){var r=e.getModel("stateAnimation"),i=e.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered(function(e){if(e.states&&e.states.emphasis){if(hv(e))return;if(e instanceof jf&&function(e){var t=sm(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(i){e.stateTransition=a;var r=e.getTextContent(),o=e.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}})}ET=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),RT(e,!0),RT(e,!1),t.plan()},RT=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&o[u];if(!c){var d=Qc(e.type);(c=new(t?rM.getClass(d.main,d.sub):zS.getClass(d.sub))).init(n,s),o[u]=c,i.push(c),a.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(c,e,n,s)}t?n.eachComponent(function(e,t){"series"!==e&&u(t)}):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!t&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},OT=function(e,t,n,r,i){var o=e._model;if(o.setUpdatePayload(n),r){var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};i&&(s.subType=i);var l,u=n.excludeSeriesId;null!=u&&(l=Wc(),dc(Bg(u),function(e){var t=Ug(e,null);null!=t&&l.set(t,!0)})),o&&o.eachComponent(s,function(t){if(!(l&&null!=l.get(t.id)))if(Km(n))if(t instanceof Yw)n.type!==dm||n.notBlur||t.get(["emphasis","disabled"])||function(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var o=Zg(i,t);o=(vc(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=im(a);Bm(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);null!=c&&Bm(r,c,d,n)}}}(t,n,e._api);else{var r=Vm(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,o=r.dispatchers;n.type===dm&&i&&!n.notBlur&&Fm(t.mainType,t.componentIndex,e._api),o&&dc(o,function(e){n.type===dm?Am(e):Em(e)})}else qm(n)&&t instanceof Yw&&(!function(e,t){if(qm(t)){var n=t.dataType,r=Zg(e.getData(n),t);vc(r)||(r=[r]),e[t.type===gm?"toggleSelect":t.type===pm?"select":"unselect"](r,n)}}(t,n,e._api),$m(t),YT(e))},e),o&&o.eachComponent(s,function(t){l&&null!=l.get(t.id)||c(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])},e)}else dc([].concat(e._componentsViews).concat(e._chartsViews),c);function c(r){r&&r.__alive&&r[t]&&r[t](r.__model,o,e._api,n)}},LT={prepareAndUpdate:function(e){ET(this),LT.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,t),NT(this,r),a.update(r,i),e(r),s.performVisualTasks(r,t),HT(this,r,i,t,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),xT.trigger("afterupdate",r,i)}},updateTransform:function(t){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(t);var o=[];r.eachComponent(function(e,a){if("series"!==e){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,t);l&&l.update&&o.push(s)}else o.push(s)}});var a=Wc();r.eachSeries(function(e){var o=n._chartsMap[e.__viewId];if(o.updateTransform){var s=o.updateTransform(e,r,i,t);s&&s.update&&a.set(e.uid,1)}else a.set(e.uid,1)}),e(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:a}),GT(this,r,i,t,{},a),xT.trigger("afterupdate",r,i)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),zS.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),HT(this,n,this._api,t,{}),xT.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries(function(e){e.getData().clearAllVisual()}),zS.markUpdateMethod(t,"updateVisual"),e(r),this._scheduler.performVisualTasks(r,t,{visualType:"visual",setDirty:!0}),r.eachComponent(function(e,i){if("series"!==e){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,t)}}),r.eachSeries(function(e){n._chartsMap[e.__viewId].updateVisual(e,r,n._api,t)}),xT.trigger("afterupdate",r,this._api))},updateLayout:function(e){LT.update.call(this,e)}},zT=function(e,t,n,r){if(e._disposed)e.id;else for(var i,o=e._model,a=e._coordSysMgr.getCoordinateSystems(),s=Qg(o,n),l=0;l<a.length;l++){var u=a[l];if(u[t]&&null!=(i=u[t](o,s,r)))return i}},NT=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},BT=function(e,t){var n=this,r=this.getModel(),i=e.type,o=e.escapeConnect,a=tI[i],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&Qc(l[0]);this[kT]=!0;var d=[e],h=!1;e.batch&&(h=!0,d=hc(e.batch,function(t){return(t=sc(ac({},t),e)).batch=null,t}));var p,f=[],g=qm(e),m=Km(e);if(m&&Nm(this._api),dc(d,function(t){if((p=(p=a.action(t,n._model,n._api))||ac({},t)).type=s.event||p.type,f.push(p),m){var r=Jg(e),i=r.queryOptionMap,o=r.mainTypeSpecified?i.keys()[0]:"series";OT(n,u,t,o),YT(n)}else g?(OT(n,u,t,"series"),YT(n)):c&&OT(n,u,t,c.main,c.sub)}),"none"!==u&&!m&&!g&&!c)try{this[CT]?(ET(this),LT.update.call(this,e),this[CT]=null):LT[u].call(this,e)}catch(x){throw this[kT]=!1,x}if(p=h?{type:s.event||i,escapeConnect:o,batch:f}:f[0],this[kT]=!1,!t){var y=this._messageCenter;if(y.trigger(p.type,p),g){var v={type:"selectchanged",escapeConnect:o,selected:Wm(r),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};y.trigger(v.type,v)}}},FT=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();BT.call(this,n,e)}},VT=function(e){!e&&this.trigger("updated")},$T=function(e,t){e.on("rendered",function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[CT]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")})},WT=function(e,t){e.on("mouseover",function(e){var n=$M(e.target,Zm);n&&(!function(e,t,n){var r=im(e),i=Vm(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&Fm(r.componentMainType,r.componentIndex,n),dc(o,function(e){return Pm(e,t)})):(Bm(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&Fm(r.componentMainType,r.componentIndex,n),Pm(e,t))}(n,e,t._api),YT(t))}).on("mouseout",function(e){var n=$M(e.target,Zm);n&&(!function(e,t,n){Nm(n);var r=im(e),i=Vm(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?dc(i,function(e){return Dm(e,t)}):Dm(e,t)}(n,e,t._api),YT(t))}).on("click",function(e){var n=$M(e.target,function(e){return null!=im(e).dataIndex},!0);if(n){var r=n.selected?"unselect":"select",i=im(n);t._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}})},HT=function(e,t,n,r,i){!function(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:i.componentIndex,type:e,key:s})}),r){var i,o,a=t.concat(n);Wk(a,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),dc(a,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,a=t.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)})}}(t),jT(e,t,n,r,i),dc(e._chartsViews,function(e){e.__alive=!1}),GT(e,t,n,r,i),dc(e._chartsViews,function(e){e.__alive||e.remove(t,n)})},jT=function(e,t,r,a,s,l){dc(l||e._componentsViews,function(e){var s=e.__model;i(s,e),e.render(s,t,r,a),n(s,e),o(s,e)})},GT=function(e,t,r,a,s,l){var u=e._scheduler;s=ac(s||{},{updatedSeries:t.getSeries()}),xT.trigger("series:beforeupdate",t,r,s);var c=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var r=n.renderTask;u.updatePayload(r,a),i(t,n),l&&l.get(t.uid)&&r.dirty(),r.perform(u.getPerformArgs(r))&&(c=!0),n.group.silent=!!t.get("silent"),function(e,t){var n=e.get("blendMode")||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}(t,n),$m(t)}),u.unfinished=c||u.unfinished,xT.trigger("series:layoutlabels",t,r,s),xT.trigger("series:transition",t,r,s),t.eachSeries(function(t){var r=e._chartsMap[t.__viewId];n(t,r),o(t,r)}),function(e,t){var n=e._zr,r=n.storage,i=0;r.traverse(function(e){e.isGroup||i++}),i>t.get("hoverLayerThreshold")&&!Zc.node&&!Zc.worker&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}})}(e,t),xT.trigger("series:afterupdate",t,r,s)},YT=function(e){e[MT]=!0,e.getZr().wakeUp()},ZT=function(e){e[MT]&&(e.getZr().storage.traverse(function(e){hv(e)||t(e)}),e[MT]=!1)},UT=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Vu(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Am(t,n),YT(e)},n.prototype.leaveEmphasis=function(t,n){Em(t,n),YT(e)},n.prototype.enterBlur=function(t){!function(e){Cm(e,_m)}(t),YT(e)},n.prototype.leaveBlur=function(t){Rm(t),YT(e)},n.prototype.enterSelect=function(t){Om(t),YT(e)},n.prototype.leaveSelect=function(t){Lm(t),YT(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(EC))(e)},XT=function(e){function t(e,t){for(var n=0;n<e.length;n++){e[n][IT]=t}}dc(nI,function(n,r){e._messageCenter.on(r,function(n){if(uI[e.group]&&0!==e[IT]){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];dc(lI,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,0),dc(i,function(e){1!==e[IT]&&e.dispatchAction(r)}),t(i,2)}})})}}(),t}(wp),JT=QT.prototype;JT.on=PT("on"),JT.off=PT("off"),JT.one=function(e,t,n){var r=this;this.on.call(this,e,function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),r.off(e,n)},n)};var eI=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var tI={},nI={},rI=[],iI=[],oI=[],aI={},sI={},lI={},uI={},cI=+new Date-0,dI=+new Date-0,hI="_echarts_instance_";function pI(e){return lI[function(e,t){return e.getAttribute?e.getAttribute(t):e[t]}(e,hI)]}function fI(e,t){aI[e]=t}function gI(e){lc(iI,e)<0&&iI.push(e)}function mI(e,t){bI(rI,e,t,2e3)}function yI(e,t){xT.on(e,t)}function vI(e,t,n){xc(t)&&(n=t,t="");var r=Sc(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,nI[t]||(Oc(TT.test(r)&&TT.test(t)),tI[r]||(tI[r]={action:n,actionInfo:e}),nI[t]=r)}function xI(e,t){bI(oI,e,t,3e3,"visual")}var _I=[];function bI(e,t,n,r,i){if((xc(t)||Sc(t))&&(n=t,t=r),!(lc(_I,n)>=0)){_I.push(n);var o=fM.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function wI(e,t){sI[e]=t}var SI=function(e){var t=(e=ic(e)).type;t||Og("");var n=t.split(":");2!==n.length&&Og("");var r=!1;"echarts"===n[0]&&(t=n[1],r=!0),e.__isBuiltIn=r,kw.set(t,e)};xI(bT,uM),xI(wT,dM),xI(wT,hM),xI(bT,FM),xI(wT,VM),xI(7e3,function(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,"decal");n&&(r.ensureUniqueItemVisual(e,"style").decal=gT(n,t))});var i=r.getVisual("decal");if(i)r.getVisual("style").decal=gT(i,t)}})}),gI(tM),mI(900,function(e){var t=Wc();e.eachSeries(function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}}),t.each(nM)}),wI("default",function(e,t){sc(t=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 n=new gy,r=new ng({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,o=new og({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 ng({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&((i=new qy({shape:{startAngle:-pM/2,endAngle:-pM/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*pM/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*pM/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),u=e.getHeight()/2;t.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}),vI({type:dm,event:dm,update:dm},Uc),vI({type:hm,event:hm,update:hm},Uc),vI({type:pm,event:pm,update:pm},Uc),vI({type:fm,event:fm,update:fm},Uc),vI({type:gm,event:gm,update:gm},Uc),fI("light",DM),fI("dark",LM);var kI=[],CI={registerPreprocessor:gI,registerProcessor:mI,registerPostInit:function(e){yI("afterinit",e)},registerPostUpdate:function(e){yI("afterupdate",e)},registerUpdateLifecycle:yI,registerAction:vI,registerCoordinateSystem:function(e,t){W_.register(e,t)},registerLayout:function(e,t){bI(oI,e,t,1e3,"layout")},registerVisual:xI,registerTransform:SI,registerLoading:wI,registerMap:function(e,t,n){var r=_T["registerMap"];r&&r(e,t,n)},registerImpl:function(e,t){_T[e]=t},PRIORITY:ST,ComponentModel:cw,ComponentView:rM,SeriesModel:Yw,ChartView:zS,registerComponentModel:function(e){cw.registerClass(e)},registerComponentView:function(e){rM.registerClass(e)},registerSeriesModel:function(e){Yw.registerClass(e)},registerChartView:function(e){zS.registerClass(e)},registerSubTypeDefaulter:function(e,t){cw.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){var n;n=t,gC[e]=n}};function MI(e){vc(e)?dc(e,function(e){MI(e)}):lc(kI,e)>=0||(kI.push(e),xc(e)&&(e={install:e}),e.install(CI))}var TI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vu(t,e),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}(cw),II=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),PI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vu(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",em).models[0]},t.type="cartesian2dAxis",t}(cw);uc(PI,II);var DI={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)"]}}},AI=oc({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},DI),EI=oc({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}}},DI);const RI={category:AI,value:EI,time:oc({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},EI),log:sc({logBase:10},EI)};var OI=0,LI=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++OI}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&hc(r,zI);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!_c(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return null==(t=r.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Wc(this.categories))},e}();function zI(e){return Sc(e)&&null!=e.value?e.value:e+""}var NI={value:1,category:1,time:1,log:1};function BI(e,t,n,r){dc(NI,function(i,o){var a=oc(oc({},RI[o],!0),r,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+o,n}return Vu(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=aw(this),r=n?lw(e):{};oc(e,t.getTheme().get(o+"Axis")),oc(e,this.getDefaultOption()),e.type=FI(e),n&&sw(e,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=LI.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+o,n.defaultOption=a,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",FI)}function FI(e){return e.type||(e.data?"category":"value")}var VI=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();function $I(e){return"interval"===e.type||"log"===e.type}function WI(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=Pg(o/t);null!=n&&a<n&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=jI(a);return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),GI(e,0,t),GI(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(i.niceTickExtent=[xg(Math.ceil(e[0]/a)*a,s),xg(Math.floor(e[1]/a)*a,s)],e),i}function HI(e){var t=Math.pow(10,Ig(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,xg(n*t)}function jI(e){return bg(e)+2}function GI(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function UI(e,t){return e>=t[0]&&e<=t[1]}function XI(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function YI(e,t){return e*(t[1]-t[0])+t[0]}id(VI);var ZI=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new LI({})),vc(r)&&(r=new LI({categories:hc(r,function(e){return Sc(e)?e.value:e})})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return Vu(t,e),t.prototype.parse=function(e){return null==e?NaN:_c(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return UI(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return XI(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(YI(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);i<a;++i){var s=t[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(VI);VI.registerClass(ZI);var qI=xg,KI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return Vu(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return UI(e,this._extent)},t.prototype.normalize=function(e){return XI(e,this._extent)},t.prototype.scale=function(e){return YI(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=jI(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!t)return o;n[0]<r[0]&&(e?o.push({value:qI(r[0]-t,i)}):o.push({value:n[0]}));for(var a=r[0];a<=r[1]&&(o.push({value:a}),(a=qI(a+t,i))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:r[1];return n[1]>s&&(e?o.push({value:qI(s+t,i)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){for(var o=t[i],a=t[i-1],s=0,l=[],u=(o.value-a.value)/e;s<e-1;){var c=qI(a.value+(s+1)*u);c>r[0]&&c<r[1]&&l.push(c),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=bg(e.value)||0:"auto"===n&&(n=this._intervalPrecision),Gb(qI(e.value,n,!0))},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=WI(r,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=qI(Math.floor(t[0]/i)*i)),e.fixMax||(t[1]=qI(Math.ceil(t[1]/i)*i))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(VI);VI.registerClass(KI);var QI=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return Vu(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return Ib(e.value,wb[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Mb(this._minLevelUnit))]||wb.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC");return function(e,t,n,r,i){var o=null;if(_c(n))o=n;else if(xc(n))o=n(e.value,t,{level:e.level});else{var a=ac({},_b);if(e.level>0)for(var s=0;s<Sb.length;++s)a[Sb[s]]="{primary|"+a[Sb[s]]+"}";var l=n?!1===n.inherit?n:sc(n,a):a,u=Pb(e.value,i);if(l[u])o=l[u];else if(l.inherit){for(s=kb.indexOf(u)-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(vc(o)){var c=null==e.level?0:e.level>=0?e.level:o.length+e.level;o=o[c=Math.min(c,o.length-1)]}}return Ib(new Date(e.value),o,i,r)}(e,t,n,this.getSetting("locale"),r)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting("useUTC"),i=function(e,t,n,r){var i=1e4,o=kb,a=0;function s(e,t,n,i,o,a,s){for(var l=new Date(t),u=t,c=l[i]();u<n&&u<=r[1];)s.push({value:u}),c+=e,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(e,i,o){var a=[],l=!i.length;if(!function(e,t,n,r){var i=Tg(t),o=Tg(n),a=function(e){return Db(i,e,r)===Db(o,e,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},d=function(){return c()&&a("minute")},h=function(){return d()&&a("second")},p=function(){return h()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return h();case"millisecond":return p()}}(Mb(e),r[0],r[1],n)){l&&(i=[{value:oP(new Date(r[0]),e,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,d=i[u+1].value;if(c!==d){var h=void 0,p=void 0,f=void 0,g=!1;switch(e){case"year":h=Math.max(1,Math.round(t/vb/365)),p=Ab(n),f=Bb(n);break;case"half-year":case"quarter":case"month":h=tP(t),p=Eb(n),f=Fb(n);break;case"week":case"half-week":case"day":h=eP(t),p=Rb(n),f=Vb(n),g=!0;break;case"half-day":case"quarter-day":case"hour":h=nP(t),p=Ob(n),f=$b(n);break;case"minute":h=rP(t,!0),p=Lb(n),f=Wb(n);break;case"second":h=rP(t,!1),p=zb(n),f=Hb(n);break;case"millisecond":h=iP(t),p=Nb(n),f=jb(n)}s(h,c,d,p,f,g,a),"year"===e&&o.length>1&&0===u&&o.unshift({value:o[0].value-h})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],d=0,h=0,p=0;p<o.length&&a++<i;++p){var f=Mb(o[p]);if(Tb(o[p]))if(l(o[p],u[u.length-1]||[],c),f!==(o[p+1]?Mb(o[p+1]):null)){if(c.length){h=d,c.sort(function(e,t){return e.value-t.value});for(var g=[],m=0;m<c.length;++m){var y=c[m].value;0!==m&&c[m-1].value===y||(g.push(c[m]),y>=r[0]&&y<=r[1]&&d++)}var v=(r[1]-r[0])/t;if(d>1.5*v&&h>v/1.5)break;if(u.push(g),d>v||e===o[p])break}c=[]}}var x=fc(hc(u,function(e){return fc(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),_=[],b=x.length-1;for(p=0;p<x.length;++p)for(var w=x[p],S=0;S<w.length;++S)_.push({value:w[S].value,level:b-p});_.sort(function(e,t){return e.value-t.value});var k=[];for(p=0;p<_.length;++p)0!==p&&_[p].value===_[p-1].value||k.push(_[p]);return k}(this._minLevelUnit,this._approxInterval,r,t);return(n=n.concat(i)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=vb,t[1]+=vb),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-vb}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=JI.length,a=Math.min(function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n}(JI,this._approxInterval,0,o),o-1);this._interval=JI[a][1],this._minLevelUnit=JI[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return wc(e)?e:+Tg(e)},t.prototype.contain=function(e){return UI(this.parse(e),this._extent)},t.prototype.normalize=function(e){return XI(this.parse(e),this._extent)},t.prototype.scale=function(e){return YI(e,this._extent)},t.type="time",t}(KI),JI=[["second",gb],["minute",mb],["hour",yb],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",xb/2],["year",xb]];function eP(e,t){return(e/=vb)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function tP(e){return(e/=2592e6)>6?6:e>3?3:e>2?2:1}function nP(e){return(e/=yb)>12?12:e>6?6:e>3.5?4:e>2?2:1}function rP(e,t){return(e/=t?mb:gb)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function iP(e){return Pg(e)}function oP(e,t,n){var r=new Date(e);switch(Mb(t)){case"year":case"month":r[Fb(n)](0);case"day":r[Vb(n)](1);case"hour":r[$b(n)](0);case"minute":r[Wb(n)](0);case"second":r[Hb(n)](0),r[jb(n)](0)}return r.getTime()}VI.registerClass(QI);var aP=VI.prototype,sP=KI.prototype,lP=xg,uP=Math.floor,cP=Math.ceil,dP=Math.pow,hP=Math.log,pP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new KI,t._interval=0,t}return Vu(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent();return hc(sP.getTicks.call(this,e),function(e){var t=e.value,i=xg(dP(this.base,t));return i=t===n[0]&&this._fixMin?gP(i,r[0]):i,{value:i=t===n[1]&&this._fixMax?gP(i,r[1]):i}},this)},t.prototype.setExtent=function(e,t){var n=hP(this.base);e=hP(Math.max(0,e))/n,t=hP(Math.max(0,t))/n,sP.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=aP.getExtent.call(this);t[0]=dP(e,t[0]),t[1]=dP(e,t[1]);var n=this._originalScale.getExtent();return this._fixMin&&(t[0]=gP(t[0],n[0])),this._fixMax&&(t[1]=gP(t[1],n[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=hP(e[0])/hP(t),e[1]=hP(e[1])/hP(t),aP.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var r,i=(r=n,Math.pow(10,Ig(r)));for(e/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[xg(cP(t[0]/i)*i),xg(uP(t[1]/i)*i)];this._interval=i,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){sP.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return UI(e=hP(e)/hP(this.base),this._extent)},t.prototype.normalize=function(e){return XI(e=hP(e)/hP(this.base),this._extent)},t.prototype.scale=function(e){return e=YI(e,this._extent),dP(this.base,e)},t.type="log",t}(VI),fP=pP.prototype;function gP(e,t){return lP(e,bg(t))}fP.getMinorTicks=sP.getMinorTicks,fP.getLabel=sP.getLabel,VI.registerClass(pP);var mP=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);null==i&&(i=t.get("startValue",!0));var o=this._modelMinRaw=i;xc(o)?this._modelMinNum=_P(e,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=_P(e,o));var a=this._modelMaxRaw=t.get("max",!0);if(xc(a)?this._modelMaxNum=_P(e,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=_P(e,a)),r)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=vc(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Bd(l[0],1),Bd(l[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=e?r?0:NaN:t-i[0]*o),null==s&&(s=e?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=Ic(a)||Ic(s)||e&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var d=this._determinedMin,h=this._determinedMax;return null!=d&&(a=d,l=!0),null!=h&&(s=h,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},e.prototype.modifyDataMinMax=function(e,t){this[vP[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){this[yP[e]]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),yP={min:"_determinedMin",max:"_determinedMax"},vP={min:"_dataMin",max:"_dataMax"};function xP(e,t,n){var r=e.rawExtentInfo;return r||(r=new mP(e,t,n),e.rawExtentInfo=r,r)}function _P(e,t){return null==t?null:Ic(t)?NaN:e.parse(t)}function bP(e,t){var n=e.type,r=xP(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,o=r.max,a=t.ecModel;if(a&&"time"===n){var s=function(e,t){var n=[];return t.eachSeriesByType(e,function(e){(function(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type})(e)&&n.push(e)}),n}("bar",a),l=!1;if(dc(s,function(e){l=l||e.getBaseAxis()===t.axis}),l){var u=ik(s),c=function(e,t,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=function(e,t){if(e&&t)return e[rk(t)]}(r,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;dc(a,function(e){s=Math.min(e.offset,s)});var l=-1/0;dc(a,function(e){l=Math.max(e.offset+e.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,d=c/(1-(s+l)/o)-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function wP(e,t){var n=t,r=bP(e,n),i=r.extent,o=n.get("splitNumber");e instanceof pP&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function SP(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(n,r){return e.scale.getFormattedLabel(n,r,t)}}(t):_c(t)?function(t){return function(n){var r=e.scale.getLabel(n);return t.replace("{value}",null!=r?r:"")}}(t):xc(t)?function(t){return function(r,i){return null!=n&&(i=r.value-n),t(kP(e,r),i,null!=r.level?{level:r.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function kP(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function CP(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n));return new Dd(e.x,e.y,o,a)}function MP(e){var t=e.get("interval");return null==t?"auto":t}function TP(e){return"category"===e.type&&0===MP(e.getLabelModel())}function IP(e,t){var n={};return dc(e.mapDimensionsAll(t),function(t){n[function(e,t){return X_(e,t)?e.getCalculationInfo("stackResultDimension"):t}(e,t)]=!0}),gc(n)}var PP=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return hc(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),fc(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),DP=["x","y"];function AP(e){return"interval"===e.type||"time"===e.type}var EP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=DP,t}return Vu(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(AP(e)&&AP(t)){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,d=i[1]-r[0]*u,h=this._transform=[l,0,0,u,c,d];this._invTransform=_d([],h)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),o=new Dd(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return sh(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,t)),n[1]=a.toGlobalCoord(a.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(e[0]),s=r.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return sh(n,e,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e,o=Math.max(t[0],t[1])-r+e,a=Math.max(n[0],n[1])-i+e;return new Dd(r,i,o,a)},t}(PP),RP=qg();function OP(e,t){var n=hc(t,function(t){return e.scale.parse(t)});return"time"===e.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function LP(e){var t=e.getLabelModel().get("customValues");if(t){var n=SP(e);return{labels:OP(e,t).map(function(t){var r={value:t};return{formattedLabel:n(r),rawLabel:e.scale.getLabel(r),tickValue:t}})}}return"category"===e.type?function(e){var t=e.getLabelModel(),n=NP(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=SP(e);return{labels:hc(t,function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}})}}(e)}function zP(e,t){var n=e.getTickModel().get("customValues");return n?{ticks:OP(e,n)}:"category"===e.type?function(e,t){var n,r,i=BP(e,"ticks"),o=MP(t),a=FP(i,o);if(a)return a;t.get("show")&&!e.scale.isBlank()||(n=[]);if(xc(o))n=WP(e,o,!0);else if("auto"===o){var s=NP(e,e.getLabelModel());r=s.labelCategoryInterval,n=hc(s.labels,function(e){return e.tickValue})}else n=$P(e,r=o,!0);return VP(i,o,{ticks:n,tickCategoryInterval:r})}(e,t):{ticks:hc(e.scale.getTicks(),function(e){return e.value})}}function NP(e,t){var n,r,i=BP(e,"labels"),o=MP(t),a=FP(i,o);return a||(xc(o)?n=WP(e,o):(r="auto"===o?function(e){var t=RP(e).autoInterval;return null!=t?t:RP(e).autoInterval=e.calculateCategoryInterval()}(e):o,n=$P(e,r)),VP(i,o,{labels:n,labelCategoryInterval:r}))}function BP(e,t){return RP(e)[t]||(RP(e)[t]=[])}function FP(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function VP(e,t,n){return e.push({key:t,value:n}),n}function $P(e,t,n){var r=SP(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=TP(e),h=a.get("showMinLabel")||d,p=a.get("showMaxLabel")||d;h&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return p&&f-l!==o[1]&&g(o[1]),s}function WP(e,t,n){var r=e.scale,i=SP(e),o=[];return dc(r.getTicks(),function(e){var a=r.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:i(e),rawLabel:a,tickValue:s})}),o}var HP=[0,1];function jP(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}var GP=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return Vu(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return wg(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&jP(n=n.slice(),r.count()),yg(e,HP,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&jP(n=n.slice(),r.count());var i=yg(e,n,HP,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=hc(zP(this,t).ticks,function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}},this);return function(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var o,a,s=e.getExtent();if(1===i)t[0].coord=s[0],o=t[1]={coord:s[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;dc(t,function(e){e.coord-=u/2}),a=1+e.scale.getExtent()[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*a},t.push(o)}var c=s[0]>s[1];d(t[0].coord,s[0])&&(r?t[0].coord=s[0]:t.shift());r&&d(s[0],t[0].coord)&&t.unshift({coord:s[0]});d(s[1],o.coord)&&(r?o.coord=s[1]:t.pop());r&&d(o.coord,s[1])&&t.push({coord:s[1]});function d(e,t){return e=xg(e),t=xg(t),c?e>t:e<t}}(this,n,t.get("alignWithLabel"),e.clamp),n},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");return e>0&&e<100||(e=5),hc(this.scale.getMinorTicks(e),function(e){return hc(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(){return LP(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 e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return function(e){var t=function(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()}}(e),n=SP(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),h=0,p=0;l<=o[1];l+=s){var f,g,m=Od(n({value:l}),t.font,"center","top");f=1.3*m.width,g=1.3*m.height,h=Math.max(h,f,7),p=Math.max(p,g,7)}var y=h/c,v=p/d;isNaN(y)&&(y=1/0),isNaN(v)&&(v=1/0);var x=Math.max(0,Math.floor(Math.min(y,v))),_=RP(e.model),b=e.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=w:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}(this)},e}());function UP(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,f="x"===u?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[h.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[h[l]]:d[0],"x"===u?f[h[l]]:d[3]],o.rotation=Math.PI/2*("x"===u?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[h[s]]-f[h.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Pc(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-m:m,o.z2=1,o}function XP(e){return"cartesian2d"===e.get("coordinateSystem")}function YP(e){var t={xAxisModel:null,yAxisModel:null};return dc(t,function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,em).models[0];t[r]=o}),t}var ZP=Math.log;var qP=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=DP,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function r(e){var t,n=gc(e),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=e[+n[o]],s=a.model,l=a.scale;$I(l)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(wP(l,s),$I(l)&&(t=a))}i.length&&(t||wP((t=i.pop()).scale,t.model),dc(i,function(e){!function(e,t,n){var r=KI.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=bP(e,t),u=l.extent,c=l.fixMin,d=l.fixMax;if("log"===e.type){var h=ZP(e.base);u=[ZP(u[0])/h,ZP(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:d});var p=r.getExtent.call(e);c&&(u[0]=p[0]),d&&(u[1]=p[1]);var f=r.getInterval.call(e),g=u[0],m=u[1];if(c&&d)f=(m-g)/a;else if(c)for(m=u[0]+f*a;m<u[1]&&isFinite(m)&&isFinite(u[1]);)f=HI(f),m=u[0]+f*a;else if(d)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=HI(f),g=u[1]-f*a;else{e.getTicks().length-1>a&&(f=HI(f));var y=f*a;(g=xg((m=Math.ceil(u[1]/f)*f)-y))<0&&u[0]>=0?(g=0,m=xg(y)):m>0&&u[1]<=0&&(m=0,g=-xg(y))}var v=(i[0].value-o[0].value)/s,x=(i[a].value-o[a].value)/s;r.setExtent.call(e,g+f*v,m+f*x),r.setInterval.call(e,f),(v||x)&&r.setNiceExtent.call(e,g+f,m-f)}(e.scale,e.model,t.scale)}))}}this._updateScale(e,this.model),r(n.x),r(n.y);var i={};dc(n.x,function(e){QP(n,"y",e,i)}),dc(n.y,function(e){QP(n,"x",e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=ow(r,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){dc(a,function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),function(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}(e,t?o.x:o.y)})}s(),i&&(dc(a,function(e){if(!e.model.get(["axisLabel","inside"])){var t=function(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();i=n instanceof ZI?n.count():(r=n.getTicks()).length;var a,s=e.getLabelModel(),l=SP(e),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var d=l(r?r[c]:{value:o[0]+c},c),h=CP(s.getTextRect(d),s.get("rotate")||0);a?a.union(h):a=h}return a}}(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+r,"top"===e.position?o.y+=t.height+r:"left"===e.position&&(o.x+=t.width+r)}}}),s()),dc(this._coordsList,function(e){e.calcAffineTransform()})},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}Sc(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===e||i[r].getAxis("y").index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",em).models[0],o=e.yAxisModel||r&&r.getReferringComponents("yAxis",em).models[0],a=e.gridModel,s=this._coordsList;if(r)lc(s,t=r.coordinateSystem)<0&&(t=null);else if(i&&o)t=this.getCartesian(i.componentIndex,o.componentIndex);else if(i)n=this.getAxis("x",i.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){a.coordinateSystem===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,r){if(KP(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new GP(t,function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new ZI({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new QI({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(VI.getClass(t)||KI)}}(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),a[t][r]=u,s[t]++}}}this._axesMap=a,dc(a.x,function(t,n){dc(a.y,function(i,o){var a="x"+n+"y"+o,s=new EP(a);s.master=r,s.model=e,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})})},e.prototype._updateScale=function(e,t){function n(e,t){dc(IP(e,t.dim),function(n){t.scale.unionExtentFromData(e,n)})}dc(this._axesList,function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}}),e.eachSeries(function(e){if(XP(e)){var r=YP(e),i=r.xAxisModel,o=r.yAxisModel;if(!KP(i,t)||!KP(o,t))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=e.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}},this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return dc(this.getCartesians(),function(r){var i=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),o=r.getOtherAxis(i);lc(t,i)<0&&t.push(i),lc(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent("grid",function(i,o){var a=new e(i,t,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)}),t.eachSeries(function(e){if(XP(e)){var t=YP(e),n=t.xAxisModel,r=t.yAxisModel,i=n.getCoordSysModel().coordinateSystem;e.coordinateSystem=i.getCartesian(n.componentIndex,r.componentIndex)}}),r},e.dimensions=DP,e}();function KP(e,t){return e.getCoordSysModel()===t}function QP(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=e[t],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)JP(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&JP(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(e){return e.dim+"_"+e.index}}function JP(e){return e&&"category"!==e.type&&"time"!==e.type&&function(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}(e)}var eD=Math.PI,tD=function(){function e(e,t){this.group=new gy,this.opt=t,this.axisModel=e,sc(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new gy({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!nD[e]},e.prototype.add=function(e){nD[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var r,i,o=kg(t-e);return Cg(o)?(i=n>0?"top":"bottom",r="center"):Cg(o-eD)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<eD?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),nD={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if("auto"===i&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),i){var o=t.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(sh(s,s,a),sh(l,l,a));var c=ac({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new jy({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Cv(d.shape,d.style.lineWidth),d.anid="line",n.add(d);var h=t.get(["axisLine","symbol"]);if(null!=h){var p=t.get(["axisLine","symbolSize"]);_c(h)&&(h=[h,h]),(_c(p)||wc(p))&&(p=[p,p]);var f=dS(t.get(["axisLine","symbolOffset"])||0,p),g=p[0],m=p[1];dc([{rotate:e.rotation+Math.PI/2,offset:f[0],r:0},{rotate:e.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(t,r){if("none"!==h[r]&&null!=h[r]){var i=cS(h[r],-g/2,-m/2,g,m,c.stroke,!0),o=t.r+t.offset,a=u?l:s;i.attr({rotation:t.rotate,x:a[0]+o*Math.cos(e.rotation),y:a[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(i)}})}}},axisTickLabel:function(e,t,n,r){var i=function(e,t,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick"));if(!a||i.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=aD(i.getTicksCoords(),t.transform,l,sc(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)e.add(u[c]);return u}(n,r,t,e),o=function(e,t,n,r){var i=n.axis,o=Pc(r.axisLabelShow,n.get(["axisLabel","show"]));if(!o||i.scale.isBlank())return;var a=n.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),u=(Pc(r.labelRotate,a.get("rotate"))||0)*eD/180,c=tD.innerTextLayout(r.rotation,u,r.labelDirection),d=n.getCategories&&n.getCategories(!0),h=[],p=tD.isLabelSilent(n),f=n.get("triggerEvent");return dc(l,function(o,u){var g="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,m=o.formattedLabel,y=o.rawLabel,v=a;if(d&&d[g]){var x=d[g];Sc(x)&&x.textStyle&&(v=new cx(x.textStyle,a,n.ecModel))}var _=v.getTextColor()||n.get(["axisLine","lineStyle","color"]),b=i.dataToCoord(g),w=v.getShallow("align",!0)||c.textAlign,S=Dc(v.getShallow("alignMinLabel",!0),w),k=Dc(v.getShallow("alignMaxLabel",!0),w),C=v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||c.textVerticalAlign,M=Dc(v.getShallow("verticalAlignMinLabel",!0),C),T=Dc(v.getShallow("verticalAlignMaxLabel",!0),C),I=new og({x:b,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:p,z2:10+(o.level||0),style:jv(v,{text:m,align:0===u?S:u===l.length-1?k:w,verticalAlign:0===u?M:u===l.length-1?T:C,fill:xc(_)?_("category"===i.type?y:"value"===i.type?g+"":g,u):_})});if(I.anid="label_"+g,f){var P=tD.makeAxisEventDataBase(n);P.targetType="axisLabel",P.value=y,P.tickIndex=u,"category"===i.type&&(P.dataIndex=g),im(I).eventData=P}t.add(I),I.updateTransform(),h.push(I),e.add(I),I.decomposeTransform()}),h}(n,r,t,e);(function(e,t,n){if(TP(e.axis))return;var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],d=n[n.length-1],h=n[n.length-2];!1===r?(rD(o),rD(u)):iD(o,a)&&(r?(rD(a),rD(c)):(rD(o),rD(u)));!1===i?(rD(s),rD(d)):iD(l,s)&&(i?(rD(l),rD(h)):(rD(s),rD(d)))}(t,o,i),function(e,t,n,r){var i=n.axis,o=n.getModel("minorTick");if(!o.get("show")||i.scale.isBlank())return;var a=i.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=sc(s.getLineStyle(),sc(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var d=aD(a[c],t.transform,l,u,"minorticks_"+c),h=0;h<d.length;h++)e.add(d[h])}(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"]))&&function(e){var t=[];e.sort(function(e,t){return t.priority-e.priority});var n=new Dd(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i<e.length;i++){var o=e[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=o.obb,h=!1,p=0;p<t.length;p++){var f=t[p];if(n.intersect(f.rect)){if(a&&f.axisAligned){h=!0;break}if(f.obb||(f.obb=new ov(f.localRect,f.transform)),d||(d=new ov(s,l)),d.intersect(f.obb)){h=!0;break}}}h?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new ov(a,o):null;t.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return t}(hc(o,function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})))},axisName:function(e,t,n,r){var i=Pc(e.axisName,t.get("name"));if(i){var o,a,s=t.get("nameLocation"),l=e.nameDirection,u=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,d=t.axis.getExtent(),h=d[0]>d[1]?-1:1,p=["start"===s?d[0]-h*c:"end"===s?d[1]+h*c:(d[0]+d[1])/2,oD(s)?e.labelOffset+l*c:0],f=t.get("nameRotate");null!=f&&(f=f*eD/180),oD(s)?o=tD.innerTextLayout(e.rotation,null!=f?f:e.rotation,l):(o=function(e,t,n,r){var i,o,a=kg(n-e),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;Cg(a-eD/2)?(o=l?"bottom":"top",i="center"):Cg(a-1.5*eD)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*eD&&a>eD/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:i,textVerticalAlign:o}}(e.rotation,s,f||0,d),null!=(a=e.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),m=t.get("nameTruncate",!0)||{},y=m.ellipsis,v=Pc(e.nameTruncateMaxWidth,m.maxWidth,a),x=new og({x:p[0],y:p[1],rotation:o.rotation,silent:tD.isLabelSilent(t),style:jv(u,{text:i,font:g,overflow:"truncate",width:v,ellipsis:y,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(zv({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var _=tD.makeAxisEventDataBase(t);_.targetType="axisName",_.name=i,im(x).eventData=_}r.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function rD(e){e&&(e.ignore=!0)}function iD(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var i=md([]);return xd(i,i,-e.rotation),n.applyTransform(yd([],i,e.getLocalTransform())),r.applyTransform(yd([],i,t.getLocalTransform())),n.intersect(r)}}function oD(e){return"middle"===e||"center"===e}function aD(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,t&&(sh(a,a,t),sh(s,s,t));var c=new jy({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Cv(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,o.push(c)}return o}function sD(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];dc(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=dD(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var u=n.model.getModel("tooltip",r);if(dc(n.getAxes(),yc(p,!1,null)),n.getTooltipAxes&&r&&u.get("show")){var c="axis"===u.get("trigger"),d="cross"===u.get(["axisPointer","type"]),h=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||d)&&dc(h.baseAxes,yc(p,!d||"cross",c)),d&&dc(h.otherAxes,yc(p,"cross",!1))}}function p(r,s,c){var d=c.model.getModel("axisPointer",i),h=d.get("show");if(h&&("auto"!==h||r||cD(d))){null==s&&(s=d.get("triggerTooltip")),d=r?function(e,t,n,r,i,o){var a=t.getModel("axisPointer"),s={};dc(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(e){s[e]=ic(a.get(e))}),s.snap="category"!==e.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===i){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&sc(l,c.textStyle)}}return e.model.getModel("axisPointer",new cx(s,n,r))}(c,u,i,t,r,s):d;var p=d.get("snap"),f=d.get("triggerEmphasis"),g=dD(c.model),m=s||p||"category"===c.type,y=e.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:f,involveSeries:m,snap:p,useHandle:cD(d),seriesModels:[],linkGroup:null};l[g]=y,e.seriesInvolved=e.seriesInvolved||m;var v=function(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(lD(o[r+"AxisId"],n.id)||lD(o[r+"AxisIndex"],n.componentIndex)||lD(o[r+"AxisName"],n.name))return i}}(o,c);if(null!=v){var x=a[v]||(a[v]={axesInfo:{}});x.axesInfo[g]=y,x.mapper=o[v].mapper,y.linkGroup=x}}}})}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&dc(e.coordSysAxesInfo[dD(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())})})}(n,e),n}function lD(e,t){return"all"===e||vc(e)&&lc(e,t)>=0||e===t}function uD(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[dD(e)]}function cD(e){return!!e.get(["handle","show"])}function dD(e){return e.type+"||"+e.id}var hD={},pD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Vu(t,e),t.prototype.render=function(t,n,r,i){this.axisPointerClass&&function(e){var t=uD(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=cD(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=function(e){var t=uD(e);return t&&t.axisPointerModel}(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){hD[e]=t},t.getAxisPointerClass=function(e){return e&&hD[e]},t.type="axis",t}(rM),fD=qg();var gD=["axisLine","axisTickLabel","axisName"],mD=["splitArea","splitLine","minorSplitLine"],yD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return Vu(t,e),t.prototype.render=function(t,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new gy,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),s=UP(a,t),l=new tD(t,ac({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if($I(n[r].getOtherAxis(t.axis).scale))return!0;return!1}},s));dc(gD,l.add,l),this._axisGroup.add(l.getGroup()),dc(mD,function(e){t.get([e,"show"])&&vD[e](this,this._axisGroup,t,a)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||Av(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)}},t.prototype.remove=function(){fD(this).splitAreaColors=null},t.type="cartesianAxis",t}(pD),vD={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=vc(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,d=i.getTicksCoords({tickModel:o}),h=[],p=[],f=a.getLineStyle(),g=0;g<d.length;g++){var m=i.toGlobalCoord(d[g].coord);u?(h[0]=m,h[1]=l.y,p[0]=m,p[1]=l.y+l.height):(h[0]=l.x,h[1]=m,p[0]=l.x+l.width,p[1]=m);var y=c++%s.length,v=d[g].tickValue,x=new jy({anid:null!=v?"line_"+d[g].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:p[0],y2:p[1]},style:sc({stroke:s[y]},f),silent:!0});Cv(x.shape,f.lineWidth),t.add(x)}}},minorSplitLine:function(e,t,n,r){var i=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=r.coordinateSystem.getRect(),s=i.isHorizontal(),l=i.getMinorTicksCoords();if(l.length)for(var u=[],c=[],d=o.getLineStyle(),h=0;h<l.length;h++)for(var p=0;p<l[h].length;p++){var f=i.toGlobalCoord(l[h][p].coord);s?(u[0]=f,u[1]=a.y,c[0]=f,c[1]=a.y+a.height):(u[0]=a.x,u[1]=f,c[0]=a.x+a.width,c[1]=f);var g=new jy({anid:"minor_line_"+l[h][p].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:d,silent:!0});Cv(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,n,r){!function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,d=fD(e).splitAreaColors,h=Wc(),p=0;if(d)for(var f=0;f<u.length;f++){var g=d.get(u[f].tickValue);if(null!=g){p=(g+(c-1)*f)%c;break}}var m=i.toGlobalCoord(u[0].coord),y=a.getAreaStyle();for(s=vc(s)?s:[s],f=1;f<u.length;f++){var v=i.toGlobalCoord(u[f].coord),x=void 0,_=void 0,b=void 0,w=void 0;i.isHorizontal()?(x=m,_=l.y,b=v-x,w=l.height,m=x+b):(x=l.x,_=m,b=l.width,m=_+(w=v-_));var S=u[f-1].tickValue;null!=S&&h.set(S,p),t.add(new ng({anid:null!=S?"area_"+S:null,shape:{x:x,y:_,width:b,height:w},style:sc({fill:s[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%c}fD(e).splitAreaColors=h}}}(e,t,n,r)}},xD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Vu(t,e),t.type="xAxis",t}(yD),_D=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=xD.type,t}return Vu(t,e),t.type="yAxis",t}(yD),bD=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return Vu(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new ng({shape:e.coordinateSystem.getRect(),style:sc({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(rM),wD={offset:0};function SD(e){e.registerComponentView(bD),e.registerComponentModel(TI),e.registerCoordinateSystem("cartesian2d",qP),BI(e,"x",PI,wD),BI(e,"y",PI,wD),e.registerComponentView(xD),e.registerComponentView(_D),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var kD="\0_ec_interaction_mutex";function CD(e){return e[kD]||(e[kD]={})}vI({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Uc);var MD={axisPointer:1,tooltip:1,brush:1};function TD(e,t,n,r,i,o){e=e||0;var a=n[1]-n[0];if(null!=i&&(i=PD(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(t[1]-t[0]);s=PD(s,[0,a]),i=o=PD(s,[i,o]),r=0}t[0]=PD(t[0],n),t[1]=PD(t[1],n);var l=ID(t,r);t[r]+=e;var u,c=i||0,d=n.slice();return l.sign<0?d[0]+=c:d[1]-=c,t[r]=PD(t[r],d),u=ID(t,r),null!=i&&(u.sign!==l.sign||u.span<i)&&(t[1-r]=t[r]+l.sign*i),u=ID(t,r),null!=o&&u.span>o&&(t[1-r]=t[r]+u.sign*o),t}function ID(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function PD(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var DD=!0,AD=Math.min,ED=Math.max,RD=Math.pow,OD="globalPan",LD={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},zD={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},ND={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},BD=0,FD=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new gy,n._uid="brushController_"+BD++,dc(hA,function(e,t){this._handlers[t]=mc(e,this)},n),n}return Vu(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||function(e,t,n){CD(e)[t]=n}(t,OD,this._uid),dc(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=oc(ic(ND),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;!function(e,t,n){var r=CD(e);r[t]===n&&(r[t]=null)}(e,OD,this._uid),dc(this._handlers,function(t,n){e.off(n,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};dc(e,function(e){t[e.panelId]=ic(e)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=hc(e,function(e){return oc(ic(ND),e,!0)});var t=this._covers,n=this._covers=[],r=this,i=this._creatingCover;return new px(t,e,function(e,t){return o(e.__brushOption,t)},o).add(a).update(a).remove(function(e){t[e]!==i&&r.group.remove(t[e])}).execute(),this;function o(e,t){return(null!=e.id?e.id:"\0-brush-index-"+t)+"-"+e.brushType}function a(o,a){var s=e[o];if(null!=a&&t[a]===i)n[o]=t[a];else{var l=n[o]=null!=a?(t[a].__brushOption=s,t[a]):$D(r,VD(r,s));jD(r,l)}}},t.prototype.unmount=function(){return this.enableBrush(!1),YD(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(wp);function VD(e,t){var n=fA[t.brushType].createCover(e,t);return n.__brushOption=t,HD(n,t),e.group.add(n),n}function $D(e,t){var n=GD(t);return n.endCreating&&(n.endCreating(e,t),HD(t,t.__brushOption)),t}function WD(e,t){var n=t.__brushOption;GD(t).updateCoverShape(e,t,n.range,n)}function HD(e,t){var n=t.z;null==n&&(n=1e4),e.traverse(function(e){e.z=n,e.z2=n})}function jD(e,t){GD(t).updateCommon(e,t),WD(e,t)}function GD(e){return fA[e.__brushOption.brushType]}function UD(e,t,n){var r,i=e._panels;if(!i)return DD;var o=e._transform;return dc(i,function(e){e.isTargetByCursor(t,n,o)&&(r=e)}),r}function XD(e,t){var n=e._panels;if(!n)return DD;var r=t.__brushOption.panelId;return null!=r?n[r]:DD}function YD(e){var t=e._covers,n=t.length;return dc(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function ZD(e,t){var n=hc(e._covers,function(e){var t=e.__brushOption,n=ic(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function qD(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function KD(e,t,n,r){var i=new gy;return i.add(new ng({name:"main",style:tA(n),silent:!0,draggable:!0,cursor:"move",drift:yc(iA,e,t,i,["n","s","w","e"]),ondragend:yc(ZD,t,{isEnd:!0})})),dc(r,function(n){i.add(new ng({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:yc(iA,e,t,i,n),ondragend:yc(ZD,t,{isEnd:!0})}))}),i}function QD(e,t,n,r){var i=r.brushStyle.lineWidth||0,o=ED(i,6),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],d=n[1][1],h=c-o+i/2,p=d-o+i/2,f=c-a,g=d-s,m=f+i,y=g+i;eA(e,t,"main",a,s,f,g),r.transformable&&(eA(e,t,"w",l,u,o,y),eA(e,t,"e",h,u,o,y),eA(e,t,"n",l,u,m,o),eA(e,t,"s",l,p,m,o),eA(e,t,"nw",l,u,o,o),eA(e,t,"ne",h,u,o,o),eA(e,t,"sw",l,p,o,o),eA(e,t,"se",h,p,o,o))}function JD(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(tA(n)),i.attr({silent:!r,cursor:r?"move":"default"}),dc([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var i=t.childOfName(n.join("")),o=1===n.length?rA(e,n[0]):function(e,t){var n=[rA(e,t[0]),rA(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?zD[o]+"-resize":null})})}function eA(e,t,n,r,i,o,a){var s,l,u,c,d,h=t.childOfName(n);h&&h.setShape((s=sA(e,t,[[r,i],[r+o,i+a]]),l=AD(s[0][0],s[1][0]),u=AD(s[0][1],s[1][1]),c=ED(s[0][0],s[1][0]),d=ED(s[0][1],s[1][1]),{x:l,y:u,width:c-l,height:d-u}))}function tA(e){return sc({strokeNoScale:!0},e.brushStyle)}function nA(e,t,n,r){var i=[AD(e,n),AD(t,r)],o=[ED(e,n),ED(t,r)];return[[i[0],o[0]],[i[1],o[1]]]}function rA(e,t){var n=Pv({w:"left",e:"right",n:"top",s:"bottom"}[t],function(e){return Tv(e.group)}(e));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function iA(e,t,n,r,i,o){var a=n.__brushOption,s=e.toRectRange(a.range),l=aA(t,i,o);dc(r,function(e){var t=LD[e];s[t[0]][t[1]]+=l[t[0]]}),a.range=e.fromRectRange(nA(s[0][0],s[1][0],s[0][1],s[1][1])),jD(t,n),ZD(t,{isEnd:!1})}function oA(e,t,n,r){var i=t.__brushOption.range,o=aA(e,n,r);dc(i,function(e){e[0]+=o[0],e[1]+=o[1]}),jD(e,t),ZD(e,{isEnd:!1})}function aA(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function sA(e,t,n){var r=XD(e,t);return r&&r!==DD?r.clipPath(n,e._transform):ic(n)}function lA(e){var t=e.event;t.preventDefault&&t.preventDefault()}function uA(e,t,n){return e.childOfName("main").contain(t,n)}function cA(e,t,n,r){var i,o=e._creatingCover,a=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),function(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],o=n[1]-r[1];return RD(i*i+o*o,.5)>6}(e)||o){if(a&&!o){"single"===s.brushMode&&YD(e);var l=ic(s);l.brushType=dA(l.brushType,a),l.panelId=a===DD?null:a.panelId,o=e._creatingCover=VD(e,l),e._covers.push(o)}if(o){var u=fA[dA(e._brushType,a)];o.__brushOption.range=u.getCreatingRange(sA(e,o,e._track)),r&&($D(e,o),u.updateCommon(e,o)),WD(e,o),i={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&UD(e,t,n)&&YD(e)&&(i={isEnd:r,removeOnClick:!0});return i}function dA(e,t){return"auto"===e?t.defaultBrushType:e}var hA={mousedown:function(e){if(this._dragging)pA(this,e);else if(!e.target||!e.target.draggable){lA(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=UD(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(function(e,t,n){if(e._brushType&&!function(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}(e,t.offsetX,t.offsetY)){var r=e._zr,i=e._covers,o=UD(e,t,n);if(!e._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(o===DD||s.panelId===o.panelId)&&fA[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}(this,e,r),this._dragging){lA(e);var i=cA(this,e,r,!1);i&&ZD(this,i)}},mouseup:function(e){pA(this,e)}};function pA(e,t){if(e._dragging){lA(t);var n=t.offsetX,r=t.offsetY,i=e.group.transformCoordToLocal(n,r),o=cA(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&ZD(e,o)}}var fA={lineX:gA(0),lineY:gA(1),rect:{createCover:function(e,t){function n(e){return e}return KD({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=qD(e);return nA(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){QD(e,t,n,r)},updateCommon:JD,contain:uA},polygon:{createCover:function(e,t){var n=new gy;return n.add(new $y({name:"main",style:tA(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Fy({name:"main",draggable:!0,drift:yc(oA,e,t),ondragend:yc(ZD,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:sA(e,t,n)})},updateCommon:JD,contain:uA}};function gA(e){return{createCover:function(t,n){return KD({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=qD(t);return[AD(n[0][e],n[1][e]),ED(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var o,a=XD(t,n);if(a!==DD&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,o];e&&l.reverse(),QD(t,n,l,i)},updateCommon:JD,contain:uA}}function mA(e){return e=xA(e),function(t){return Ev(t,e)}}function yA(e,t){return e=xA(e),function(n){var r=null!=t?t:n,i=r?e.width:e.height,o=r?e.x:e.y;return[o,o+(i||0)]}}function vA(e,t,n){var r=xA(e);return function(e,i){return r.contain(i[0],i[1])&&!function(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!MD.hasOwnProperty(r.mainType)&&i&&i.model!==n}(e,t,n)}}function xA(e){return Dd.create(e)}var _A=qg(),bA=ic,wA=mc;function SA(e,t,n,r){kA(_A(n).lastProp,r)||(_A(n).lastProp=r,t?cv(n,r,e):(n.stopAnimation(),n.attr(r)))}function kA(e,t){if(Sc(e)&&Sc(t)){var n=!0;return dc(t,function(t,r){n=n&&kA(e[r],t)}),!!n}return e===t}function CA(e,t){e[t.get(["label","show"])?"show":"hide"]()}function MA(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function TA(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)})}function IA(e,t,n,r,i){var o=PA(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Xb(a.get("padding")||0),l=a.getFont(),u=Od(o,l),c=i.position,d=u.width+s[1]+s[3],h=u.height+s[0]+s[2],p=i.align;"right"===p&&(c[0]-=d),"center"===p&&(c[0]-=d/2);var f=i.verticalAlign;"bottom"===f&&(c[1]-=h),"middle"===f&&(c[1]-=h/2),function(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(c,d,h,r);var g=a.get("backgroundColor");g&&"auto"!==g||(g=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:jv(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function PA(e,t,n,r,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:kP(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};dc(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),_c(a)?o=a.replace("{value}",o):xc(a)&&(o=a(s))}return o}function DA(e,t,n){var r=[1,0,0,1,0,0];return xd(r,r,n.rotation),vd(r,r,n.position),Iv([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}var AA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vu(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=EA(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=function(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle()).fill=null:"shadow"===n&&((t=r.getAreaStyle()).stroke=null),t}(r),d=RA[s](o,u,l);d.style=c,e.graphicKey=d.type,e.pointer=d}!function(e,t,n,r,i,o){var a=tD.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),IA(t,r,i,o,{position:DA(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}(t,e,UP(a.model,n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=UP(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=DA(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=EA(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,d=[c,c];d[l]=u[l];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},t}(function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,i,e,t,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(e,t);if(a){var d=yc(SA,t,c);this.updatePointerEl(a,l,d),this.updateLabelEl(a,l,d,t)}else a=this._group=new gy,this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);TA(a,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),r=e.axis,i="category"===r.type,o=t.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=uD(e).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var o=_A(e).pointerEl=new Fv[i.type](bA(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=_A(e).labelEl=new og(bA(t.label));e.add(i),CA(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=_A(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=_A(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),CA(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=Rv(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){Sk(e.event)},onmousedown:wA(this._onHandleDragMove,this,0,0),drift:wA(this._onHandleDragMove,this),ondragend:wA(this._onHandleDragEnd,this)}),r.add(i)),TA(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");vc(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,uk(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){SA(this._axisPointerModel,!t&&this._moveAnimation,this._handle,MA(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(MA(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(MA(r)),_A(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),ck(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},e}());function EA(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var RA={line:function(e,t,n){var r,i,o;return{type:"Line",subPixelOptimize:!0,shape:(r=[t,n[0]],i=[t,n[1]],o=OA(e),{x1:r[o=o||0],y1:r[1-o],x2:i[o],y2:i[1-o]})}},shadow:function(e,t,n){var r,i,o,a=Math.max(1,e.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:(r=[t-a/2,n[0]],i=[a,s],o=OA(e),{x:r[o=o||0],y:r[1-o],width:i[o],height:i[1-o]})}}};function OA(e){return"x"===e.dim?0:1}var LA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Vu(t,e),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}(cw),zA=qg(),NA=dc;function BA(e,t,n){if(!Zc.node){var r=t.getZr();zA(r).records||(zA(r).records={}),function(e,t){if(zA(e).initialized)return;function n(n,r){e.on(n,function(n){var i=function(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}(t);NA(zA(e).records,function(e){e&&r(e,n,i.dispatchAction)}),function(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]);n&&(n.dispatchAction=null,t.dispatchAction(n))}(i.pendings,t)})}zA(e).initialized=!0,n("click",yc(VA,"click")),n("mousemove",yc(VA,"mousemove")),n("globalout",FA)}(r,t),(zA(r).records[e]||(zA(r).records[e]={})).handler=n}}function FA(e,t,n){e.handler("leave",null,n)}function VA(e,t,n,r){t.handler(e,n,r)}function $A(e,t){if(!Zc.node){var n=t.getZr();(zA(n).records||{})[e]&&(zA(n).records[e]=null)}}var WA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Vu(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),i=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";BA("axisPointer",n,function(e,t,n){"none"!==i&&("leave"===e||i.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){$A("axisPointer",t)},t.prototype.dispose=function(e,t){$A("axisPointer",t)},t.type="axisPointer",t}(rM);function HA(e,t){var n,r=[],i=e.seriesIndex;if(null==i||!(n=t.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=Zg(o,e);if(null==a||a<0||vc(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,d=u.dim,h="x"===c||"radius"===c?1:0,p=o.mapDimension(d),f=[];f[h]=o.get(p,a),f[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(f)||[]}else r=l.dataToPoint(o.getValues(hc(l.dimensions,function(e){return o.mapDimension(e)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var jA=qg();function GA(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||mc(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){qA(i)&&(i=HA({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=qA(i),u=o.axesInfo,c=s.axesInfo,d="leave"===r||qA(i),h={},p={},f={list:[],map:{}},g={showPointer:yc(XA,p),showTooltip:yc(YA,f)};dc(s.coordSysMap,function(e,t){var n=l||e.containPoint(i);dc(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,o=function(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}(u,e);if(!d&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&UA(e,a,g,!1,h)}})});var m={};return dc(c,function(e,t){var n=e.linkGroup;n&&!p[t]&&dc(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var o=i.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,ZA(t),ZA(e)))),m[e.key]=o}})}),dc(m,function(e,t){UA(c[t],e,g,!0,h)}),function(e,t,n){var r=n.axesInfo=[];dc(t,function(t,n){var i=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}(p,c,h),function(e,t,n,r){if(qA(t)||!e.list.length)return void r({type:"hideTip"});var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}(f,i,e,a),function(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=jA(r)[i]||{},a=jA(r)[i]={};dc(e,function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&dc(n.seriesDataIndices,function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e})});var s=[],l=[];dc(o,function(e,t){!a[t]&&l.push(e)}),dc(a,function(e,t){!o[t]&&s.push(e)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),h}}function UA(e,t,n,r,i){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=function(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return dc(t.seriesModels,function(t,l){var u,c,d=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var h=t.getAxisTooltipData(d,e,n);c=h.dataIndices,u=h.nestestValue}else{if(!(c=t.getData().indicesOfNearest(d[0],e,"category"===n.type?.5:null)).length)return;u=t.getData().get(d[0],c[0])}if(null!=u&&isFinite(u)){var p=e-u,f=Math.abs(p);f<=a&&((f<a||p>=0&&s<0)&&(a=f,s=p,i=u,o.length=0),dc(c,function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:o,snapToValue:i}}(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&ac(i,s[0]),!r&&e.snap&&o.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}else n.showPointer(e,t)}function XA(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function YA(e,t,n,r){var i=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var l=t.coordSys.model,u=dD(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:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function ZA(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function qA(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function KA(e){pD.registerAxisPointerClass("CartesianAxisPointer",AA),e.registerComponentModel(LA),e.registerComponentView(WA),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!vc(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=sD(e,t)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},GA)}var QA=["x","y","radius","angle","single"],JA=["cartesian2d","polar","singleAxis"];function eE(e){return e+"Axis"}function tE(e,t){var n,r=Wc(),i=[],o=Wc();e.eachComponent({mainType:"dataZoom",query:t},function(e){o.get(e.uid)||s(e)});do{n=!1,e.eachComponent("dataZoom",a)}while(n);function a(e){!o.get(e.uid)&&function(e){var t=!1;return e.eachTargetAxis(function(e,n){var i=r.get(e);i&&i[n]&&(t=!0)}),t}(e)&&(s(e),n=!0)}function s(e){o.set(e.uid,!0),i.push(e),e.eachTargetAxis(function(e,t){(r.get(e)||r.set(e,[]))[t]=!0})}return i}var nE=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),rE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return Vu(t,e),t.prototype.init=function(e,t,n){var r=iE(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=iE(e);oc(this.option,e,!0),oc(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;dc([["start","startValue"],["end","endValue"]],function(e,r){"value"===this._rangePropMode[r]&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Wc();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return dc(QA,function(n){var r=this.getReferringComponents(eE(n),tm);if(r.specified){t=!0;var i=new nE;dc(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i="vertical"===t?"y":"x";o(n.findComponents({mainType:i+"Axis"}),i)}r&&o(n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}}),"single");function o(t,n){var i=t[0];if(i){var o=new nE;if(o.add(i.componentIndex),e.set(n,o),r=!1,"x"===n||"y"===n){var a=i.getReferringComponents("grid",em).models[0];a&&dc(t,function(e){i.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",em).models[0]&&o.add(e.componentIndex)})}}}r&&dc(QA,function(t){if(r){var i=n.findComponents({mainType:eE(t),filter:function(e){return"category"===e.get("type",!0)}});if(i[0]){var o=new nE;o.add(i[0].componentIndex),e.set(t,o),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");dc([["start","startValue"],["end","endValue"]],function(r,i){var o=null!=e[r[0]],a=null!=e[r[1]];o&&!a?t[i]="percent":!o&&a?t[i]="value":n?t[i]=n[i]:o&&(t[i]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){null==e&&(e=this.ecModel.getComponent(eE(t),n))},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){dc(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(eE(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;dc([["start","startValue"],["end","endValue"]],function(r){null==e[r[0]]&&null==e[r[1]]||(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;dc(["start","startValue","end","endValue"],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],o=this._targetAxisInfoMap.get(i),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(i,o.indexList[a]);if(s.hostedBy(this))return s;t||(t=s)}return t},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}(cw);function iE(e){var t={};return dc(["start","end","startValue","endValue","throttle"],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var oE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Vu(t,e),t.type="dataZoom.select",t}(rE),aE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Vu(t,e),t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(rM),sE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Vu(t,e),t.type="dataZoom.select",t}(aE),lE=dc,uE=_g,cE=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(function(e){var t=e.get("coordinateSystem");return lc(JA,t)>=0}(t)){var n=eE(this._dimName),r=t.getReferringComponents(n,em).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return ic(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,r=this.getAxisModel().axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];lE(["start","end"],function(l,u){var c=e[l],d=e[l+"Value"];"percent"===i[u]?(null==c&&(c=o[u]),d=r.parse(yg(c,o,n))):(t=!0,c=yg(d=null==d?n[u]:r.parse(d),n,o)),s[u]=null==d||isNaN(d)?n[u]:d,a[u]=null==c||isNaN(c)?o[u]:c}),uE(s),uE(a);var l=this._minMaxSpan;function u(e,t,n,i,o){var a=o?"Span":"ValueSpan";TD(0,e,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)t[s]=yg(e[s],n,i,!0),o&&(t[s]=r.parse(t[s]))}return t?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=function(e,t,n){var r=[1/0,-1/0];lE(n,function(e){!function(e,t,n){t&&dc(IP(t,n),function(n){var r=t.getApproximateExtent(n);r[0]<e[0]&&(e[0]=r[0]),r[1]>e[1]&&(e[1]=r[1])})}(r,e.getData(),t)});var i=e.getAxisModel(),o=xP(i.axis.scale,i,r).calculate();return[o.min,o.max]}(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;"none"!==i&&lE(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if("weakFilter"===i){var a=t.getStore(),s=hc(r,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,i,l=0;l<r.length;l++){var u=a.get(s[l],e),c=!isNaN(u),d=u<o[0],h=u>o[1];if(c&&!d&&!h)return!0;c&&(i=!0),d&&(t=!0),h&&(n=!0)}return i&&t&&n})}else lE(r,function(n){if("empty"===i)e.setData(t=t.map(n,function(e){return function(e){return e>=o[0]&&e<=o[1]}(e)?e:NaN}));else{var r={};r[n]=o,t.selectRange(r)}});lE(r,function(e){t.setApproximateExtent(o,e)})}})}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;lE(["min","max"],function(r){var i=t.get(r+"Span"),o=t.get(r+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=yg(n[0]+o,n,[0,100],!0):null!=i&&(o=yg(i,[0,100],n,!0)-n[0]),e[r+"Span"]=i,e[r+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=wg(n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;0!==t[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==t[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},e}();var dE={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,i){var o=e.getComponent(eE(r),i);t(r,i,o,n)})})}t(function(e,t,n,r){n.__dzAxisProxy=null});var n=[];t(function(t,r,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new cE(t,r,o,e),n.push(i.__dzAxisProxy))});var r=Wc();return dc(n,function(e){dc(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(t,n){e.getAxisProxy(t,n).reset(e)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent("dataZoom",function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}})}};var hE=!1;function pE(e){hE||(hE=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,dE),function(e){e.registerAction("dataZoom",function(e,t){dc(tE(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function fE(e){e.registerComponentModel(oE),e.registerComponentView(sE),pE(e)}var gE=function(){return function(){}}(),mE={};function yE(e,t){mE[e]=t}function vE(e){return mE[e]}var xE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Vu(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;dc(this.option.feature,function(e,n){var r=vE(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),oc(e,r.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}(cw);function _E(e,t,n){var r=t.getBoxLayoutParams(),i=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=ow(r,o,i);iw(t.get("orient"),e,t.get("itemGap"),a.width,a.height),function(e,t,n,r,i,o){var a;if((o=o||e).x=e.x,o.y=e.y,a=e.getBoundingRect(),e.needLocalTransform()){var s=e.getLocalTransform();(a=a.clone()).applyTransform(s)}var l=ow(sc({width:a.width,height:a.height},t),n,r),u=l.x-a.x,c=l.y-a.y;o.x+=u,o.y+=c,o===e&&e.markRedraw()}(e,r,o,i)}function bE(e,t){var n=Xb(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new ng({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1})}var wE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vu(t,e),t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),e.get("show")){var o=+e.get("itemSize"),a="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),u=[];dc(s,function(e,t){u.push(t)}),new px(this._featureNames||[],u).add(c).update(c).remove(yc(c,null)).execute(),this._featureNames=u,_E(i,e,n),i.add(bE(i.getBoundingRect(),e)),a||i.eachChild(function(e){var t=e.__title,r=e.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!xc(l)&&t){var u=l.style||(l.style={}),c=Od(t,og.makeFont(u)),d=e.x+i.x,h=!1;e.y+i.y+o+c.height>n.getHeight()&&(a.position="top",h=!0);var p=h?-5-c.height:o+10;d+c.width/2>n.getWidth()?(a.position=["100%",p],u.align="right"):d-c.width/2<0&&(a.position=[0,p],u.align="left")}})}function c(c,d){var h,p=u[c],f=u[d],g=s[p],m=new cx(g,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===p&&(g.title=r.newTitle),p&&!f){if(function(e){return 0===e.indexOf("my")}(p))h={onclick:m.option.onclick,featureName:p};else{var y=vE(p);if(!y)return;h=new y}l[p]=h}else if(!(h=l[f]))return;h.uid=q_("toolbox-feature"),h.model=m,h.ecModel=t,h.api=n;var v=h instanceof gE;p||!f?!m.get("show")||v&&h.unusable?v&&h.remove&&h.remove(t,n):(!function(r,s,l){var u,c,d=r.getModel("iconStyle"),h=r.getModel(["emphasis","iconStyle"]),p=s instanceof gE&&s.getIcons?s.getIcons():r.get("icon"),f=r.get("title")||{};_c(p)?(u={})[l]=p:u=p;_c(f)?(c={})[l]=f:c=f;var g=r.iconPaths={};dc(u,function(l,u){var p=Rv(l,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(d.getItemStyle()),p.ensureState("emphasis").style=h.getItemStyle();var f=new og({style:{text:c[u],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null,font:qv({fontStyle:h.get("textFontStyle"),fontFamily:h.get("textFontFamily"),fontSize:h.get("textFontSize"),fontWeight:h.get("textFontWeight")},t)},ignore:!0});p.setTextContent(f),zv({el:p,componentModel:e,itemName:u,formatterParamsExtra:{title:c[u]}}),p.__title=c[u],p.on("mouseover",function(){var t=h.getItemStyle(),r=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";f.setStyle({fill:h.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),p.setTextConfig({position:h.get("textPosition")||r}),f.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==r.get(["iconStatus",u])&&n.leaveEmphasis(this),f.hide()}),("emphasis"===r.get(["iconStatus",u])?Am:Em)(p),i.add(p),p.on("click",mc(s.onclick,s,t,n,u)),g[u]=p})}(m,h,p),m.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&("emphasis"===t?Am:Em)(r[e])},h instanceof gE&&h.render&&h.render(m,t,n,r)):v&&h.dispose&&h.dispose(t,n)}},t.prototype.updateView=function(e,t,n,r){dc(this._features,function(e){e instanceof gE&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.remove=function(e,t){dc(this._features,function(n){n instanceof gE&&n.remove&&n.remove(e,t)}),this.group.removeAll()},t.prototype.dispose=function(e,t){dc(this._features,function(n){n instanceof gE&&n.dispose&&n.dispose(e,t)})},t.type="toolbox",t}(rM);var SE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vu(t,e),t.prototype.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",i="svg"===t.getZr().painter.getType(),o=i?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=Zc.browser;if("function"!=typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||i){var l=a.split(","),u=l[0].indexOf("base64")>-1,c=i?decodeURIComponent(l[1]):l[1];u&&(c=window.atob(c));var d=r+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var h=c.length,p=new Uint8Array(h);h--;)p[h]=c.charCodeAt(h);var f=new Blob([p]);window.navigator.msSaveOrOpenBlob(f,d)}else{var g=document.createElement("iframe");document.body.appendChild(g);var m=g.contentWindow,y=m.document;y.open("image/svg+xml","replace"),y.write(c),y.close(),m.focus(),y.execCommand("SaveAs",!0,d),document.body.removeChild(g)}}else{var v=n.get("lang"),x='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(v&&v[0]||"")+'" /></body>',_=window.open();_.document.write(x),_.document.title=r}else{var b=document.createElement("a");b.download=r+"."+o,b.target="_blank",b.href=a;var w=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});b.dispatchEvent(w)}},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t}(gE),kE="__ec_magicType_stack__",CE=[["line","bar"],["stack"]],ME=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vu(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return dc(e.get("type"),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get(["seriesIndex",n]);if(TE[n]){var o,a={series:[]};dc(CE,function(e){lc(e,n)>=0&&dc(e,function(e){r.setIconStatus(e,"normal")})}),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,o=TE[n](t,i,e,r);o&&(sc(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",c=e.getReferringComponents(u,em).models[0].componentIndex;a[u]=a[u]||[];for(var d=0;d<=c;d++)a[u][c]=a[u][c]||{};a[u][c].boundaryGap="bar"===n}}});var s=n;"stack"===n&&(o=oc({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(s="tiled")),t.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},t}(gE),TE={line:function(e,t,n,r){if("bar"===e)return oc({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if("line"===e)return oc({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var i=n.get("stack")===kE;if("line"===e||"bar"===e)return r.setIconStatus("stack",i?"normal":"emphasis"),oc({id:t,stack:i?"":kE},r.get(["option","stack"])||{},!0)}};vI({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var IE=new Array(60).join("-"),PE="\t";function DE(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var AE=new RegExp("[\t]+","g");function EE(e,t){var n=e.split(new RegExp("\n*"+IE+"\n*","g")),r={series:[]};return dc(n,function(e,n){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf(PE)>=0)return!0}(e)){var i=function(e){for(var t=e.split(/\n+/g),n=[],r=hc(DE(t.shift()).split(AE),function(e){return{name:e,data:[]}}),i=0;i<t.length;i++){var o=DE(t[i]).split(AE);n.push(o.shift());for(var a=0;a<o.length;a++)r[a]&&(r[a].data[i]=o[a])}return{series:r,categories:n}}(e),o=t[n],a=o.axisDim+"Axis";o&&(r[a]=r[a]||[],r[a][o.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{i=function(e){for(var t=e.split(/\n+/g),n=DE(t.shift()),r=[],i=0;i<t.length;i++){var o=DE(t[i]);if(o){var a=o.split(AE),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}(e);r.series.push(i)}}),r}var RE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vu(t,e),t.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:"hideTip"})});var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=r.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=r.get("lang")||[];o.innerHTML=a[0]||r.get("title"),o.style.cssText="margin:10px 20px",o.style.color=r.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=r.get("optionToContent"),c=r.get("contentToOption"),d=function(e){var t,n,r,i=function(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(e);else{var o=i.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}(e);return{value:fc([(n=i.seriesGroupByCategoryAxis,r=[],dc(n,function(e,t){var n=e.categoryAxis,i=e.valueAxis.dim,o=[" "].concat(hc(e.series,function(e){return e.name})),a=[n.model.getCategories()];dc(e.series,function(e){var t=e.getRawData();a.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[o.join(PE)],l=0;l<a[0].length;l++){for(var u=[],c=0;c<a.length;c++)u.push(a[c][l]);s.push(u.join(PE))}r.push(s.join("\n"))}),r.join("\n\n"+IE+"\n\n")),(t=i.other,hc(t,function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,function(){for(var e=arguments.length,i=arguments[e-1],o=t.getName(i),a=0;a<e-1;a++)r[a]=arguments[a];n.push((o?o+PE:"")+r.join(PE))}),n.join("\n")}).join("\n\n"+IE+"\n\n"))],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join("\n\n"+IE+"\n\n"),meta:i.meta}}(e);if(xc(u)){var h=u(t.getOption());_c(h)?s.innerHTML=h:Mc(h)&&s.appendChild(h)}else{l.readOnly=r.get("readOnly");var p=l.style;p.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",p.color=r.get("textColor"),p.borderColor=r.get("textareaBorderColor"),p.backgroundColor=r.get("textareaColor"),l.value=d.value,s.appendChild(l)}var f=d.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",y=document.createElement("div"),v=document.createElement("div");m+=";background-color:"+r.get("buttonColor"),m+=";color:"+r.get("buttonTextColor");var x=this;function _(){n.removeChild(i),x._dom=null}bk(y,"click",_),bk(v,"click",function(){if(null==c&&null!=u||null!=c&&null==u)_();else{var e;try{e=xc(c)?c(s,t.getOption()):EE(l.value,f)}catch(n){throw _(),new Error("Data view format error "+n)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),_()}}),y.innerHTML=a[1],v.innerHTML=a[2],v.style.cssText=y.style.cssText=m,!r.get("readOnly")&&g.appendChild(v),g.appendChild(y),i.appendChild(o),i.appendChild(s),i.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(i),this._dom=i},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},t}(gE);function OE(e,t){return hc(e,function(e,n){var r=t&&t[n];if(Sc(r)&&!vc(r)){Sc(e)&&!vc(e)||(e={value:e});var i=null!=r.name&&null==e.name;return e=sc(e,r),i&&delete e.name,e}return e})}vI({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var n=[];dc(e.newOption.series,function(e){var r=t.getSeriesByName(e.name)[0];if(r){var i=r.get("data");n.push({name:e.name,data:OE(e.data,i)})}else n.push(ac({type:"scatter"},e))}),t.mergeOption(sc({series:n},e.newOption))});var LE=dc,zE=qg();function NE(e){var t=zE(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var BE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vu(t,e),t.prototype.onclick=function(e,t){!function(e){zE(e).snapshots=null}(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get(["toolbox","restore","title"])}},t}(gE);vI({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var FE=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],VE=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=WE(t,e);dc(HE,function(e,t){(!n||!n.include||lc(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var r=UE[e.brushType](0,n,t);e.__rangeOffset={offset:YE[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){dc(e,function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&dc(r.coordSyses,function(r){var i=UE[e.brushType](1,r,e.range,!0);n(e,i.values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){dc(e,function(e){var n,r,i,o,a,s=this.findTargetInfo(e,t);if(e.range=e.range||[],s&&!0!==s){e.panelId=s.panelId;var l=UE[e.brushType](0,s.coordSys,e.coordRange),u=e.__rangeOffset;e.range=u?YE[e.brushType](l.values,u.offset,(n=l.xyMinMax,r=u.xyMinMax,i=qE(n),o=qE(r),a=[i[0]/o[0],i[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}},this)},e.prototype.makePanelOpts=function(e,t){return hc(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:mA(r),isTargetByCursor:vA(r,e,n.coordSysModel),getLinearBrushOtherExtent:yA(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return!0===r||r&&lc(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=WE(t,e),i=0;i<n.length;i++){var o=n[i],a=e.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<jE.length;s++)if(jE[s](r,o))return o}return!0},e}();function $E(e){return e[0]>e[1]&&e.reverse(),e}function WE(e,t){return Qg(e,t,{includeMainTypes:FE})}var HE={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,o=Wc(),a={},s={};(n||r||i)&&(dc(n,function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0}),dc(r,function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0}),dc(i,function(e){o.set(e.id,e),a[e.id]=!0,s[e.id]=!0}),o.each(function(e){var i=e.coordinateSystem,o=[];dc(i.getCartesians(),function(e,t){(lc(n,e.getAxis("x").model)>=0||lc(r,e.getAxis("y").model)>=0)&&o.push(e)}),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:GE.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){dc(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:GE.geo})})}},jE=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],GE={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Tv(e)),t}},UE={lineX:yc(XE,0),lineY:yc(XE,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),o=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),a=[$E([i[0],o[0]]),$E([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:hc(n,function(n){var o=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],o[0]),i[1][0]=Math.min(i[1][0],o[1]),i[0][1]=Math.max(i[0][1],o[0]),i[1][1]=Math.max(i[1][1],o[1]),o}),xyMinMax:i}}};function XE(e,t,n,r){var i=n.getAxis(["x","y"][e]),o=$E(hc([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var YE={lineX:yc(ZE,0),lineY:yc(ZE,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return hc(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function ZE(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function qE(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var KE,QE,JE=dc,eR=Ng+"toolbox-dataZoom_",tR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vu(t,e),t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new FD(n.getZr()),this._brushController.on("brush",mc(this._onBrush,this)).mount()),function(e,t,n,r,i){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive);n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new VE(rR(e),t,{include:["grid"]}),s=a.makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(e,t,this,r,n),function(e,t){e.setIconStatus("back",function(e){return NE(e).length}(t)>1?"emphasis":"normal")}(e,t)},t.prototype.onclick=function(e,t,n){nR[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},r=this.ecModel;this._brushController.updateCovers([]),new VE(rR(this.model),r,{include:["grid"]}).matchOutputRanges(t,r,function(e,t,n){if("cartesian2d"===n.type){var r=e.brushType;"rect"===r?(i("x",n,t[0]),i("y",n,t[1])):i({lineX:"x",lineY:"y"}[r],n,t)}}),function(e,t){var n=NE(e);LE(t,function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(o){var a=o.getPercentRange();n[0][r]={dataZoomId:r,start:a[0],end:a[1]}}}}),n.push(t)}(r,n),this._dispatchZoomAction(n)}function i(e,t,i){var o=t.getAxis(e),a=o.model,s=function(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}(e,a,r),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(i=TD(0,i.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:i[0],endValue:i[1]})}},t.prototype._dispatchZoomAction=function(e){var t=[];JE(e,function(e,n){t.push(ic(e))}),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(gE),nR={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(function(e){var t=NE(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return LE(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n]){r[n]=e;break}}),r}(this.ecModel))}};function rR(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}KE="dataZoom",QE=function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var r=t.getModel(n),i=[],o=Qg(e,rR(r));return JE(o.xAxisModels,function(e){return a(e,"xAxis","xAxisIndex")}),JE(o.yAxisModels,function(e){return a(e,"yAxis","yAxisIndex")}),i}function a(e,t,n){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:eR+t+o};a[n]=o,i.push(a)}},Oc(null==CC.get(KE)&&QE),CC.set(KE,QE);var iR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Vu(t,e),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}(cw);function oR(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function aR(e){if(Zc.domSupported)for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}var sR=aR(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function lR(e,t){if(!e)return t;t=Ub(t,!0);var n=e.indexOf(t);return(e=-1===n?t:"-"+e.slice(0,n)+"-"+t).toLowerCase()}var uR=lR(aR(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),cR=lR(sR,"transform"),dR="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Zc.transform3dSupported?"will-change:transform;":"");function hR(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Zc.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=Zc.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+cR+":"+a+";":[["top",0],["left",0],[sR,a]]}function pR(e,t,n){var r=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),d=Hw(e,"html"),h=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+h),t&&i&&r.push(function(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=Zc.transformSupported?","+cR+r:",left"+r+",top"+r),uR+":"+i}(i,n)),o&&r.push("background-color:"+o),dc(["width","color","radius"],function(t){var n="border-"+t,i=Ub(n),o=e.get(i);null!=o&&r.push(n+":"+o+("color"===t?"":"px"))}),r.push(function(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),dc(["decoration","align"],function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)}),t.join(";")}(c)),null!=d&&r.push("padding:"+Xb(d).join("px ")+"px"),r.join(";")+";"}function fR(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&function(e,t,n,r,i){rb(nb,t,r,i,!0)&&rb(e,n,nb[0],nb[1])}(e,a,n,r,i)}else{e[0]=r,e[1]=i;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var gR=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Zc.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,o=i&&(_c(i)?document.querySelector(i):Mc(i)?i:xc(i)&&i(e.getDom()));fR(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=r.handler;_k(r.painter.getViewportRoot(),e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=(o="position",(a=(i=t).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?a[o]:null),r=t.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var i,o,a,s=e.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=dR+pR(e,!this._firstShow,this._longHide)+hR(i[0],i[1],!0)+"border-color:"+Qb(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var o=this.el;if(null!=e){var a="";if(_c(i)&&"item"===n.get("trigger")&&!oR(n)&&(a=function(e,t,n){if(!_c(n)||"inside"===n)return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=Qb(t);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(i),6),u="",c=cR+":";lc(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var d=a*Math.PI/180,h=l+i,p=h*Math.abs(Math.cos(d))+h*Math.abs(Math.sin(d)),f=t+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(u+=";"+s+":-"+Math.round(100*((p-Math.SQRT2*i)/2+Math.SQRT2*i-(p-h)/2))/100+"px")+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+r+";"].join("")+'"></div>'}(n,r,i)),_c(e))o.innerHTML=e+a;else if(e){o.innerHTML="",vc(e)||(e=[e]);for(var s=0;s<e.length;s++)Mc(e[s])&&e[s].parentNode!==o&&o.appendChild(e[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},e.prototype.moveTo=function(e,t){var n=this._styleCoord;if(fR(n,this._zr,this._container,e,t),null!=n[0]&&null!=n[1]){var r=this.el.style;dc(hR(n[0],n[1]),function(e){r[e[0]]=e[1]})}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",Zc.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(mc(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},e}(),mR=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),xR(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var o=this;Sc(e)&&Og(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new og({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Hw(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),dc(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(e){o.el.style[e]=n.get(e)}),dc(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(e){o.el.style[e]=a.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=vR(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;xR(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,o=yR(i.borderWidth||0),a=vR(i);n.x=e+o+a.left,n.y=t+o+a.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(mc(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function yR(e){return Math.max(0,e)}function vR(e){var t=yR(e.shadowBlur||0),n=yR(e.shadowOffsetX||0),r=yR(e.shadowOffsetY||0);return{left:yR(t-n),right:yR(t+n),top:yR(t-r),bottom:yR(t+r)}}function xR(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var _R=new ng({shape:{x:-1,y:-1,width:2,height:2}}),bR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Vu(t,e),t.prototype.init=function(e,t){if(!Zc.node&&t.getDom()){var n,r=e.getComponent("tooltip"),i=this._renderMode="auto"===(n=r.get("renderMode"))?Zc.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===i?new mR(t):new gR(t,{appendTo:r.get("appendToBody",!0)?"body":r.get("appendTo",!0)})}},t.prototype.render=function(e,t,n){if(!Zc.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?uk(this,"_updatePosition",50,"fixRate"):ck(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");BA("itemTooltip",this._api,mc(function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!Zc.node&&n.getDom()){var i=SR(r,n);this._ticket="";var o=r.dataByCoordSys,a=function(e,t,n){var r=Jg(e).queryOptionMap,i=r.keys()[0];if(!i||"series"===i)return;var o=nm(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(!a)return;var s,l=n.getViewOfComponentModel(a);if(l.group.traverse(function(t){var n=im(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}(r,t,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=_R;l.x=r.x,l.y=r.y,l.update(),im(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var u=HA(r,t),c=u.point[0],d=u.point[1];null!=c&&null!=d&&this._tryShow({offsetX:c,offsetY:d,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(SR(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,o=r.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=t.getSeriesByIndex(i);if(s)if("axis"===wR([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var i,o;if("legend"===im(n).ssrType)return;this._lastDataByCoordSys=null,$M(n,function(e){return null!=im(e).dataIndex?(i=e,!0):null!=im(e).tooltipConfig?(o=e,!0):void 0},!0),i?this._showSeriesItemTooltip(e,i,t):o?this._showComponentItemTooltip(e,o,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=mc(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],o=wR([t.tooltipOption],r),a=this._renderMode,s=[],l=Ow("section",{blocks:[],noHeader:!0}),u=[],c=new jw;dc(e,function(e){dc(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value;if(t&&null!=i){var o=PA(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=Ow("section",{header:o,noHeader:!Lc(o),sortBlocks:!0,blocks:[]});l.blocks.push(d),dc(e.seriesDataIndices,function(l){var h=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=h.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=kP(t.axis,{value:i}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",Qb(f.color),a);var g=gw(h.formatTooltip(p,!0,null)),m=g.frag;if(m){var y=wR([h],r).get("valueFormatter");d.blocks.push(y?ac({valueFormatter:y},m):m)}g.text&&u.push(g.text),s.push(f)}})}})}),l.blocks.reverse(),u.reverse();var d=t.position,h=o.get("order"),p=Vw(l,c,a,h,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var f="richText"===a?"\n\n":"<br/>",g=u.join(f);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(o,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],d,null,c)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=im(t),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),d=this._renderMode,h=e.positionDefault,p=wR([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),m=new jw;g.marker=m.makeTooltipMarker("item",Qb(g.color),d);var y=gw(s.formatTooltip(l,!1,u)),v=p.get("order"),x=p.get("valueFormatter"),_=y.frag,b=_?Vw(x?ac({valueFormatter:x},_):_,m,d,v,r.get("useUTC"),p.get("textStyle")):y.text,w="item_"+s.name+"_"+l;this._showOrMove(p,function(){this._showTooltipContent(p,b,g,w,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r="html"===this._renderMode,i=im(t),o=i.tooltipConfig.option||{},a=o.encodeHTMLContent;if(_c(o)){o={content:o,formatter:o},a=!0}a&&r&&o.content&&((o=ic(o)).content=sb(o.content));var s=[o],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=e.positionDefault,c=wR(s,this._tooltipModel,u?{position:u}:null),d=c.get("content"),h=Math.random()+"",p=new jw;this._showOrMove(c,function(){var n=ic(c.get("formatterParams")||{});this._showTooltipContent(c,d,n,h,e.offsetX,e.offsetY,e.position,t,p)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,o,a,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent;u.setEnterable(e.get("enterable"));var c=e.get("formatter");a=a||e.get("position");var d=t,h=this._getNearestPoint([i,o],n,e.get("trigger"),e.get("borderColor")).color;if(c)if(_c(c)){var p=e.ecModel.get("useUTC"),f=vc(n)?n[0]:n;d=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(d=Ib(f.axisValue,d,p)),d=Kb(d,n,!0)}else if(xc(c)){var g=mc(function(t,r){t===this._ticket&&(u.setContent(r,l,e,h,a),this._updatePosition(e,a,i,o,u,n,s))},this);this._ticket=r,d=c(n,r,g)}else d=c;u.setContent(d,l,e,h,a),u.show(e,h),this._updatePosition(e,a,i,o,u,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||vc(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:vc(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u=i.getSize(),c=e.get("align"),d=e.get("verticalAlign"),h=a&&a.getBoundingRect().clone();if(a&&h.applyTransform(a.transform),xc(t)&&(t=t([n,r],o,i.el,h,{viewSize:[s,l],contentSize:u.slice()})),vc(t))n=vg(t[0],s),r=vg(t[1],l);else if(Sc(t)){var p=t;p.width=u[0],p.height=u[1];var f=ow(p,{width:s,height:l});n=f.x,r=f.y,c=null,d=null}else if(_c(t)&&a){var g=function(e,t,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+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-o/2;break;case"top":s=t.x+u/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+a;break;case"left":s=t.x-i-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}(t,h,u,e.get("borderWidth"));n=g[0],r=g[1]}else{g=function(e,t,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];null!=o&&(e+l+o+2>r?e-=l+o:e+=o);null!=a&&(t+u+a>i?t-=u+a:t+=a);return[e,t]}(n,r,i,s,l,c?null:20,d?null:20);n=g[0],r=g[1]}if(c&&(n-=kR(c)?u[0]/2:"right"===c?u[0]:0),d&&(r-=kR(d)?u[1]/2:"bottom"===d?u[1]:0),oR(e)){g=function(e,t,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&dc(n,function(n,o){var a=n.dataByAxis||[],s=(e[o]||{}).dataByAxis||[];(i=i&&a.length===s.length)&&dc(a,function(e,n){var o=s[n]||{},a=e.seriesDataIndices||[],l=o.seriesDataIndices||[];(i=i&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===l.length)&&dc(a,function(e,t){var n=l[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&dc(e.seriesDataIndices,function(e){var n=e.seriesIndex,o=t[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!Zc.node&&t.getDom()&&(ck(this,"_updatePosition"),this._tooltipContent.dispose(),$A("itemTooltip",t))},t.type="tooltip",t}(rM);function wR(e,t,n){var r,i=t.ecModel;n?(r=new cx(n,i,i),r=new cx(t.option,r,i)):r=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof cx&&(a=a.get("tooltip",!0)),_c(a)&&(a={formatter:a}),a&&(r=new cx(a,r,i)))}return r}function SR(e,t){return e.dispatchAction||mc(t.dispatchAction,t)}function kR(e){return"center"===e||"middle"===e}var CR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Vu(t,e),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}(cw),MR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Vu(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,i=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=Dc(e.get("textBaseline"),e.get("textVerticalAlign")),l=new og({style:jv(i,{text:e.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=e.get("subtext"),d=new og({style:jv(o,{text:c,fill:o.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=e.get("link"),p=e.get("sublink"),f=e.get("triggerEvent",!0);l.silent=!h&&!f,d.silent=!p&&!f,h&&l.on("click",function(){Jb(h,"_"+e.get("target"))}),p&&d.on("click",function(){Jb(p,"_"+e.get("subtarget"))}),im(l).eventData=im(d).eventData=f?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(l),c&&r.add(d);var g=r.getBoundingRect(),m=e.getBoxLayoutParams();m.width=g.width,m.height=g.height;var y=ow(m,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||("middle"===(a=e.get("left")||e.get("right"))&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||("center"===(s=e.get("top")||e.get("bottom"))&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),r.x=y.x,r.y=y.y,r.markRedraw();var v={align:a,verticalAlign:s};l.setStyle(v),d.setStyle(v),g=r.getBoundingRect();var x=y.margin,_=e.getItemStyle(["color","opacity"]);_.fill=e.get("backgroundColor");var b=new ng({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:e.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});r.add(b)}},t.type="title",t}(rM);var TR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Vu(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),vc(t)&&dc(t,function(e,r){_c(e)&&(e={type:e}),t[r]=oc(e,function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get("name");if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(a)),a.length?t=t.concat(a):i=!0}else i=!0;i&&Xg(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get("data")||t,i=Wc(),o=hc(r,function(e){return(_c(e)||wc(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new cx(e,this,this.ecModel))},this);this._data=fc(o,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;"single"===this.get("selectedMode")&&dc(this._data,function(e){t[e.get("name")]=!1});t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;dc(e,function(e){t[e.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;dc(e,function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&lc(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{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}(cw),IR=yc,PR=dc,DR=gy,AR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return Vu(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new DR),this.group.add(this._selectorGroup=new DR),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var i=e.get("align"),o=e.get("orient");i&&"auto"!==i||(i="right"===e.get("left")&&"vertical"===o?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,e,t,n,a,o,s);var l=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),d=ow(l,u,c),h=this.layoutInner(e,i,d,r,a,s),p=ow(sc({width:h.width,height:h.height},l),u,c);this.group.x=p.x-h.x,this.group.y=p.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=bE(h,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,o,a){var s=this.getContentGroup(),l=Wc(),u=t.get("selectedMode"),c=[];n.eachRawSeries(function(e){!e.get("legendHoverLink")&&c.push(e.id)}),PR(t.getData(),function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var d=new DR;return d.newline=!0,void s.add(d)}var h=n.getSeriesByName(a)[0];if(!l.get(a))if(h){var p=h.getData(),f=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),m=p.getVisual("style"),y=this._createItem(h,a,o,i,t,e,f,m,g,u,r);y.on("click",IR(ER,a,null,r,c)).on("mouseover",IR(OR,h.name,null,r,c)).on("mouseout",IR(LR,h.name,null,r,c)),n.ssr&&y.eachChild(function(e){var t=im(e);t.seriesIndex=h.seriesIndex,t.dataIndex=o,t.ssrType="legend"}),l.set(a,!0)}else n.eachRawSeries(function(s){if(!l.get(a)&&s.legendVisualProvider){var d=s.legendVisualProvider;if(!d.containName(a))return;var h=d.indexOfName(a),p=d.getItemVisual(h,"style"),f=d.getItemVisual(h,"legendIcon"),g=tp(p.fill);g&&0===g[3]&&(g[3]=.2,p=ac(ac({},p),{fill:ip(g,"rgba")}));var m=this._createItem(s,a,o,i,t,e,{},p,f,u,r);m.on("click",IR(ER,null,a,r,c)).on("mouseover",IR(OR,null,a,r,c)).on("mouseout",IR(LR,null,a,r,c)),n.ssr&&m.eachChild(function(e){var t=im(e);t.seriesIndex=s.seriesIndex,t.dataIndex=o,t.ssrType="legend"}),l.set(a,!0)}},this)},this),i&&this._createSelector(i,t,r,o,a)},t.prototype._createSelector=function(e,t,n,r,i){var o=this.getSelectorGroup();PR(e,function(e){var r=e.type,i=new og({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i),Wv(i,{normal:t.getModel("selectorLabel"),emphasis:t.getModel(["emphasis","selectorLabel"])},{defaultText:e.title}),Hm(i)})},t.prototype._createItem=function(e,t,n,r,i,o,a,s,l,u,c){var d=e.visualDrawType,h=i.get("itemWidth"),p=i.get("itemHeight"),f=i.isSelected(t),g=r.get("symbolRotate"),m=r.get("symbolKeepAspect"),y=r.get("icon"),v=function(e,t,n,r,i,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),PR(e,function(n,r){"inherit"===e[r]&&(e[r]=t[r])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");u.decal=d&&"inherit"!==d?gT(d,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]);"inherit"===u.stroke&&(u.stroke=r[c]);"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity);s(u,r);var h=t.getModel("lineStyle"),p=h.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===p.stroke&&(p.stroke=r.fill),!o){var f=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),p.stroke=h.get("inactiveColor"),p.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(l=y||l||"roundRect",r,a,s,d,f,c),x=new DR,_=r.getModel("textStyle");if(!xc(e.getLegendIcon)||y&&"inherit"!==y){var b="inherit"===y&&e.getData().getVisual("symbol")?"inherit"===g?e.getData().getVisual("symbolRotate"):g:0;x.add(function(e){var t=e.icon||"roundRect",n=cS(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:h,itemHeight:p,icon:l,iconRotate:b,itemStyle:v.itemStyle,symbolKeepAspect:m}))}else x.add(e.getLegendIcon({itemWidth:h,itemHeight:p,icon:l,iconRotate:g,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:m}));var w="left"===o?h+5:-5,S=o,k=i.get("formatter"),C=t;_c(k)&&k?C=k.replace("{name}",null!=t?t:""):xc(k)&&(C=k(t));var M=f?_.getTextColor():r.get("inactiveColor");x.add(new og({style:jv(_,{text:C,x:w,y:p/2,fill:M,align:S,verticalAlign:"middle"},{inheritColor:M})}));var T=new ng({shape:x.getBoundingRect(),style:{fill:"transparent"}}),I=r.getModel("tooltip");return I.get("show")&&zv({el:T,componentModel:i,itemName:t,itemTooltipOption:I.option}),x.add(T),x.eachChild(function(e){e.silent=!0}),T.silent=!u,this.getContentGroup().add(x),Hm(x),x.__legendDataIndex=n,x},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();iw(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){iw("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),d=[-c.x,-c.y],h=e.get("selectorButtonGap",!0),p=e.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",m=0===p?"y":"x";"end"===o?d[p]+=l[f]+h:u[p]+=c[f]+h,d[1-p]+=l[g]/2-c[g]/2,s.x=d[0],s.y=d[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[f]=l[f]+h+c[f],y[g]=Math.max(l[g],c[g]),y[m]=Math.min(0,c[m]+d[1-p]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(rM);function ER(e,t,n,r){LR(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),OR(e,t,n,r)}function RR(e){for(var t,n=e.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(t=n[r].states.emphasis);)r++;return t&&t.hoverLayer}function OR(e,t,n,r){RR(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function LR(e,t,n,r){RR(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}function zR(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function NR(e,t,n){var r,i={},o="toggleSelected"===e;return n.eachComponent("legend",function(n){o&&null!=r?n[r?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),r=n.isSelected(t.name)),dc(n.getData(),function(e){var t=e.get("name");if("\n"!==t&&""!==t){var r=n.isSelected(t);i.hasOwnProperty(t)?i[t]=i[t]&&r:i[t]=r}})}),"allSelect"===e||"inverseSelect"===e?{selected:i}:{name:t.name,selected:i}}function BR(e){e.registerComponentModel(TR),e.registerComponentView(AR),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,zR),e.registerSubTypeDefaulter("legend",function(){return"plain"}),function(e){e.registerAction("legendToggleSelect","legendselectchanged",yc(NR,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",yc(NR,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",yc(NR,"inverseSelect")),e.registerAction("legendSelect","legendselected",yc(NR,"select")),e.registerAction("legendUnSelect","legendunselected",yc(NR,"unSelect"))}(e)}var FR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Vu(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=lw(t);e.prototype.init.call(this,t,n,r),VR(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),VR(this,this.option,t)},t.type="legend.scroll",t.defaultOption=K_(TR.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}(TR);function VR(e,t,n){var r=[1,1];r[e.getOrient().index]=0,sw(t,n,{type:"box",ignoreSize:!!r})}var $R=gy,WR=["width","height"],HR=["x","y"],jR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return Vu(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new $R),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new $R)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,o,a,s){var l=this;e.prototype.renderInner.call(this,t,n,r,i,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),d=vc(c)?c:[c,c];p("pagePrev",0);var h=n.getModel("pageTextStyle");function p(e,t){var r=e+"DataIndex",o=Rv(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:mc(l._pageGo,l,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});o.name=e,u.add(o)}u.add(new og({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getSelectorGroup(),s=e.getOrient().index,l=WR[s],u=HR[s],c=WR[1-s],d=HR[1-s];i&&iw("horizontal",a,e.get("selectorItemGap",!0));var h=e.get("selectorButtonGap",!0),p=a.getBoundingRect(),f=[-p.x,-p.y],g=ic(n);i&&(g[l]=n[l]-p[l]-h);var m=this._layoutContentAndController(e,r,g,s,l,c,d,u);if(i){if("end"===o)f[s]+=m[l]+h;else{var y=p[l]+h;f[s]-=y,m[u]-=y}m[l]+=p[l]+h,f[1-s]+=m[d]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[d]=Math.min(m[d],p[d]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,t,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;iw(e.get("orient"),l,e.get("itemGap"),r?n.width:null,r?null:n.height),iw("horizontal",c,e.get("pageButtonItemGap",!0));var d=l.getBoundingRect(),h=c.getBoundingRect(),p=this._showController=d[i]>n[i],f=[-d.x,-d.y];t||(f[r]=l[s]);var g=[0,0],m=[-h.x,-h.y],y=Dc(e.get("pageButtonGap",!0),e.get("itemGap",!0));p&&("end"===e.get("pageButtonPosition",!0)?m[r]+=n[i]-h[i]:g[r]+=h[i]+y);m[1-r]+=d[o]/2-h[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(m);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[o]=Math.max(d[o],h[o]),v[a]=Math.min(0,h[a]+m[1-r]),u.__rectSize=n[i],p){var x={x:0,y:0};x[i]=Math.max(n[i]-h[i]-y,0),x[o]=v[o],u.setClipPath(new ng({shape:x})),u.__rectSize=x[i]}else c.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var _=this._getPageInfo(e);return null!=_.pageIndex&&cv(l,{x:_.contentPosition[0],y:_.contentPosition[1]},p?e:null),this._updatePageInfoView(e,_),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;dc(["pagePrev","pageNext"],function(r){var i=null!=t[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",i?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")});var r=n.childOfName("pageText"),i=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;r&&i&&r.setStyle("text",_c(i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,o=WR[i],a=HR[i],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,d=c?1:0,h={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return h;var p=v(u);h.contentPosition[i]=-p.s;for(var f=s+1,g=p,m=p,y=null;f<=c;++f)(!(y=v(l[f]))&&m.e>g.s+r||y&&!x(y,g.s))&&(g=m.i>g.i?m:y)&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=g.i),++h.pageCount),m=y;for(f=s-1,g=p,m=p,y=null;f>=-1;--f)(y=v(l[f]))&&x(m,y.s)||!(g.i<m.i)||(m=g,null==h.pagePrevDataIndex&&(h.pagePrevDataIndex=g.i),++h.pageCount,++h.pageIndex),g=y;return h;function v(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function x(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild(function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===e&&(t=i)}),null!=t?t:n):0;var t,n},t.type="legend.scroll",t}(AR);function GR(e){MI(BR),e.registerComponentModel(FR),e.registerComponentView(jR),function(e){e.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(e){e.setScrollDataIndex(n)})})}(e)}var UR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Vu(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=K_(rE.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}(rE),XR=ng,YR="horizontal",ZR="vertical",qR=["line","bar","candlestick","scatter"],KR={easing:"cubicOut",duration:100,delay:0},QR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return Vu(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=mc(this._onBrush,this),this._onBrushEnd=mc(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),uk(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){ck(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new gy;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect")?7:0,r=this._findCoordRect(),i={width:t.getWidth(),height:t.getHeight()},o=this._orient===YR?{right:i.width-r.x-r.width,top:i.height-30-7-n,width:r.width,height:30}:{right:7,top:r.y,width:30,height:r.height},a=lw(e.option);dc(["right","top","width","height"],function(e){"ph"===a[e]&&(a[e]=o[e])});var s=ow(a,i);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===ZR&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==YR||i?n===YR&&i?{scaleY:a?1:-1,scaleX:-1}:n!==ZR||i?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=e.getBoundingRect([o]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get("brushSelect");n.add(new XR({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var i=new XR({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:mc(this._onClickPanel,this)}),o=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),o=r.getShadowDim&&r.getShadowDim(),a=o&&i.getDimensionInfo(o)?r.getShadowDim():e.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(i!==this._shadowData||a!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var u=i.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var d,h=[0,t[1]],p=[0,t[0]],f=[[t[0],0],[0,0]],g=[],m=p[1]/(i.count()-1),y=0,v=Math.round(i.count()/t[0]);i.each([a],function(e,t){if(v>0&&t%v)y+=m;else{var n=null==e||isNaN(e)||""===e,r=n?0:yg(e,u,h,!0);n&&!d&&t?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&d&&(f.push([y,0]),g.push([y,0])),f.push([y,r]),g.push([y,r]),y+=m,d=n}}),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=i,this._shadowDim=a,this._shadowSize=[t[0],t[1]];for(var x=this.dataZoomModel,_=0;_<3;_++){var b=w(1===_);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}}}function w(e){var t=x.getModel(e?"selectedDataBackground":"dataBackground"),n=new gy,r=new Fy({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new $y({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,r=this.ecModel;return e.eachTargetAxis(function(i,o){dc(e.getAxisProxy(i,o).getTargetSeriesModels(),function(e){if(!(n||!0!==t&&lc(qR,e.get("type"))<0)){var a,s=r.getComponent(eE(i),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[i],u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:i,otherDim:l,otherAxisInverse:a}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=t.filler=new XR({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new XR({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),dc([0,1],function(t){var o=a.get("handleIcon");!sS[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=cS(o,-1,0,2,2,null,!0);s.attr({cursor:JR(this._orient),draggable:!0,drift:mc(this._onDragMove,this,t),ondragend:mc(this._onDragEnd,this),onmouseover:mc(this._showDataInfo,this,!0),onmouseout:mc(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=vg(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Hm(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),i.add(n[t]=s);var d=a.getModel("textStyle");e.add(r[t]=new og({silent:!0,invisible:!0,style:jv(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=c;if(u){var h=vg(a.get("moveHandleSize"),o[1]),p=t.moveHandle=new ng({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:h}}),f=.8*h,g=t.moveHandleIcon=cS(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+h/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(o[1]/2,Math.max(h,10));(d=t.moveZone=new ng({invisible:!0,shape:{y:o[1]-m,height:h+m}})).on("mouseover",function(){s.enterEmphasis(p)}).on("mouseout",function(){s.leaveEmphasis(p)}),i.add(p),i.add(g),i.add(d)}d.attr({draggable:!0,cursor:JR(this._orient),drift:mc(this._onDragMove,this,"all"),ondragstart:mc(this._showDataInfo,this,!0),ondragend:mc(this._onDragEnd,this),onmouseover:mc(this._showDataInfo,this,!0),onmouseout:mc(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[yg(e[0],[0,100],t,!0),yg(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];TD(t,r,i,n.get("zoomLock")?"all":e,null!=o.minSpan?yg(o.minSpan,a,i,!0):null,null!=o.maxSpan?yg(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=_g([yg(r[0],i,a,!0),yg(r[1],i,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=_g(n.slice()),i=this._size;dc([0,1],function(e){var r=t.handles[e],o=this._handleHeight;r.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:i[1]/2-o/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var o={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new ng,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,o=["",""];if(t.get("showDetail")){var a=t.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=e?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=_g(this._handleEnds.slice());function d(e){var t=Tv(n.handles[e].parent,this.group),a=Pv(0===e?"right":"left",t),s=this._handleWidth/2+5,l=Iv([c[e]+(0===e?-s:s),this._size[1]/2],t);r[e].setStyle({x:l[0],y:l[1],verticalAlign:i===YR?"middle":a,align:i===YR?a:"center",text:o[e]})}d.call(this,0),d.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get("labelFormatter"),i=n.get("labelPrecision");null!=i&&"auto"!==i||(i=t.getPixelPrecision());var o=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(i,20));return xc(r)?r(e,o):_c(r)?r.replace("{value}",o):o},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,n=t.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,Sk(r.event);var i=Iv([t,n],this._displayables.sliderGroup.getLocalTransform(),!0),o=this._updateInterval(e,i[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),o&&a&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-i);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new bd(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100];this._range=_g([yg(n.x,r,i,!0),yg(n.x+n.width,r,i,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Sk(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new XR({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?KR:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t,n,r,i=(t=this.dataZoomModel,n=t.ecModel,r={infoList:[],infoMap:Wc()},t.eachTargetAxis(function(e,t){var i=n.getComponent(eE(e),t);if(i){var o=i.getCoordSysModel();if(o){var a=o.uid,s=r.infoMap.get(a);s||(s={model:o,axisModels:[]},r.infoList.push(s),r.infoMap.set(a,s)),s.axisModels.push(i)}}}),r).infoList;if(!e&&i.length){var o=i[0].model.coordinateSystem;e=o.getRect&&o.getRect()}if(!e){var a=this.api.getWidth(),s=this.api.getHeight();e={x:.2*a,y:.2*s,width:.6*a,height:.6*s}}return e},t.type="dataZoom.slider",t}(aE);function JR(e){return"vertical"===e?"ns-resize":"ew-resize"}function eO(e,t,n){var r=Hu.createCanvas(),i=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=o*n,r}var tO=function(e){function t(t,n,r){var i,o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||kp,"string"==typeof t?i=eO(t,n,r):Sc(t)&&(t=(i=t).id),o.id=t,o.dom=i;var a=i.style;return a&&(jc(i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return Vu(t,e),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 e=this.dpr;this.domBack=eO("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new Dd(0,0,0,0);function u(e){if(e.isFinite()&&!e.isZero())if(0===o.length){(t=new Dd(0,0,0,0)).copy(e),o.push(t)}else{for(var t,n=!1,r=1/0,i=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(e)){var d=new Dd(0,0,0,0);d.copy(c),d.union(e),o[u]=d,n=!0;break}if(s){l.copy(e),l.union(c);var h=e.width*e.height,p=c.width*c.height,f=l.width*l.height-h-p;f<r&&(r=f,i=u)}}if(s&&(o[i].union(e),n=!0),!n)(t=new Dd(0,0,0,0)).copy(e),o.push(t);s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){if(p=e[c]){var d=p.shouldBePainted(n,r,!0,!0);(f=p.__isRendered&&(1&p.__dirty||!d)?p.getPrevPaintRect():null)&&u(f);var h=d&&(1&p.__dirty||!p.__isRendered)?p.getPaintRect():null;h&&u(h)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var p,f;d=(p=t[c])&&p.shouldBePainted(n,r,!0,!0);if(p&&(!d||!p.__zr)&&p.__isRendered)(f=p.getPrevPaintRect())&&u(f)}do{i=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(i=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(i);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=e+"px",i.height=t+"px"),r.width=e*n,r.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height;t=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/u,a/u));var d=this.domBack;function h(e,n,r,o){if(i.clearRect(e,n,r,o),t&&"transparent"!==t){var a=void 0;if(Tc(t))a=(t.global||t.__width===r&&t.__height===o)&&t.__canvasGradient||UM(i,t,{x:0,y:0,width:r,height:o}),t.__canvasGradient=a,t.__width=r,t.__height=o;else null!=t.image&&(t.scaleX=t.scaleX||u,t.scaleY=t.scaleY||u,a=nT(i,t,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));i.save(),i.fillStyle=a||t,i.fillRect(e,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(d,e,n,r,o),i.restore())}!n||s?h(0,0,o,a):n.length&&dc(n,function(e){h(e.x*u,e.y*u,e.width*u,e.height*u)})},t}(wp),nO=1e5,rO=314159,iO=.01;var oO=function(){function e(e,t,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=ac({},n||{}),this.dpr=n.devicePixelRatio||kp,this._singleCanvas=i,this.root=e,e.style&&(jc(e),e.innerHTML=""),this.storage=t;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(i){var s=e,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new tO(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[314159]=c,c.zlevel=rO,o.push(rO),this._domRoot=e}else{this._width=YM(e,0,n),this._height=YM(e,1,n);var d=this._domRoot=function(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);e.appendChild(d)}}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 e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<t;o++){var a=e[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(nO)),r||(r=n.ctx).save(),dT(r,a,i,o===t-1))}r&&r.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(nO)},e.prototype.paintOne=function(e,t){cT(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(e),o)this.eachLayer(function(e){e.afterBrush&&e.afterBrush()});else{var s=this;Uk(function(){s._paintList(e,t,n,r)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(rO).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)})},e.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,c=!1,d=function(a){var s,l=i[a],d=l.ctx,p=o&&l.createRepaintRects(e,t,h._width,h._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,m=g&&Date.now(),y=l.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,y,p);else if(f===l.__startIndex){var v=e[f];v.incremental&&v.notClear&&!n||l.clear(!1,y,p)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=f;s<l.__endIndex;s++){var i=e[s];if(i.__inHover&&(c=!0),r._doPaintEl(i,l,o,t,n,s===l.__endIndex-1),g)if(Date.now()-m>15)break}n.prevElClipPaths&&d.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var _=h.dpr,b=0;b<p.length;++b){var w=p[b];d.save(),d.beginPath(),d.rect(w.x*_,w.y*_,w.width*_,w.height*_),d.clip(),x(w),d.restore()}else d.save(),x(),d.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},h=this,p=0;p<i.length;p++)d(p);return Zc.wxa&&dc(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),{finished:u,needsRefreshHover:c}},e.prototype._doPaintEl=function(e,t,n,r,i,o){var a=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(dT(a,e,i,o),e.setPrevPaintRect(s))}else dT(a,e,i,o)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=rO);var n=this._layers[e];return n||((n=new tO("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?oc(n,this._layerConfig[e],!0):this._layerConfig[e-iO]&&oc(n,this._layerConfig[e-iO],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(!n[e]&&function(e){return!!e&&(!!e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh)}(t)){if(i>0&&e>r[0]){for(s=0;s<i-1&&!(r[s]<e&&r[s+1]>e);s++);a=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1}),this._singleCanvas)for(var n=1;n<e.length;n++){if((s=e[n]).zlevel!==e[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var r,i,o=null,a=0;for(i=0;i<e.length;i++){var s,l=(s=e[i]).zlevel,u=void 0;r!==l&&(r=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?iO:0),this._needsManuallyCompositing),u.__builtin__||rc("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,t(i),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=i))}t(i),this.eachBuiltinLayer(function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,dc(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?oc(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===e||i===e+iO)oc(this._layers[i],n[e],!0)}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(lc(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=YM(i,0,r),t=YM(i,1,r),n.style.display="",this._width!==e||t!==this._height){for(var o in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(rO).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new tO("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;this.eachLayer(function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];dT(n,u,o,s===l-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const aO={DARK:{textColor:"#b3c3bc",axisColor:"#5b6f66",backgroundColor:"#27272a",splitLine:"#4c4c52"},LIGHT:{textColor:"#000",axisColor:"#000",backgroundColor:"#fff",splitLine:"#ddd"}},sO=e=>e&&!isNaN(new Date(e).getTime())?new Date(e).toLocaleString():"",lO=({charts:e,lines:t,scatterplot:n})=>t.map(({key:t,name:r})=>({symbolSize:4,type:n?"scatter":"line",name:r,data:e[t]})),uO={type:"value",boundaryGap:[0,"5%"]},cO=({splitAxis:e,yAxisLabels:t})=>!e||t&&!Array.isArray(t)?{...uO,...t?{name:t}:{}}:Array(2).fill(uO).map((e,n)=>({...e,...t?{name:t[n]}:{}})),dO=e=>new Date(e).toLocaleTimeString(),hO=({charts:e,title:t,lines:n,colors:r,chartValueFormatter:i,splitAxis:o,yAxisLabels:a,xAxis:s,grid:l,scatterplot:u})=>({title:{text:t},tooltip:{trigger:"axis",formatter:e=>Array.isArray(e)&&e.length>0&&e.some(e=>!!e.value)?e.reduce((e,{axisValue:t,color:n,seriesName:r,value:o},a)=>`\n ${0===a?sO(t):""}\n ${e}\n <br>\n <span style="color:${n};">\n ${r}: ${(({chartValueFormatter:e,value:t})=>e?e(t):Array.isArray(t)?t[1]:t)({chartValueFormatter:i,value:o})}\n </span>\n `,""):"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:dO}},grid:l||{left:60,right:40},yAxis:cO({splitAxis:o,yAxisLabels:a}),series:lO({charts:e,lines:n,scatterplot:u}),color:r,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}}),pO=e=>({symbol:"none",label:{formatter:e=>`Run #${e.dataIndex+1}`,padding:[0,0,8,0]},data:(e.markers||[]).map(e=>({xAxis:e}))});function fO({charts:e,title:t,lines:n,colors:r,chartValueFormatter:i,splitAxis:o,yAxisLabels:a,xAxis:s,grid:l,scatterplot:u,shouldReplaceMergeLines:c=!1,isDarkMode:d=!1}){const[h,p]=P.useState(null),f=P.useRef(null);return P.useEffect(()=>{if(!f.current)return;const c=function(e,t,n){var r=pI(e);if(r)return r;var i=new QT(e,t,n);return i.id="ec_"+cI++,lI[i.id]=i,rm(e,hI,i.id),XT(i),xT.trigger("afterinit",i),i}(f.current);c.setOption(hO({charts:e,title:t,lines:n,colors:r,chartValueFormatter:i,splitAxis:o,yAxisLabels:a,xAxis:s,grid:l,scatterplot:u})),c.on("datazoom",(e=>t=>{const{batch:n}=t;if(!n)return;const[{start:r,startValue:i,end:o}]=n,a=r>0&&o<=100||i>0;e.setOption({dataZoom:[{type:"slider",show:a}]})})(c));const d=()=>{c.resize(),c.setOption({xAxis:{splitNumber:window.innerWidth<900?2:7}})};return window.addEventListener("resize",d),c.group="swarmCharts",function(e){if(vc(e)){var t=e;e=null,dc(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+dI++,dc(t,function(t){t.group=e})}uI[e]=!0}("swarmCharts"),p(c),()=>{!function(e){_c(e)?e=lI[e]:e instanceof QT||(e=pI(e)),e instanceof QT&&!e.isDisposed()&&e.dispose()}(c),window.removeEventListener("resize",d)}},[f]),P.useEffect(()=>{const t=n.every(({key:t})=>!!e[t]);h&&t&&h.setOption({series:n.map(({key:t,yAxisIndex:n,...r},i)=>({...r,data:e[t],...o?{yAxisIndex:n||i}:{},...0===i?{markLine:pO(e)}:{}}))})},[e,h,n]),P.useEffect(()=>{if(h){const{textColor:e,axisColor:t,backgroundColor:n,splitLine:r}=d?aO.DARK:aO.LIGHT;h.setOption({backgroundColor:n,textStyle:{color:e},title:{textStyle:{color:e}},legend:{icon:"circle",inactiveColor:e,textStyle:{color:e}},tooltip:{backgroundColor:n,textStyle:{color:e}},xAxis:{axisLine:{lineStyle:{color:t}}},yAxis:{axisLine:{lineStyle:{color:t}},splitLine:{lineStyle:{color:r}}}})}},[h,d]),P.useEffect(()=>{h&&h.setOption({series:lO({charts:e,lines:n,scatterplot:u})},c?{replaceMerge:["series"]}:void 0)},[n]),x.jsx("div",{ref:f,style:{width:"100%",height:"300px"}})}MI([function(e){e.registerChartView(JS),e.registerSeriesModel(hS),e.registerLayout({seriesType:"line",plan:RS(),reset:function(e){var t=e.getData(),n=e.coordinateSystem;if(e.pipelineContext,n){var r=hc(n.dimensions,function(e){return t.mapDimension(e)}).slice(0,2),i=r.length,o=t.getCalculationInfo("stackResultDimension");X_(t,r[0])&&(r[0]=o),X_(t,r[1])&&(r[1]=o);var a=t.getStore(),s=t.getDimensionIndex(r[0]),l=t.getDimensionIndex(r[1]);return i&&{progress:function(e,t){for(var r=kS((e.end-e.start)*i),o=[],u=[],c=e.start,d=0;c<e.end;c++){var h=void 0;if(1===i){var p=a.get(s,c);h=n.dataToPoint(p,null,u)}else o[0]=a.get(s,c),o[1]=a.get(l,c),h=n.dataToPoint(o,null,u);r[d++]=h[0],r[d++]=h[1]}t.setLayout("points",r)}}}}}),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),d=Math.abs(u[1]-u[0])*(c||1),h=Math.round(a/d);if(isFinite(h)&&h>1){"lttb"===i&&e.setData(r.lttbDownSample(r.mapDimension(l.dim),1/h));var p=void 0;_c(i)?p=ek[i]:xc(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(l.dim),1/h,p,tk))}}}}}("line"))},function(e){e.registerComponentModel(CR),e.registerComponentView(MR)},function(e){MI(KA),e.registerComponentModel(iR),e.registerComponentView(bR),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Uc),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Uc)},function(e){e.registerComponentModel(xE),e.registerComponentView(wE),yE("saveAsImage",SE),yE("magicType",ME),yE("dataView",RE),yE("dataZoom",tR),yE("restore",BE),MI(fE)},function(e){e.registerComponentModel(UR),e.registerComponentView(QR),pE(e)},function(e){MI(SD),MI(KA)},function(e){MI(BR),MI(GR)},function(e){e.registerPainter("canvas",oO)}]);const gO=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:B.percentilesToChart?B.percentilesToChart.map(e=>({name:100*e+"th percentile",key:`responseTimePercentile${e}`})):[],colors:["#ff9f00","#9966CC","#8A2BE2","#8E4585","#E0B0FF","#C8A2C8","#E6E6FA"]},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}],colors:["#0099ff"]}];function mO({charts:e,isDarkMode:t}){return gO.map((n,r)=>x.jsx(fO,{...n,charts:e,isDarkMode:t},`swarm-chart-${r}`))}function yO(e){return(100*e).toFixed(1)+"%"}function vO({classRatio:e}){return x.jsx("ul",{children:Object.entries(e).map(([e,{ratio:t,tasks:n}])=>x.jsxs("li",{children:[`${yO(t)} ${e}`,n&&x.jsx(vO,{classRatio:n})]},`nested-ratio-${e}`))})}function xO({ratios:{perClass:e,total:t}}){return e||t?x.jsxs("div",{children:[e&&x.jsxs(x.Fragment,{children:[x.jsx("h3",{children:"Ratio Per Class"}),x.jsx(vO,{classRatio:e})]}),t&&x.jsxs(x.Fragment,{children:[x.jsx("h3",{children:"Total Ratio"}),x.jsx(vO,{classRatio:t})]})]}):null}const _O="dark",bO="light",wO=localStorage.theme===_O||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?_O:bO,SO=zo({palette:{mode:window.theme||wO,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"},p:{margin:0},ul:{paddingLeft:"16px"}}}}});const kO="dark"===(window.theme||wO),CO=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{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:"totalRps",title:"RPS",round:2},{key:"totalFailPerSec",title:"Failures/s",round:2}];function MO({locustfile:e,showDownloadLink:t,startTime:n,endTime:r,duration:i,charts:o,host:a,exceptionsStatistics:s,requestsStatistics:l,failuresStatistics:u,responseTimeStatistics:c,tasks:d}){return P.useEffect(()=>{document.title=window.templateArgs.profile?`Locust - ${window.templateArgs.profile}`:"Locust"},[]),x.jsxs(Yo,{theme:SO,children:[x.jsx(nl,{}),x.jsxs(Zs,{maxWidth:"lg",sx:{my:4},children:[x.jsxs(Rs,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[x.jsx(_s,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),t&&x.jsx(zl,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),x.jsxs(Rs,{sx:{my:2},children:[window.templateArgs.profile&&x.jsxs(Rs,{sx:{display:"flex",columnGap:.5},children:[x.jsx(_s,{fontWeight:600,children:"Profile:"}),x.jsx(_s,{children:window.templateArgs.profile})]}),x.jsxs(Rs,{sx:{display:"flex",columnGap:.5},children:[x.jsx(_s,{fontWeight:600,children:"During:"}),x.jsxs(_s,{children:[sO(n)," - ",sO(r)," (",i,")"]})]}),x.jsxs(Rs,{sx:{display:"flex",columnGap:.5},children:[x.jsx(_s,{fontWeight:600,children:"Target Host:"}),x.jsx(_s,{children:a||"None"})]}),x.jsxs(Rs,{sx:{display:"flex",columnGap:.5},children:[x.jsx(_s,{fontWeight:600,children:"Script:"}),x.jsx(_s,{children:e})]})]}),x.jsxs(Rs,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[x.jsxs(Rs,{children:[x.jsx(_s,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),x.jsx(Bu,{stats:l,tableStructure:CO})]}),!!c.length&&x.jsxs(Rs,{children:[x.jsx(_s,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),x.jsx(Ou,{responseTimes:c})]}),x.jsxs(Rs,{children:[x.jsx(_s,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),x.jsx(Eu,{errors:u})]}),!!s.length&&x.jsxs(Rs,{children:[x.jsx(_s,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),x.jsx(Du,{exceptions:s})]}),x.jsxs(Rs,{children:[x.jsx(_s,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),x.jsx(mO,{charts:o,isDarkMode:kO})]}),x.jsxs(Rs,{children:[x.jsx(_s,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),x.jsx(xO,{ratios:d})]})]})]})]})}I.createRoot(document.getElementById("root")).render(x.jsx(O,{fallbackRender:function({error:e}){return x.jsxs("div",{role:"alert",children:[x.jsx("p",{children:"Something went wrong"}),e.message&&x.jsx("pre",{style:{color:"red"},children:e.message}),"If the issue persists, please consider opening an"," ",x.jsx("a",{href:"https://github.com/locustio/locust/issues/new?assignees=&labels=bug&projects=&template=bug.yml",children:"issue"})]})},children:x.jsx(MO,{...V})}));</script>
|
145
145
|
</head>
|
146
146
|
{% endraw %}
|
147
147
|
<body>
|