tinker-token-usage 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,232 @@
1
+ var xtt=Object.defineProperty;var Rk=e=>{throw TypeError(e)};var wtt=(e,t,r)=>t in e?xtt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Xs=(e,t,r)=>wtt(e,typeof t!="symbol"?t+"":t,r),Ik=(e,t,r)=>t.has(e)||Rk("Cannot "+r);var Qr=(e,t,r)=>(Ik(e,t,"read from private field"),r?r.call(e):t.get(e)),Pk=(e,t,r)=>t.has(e)?Rk("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Zw=(e,t,r,n)=>(Ik(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);function Ttt(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(n,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();function uu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var x6={exports:{}},nx={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Ctt=Symbol.for("react.transitional.element"),Att=Symbol.for("react.fragment");function w6(e,t,r){var n=null;if(r!==void 0&&(n=""+r),t.key!==void 0&&(n=""+t.key),"key"in t){r={};for(var a in t)a!=="key"&&(r[a]=t[a])}else r=t;return t=r.ref,{$$typeof:Ctt,type:e,key:n,ref:t!==void 0?t:null,props:r}}nx.Fragment=Att;nx.jsx=w6;nx.jsxs=w6;x6.exports=nx;var Z=x6.exports,T6={exports:{}},Gt={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var XO=Symbol.for("react.transitional.element"),Mtt=Symbol.for("react.portal"),Dtt=Symbol.for("react.fragment"),Ett=Symbol.for("react.strict_mode"),Ltt=Symbol.for("react.profiler"),Ott=Symbol.for("react.consumer"),Rtt=Symbol.for("react.context"),Itt=Symbol.for("react.forward_ref"),Ptt=Symbol.for("react.suspense"),Ntt=Symbol.for("react.memo"),C6=Symbol.for("react.lazy"),ktt=Symbol.for("react.activity"),ztt=Symbol.for("react.view_transition"),Nk=Symbol.iterator;function Btt(e){return e===null||typeof e!="object"?null:(e=Nk&&e[Nk]||e["@@iterator"],typeof e=="function"?e:null)}var A6={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M6=Object.assign,D6={};function yd(e,t,r){this.props=e,this.context=t,this.refs=D6,this.updater=r||A6}yd.prototype.isReactComponent={};yd.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};yd.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function E6(){}E6.prototype=yd.prototype;function $O(e,t,r){this.props=e,this.context=t,this.refs=D6,this.updater=r||A6}var WO=$O.prototype=new E6;WO.constructor=$O;M6(WO,yd.prototype);WO.isPureReactComponent=!0;var kk=Array.isArray;function PM(){}var Le={H:null,A:null,T:null,S:null},L6=Object.prototype.hasOwnProperty;function ZO(e,t,r){var n=r.ref;return{$$typeof:XO,type:e,key:t,ref:n!==void 0?n:null,props:r}}function Vtt(e,t){return ZO(e.type,t,e.props)}function qO(e){return typeof e=="object"&&e!==null&&e.$$typeof===XO}function Gtt(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var zk=/\/+/g;function qw(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Gtt(""+e.key):t.toString(36)}function Htt(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(PM,PM):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Rv(e,t,r,n,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"bigint":case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case XO:case Mtt:o=!0;break;case C6:return o=e._init,Rv(o(e._payload),t,r,n,a)}}if(o)return a=a(e),o=n===""?"."+qw(e,0):n,kk(a)?(r="",o!=null&&(r=o.replace(zk,"$&/")+"/"),Rv(a,t,r,"",function(u){return u})):a!=null&&(qO(a)&&(a=Vtt(a,r+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(zk,"$&/")+"/")+o)),t.push(a)),1;o=0;var s=n===""?".":n+":";if(kk(e))for(var l=0;l<e.length;l++)n=e[l],i=s+qw(n,l),o+=Rv(n,t,r,i,a);else if(l=Btt(e),typeof l=="function")for(e=l.call(e),l=0;!(n=e.next()).done;)n=n.value,i=s+qw(n,l++),o+=Rv(n,t,r,i,a);else if(i==="object"){if(typeof e.then=="function")return Rv(Htt(e),t,r,n,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return o}function $m(e,t,r){if(e==null)return e;var n=[],a=0;return Rv(e,n,"","",function(i){return t.call(r,i,a++)}),n}function Utt(e){if(e._status===-1){var t=e._result,r=t();r.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n,r.status===void 0&&(r.status="fulfilled",r.value=n))},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n,r.status===void 0&&(r.status="rejected",r.reason=n))}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return e._result.default;throw e._result}var Bk=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function O6(e){var t=Le.T,r={};r.types=t!==null?t.types:null,Le.T=r;try{var n=e(),a=Le.S;a!==null&&a(r,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(PM,Bk)}catch(i){Bk(i)}finally{t!==null&&r.types!==null&&(t.types=r.types),Le.T=t}}function R6(e){var t=Le.T;if(t!==null){var r=t.types;r===null?t.types=[e]:r.indexOf(e)===-1&&r.push(e)}else O6(R6.bind(null,e))}var Ftt={map:$m,forEach:function(e,t,r){$m(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return $m(e,function(){t++}),t},toArray:function(e){return $m(e,function(t){return t})||[]},only:function(e){if(!qO(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Gt.Activity=ktt;Gt.Children=Ftt;Gt.Component=yd;Gt.Fragment=Dtt;Gt.Profiler=Ltt;Gt.PureComponent=$O;Gt.StrictMode=Ett;Gt.Suspense=Ptt;Gt.ViewTransition=ztt;Gt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Le;Gt.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Le.H.useMemoCache(e)}};Gt.addTransitionType=R6;Gt.cache=function(e){return function(){return e.apply(null,arguments)}};Gt.cacheSignal=function(){return null};Gt.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=M6({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!L6.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(n[i]=t[i]);var i=arguments.length-2;if(i===1)n.children=r;else if(1<i){for(var o=Array(i),s=0;s<i;s++)o[s]=arguments[s+2];n.children=o}return ZO(e.type,a,n)};Gt.createContext=function(e){return e={$$typeof:Rtt,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Ott,_context:e},e};Gt.createElement=function(e,t,r){var n,a={},i=null;if(t!=null)for(n in t.key!==void 0&&(i=""+t.key),t)L6.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(a[n]=t[n]);var o=arguments.length-2;if(o===1)a.children=r;else if(1<o){for(var s=Array(o),l=0;l<o;l++)s[l]=arguments[l+2];a.children=s}if(e&&e.defaultProps)for(n in o=e.defaultProps,o)a[n]===void 0&&(a[n]=o[n]);return ZO(e,i,a)};Gt.createRef=function(){return{current:null}};Gt.forwardRef=function(e){return{$$typeof:Itt,render:e}};Gt.isValidElement=qO;Gt.lazy=function(e){return{$$typeof:C6,_payload:{_status:-1,_result:e},_init:Utt}};Gt.memo=function(e,t){return{$$typeof:Ntt,type:e,compare:t===void 0?null:t}};Gt.startTransition=O6;Gt.unstable_useCacheRefresh=function(){return Le.H.useCacheRefresh()};Gt.use=function(e){return Le.H.use(e)};Gt.useActionState=function(e,t,r){return Le.H.useActionState(e,t,r)};Gt.useCallback=function(e,t){return Le.H.useCallback(e,t)};Gt.useContext=function(e){return Le.H.useContext(e)};Gt.useDebugValue=function(){};Gt.useDeferredValue=function(e,t){return Le.H.useDeferredValue(e,t)};Gt.useEffect=function(e,t){return Le.H.useEffect(e,t)};Gt.useEffectEvent=function(e){return Le.H.useEffectEvent(e)};Gt.useId=function(){return Le.H.useId()};Gt.useImperativeHandle=function(e,t,r){return Le.H.useImperativeHandle(e,t,r)};Gt.useInsertionEffect=function(e,t){return Le.H.useInsertionEffect(e,t)};Gt.useLayoutEffect=function(e,t){return Le.H.useLayoutEffect(e,t)};Gt.useMemo=function(e,t){return Le.H.useMemo(e,t)};Gt.useOptimistic=function(e,t){return Le.H.useOptimistic(e,t)};Gt.useReducer=function(e,t,r){return Le.H.useReducer(e,t,r)};Gt.useRef=function(e){return Le.H.useRef(e)};Gt.useState=function(e){return Le.H.useState(e)};Gt.useSyncExternalStore=function(e,t,r){return Le.H.useSyncExternalStore(e,t,r)};Gt.useTransition=function(){return Le.H.useTransition()};Gt.version="19.3.0";T6.exports=Gt;var k=T6.exports;const US=uu(k),Jy=Ttt({__proto__:null,default:US},[k]);function re(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(r.length?" "+r.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var Ytt={};function ax(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:Ytt}var I6=Object.assign,FS=Object.getOwnPropertyDescriptor,eo=Object.defineProperty,ix=Object.prototype,NM=[];Object.freeze(NM);var P6={};Object.freeze(P6);var jtt=typeof Proxy<"u",Xtt=Object.toString();function N6(){jtt||re("Proxy not available")}function k6(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Hv=function(){};function pi(e){return typeof e=="function"}function Vf(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function ox(e){return e!==null&&typeof e=="object"}function gs(e){if(!ox(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r.toString()===Xtt}function z6(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function tm(e,t,r){eo(e,t,{enumerable:!1,writable:!0,configurable:!0,value:r})}function B6(e,t,r){eo(e,t,{enumerable:!1,writable:!1,configurable:!0,value:r})}function Mc(e,t){var r="isMobX"+e;return t.prototype[r]=!0,function(n){return ox(n)&&n[r]===!0}}function md(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function $tt(e){var t=Object.getPrototypeOf(e),r=Object.getPrototypeOf(t),n=Object.getPrototypeOf(r);return n===null}function Wo(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var V6=typeof Object.getOwnPropertySymbols<"u";function Wtt(e){var t=Object.keys(e);if(!V6)return t;var r=Object.getOwnPropertySymbols(e);return r.length?[].concat(t,r.filter(function(n){return ix.propertyIsEnumerable.call(e,n)})):t}var Ih=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:V6?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function G6(e){return e===null?null:typeof e=="object"?""+e:e}function rs(e,t){return ix.hasOwnProperty.call(e,t)}var Ztt=Object.getOwnPropertyDescriptors||function(t){var r={};return Ih(t).forEach(function(n){r[n]=FS(t,n)}),r};function Zn(e,t){return!!(e&t)}function qn(e,t,r){return r?e|=t:e&=~t,e}function Vk(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function qtt(e,t,r){if(H6())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&Ug(a,r.prototype),a}function Ktt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tet(n.key),n)}}function _d(e,t,r){return t&&Ktt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uv(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=eet(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
18
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gf(){return Gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gf.apply(null,arguments)}function kM(e){return kM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kM(e)}function KO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ug(e,t)}function Qtt(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function H6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H6=function(){return!!e})()}function Ug(e,t){return Ug=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ug(e,t)}function Jtt(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function tet(e){var t=Jtt(e,"string");return typeof t=="symbol"?t:t+""}function eet(e,t){if(e){if(typeof e=="string")return Vk(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vk(e,t):void 0}}function zM(e){var t=typeof Map=="function"?new Map:void 0;return zM=function(r){if(r===null||!Qtt(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return qtt(r,arguments,kM(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ug(n,r)},zM(e)}var Fi=Symbol("mobx-stored-annotations");function ro(e){function t(r,n){if(rm(n))return e.decorate_20223_(r,n);em(r,n,e)}return Object.assign(t,e)}function em(e,t,r){rs(e,Fi)||tm(e,Fi,Gf({},e[Fi])),uet(r)||(e[Fi][t]=r)}function ret(e){return rs(e,Fi)||tm(e,Fi,Gf({},e[Fi])),e[Fi]}function rm(e){return typeof e=="object"&&typeof e.kind=="string"}var It=Symbol("mobx administration"),fu=function(){function e(r){r===void 0&&(r="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=ie.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=r}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.reportObserved=function(){return n8(this)},t.reportChanged=function(){za(),a8(this),Ba()},t.toString=function(){return this.name_},_d(e,[{key:"isBeingObserved",get:function(){return Zn(this.flags_,e.isBeingObservedMask_)},set:function(n){this.flags_=qn(this.flags_,e.isBeingObservedMask_,n)}},{key:"isPendingUnobservation",get:function(){return Zn(this.flags_,e.isPendingUnobservationMask_)},set:function(n){this.flags_=qn(this.flags_,e.isPendingUnobservationMask_,n)}},{key:"diffValue",get:function(){return Zn(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=qn(this.flags_,e.diffValueMask_,n===1)}}])}();fu.isBeingObservedMask_=1;fu.isPendingUnobservationMask_=2;fu.diffValueMask_=4;var QO=Mc("Atom",fu);function U6(e,t,r){t===void 0&&(t=Hv),r===void 0&&(r=Hv);var n=new fu(e);return t!==Hv&&drt(n,t),r!==Hv&&u8(n,r),n}function net(e,t){return b8(e,t)}function aet(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var YS={structural:net,default:aet};function Hf(e,t,r){return h8(e)?e:Array.isArray(e)?zr.array(e,{name:r}):gs(e)?zr.object(e,void 0,{name:r}):md(e)?zr.map(e,{name:r}):Wo(e)?zr.set(e,{name:r}):typeof e=="function"&&!Ph(e)&&!Yg(e)?z6(e)?Nh(e):Fg(r,e):e}function iet(e,t,r){if(e==null||vx(e)||cx(e)||Ec(e)||Vi(e))return e;if(Array.isArray(e))return zr.array(e,{name:r,deep:!1});if(gs(e))return zr.object(e,void 0,{name:r,deep:!1});if(md(e))return zr.map(e,{name:r,deep:!1});if(Wo(e))return zr.set(e,{name:r,deep:!1})}function sx(e){return e}function oet(e,t){return b8(e,t)?t:e}var set="override";function uet(e){return e.annotationType_===set}function nm(e,t){return{annotationType_:e,options_:t,make_:fet,extend_:cet,decorate_20223_:vet}}function fet(e,t,r,n){var a;if((a=this.options_)!=null&&a.bound)return this.extend_(e,t,r,!1)===null?0:1;if(n===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if(Ph(r.value))return 1;var i=F6(e,this,t,r,!1);return eo(n,t,i),2}function cet(e,t,r,n){var a=F6(e,this,t,r);return e.defineProperty_(t,a,n)}function vet(e,t){var r=t.kind,n=t.name,a=t.addInitializer,i=this,o=function(u){var f,c,v,h;return Uf((f=(c=i.options_)==null?void 0:c.name)!=null?f:n.toString(),u,(v=(h=i.options_)==null?void 0:h.autoAction)!=null?v:!1)};if(r=="field")return function(l){var u,f=l;return Ph(f)||(f=o(f)),(u=i.options_)!=null&&u.bound&&(f=f.bind(this),f.isMobxAction=!0),f};if(r=="method"){var s;return Ph(e)||(e=o(e)),(s=this.options_)!=null&&s.bound&&a(function(){var l=this,u=l[n].bind(l);u.isMobxAction=!0,l[n]=u}),e}re("Cannot apply '"+i.annotationType_+"' to '"+String(n)+"' (kind: "+r+"):"+(`
19
+ '`+i.annotationType_+"' can only be used on properties with a function value."))}function het(e,t,r,n){t.annotationType_,n.value}function F6(e,t,r,n,a){var i,o,s,l,u,f,c;a===void 0&&(a=lt.safeDescriptors),het(e,t,r,n);var v=n.value;if((i=t.options_)!=null&&i.bound){var h;v=v.bind((h=e.proxy_)!=null?h:e.target_)}return{value:Uf((o=(s=t.options_)==null?void 0:s.name)!=null?o:r.toString(),v,(l=(u=t.options_)==null?void 0:u.autoAction)!=null?l:!1,(f=t.options_)!=null&&f.bound?(c=e.proxy_)!=null?c:e.target_:void 0),configurable:a?e.isPlainObject_:!0,enumerable:!1,writable:!a}}function Y6(e,t){return{annotationType_:e,options_:t,make_:det,extend_:pet,decorate_20223_:get}}function det(e,t,r,n){var a;if(n===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if((a=this.options_)!=null&&a.bound&&(!rs(e.target_,t)||!Yg(e.target_[t]))&&this.extend_(e,t,r,!1)===null)return 0;if(Yg(r.value))return 1;var i=j6(e,this,t,r,!1,!1);return eo(n,t,i),2}function pet(e,t,r,n){var a,i=j6(e,this,t,r,(a=this.options_)==null?void 0:a.bound);return e.defineProperty_(t,i,n)}function get(e,t){var r,n=t.name,a=t.addInitializer;return Yg(e)||(e=Nh(e)),(r=this.options_)!=null&&r.bound&&a(function(){var i=this,o=i[n].bind(i);o.isMobXFlow=!0,i[n]=o}),e}function yet(e,t,r,n){t.annotationType_,n.value}function j6(e,t,r,n,a,i){i===void 0&&(i=lt.safeDescriptors),yet(e,t,r,n);var o=n.value;if(Yg(o)||(o=Nh(o)),a){var s;o=o.bind((s=e.proxy_)!=null?s:e.target_),o.isMobXFlow=!0}return{value:o,configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function JO(e,t){return{annotationType_:e,options_:t,make_:met,extend_:_et,decorate_20223_:bet}}function met(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function _et(e,t,r,n){return xet(e,this,t,r),e.defineComputedProperty_(t,Gf({},this.options_,{get:r.get,set:r.set}),n)}function bet(e,t){var r=this,n=t.name,a=t.addInitializer,i;function o(s,l){var u=Gf({},r.options_,{get:e,context:s});return u.name||(u.name="ObservableObject."+n.toString()),new aa(u)}return a(function(){var s,l=Lc(this)[It],u=this,f=l.values_.get(n);f instanceof aa&&f.derivation!==e&&l.values_.delete(n),((s=l.lazyComputedKeys_)!=null?s:l.lazyComputedKeys_=new Map).set(n,function(){return o(u)})}),function(){var s=this[It],l=s.values_.get(n);if(l instanceof aa&&l.derivation!==e){var u,f=(u=i)==null?void 0:u.get(this);if(!f){var c;f=o(this),((c=i)!=null?c:i=new WeakMap).set(this,f)}return f.get()}return s.getObservablePropValue_(n)}}function xet(e,t,r,n){t.annotationType_,n.get}function lx(e,t){return{annotationType_:e,options_:t,make_:wet,extend_:Tet,decorate_20223_:Cet}}function wet(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function Tet(e,t,r,n){var a,i;return Aet(e,this),e.defineObservableProperty_(t,r.value,(a=(i=this.options_)==null?void 0:i.enhancer)!=null?a:Hf,n)}function Cet(e,t){var r=this,n=t.kind,a=t.name;if(n!=="accessor")return;function i(o,s){var l,u=Lc(o)[It];return((l=u.lazyObservableKeys_)!=null?l:u.lazyObservableKeys_=new Map).set(a,function(){var f,c;return new Tf(s,(f=(c=r.options_)==null?void 0:c.enhancer)!=null?f:Hf,"ObservableObject."+a.toString(),!1)}),u}return{get:function(){var s,l=(s=this[It])!=null?s:i(this,e.get.call(this));return l.getObservablePropValue_(a)},set:function(s){var l,u=(l=this[It])!=null?l:i(this,s);return u.setObservablePropValue_(a,s)},init:function(s){return i(this,s),s}}}function Aet(e,t,r,n){t.annotationType_}var Met="true",Det=X6();function X6(e){return{annotationType_:Met,options_:e,make_:Eet,extend_:Let,decorate_20223_:Oet}}function Eet(e,t,r,n){var a,i;if(r.get)return ux.make_(e,t,r,n);if(r.set){var o=Ph(r.set)?r.set:Uf(t.toString(),r.set);return n===e.target_?e.defineProperty_(t,{configurable:lt.safeDescriptors?e.isPlainObject_:!0,set:o})===null?0:2:(eo(n,t,{configurable:!0,set:o}),2)}if(n!==e.target_&&typeof r.value=="function"){var s;if(z6(r.value)){var l,u=(l=this.options_)!=null&&l.autoBind?Nh.bound:Nh;return u.make_(e,t,r,n)}var f=(s=this.options_)!=null&&s.autoBind?Fg.bound:Fg;return f.make_(e,t,r,n)}var c=((a=this.options_)==null?void 0:a.deep)===!1?zr.ref:zr;if(typeof r.value=="function"&&(i=this.options_)!=null&&i.autoBind){var v;r.value=r.value.bind((v=e.proxy_)!=null?v:e.target_)}return c.make_(e,t,r,n)}function Let(e,t,r,n){var a,i;if(r.get)return ux.extend_(e,t,r,n);if(r.set)return e.defineProperty_(t,{configurable:lt.safeDescriptors?e.isPlainObject_:!0,set:Uf(t.toString(),r.set)},n);if(typeof r.value=="function"&&(a=this.options_)!=null&&a.autoBind){var o;r.value=r.value.bind((o=e.proxy_)!=null?o:e.target_)}var s=((i=this.options_)==null?void 0:i.deep)===!1?zr.ref:zr;return s.extend_(e,t,r,n)}function Oet(e,t){re("'"+this.annotationType_+"' cannot be used as a decorator")}var Ret="observable",Iet="observable.ref",Pet="observable.shallow",Net="observable.struct",$6={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze($6);function Wm(e){return e||$6}var BM=lx(Ret),ket=lx(Iet,{enhancer:sx}),zet=lx(Pet,{enhancer:iet}),Bet=lx(Net,{enhancer:oet}),W6=ro(BM);function Zm(e){return e.deep===!0?Hf:e.deep===!1?sx:Get(e.defaultDecorator)}function Vet(e){var t;return e?(t=e.defaultDecorator)!=null?t:X6(e):void 0}function Get(e){var t,r;return e&&(t=(r=e.options_)==null?void 0:r.enhancer)!=null?t:Hf}function Z6(e,t,r){if(rm(t))return BM.decorate_20223_(e,t);if(Vf(t)){em(e,t,BM);return}return h8(e)?e:gs(e)?zr.object(e,t,r):Array.isArray(e)?zr.array(e,t):md(e)?zr.map(e,t):Wo(e)?zr.set(e,t):typeof e=="object"&&e!==null?e:zr.box(e,t)}I6(Z6,W6);var Het={box:function(t,r){var n=Wm(r);return new Tf(t,Zm(n),n.name,!0,n.equals)},array:function(t,r){var n=Wm(r);return(lt.useProxies===!1||n.proxy===!1?Grt:Lrt)(t,Zm(n),n.name)},map:function(t,r){var n=Wm(r);return new p8(t,Zm(n),n.name)},set:function(t,r){var n=Wm(r);return new g8(t,Zm(n),n.name)},object:function(t,r,n){return cu(function(){return c8(lt.useProxies===!1||(n==null?void 0:n.proxy)===!1?Lc({},n):Crt({},n),t,r)})},ref:ro(ket),shallow:ro(zet),deep:W6,struct:ro(Bet)},zr=I6(Z6,Het),q6="computed",Uet="computed.struct",VM=JO(q6),Fet=JO(Uet,{equals:YS.structural}),ux=function(t,r){if(rm(r))return VM.decorate_20223_(t,r);if(Vf(r))return em(t,r,VM);if(gs(t))return ro(JO(q6,t));var n=gs(r)?r:{};return n.get=t,n.name||(n.name=t.name||""),new aa(n)};Object.assign(ux,VM);ux.struct=ro(Fet);var Gk,Hk,jS=0,Yet=1,jet=(Gk=(Hk=FS(function(){},"name"))==null?void 0:Hk.configurable)!=null?Gk:!1,Uk={value:"action",configurable:!0,writable:!1,enumerable:!1};function Uf(e,t,r,n){r===void 0&&(r=!1);function a(){return Xet(e,r,t,n||this,arguments)}return a.isMobxAction=!0,a.toString=function(){return t.toString()},jet&&(Uk.value=e,eo(a,"name",Uk)),a}function Xet(e,t,r,n,a){var i=$et(e,t);try{return r.apply(n,a)}catch(o){throw i.error_=o,o}finally{Wet(i)}}function $et(e,t,r,n){var a=!1,i=0,o=lt.trackingDerivation,s=!t||!o;za();var l=lt.allowStateChanges;s&&(Dc(),l=tR(!0));var u=rR(!0),f={runAsAction_:s,prevDerivation_:o,prevAllowStateChanges_:l,prevAllowStateReads_:u,notifySpy_:a,startTime_:i,actionId_:Yet++,parentActionId_:jS};return jS=f.actionId_,f}function Wet(e){jS!==e.actionId_&&re(30),jS=e.parentActionId_,e.error_!==void 0&&(lt.suppressReactionErrors=!0),eR(e.prevAllowStateChanges_),sg(e.prevAllowStateReads_),Ba(),e.runAsAction_&&ns(e.prevDerivation_),lt.suppressReactionErrors=!1}function tR(e){var t=lt.allowStateChanges;return lt.allowStateChanges=e,t}function eR(e){lt.allowStateChanges=e}var Tf=function(e){function t(n,a,i,o,s){var l;return i===void 0&&(i="ObservableValue"),s===void 0&&(s=YS.default),l=e.call(this,i)||this,l.enhancer=void 0,l.name_=void 0,l.equals=void 0,l.hasUnreportedChange_=!1,l.interceptors_=void 0,l.changeListeners_=void 0,l.value_=void 0,l.dehancer=void 0,l.enhancer=a,l.name_=i,l.equals=s,l.value_=a(n,void 0,i),l}KO(t,e);var r=t.prototype;return r.dehanceValue=function(a){return this.dehancer!==void 0?this.dehancer(a):a},r.set=function(a){this.value_,a=this.prepareNewValue_(a),a!==lt.UNCHANGED&&this.setNewValue_(a)},r.prepareNewValue_=function(a){if(La(this)){var i=Oa(this,{object:this,type:no,newValue:a});if(!i)return lt.UNCHANGED;a=i.newValue}return a=this.enhancer(a,this.value_,this.name_),this.equals(this.value_,a)?lt.UNCHANGED:a},r.setNewValue_=function(a){var i=this.value_;this.value_=a,this.reportChanged(),li(this)&&ui(this,{type:no,object:this,newValue:a,oldValue:i})},r.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},r.intercept_=function(a){return am(this,a)},r.observe_=function(a,i){return i&&a({observableKind:"value",debugObjectName:this.name_,object:this,type:no,newValue:this.value_,oldValue:void 0}),im(this,a)},r.raw=function(){return this.value_},r.toJSON=function(){return this.get()},r.toString=function(){return this.name_+"["+this.value_+"]"},r.valueOf=function(){return G6(this.get())},r[Symbol.toPrimitive]=function(){return this.valueOf()},t}(fu),aa=function(){function e(r){this.dependenciesState_=ie.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ie.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new $S(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=XS.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,r.get||re(31),this.derivation=r.get,this.name_=r.name||"ComputedValue",r.set&&(this.setter_=Uf("ComputedValue-setter",r.set)),this.equals_=r.equals||(r.compareStructural||r.struct?YS.structural:YS.default),this.scope_=r.context,this.requiresReaction_=r.requiresReaction,this.keepAlive_=!!r.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){Jet(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.get=function(){if(this.isComputing&&re(32,this.name_,this.derivation),lt.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)GM(this)&&(this.warnAboutUntrackedRead_(),za(),this.value_=this.computeValue_(!1),Ba());else if(n8(this),GM(this)){var n=lt.trackingContext;this.keepAlive_&&!n&&(lt.trackingContext=this),this.trackAndCompute()&&Qet(this),lt.trackingContext=n}var a=this.value_;if(Y_(a))throw a.cause;return a},t.set=function(n){if(this.setter_){this.isRunningSetter&&re(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,n)}finally{this.isRunningSetter=!1}}else re(34,this.name_)},t.trackAndCompute=function(){var n=this.value_,a=this.dependenciesState_===ie.NOT_TRACKING_,i=this.computeValue_(!0),o=a||Y_(n)||Y_(i)||!this.equals_(n,i);return o&&(this.value_=i),o},t.computeValue_=function(n){this.isComputing=!0;var a=tR(!1),i;if(n)i=K6(this,this.derivation,this.scope_);else if(lt.disableErrorBoundaries===!0)i=this.derivation.call(this.scope_);else try{i=this.derivation.call(this.scope_)}catch(o){i=new $S(o)}return eR(a),this.isComputing=!1,i},t.suspend_=function(){this.keepAlive_||(HM(this),this.value_=void 0)},t.observe_=function(n,a){var i=this,o=!0,s=void 0;return urt(function(){var l=i.get();if(!o||a){var u=Dc();n({observableKind:"computed",debugObjectName:i.name_,type:no,object:i,newValue:l,oldValue:s}),ns(u)}o=!1,s=l})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return G6(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},_d(e,[{key:"isComputing",get:function(){return Zn(this.flags_,e.isComputingMask_)},set:function(n){this.flags_=qn(this.flags_,e.isComputingMask_,n)}},{key:"isRunningSetter",get:function(){return Zn(this.flags_,e.isRunningSetterMask_)},set:function(n){this.flags_=qn(this.flags_,e.isRunningSetterMask_,n)}},{key:"isBeingObserved",get:function(){return Zn(this.flags_,e.isBeingObservedMask_)},set:function(n){this.flags_=qn(this.flags_,e.isBeingObservedMask_,n)}},{key:"isPendingUnobservation",get:function(){return Zn(this.flags_,e.isPendingUnobservationMask_)},set:function(n){this.flags_=qn(this.flags_,e.isPendingUnobservationMask_,n)}},{key:"diffValue",get:function(){return Zn(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=qn(this.flags_,e.diffValueMask_,n===1)}}])}();aa.isComputingMask_=1;aa.isRunningSetterMask_=2;aa.isBeingObservedMask_=4;aa.isPendingUnobservationMask_=8;aa.diffValueMask_=16;var fx=Mc("ComputedValue",aa),ie;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(ie||(ie={}));var XS;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(XS||(XS={}));var $S=function(t){this.cause=void 0,this.cause=t};function Y_(e){return e instanceof $S}function GM(e){switch(e.dependenciesState_){case ie.UP_TO_DATE_:return!1;case ie.NOT_TRACKING_:case ie.STALE_:return!0;case ie.POSSIBLY_STALE_:{for(var t=rR(!0),r=Dc(),n=e.observing_,a=n.length,i=0;i<a;i++){var o=n[i];if(fx(o)){if(lt.disableErrorBoundaries)o.get();else try{o.get()}catch{return ns(r),sg(t),!0}if(e.dependenciesState_===ie.STALE_)return ns(r),sg(t),!0}}return J6(e),ns(r),sg(t),!1}}}function K6(e,t,r){var n=rR(!0);J6(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++lt.runId;var a=lt.trackingDerivation;lt.trackingDerivation=e,lt.inBatch++;var i;if(lt.disableErrorBoundaries===!0)i=t.call(r);else try{i=t.call(r)}catch(o){i=new $S(o)}return lt.inBatch--,lt.trackingDerivation=a,Zet(e),sg(n),i}function Zet(e){for(var t=e.observing_,r=e.observing_=e.newObserving_,n=ie.UP_TO_DATE_,a=0,i=e.unboundDepsCount_,o=0;o<i;o++){var s=r[o];s.diffValue===0&&(s.diffValue=1,a!==o&&(r[a]=s),a++),s.dependenciesState_>n&&(n=s.dependenciesState_)}for(r.length=a,e.newObserving_=null,i=t.length;i--;){var l=t[i];l.diffValue===0&&e8(l,e),l.diffValue=0}for(;a--;){var u=r[a];u.diffValue===1&&(u.diffValue=0,Ket(u,e))}n!==ie.UP_TO_DATE_&&(e.dependenciesState_=n,e.onBecomeStale_())}function HM(e){var t=e.observing_;e.observing_=[];for(var r=t.length;r--;)e8(t[r],e);e.dependenciesState_=ie.NOT_TRACKING_}function Q6(e){var t=Dc();try{return e()}finally{ns(t)}}function Dc(){var e=lt.trackingDerivation;return lt.trackingDerivation=null,e}function ns(e){lt.trackingDerivation=e}function rR(e){var t=lt.allowStateReads;return lt.allowStateReads=e,t}function sg(e){lt.allowStateReads=e}function J6(e){if(e.dependenciesState_!==ie.UP_TO_DATE_){e.dependenciesState_=ie.UP_TO_DATE_;for(var t=e.observing_,r=t.length;r--;)t[r].lowestObserverState_=ie.UP_TO_DATE_}}var j_=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},X_=!0,t8=!1,lt=function(){var e=ax();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(X_=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new j_().version&&(X_=!1),X_?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new j_):(setTimeout(function(){t8||re(35)},1),new j_)}();function qet(){if((lt.pendingReactions.length||lt.inBatch||lt.isRunningReactions)&&re(36),t8=!0,X_){var e=ax();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),lt=new j_}}function Ket(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function e8(e,t){e.observers_.delete(t),e.observers_.size===0&&r8(e)}function r8(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,lt.pendingUnobservations.push(e))}function za(){lt.inBatch++}function Ba(){if(--lt.inBatch===0){i8();for(var e=lt.pendingUnobservations,t=0;t<e.length;t++){var r=e[t];r.isPendingUnobservation=!1,r.observers_.size===0&&(r.isBeingObserved&&(r.isBeingObserved=!1,r.onBUO()),r instanceof aa&&r.suspend_())}lt.pendingUnobservations=[]}}function n8(e){var t=lt.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&lt.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&lt.inBatch>0&&r8(e),!1)}function a8(e){e.lowestObserverState_!==ie.STALE_&&(e.lowestObserverState_=ie.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ie.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=ie.STALE_}))}function Qet(e){e.lowestObserverState_!==ie.STALE_&&(e.lowestObserverState_=ie.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ie.POSSIBLY_STALE_?t.dependenciesState_=ie.STALE_:t.dependenciesState_===ie.UP_TO_DATE_&&(e.lowestObserverState_=ie.UP_TO_DATE_)}))}function Jet(e){e.lowestObserverState_===ie.UP_TO_DATE_&&(e.lowestObserverState_=ie.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ie.UP_TO_DATE_&&(t.dependenciesState_=ie.POSSIBLY_STALE_,t.onBecomeStale_())}))}var ys=function(){function e(r,n,a,i){r===void 0&&(r="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=ie.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=XS.NONE,this.name_=r,this.onInvalidate_=n,this.errorHandler_=a,this.requiresObservable_=i}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,lt.pendingReactions.push(this),i8())},t.runReaction_=function(){if(!this.isDisposed){za(),this.isScheduled=!1;var n=lt.trackingContext;if(lt.trackingContext=this,GM(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(a){this.reportExceptionInDerivation_(a)}}lt.trackingContext=n,Ba()}},t.track=function(n){if(!this.isDisposed){za(),this.isRunning=!0;var a=lt.trackingContext;lt.trackingContext=this;var i=K6(this,n,void 0);lt.trackingContext=a,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&HM(this),Y_(i)&&this.reportExceptionInDerivation_(i.cause),Ba()}},t.reportExceptionInDerivation_=function(n){var a=this;if(this.errorHandler_){this.errorHandler_(n,this);return}if(lt.disableErrorBoundaries)throw n;var i="[mobx] uncaught error in '"+this+"'";lt.suppressReactionErrors||console.error(i,n),lt.globalReactionErrorHandlers.forEach(function(o){return o(n,a)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(za(),HM(this),Ba()))},t.getDisposer_=function(n){var a=this,i=function o(){a.dispose(),n==null||n.removeEventListener==null||n.removeEventListener("abort",o)};return n==null||n.addEventListener==null||n.addEventListener("abort",i),i[It]=this,"dispose"in Symbol&&typeof Symbol.dispose=="symbol"&&(i[Symbol.dispose]=i),i},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(n){},_d(e,[{key:"isDisposed",get:function(){return Zn(this.flags_,e.isDisposedMask_)},set:function(n){this.flags_=qn(this.flags_,e.isDisposedMask_,n)}},{key:"isScheduled",get:function(){return Zn(this.flags_,e.isScheduledMask_)},set:function(n){this.flags_=qn(this.flags_,e.isScheduledMask_,n)}},{key:"isTrackPending",get:function(){return Zn(this.flags_,e.isTrackPendingMask_)},set:function(n){this.flags_=qn(this.flags_,e.isTrackPendingMask_,n)}},{key:"isRunning",get:function(){return Zn(this.flags_,e.isRunningMask_)},set:function(n){this.flags_=qn(this.flags_,e.isRunningMask_,n)}},{key:"diffValue",get:function(){return Zn(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=qn(this.flags_,e.diffValueMask_,n===1)}}])}();ys.isDisposedMask_=1;ys.isScheduledMask_=2;ys.isTrackPendingMask_=4;ys.isRunningMask_=8;ys.diffValueMask_=16;var trt=100,UM=function(t){return t()};function i8(){lt.inBatch>0||lt.isRunningReactions||UM(ert)}function ert(){lt.isRunningReactions=!0;for(var e=lt.pendingReactions,t=0;e.length>0;){++t===trt&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var r=e.splice(0),n=0,a=r.length;n<a;n++)r[n].runReaction_()}lt.isRunningReactions=!1}var WS=Mc("Reaction",ys);function rrt(e){var t=UM;UM=function(n){return e(function(){return t(n)})}}function lg(){return!1}function nrt(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var o8="action",art="action.bound",s8="autoAction",irt="autoAction.bound",ort="<unnamed action>",FM=nm(o8),srt=nm(art,{bound:!0}),YM=nm(s8,{autoAction:!0}),lrt=nm(irt,{autoAction:!0,bound:!0});function l8(e){var t=function(n,a){if(pi(n))return Uf(n.name||ort,n,e);if(pi(a))return Uf(n,a,e);if(rm(a))return(e?YM:FM).decorate_20223_(n,a);if(Vf(a))return em(n,a,e?YM:FM);if(Vf(n))return ro(nm(e?s8:o8,{name:n,autoAction:e}))};return t}var Fv=l8(!1);Object.assign(Fv,FM);var Fg=l8(!0);Object.assign(Fg,YM);Fv.bound=ro(srt);Fg.bound=ro(lrt);function Ph(e){return pi(e)&&e.isMobxAction===!0}function urt(e,t){var r,n,a,i;t===void 0&&(t=P6);var o=(r=(n=t)==null?void 0:n.name)!=null?r:"Autorun",s=!t.scheduler&&!t.delay,l;if(s)l=new ys(o,function(){this.track(c)},t.onError,t.requiresObservable);else{var u=crt(t),f=!1;l=new ys(o,function(){f||(f=!0,u(function(){f=!1,l.isDisposed||l.track(c)}))},t.onError,t.requiresObservable)}function c(){e(l)}return(a=t)!=null&&(a=a.signal)!=null&&a.aborted||l.schedule_(),l.getDisposer_((i=t)==null?void 0:i.signal)}var frt=function(t){return t()};function crt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:frt}var vrt="onBO",hrt="onBUO";function drt(e,t,r){return f8(vrt,e,t,r)}function u8(e,t,r){return f8(hrt,e,t,r)}function f8(e,t,r,n){var a=KS(t),i=pi(n)?n:r,o=e+"L";return a[o]?a[o].add(i):a[o]=new Set([i]),function(){var s=a[o];s&&(s.delete(i),s.size===0&&delete a[o])}}var prt="never",qm="always",grt="observed";function yrt(e){e.isolateGlobalState===!0&&qet();var t=e.useProxies,r=e.enforceActions;if(t!==void 0&&(lt.useProxies=t===qm?!0:t===prt?!1:typeof Proxy<"u"),t==="ifavailable"&&(lt.verifyProxies=!0),r!==void 0){var n=r===qm?qm:r===grt;lt.enforceActions=n,lt.allowStateChanges=!(n===!0||n===qm)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(a){a in e&&(lt[a]=!!e[a])}),lt.allowStateReads=!lt.observableRequiresReaction,e.reactionScheduler&&rrt(e.reactionScheduler)}function c8(e,t,r,n){var a=Ztt(t);return cu(function(){var i=Lc(e,n)[It];Ih(a).forEach(function(o){i.extend_(o,a[o],r&&o in r?r[o]:!0)})}),e}function mrt(e,t){return v8(KS(e,t))}function v8(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=_rt(e.observing_).map(v8)),t}function _rt(e){return Array.from(new Set(e))}var Srt=0,brt=function(e){function t(){var n;return n=e.call(this,"FLOW_CANCELLED")||this,Object.setPrototypeOf(n,(this instanceof t?this.constructor:void 0).prototype),n.name="FlowCancellationError",n}KO(t,e);var r=t.prototype;return r.toString=function(){return"Error: "+this.message},t}(zM(Error)),Kw=Y6("flow"),xrt=Y6("flow.bound",{bound:!0}),Nh=Object.assign(function(t,r){if(rm(r))return Kw.decorate_20223_(t,r);if(Vf(r))return em(t,r,Kw);var n=t,a=n.name||"<unnamed flow>",i=function(){var s=this,l=arguments,u=++Srt,f=Fv(a+" - runid: "+u+" - init",n).apply(s,l),c,v=void 0,h=new Promise(function(d,p){var g=0;c=p;function y(S){v=void 0;var b;try{b=Fv(a+" - runid: "+u+" - yield "+g++,f.next).call(f,S)}catch(x){return p(x)}_(b)}function m(S){v=void 0;var b;try{b=Fv(a+" - runid: "+u+" - yield "+g++,f.throw).call(f,S)}catch(x){return p(x)}_(b)}function _(S){if(pi(S==null?void 0:S.then)){S.then(_,p);return}return S.done?d(S.value):(v=Promise.resolve(S.value),v.then(y,m))}y(void 0)});return h.cancel=Fv(a+" - runid: "+u+" - cancel",function(){try{v&&Fk(v);var d=f.return(void 0),p=Promise.resolve(d.value);p.then(Hv,Hv),Fk(p),c(new brt)}catch(g){c(g)}}),h};return i.isMobXFlow=!0,i},Kw);Nh.bound=ro(xrt);function Fk(e){pi(e.cancel)&&e.cancel()}function Yg(e){return(e==null?void 0:e.isMobXFlow)===!0}function wrt(e,t){return e?vx(e)||!!e[It]||QO(e)||WS(e)||fx(e):!1}function h8(e){return wrt(e)}function Zo(e,t){t===void 0&&(t=void 0),za();try{return e.apply(t)}finally{Ba()}}function ev(e){return e[It]}var Trt={has:function(t,r){return ev(t).has_(r)},get:function(t,r){return ev(t).get_(r)},set:function(t,r,n){var a;return Vf(r)?(a=ev(t).set_(r,n,!0))!=null?a:!0:!1},deleteProperty:function(t,r){var n;return Vf(r)?(n=ev(t).delete_(r,!0))!=null?n:!0:!1},defineProperty:function(t,r,n){var a;return(a=ev(t).defineProperty_(r,n))!=null?a:!0},ownKeys:function(t){return ev(t).ownKeys_()},preventExtensions:function(t){re(13)}};function Crt(e,t){var r,n;return N6(),e=Lc(e,t),(n=(r=e[It]).proxy_)!=null?n:r.proxy_=new Proxy(e,Trt)}function La(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function am(e,t){var r=e.interceptors_||(e.interceptors_=[]);return r.push(t),k6(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function Oa(e,t){var r=Dc();try{for(var n=[].concat(e.interceptors_||[]),a=0,i=n.length;a<i&&(t=n[a](t),t&&!t.type&&re(14),!!t);a++);return t}finally{ns(r)}}function li(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function im(e,t){var r=e.changeListeners_||(e.changeListeners_=[]);return r.push(t),k6(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function ui(e,t){var r=Dc(),n=e.changeListeners_;if(n){n=n.slice();for(var a=0,i=n.length;a<i;a++)n[a](t);ns(r)}}function Art(e,t,r){return cu(function(){var n,a=Lc(e,r)[It];(n=t)!=null||(t=ret(e)),Ih(t).forEach(function(i){return a.make_(i,t[i])})}),e}var Qw=Symbol("mobx-keys");function Mrt(e,t,r){return gs(e)?c8(e,e,t,r):(cu(function(){var n=Lc(e,r)[It];if(!e[Qw]){var a=Object.getPrototypeOf(e),i=new Set([].concat(Ih(e),Ih(a)));i.delete("constructor"),i.delete(It),tm(a,Qw,i)}e[Qw].forEach(function(o){return n.make_(o,t&&o in t?t[o]:!0)})}),e)}var Yk="splice",no="update",Drt=1e4,Ert={get:function(t,r){var n=t[It];return r===It?n:r==="length"?n.getArrayLength_():typeof r=="string"&&!isNaN(r)?n.get_(parseInt(r)):rs(ZS,r)?ZS[r]:t[r]},set:function(t,r,n){var a=t[It];return r==="length"&&a.setArrayLength_(n),typeof r=="symbol"||isNaN(r)?t[r]=n:a.set_(parseInt(r),n),!0},preventExtensions:function(){re(15)}},nR=function(){function e(r,n,a,i){r===void 0&&(r="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=a,this.legacyMode_=i,this.atom_=new fu(r),this.enhancer_=function(o,s){return n(o,s,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.dehanceValues_=function(n){return this.dehancer!==void 0&&n.length>0?n.map(this.dehancer):n},t.intercept_=function(n){return am(this,n)},t.observe_=function(n,a){return a===void 0&&(a=!1),a&&n({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),im(this,n)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(n){(typeof n!="number"||isNaN(n)||n<0)&&re("Out of range: "+n);var a=this.values_.length;if(n!==a)if(n>a){for(var i=new Array(n-a),o=0;o<n-a;o++)i[o]=void 0;this.spliceWithArray_(a,0,i)}else this.spliceWithArray_(n,a-n)},t.updateArrayLength_=function(n,a){n!==this.lastKnownLength_&&re(16),this.lastKnownLength_+=a,this.legacyMode_&&a>0&&S8(n+a+1)},t.spliceWithArray_=function(n,a,i){var o=this;this.atom_;var s=this.values_.length;if(n===void 0?n=0:n>s?n=s:n<0&&(n=Math.max(0,s+n)),arguments.length===1?a=s-n:a==null?a=0:a=Math.max(0,Math.min(a,s-n)),i===void 0&&(i=NM),La(this)){var l=Oa(this,{object:this.proxy_,type:Yk,index:n,removedCount:a,added:i});if(!l)return NM;a=l.removedCount,i=l.added}if(i=i.length===0?i:i.map(function(c){return o.enhancer_(c,void 0)}),this.legacyMode_){var u=i.length-a;this.updateArrayLength_(s,u)}var f=this.spliceItemsIntoValues_(n,a,i);return(a!==0||i.length!==0)&&this.notifyArraySplice_(n,i,f),this.dehanceValues_(f)},t.spliceItemsIntoValues_=function(n,a,i){if(i.length<Drt){var o;return(o=this.values_).splice.apply(o,[n,a].concat(i))}else{var s=this.values_.slice(n,n+a),l=this.values_.slice(n+a);this.values_.length+=i.length-a;for(var u=0;u<i.length;u++)this.values_[n+u]=i[u];for(var f=0;f<l.length;f++)this.values_[n+i.length+f]=l[f];return s}},t.notifyArrayChildUpdate_=function(n,a,i){var o=!this.owned_&&lg(),s=li(this),l=s||o?{observableKind:"array",object:this.proxy_,type:no,debugObjectName:this.atom_.name_,index:n,newValue:a,oldValue:i}:null;this.atom_.reportChanged(),s&&ui(this,l)},t.notifyArraySplice_=function(n,a,i){var o=!this.owned_&&lg(),s=li(this),l=s||o?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Yk,index:n,removed:i,added:a,removedCount:i.length,addedCount:a.length}:null;this.atom_.reportChanged(),s&&ui(this,l)},t.get_=function(n){if(this.legacyMode_&&n>=this.values_.length){console.warn("[mobx] Out of bounds read: "+n);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[n])},t.set_=function(n,a){var i=this.values_;if(this.legacyMode_&&n>i.length&&re(17,n,i.length),n<i.length){this.atom_;var o=i[n];if(La(this)){var s=Oa(this,{type:no,object:this.proxy_,index:n,newValue:a});if(!s)return;a=s.newValue}a=this.enhancer_(a,o);var l=a!==o;l&&(i[n]=a,this.notifyArrayChildUpdate_(n,a,o))}else{for(var u=new Array(n+1-i.length),f=0;f<u.length-1;f++)u[f]=void 0;u[u.length-1]=a,this.spliceWithArray_(i.length,0,u)}},e}();function Lrt(e,t,r,n){return r===void 0&&(r="ObservableArray"),n===void 0&&(n=!1),N6(),cu(function(){var a=new nR(r,t,n,!1);B6(a.values_,It,a);var i=new Proxy(a.values_,Ert);return a.proxy_=i,e&&e.length&&a.spliceWithArray_(0,0,e),i})}var ZS={clear:function(){return this.splice(0)},replace:function(t){var r=this[It];return r.spliceWithArray_(0,r.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i];var o=this[It];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(t);case 2:return o.spliceWithArray_(t,r)}return o.spliceWithArray_(t,r,a)},spliceWithArray:function(t,r,n){return this[It].spliceWithArray_(t,r,n)},push:function(){for(var t=this[It],r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.spliceWithArray_(t.values_.length,0,n),t.values_.length},pop:function(){return this.splice(Math.max(this[It].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[It],r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.spliceWithArray_(0,0,n),t.values_.length},reverse:function(){return lt.trackingDerivation&&re(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){lt.trackingDerivation&&re(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var r=this[It],n=r.dehanceValues_(r.values_).indexOf(t);return n>-1?(this.splice(n,1),!0):!1}};Re("at",va);Re("concat",va);Re("flat",va);Re("includes",va);Re("indexOf",va);Re("join",va);Re("lastIndexOf",va);Re("slice",va);Re("toString",va);Re("toLocaleString",va);Re("toSorted",va);Re("toSpliced",va);Re("with",va);Re("every",mi);Re("filter",mi);Re("find",mi);Re("findIndex",mi);Re("findLast",mi);Re("findLastIndex",mi);Re("flatMap",mi);Re("forEach",mi);Re("map",mi);Re("some",mi);Re("toReversed",mi);Re("reduce",d8);Re("reduceRight",d8);function Re(e,t){typeof Array.prototype[e]=="function"&&(ZS[e]=t(e))}function va(e){return function(){var t=this[It];t.atom_.reportObserved();var r=t.dehanceValues_(t.values_);return r[e].apply(r,arguments)}}function mi(e){return function(t,r){var n=this,a=this[It];a.atom_.reportObserved();var i=a.dehanceValues_(a.values_);return i[e](function(o,s){return t.call(r,o,s,n)})}}function d8(e){return function(){var t=this,r=this[It];r.atom_.reportObserved();var n=r.dehanceValues_(r.values_),a=arguments[0];return arguments[0]=function(i,o,s){return a(i,o,s,t)},n[e].apply(n,arguments)}}var Ort=Mc("ObservableArrayAdministration",nR);function cx(e){return ox(e)&&Ort(e[It])}var Rrt={},vl="add",qS="delete",p8=function(){function e(r,n,a){var i=this;n===void 0&&(n=Hf),a===void 0&&(a="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[It]=Rrt,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=n,this.name_=a,pi(Map)||re(18),cu(function(){i.keysAtom_=U6("ObservableMap.keys()"),i.data_=new Map,i.hasMap_=new Map,r&&i.merge(r)})}var t=e.prototype;return t.has_=function(n){return this.data_.has(n)},t.has=function(n){var a=this;if(!lt.trackingDerivation)return this.has_(n);var i=this.hasMap_.get(n);if(!i){var o=i=new Tf(this.has_(n),sx,"ObservableMap.key?",!1);this.hasMap_.set(n,o),u8(o,function(){return a.hasMap_.delete(n)})}return i.get()},t.set=function(n,a){var i=this.has_(n);if(La(this)){var o=Oa(this,{type:i?no:vl,object:this,newValue:a,name:n});if(!o)return this;a=o.newValue}return i?this.updateValue_(n,a):this.addValue_(n,a),this},t.delete=function(n){var a=this;if(this.keysAtom_,La(this)){var i=Oa(this,{type:qS,object:this,name:n});if(!i)return!1}if(this.has_(n)){var o=lg(),s=li(this),l=s||o?{observableKind:"map",debugObjectName:this.name_,type:qS,object:this,oldValue:this.data_.get(n).value_,name:n}:null;return Zo(function(){var u;a.keysAtom_.reportChanged(),(u=a.hasMap_.get(n))==null||u.setNewValue_(!1);var f=a.data_.get(n);f.setNewValue_(void 0),a.data_.delete(n)}),s&&ui(this,l),!0}return!1},t.updateValue_=function(n,a){var i=this.data_.get(n);if(a=i.prepareNewValue_(a),a!==lt.UNCHANGED){var o=lg(),s=li(this),l=s||o?{observableKind:"map",debugObjectName:this.name_,type:no,object:this,oldValue:i.value_,name:n,newValue:a}:null;i.setNewValue_(a),s&&ui(this,l)}},t.addValue_=function(n,a){var i=this;this.keysAtom_,Zo(function(){var u,f=new Tf(a,i.enhancer_,"ObservableMap.key",!1);i.data_.set(n,f),a=f.value_,(u=i.hasMap_.get(n))==null||u.setNewValue_(!0),i.keysAtom_.reportChanged()});var o=lg(),s=li(this),l=s||o?{observableKind:"map",debugObjectName:this.name_,type:vl,object:this,name:n,newValue:a}:null;s&&ui(this,l)},t.get=function(n){return this.has(n)?this.dehanceValue_(this.data_.get(n).get()):this.dehanceValue_(void 0)},t.getOrInsert=function(n,a){return this.has(n)||this.set(n,a),this.get(n)},t.getOrInsertComputed=function(n,a){return this.has(n)||this.set(n,a(n)),this.get(n)},t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var n=this,a=this.keys();return jk({next:function(){var o=a.next(),s=o.done,l=o.value;return{done:s,value:s?void 0:n.get(l)}}})},t.entries=function(){var n=this,a=this.keys();return jk({next:function(){var o=a.next(),s=o.done,l=o.value;return{done:s,value:s?void 0:[l,n.get(l)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(n,a){for(var i=Uv(this),o;!(o=i()).done;){var s=o.value,l=s[0],u=s[1];n.call(a,u,l,this)}},t.merge=function(n){var a=this;return Ec(n)&&(n=new Map(n)),Zo(function(){gs(n)?Wtt(n).forEach(function(i){return a.set(i,n[i])}):Array.isArray(n)?n.forEach(function(i){var o=i[0],s=i[1];return a.set(o,s)}):md(n)?($tt(n)||re(19,n),n.forEach(function(i,o){return a.set(o,i)})):n!=null&&re(20,n)}),this},t.clear=function(){var n=this;Zo(function(){Q6(function(){for(var a=Uv(n.keys()),i;!(i=a()).done;){var o=i.value;n.delete(o)}})})},t.replace=function(n){var a=this;return Zo(function(){for(var i=Irt(n),o=new Map,s=!1,l=Uv(a.data_.keys()),u;!(u=l()).done;){var f=u.value;if(!i.has(f)){var c=a.delete(f);if(c)s=!0;else{var v=a.data_.get(f);o.set(f,v)}}}for(var h=Uv(i.entries()),d;!(d=h()).done;){var p=d.value,g=p[0],y=p[1],m=a.data_.has(g);if(a.set(g,y),a.data_.has(g)){var _=a.data_.get(g);o.set(g,_),m||(s=!0)}}if(!s)if(a.data_.size!==o.size)a.keysAtom_.reportChanged();else for(var S=a.data_.keys(),b=o.keys(),x=S.next(),w=b.next();!x.done;){if(x.value!==w.value){a.keysAtom_.reportChanged();break}x=S.next(),w=b.next()}a.data_=o}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(n,a){return im(this,n)},t.intercept_=function(n){return am(this,n)},_d(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),Ec=Mc("ObservableMap",p8);function jk(e){return e[Symbol.toStringTag]="MapIterator",iR(e)}function Irt(e){if(md(e)||Ec(e))return e;if(Array.isArray(e))return new Map(e);if(gs(e)){var t=new Map;for(var r in e)t.set(r,e[r]);return t}else return re(21,e)}var Prt={},g8=function(){function e(r,n,a){var i=this;n===void 0&&(n=Hf),a===void 0&&(a="ObservableSet"),this.name_=void 0,this[It]=Prt,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=a,pi(Set)||re(22),this.enhancer_=function(o,s){return n(o,s,a)},cu(function(){i.atom_=U6(i.name_),r&&i.replace(r)})}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.clear=function(){var n=this;Zo(function(){Q6(function(){for(var a=Uv(n.data_.values()),i;!(i=a()).done;){var o=i.value;n.delete(o)}})})},t.forEach=function(n,a){for(var i=Uv(this),o;!(o=i()).done;){var s=o.value;n.call(a,s,s,this)}},t.add=function(n){var a=this;if(this.atom_,La(this)){var i=Oa(this,{type:vl,object:this,newValue:n});if(!i)return this;n=i.newValue}if(!this.has(n)){Zo(function(){a.data_.add(a.enhancer_(n,void 0)),a.atom_.reportChanged()});var o=!1,s=li(this),l=s||o?{observableKind:"set",debugObjectName:this.name_,type:vl,object:this,newValue:n}:null;s&&ui(this,l)}return this},t.delete=function(n){var a=this;if(La(this)){var i=Oa(this,{type:qS,object:this,oldValue:n});if(!i)return!1}if(this.has(n)){var o=!1,s=li(this),l=s||o?{observableKind:"set",debugObjectName:this.name_,type:qS,object:this,oldValue:n}:null;return Zo(function(){a.atom_.reportChanged(),a.data_.delete(n)}),s&&ui(this,l),!0}return!1},t.has=function(n){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(n))},t.entries=function(){var n=this.values();return Xk({next:function(){var i=n.next(),o=i.value,s=i.done;return s?{value:void 0,done:s}:{value:[o,o],done:s}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var n=this,a=this.data_.values();return Xk({next:function(){var o=a.next(),s=o.value,l=o.done;return l?{value:void 0,done:l}:{value:n.dehanceValue_(s),done:l}}})},t.intersection=function(n){if(Wo(n)&&!Vi(n))return n.intersection(this);var a=new Set(this);return a.intersection(n)},t.union=function(n){if(Wo(n)&&!Vi(n))return n.union(this);var a=new Set(this);return a.union(n)},t.difference=function(n){return new Set(this).difference(n)},t.symmetricDifference=function(n){if(Wo(n)&&!Vi(n))return n.symmetricDifference(this);var a=new Set(this);return a.symmetricDifference(n)},t.isSubsetOf=function(n){return new Set(this).isSubsetOf(n)},t.isSupersetOf=function(n){return new Set(this).isSupersetOf(n)},t.isDisjointFrom=function(n){if(Wo(n)&&!Vi(n))return n.isDisjointFrom(this);var a=new Set(this);return a.isDisjointFrom(n)},t.replace=function(n){var a=this;return Vi(n)&&(n=new Set(n)),Zo(function(){Array.isArray(n)?(a.clear(),n.forEach(function(i){return a.add(i)})):Wo(n)?(a.clear(),n.forEach(function(i){return a.add(i)})):n!=null&&re("Cannot initialize set from "+n)}),this},t.observe_=function(n,a){return im(this,n)},t.intercept_=function(n){return am(this,n)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},_d(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Vi=Mc("ObservableSet",g8);function Xk(e){return e[Symbol.toStringTag]="SetIterator",iR(e)}var $k=Object.create(null),Wk="remove",y8=function(){function e(r,n,a,i){n===void 0&&(n=new Map),i===void 0&&(i=Det),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.lazyComputedKeys_=void 0,this.lazyObservableKeys_=void 0,this.target_=r,this.values_=n,this.name_=a,this.defaultAnnotation_=i,this.keysAtom_=new fu("ObservableObject.keys"),this.isPlainObject_=gs(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(n){var a,i,o=(a=(i=this.values_.get(n))!=null?i:this.materializeLazyComputed_(n))!=null?a:this.materializeLazyObservable_(n);return o.get()},t.materializeLazyComputed_=function(n){var a,i=(a=this.lazyComputedKeys_)==null?void 0:a.get(n);if(i){this.lazyComputedKeys_.delete(n),this.lazyComputedKeys_.size===0&&(this.lazyComputedKeys_=void 0);var o=i();return this.values_.set(n,o),o}},t.materializeLazyObservable_=function(n){var a,i=(a=this.lazyObservableKeys_)==null?void 0:a.get(n);if(i){this.lazyObservableKeys_.delete(n),this.lazyObservableKeys_.size===0&&(this.lazyObservableKeys_=void 0);var o=i();return this.values_.set(n,o),o}},t.setObservablePropValue_=function(n,a){var i,o,s=(i=(o=this.values_.get(n))!=null?o:this.materializeLazyComputed_(n))!=null?i:this.materializeLazyObservable_(n);if(s instanceof aa)return s.set(a),!0;if(La(this)){var l=Oa(this,{type:no,object:this.proxy_||this.target_,name:n,newValue:a});if(!l)return null;a=l.newValue}if(a=s.prepareNewValue_(a),a!==lt.UNCHANGED){var u=li(this),f=!1,c=u||f?{type:no,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:s.value_,name:n,newValue:a}:null;s.setNewValue_(a),u&&ui(this,c)}return!0},t.get_=function(n){return lt.trackingDerivation&&!rs(this.target_,n)&&this.has_(n),this.target_[n]},t.set_=function(n,a,i){return i===void 0&&(i=!1),rs(this.target_,n)?this.values_.has(n)?this.setObservablePropValue_(n,a):i?Reflect.set(this.target_,n,a):(this.target_[n]=a,!0):this.extend_(n,{value:a,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,i)},t.has_=function(n){if(!lt.trackingDerivation)return n in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var a=this.pendingKeys_.get(n);return a||(a=new Tf(n in this.target_,sx,"ObservableObject.key?",!1),this.pendingKeys_.set(n,a)),a.get()},t.make_=function(n,a){if(a===!0&&(a=this.defaultAnnotation_),a!==!1){if(!(n in this.target_)){var i;if((i=this.target_[Fi])!=null&&i[n])return;re(1,a.annotationType_,this.name_+"."+n.toString())}for(var o=this.target_;o&&o!==ix;){var s=FS(o,n);if(s){var l=a.make_(this,n,s,o);if(l===0)return;if(l===1)break}o=Object.getPrototypeOf(o)}qk(this,a,n)}},t.extend_=function(n,a,i,o){if(o===void 0&&(o=!1),i===!0&&(i=this.defaultAnnotation_),i===!1)return this.defineProperty_(n,a,o);var s=i.extend_(this,n,a,o);return s&&qk(this,i,n),s},t.defineProperty_=function(n,a,i){i===void 0&&(i=!1),this.keysAtom_;try{za();var o=this.delete_(n);if(!o)return o;if(La(this)){var s=Oa(this,{object:this.proxy_||this.target_,name:n,type:vl,newValue:a.value});if(!s)return null;var l=s.newValue;a.value!==l&&(a=Gf({},a,{value:l}))}if(i){if(!Reflect.defineProperty(this.target_,n,a))return!1}else eo(this.target_,n,a);this.notifyPropertyAddition_(n,a.value)}finally{Ba()}return!0},t.defineObservableProperty_=function(n,a,i,o){o===void 0&&(o=!1),this.keysAtom_;try{za();var s=this.delete_(n);if(!s)return s;if(La(this)){var l=Oa(this,{object:this.proxy_||this.target_,name:n,type:vl,newValue:a});if(!l)return null;a=l.newValue}var u=Zk(n),f={configurable:lt.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:u.get,set:u.set};if(o){if(!Reflect.defineProperty(this.target_,n,f))return!1}else eo(this.target_,n,f);var c=new Tf(a,i,"ObservableObject.key",!1);this.values_.set(n,c),this.notifyPropertyAddition_(n,c.value_)}finally{Ba()}return!0},t.defineComputedProperty_=function(n,a,i){i===void 0&&(i=!1),this.keysAtom_;try{za();var o=this.delete_(n);if(!o)return o;if(La(this)){var s=Oa(this,{object:this.proxy_||this.target_,name:n,type:vl,newValue:void 0});if(!s)return null}a.name||(a.name="ObservableObject.key"),a.context=this.proxy_||this.target_;var l=Zk(n),u={configurable:lt.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:l.get,set:l.set};if(i){if(!Reflect.defineProperty(this.target_,n,u))return!1}else eo(this.target_,n,u);this.values_.set(n,new aa(a)),this.notifyPropertyAddition_(n,void 0)}finally{Ba()}return!0},t.delete_=function(n,a){if(a===void 0&&(a=!1),this.keysAtom_,!rs(this.target_,n))return!0;if(La(this)){var i=Oa(this,{object:this.proxy_||this.target_,name:n,type:Wk});if(!i)return null}try{var o;za();var s=li(this),l=!1,u=this.values_.get(n),f=void 0;if(!u&&(s||l)){var c;f=(c=FS(this.target_,n))==null?void 0:c.value}if(a){if(!Reflect.deleteProperty(this.target_,n))return!1}else delete this.target_[n];if(u&&(this.values_.delete(n),u instanceof Tf&&(f=u.value_),a8(u)),this.keysAtom_.reportChanged(),(o=this.pendingKeys_)==null||(o=o.get(n))==null||o.set(n in this.target_),s||l){var v={type:Wk,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:f,name:n};s&&ui(this,v)}}finally{Ba()}return!0},t.observe_=function(n,a){return im(this,n)},t.intercept_=function(n){return am(this,n)},t.notifyPropertyAddition_=function(n,a){var i,o=li(this),s=!1;if(o||s){var l=o||s?{type:vl,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:n,newValue:a}:null;o&&ui(this,l)}(i=this.pendingKeys_)==null||(i=i.get(n))==null||i.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),Ih(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Lc(e,t){var r;if(rs(e,It))return e;var n=(r=t==null?void 0:t.name)!=null?r:"ObservableObject",a=new y8(e,new Map,String(n),Vet(t));return tm(e,It,a),e}var Nrt=Mc("ObservableObjectAdministration",y8);function Zk(e){return $k[e]||($k[e]={get:function(){return this[It].getObservablePropValue_(e)},set:function(r){return this[It].setObservablePropValue_(e,r)}})}function vx(e){return ox(e)?Nrt(e[It]):!1}function qk(e,t,r){var n;(n=e.target_[Fi])==null||delete n[r]}var krt=_8(0),zrt=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),Jw=0,m8=function(){};function Brt(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}Brt(m8,Array.prototype);var aR=function(e){function t(n,a,i,o){var s;return i===void 0&&(i="ObservableArray"),o===void 0&&(o=!1),s=e.call(this)||this,cu(function(){var l=new nR(i,a,o,!0);l.proxy_=s,B6(s,It,l),n&&n.length&&s.spliceWithArray(0,0,n),zrt&&Object.defineProperty(s,"0",krt)}),s}KO(t,e);var r=t.prototype;return r.concat=function(){this[It].atom_.reportObserved();for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return Array.prototype.concat.apply(this.slice(),i.map(function(s){return cx(s)?s.slice():s}))},r[Symbol.iterator]=function(){var n=this,a=0;return iR({next:function(){return a<n.length?{value:n[a++],done:!1}:{done:!0,value:void 0}}})},_d(t,[{key:"length",get:function(){return this[It].getArrayLength_()},set:function(a){this[It].setArrayLength_(a)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(m8);Object.entries(ZS).forEach(function(e){var t=e[0],r=e[1];t!=="concat"&&tm(aR.prototype,t,r)});function _8(e){return{enumerable:!1,configurable:!0,get:function(){return this[It].get_(e)},set:function(r){this[It].set_(e,r)}}}function Vrt(e){eo(aR.prototype,""+e,_8(e))}function S8(e){if(e>Jw){for(var t=Jw;t<e+100;t++)Vrt(t);Jw=e}}S8(1e3);function Grt(e,t,r){return new aR(e,t,r)}function KS(e,t){if(typeof e=="object"&&e!==null){if(cx(e))return t!==void 0&&re(23),e[It].atom_;if(Vi(e))return e.atom_;if(Ec(e)){if(t===void 0)return e.keysAtom_;var r=e.data_.get(t)||e.hasMap_.get(t);return r||re(25,t,jM(e)),r}if(vx(e)){var n,a;if(!t)return re(26);var i=e[It],o=(n=(a=i.values_.get(t))!=null?a:i.materializeLazyComputed_(t))!=null?n:i.materializeLazyObservable_(t);return o||re(27,t,jM(e)),o}if(QO(e)||fx(e)||WS(e))return e}else if(pi(e)&&WS(e[It]))return e[It];re(28)}function Hrt(e,t){if(e||re(29),QO(e)||fx(e)||WS(e)||Ec(e)||Vi(e))return e;if(e[It])return e[It];re(24,e)}function jM(e,t){var r;if(t!==void 0)r=KS(e,t);else{if(Ph(e))return e.name;vx(e)||Ec(e)||Vi(e)?r=Hrt(e):r=KS(e)}return r.name_}function cu(e){var t=Dc(),r=tR(!0);za();try{return e()}finally{Ba(),eR(r),ns(t)}}var Kk=ix.toString;function b8(e,t,r){return r===void 0&&(r=-1),XM(e,t,r)}function XM(e,t,r,n,a){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var i=typeof e;if(i!=="function"&&i!=="object"&&typeof t!="object")return!1;var o=Kk.call(e);if(o!==Kk.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":r>=0&&r++;break}e=Qk(e),t=Qk(t);var s=o==="[object Array]";if(!s){if(typeof e!="object"||typeof t!="object")return!1;var l=e.constructor,u=t.constructor;if(l!==u&&!(pi(l)&&l instanceof l&&pi(u)&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}if(r===0)return!1;r<0&&(r=-1),n=n||[],a=a||[];for(var f=n.length;f--;)if(n[f]===e)return a[f]===t;if(n.push(e),a.push(t),s){if(f=e.length,f!==t.length)return!1;for(;f--;)if(!XM(e[f],t[f],r-1,n,a))return!1}else{var c=Object.keys(e),v=c.length;if(Object.keys(t).length!==v)return!1;for(var h=0;h<v;h++){var d=c[h];if(!(rs(t,d)&&XM(e[d],t[d],r-1,n,a)))return!1}}return n.pop(),a.pop(),!0}function Qk(e){return cx(e)?e.slice():md(e)||Ec(e)||Wo(e)||Vi(e)?Array.from(e.entries()):e}var Jk,Urt=ax(),Frt=((Jk=Urt.Iterator)==null?void 0:Jk.prototype)||{};function iR(e){return e[Symbol.iterator]=Yrt,Object.assign(Object.create(Frt),e)}function Yrt(){return this}["Symbol","Map","Set"].forEach(function(e){var t=ax();typeof t[e]>"u"&&re("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:nrt,extras:{getDebugName:jM},$mobx:It});if(!k.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Art)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var x8={exports:{}},ln={};/**
20
+ * @license React
21
+ * react-dom.production.js
22
+ *
23
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
24
+ *
25
+ * This source code is licensed under the MIT license found in the
26
+ * LICENSE file in the root directory of this source tree.
27
+ */var jrt=k;function w8(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}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."}function $s(){}var _n={d:{f:$s,r:function(){throw Error(w8(522))},D:$s,C:$s,L:$s,m:$s,X:$s,S:$s,M:$s},p:0,findDOMNode:null},Xrt=Symbol.for("react.portal"),$rt=Symbol.for("react.recoverable"),tz=Symbol.for("react.optimistic_key");function Wrt(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xrt,key:n==null?null:n===tz?tz:""+n,children:e,containerInfo:t,implementation:r}}var ug=jrt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function hx(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}ln.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_n;ln.browser=function(e){return{$$typeof:$rt,_reason:e}};ln.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(w8(299));return Wrt(e,t,null,r)};ln.flushSync=function(e){var t=ug.T,r=_n.p;try{if(ug.T=null,_n.p=2,e)return e()}finally{ug.T=t,_n.p=r,_n.d.f()}};ln.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,_n.d.C(e,t))};ln.prefetchDNS=function(e){typeof e=="string"&&_n.d.D(e)};ln.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,n=hx(r,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?_n.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:n,integrity:a,fetchPriority:i}):r==="script"&&_n.d.X(e,{crossOrigin:n,integrity:a,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};ln.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=hx(t.as,t.crossOrigin);_n.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&_n.d.M(e)};ln.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,n=hx(r,t.crossOrigin);_n.d.L(e,r,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};ln.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=hx(t.as,t.crossOrigin);_n.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else _n.d.m(e)};ln.requestFormReset=function(e){_n.d.r(e)};ln.unstable_batchedUpdates=function(e,t){return e(t)};ln.useFormState=function(e,t,r){return ug.H.useFormState(e,t,r)};ln.useFormStatus=function(){return ug.H.useHostTransitionStatus()};ln.version="19.3.0";function T8(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(T8)}catch(e){console.error(e)}}T8(),x8.exports=ln;var Oc=x8.exports;function Zrt(e){e()}function qrt(e){e||(e=Zrt),yrt({reactionScheduler:e})}function Krt(e){return mrt(e)}var Qrt=1e4,Jrt=1e4,tnt=function(){function e(t){var r=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(n){n===void 0&&(n=Qrt),clearTimeout(r.sweepTimeout),r.sweepTimeout=void 0;var a=Date.now();r.registrations.forEach(function(i,o){a-i.registeredAt>=n&&(r.finalize(i.value),r.registrations.delete(o))}),r.registrations.size>0&&r.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){r.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,n){this.registrations.set(n,{value:r,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,Jrt))}}),e}(),ent=typeof FinalizationRegistry<"u"?FinalizationRegistry:tnt,$M=new ent(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),C8={exports:{}},A8={};/**
28
+ * @license React
29
+ * use-sync-external-store-shim.production.js
30
+ *
31
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
32
+ *
33
+ * This source code is licensed under the MIT license found in the
34
+ * LICENSE file in the root directory of this source tree.
35
+ */var kh=k;function rnt(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nnt=typeof Object.is=="function"?Object.is:rnt,ant=kh.useState,int=kh.useEffect,ont=kh.useLayoutEffect,snt=kh.useDebugValue;function lnt(e,t){var r=t(),n=ant({inst:{value:r,getSnapshot:t}}),a=n[0].inst,i=n[1];return ont(function(){a.value=r,a.getSnapshot=t,tT(a)&&i({inst:a})},[e,r,t]),int(function(){return tT(a)&&i({inst:a}),e(function(){tT(a)&&i({inst:a})})},[e]),snt(r),r}function tT(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!nnt(e,r)}catch{return!0}}function unt(e,t){return t()}var fnt=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?unt:lnt;A8.useSyncExternalStore=kh.useSyncExternalStore!==void 0?kh.useSyncExternalStore:fnt;C8.exports=A8;var M8=C8.exports;function ez(e){e.reaction=new ys("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),(t=e.onStoreChange)===null||t===void 0||t.call(e)})}function cnt(e,t){t===void 0&&(t="observed");var r=US.useRef(null);if(!r.current){var n={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(s){return $M.unregister(n),n.onStoreChange=s,n.reaction||(ez(n),n.stateVersion=Symbol()),function(){var l;n.onStoreChange=null,(l=n.reaction)===null||l===void 0||l.dispose(),n.reaction=null}},getSnapshot:function(){return n.stateVersion}};r.current=n}var a=r.current;a.reaction||(ez(a),$M.register(r,a,a)),US.useDebugValue(a.reaction,Krt),M8.useSyncExternalStore(a.subscribe,a.getSnapshot,a.getSnapshot);var i,o;if(a.reaction.track(function(){try{i=e()}catch(s){o=s}}),o)throw o;return i}var eT,rT,D8=typeof Symbol=="function"&&Symbol.for,vnt=(rT=(eT=Object.getOwnPropertyDescriptor(function(){},"name"))===null||eT===void 0?void 0:eT.configurable)!==null&&rT!==void 0?rT:!1,rz=D8?Symbol.for("react.forward_ref"):typeof k.forwardRef=="function"&&k.forwardRef(function(e){return null}).$$typeof,nz=D8?Symbol.for("react.memo"):typeof k.memo=="function"&&k.memo(function(e){return null}).$$typeof;function om(e,t){var r;if(nz&&e.$$typeof===nz)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var n=(r=void 0)!==null&&r!==void 0?r:!1,a=e,i=e.displayName||e.name;if(rz&&e.$$typeof===rz&&(n=!0,a=e.render,typeof a!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var o=function(s,l){return cnt(function(){return a(s,l)},i)};return o.displayName=e.displayName,vnt&&Object.defineProperty(o,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(o.contextTypes=e.contextTypes),n&&(o=k.forwardRef(o)),o=k.memo(o),dnt(e,o),o}var hnt={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function dnt(e,t){Object.keys(e).forEach(function(r){hnt[r]||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}var nT;qrt(Oc.unstable_batchedUpdates);nT=$M.finalizeAllImmediately;var aT={};const Bt=e=>typeof e=="string",ep=()=>{let e,t;const r=new Promise((n,a)=>{e=n,t=a});return r.resolve=e,r.reject=t,r},az=e=>e==null?"":""+e,pnt=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},gnt=/###/g,iz=e=>e&&e.indexOf("###")>-1?e.replace(gnt,"."):e,oz=e=>!e||Bt(e),fg=(e,t,r)=>{const n=Bt(t)?t.split("."):t;let a=0;for(;a<n.length-1;){if(oz(e))return{};const i=iz(n[a]);!e[i]&&r&&(e[i]=new r),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++a}return oz(e)?{}:{obj:e,k:iz(n[a])}},sz=(e,t,r)=>{const{obj:n,k:a}=fg(e,t,Object);if(n!==void 0||t.length===1){n[a]=r;return}let i=t[t.length-1],o=t.slice(0,t.length-1),s=fg(e,o,Object);for(;s.obj===void 0&&o.length;)i=`${o[o.length-1]}.${i}`,o=o.slice(0,o.length-1),s=fg(e,o,Object),s!=null&&s.obj&&typeof s.obj[`${s.k}.${i}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=r},ynt=(e,t,r,n)=>{const{obj:a,k:i}=fg(e,t,Object);a[i]=a[i]||[],a[i].push(r)},QS=(e,t)=>{const{obj:r,k:n}=fg(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},mnt=(e,t,r)=>{const n=QS(e,r);return n!==void 0?n:QS(t,r)},E8=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?Bt(e[n])||e[n]instanceof String||Bt(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):E8(e[n],t[n],r):e[n]=t[n]);return e},bu=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var _nt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Snt=e=>Bt(e)?e.replace(/[&<>"'\/]/g,t=>_nt[t]):e;class bnt{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const xnt=[" ",",","?","!",";"],wnt=new bnt(20),Tnt=(e,t,r)=>{t=t||"",r=r||"";const n=xnt.filter(o=>t.indexOf(o)<0&&r.indexOf(o)<0);if(n.length===0)return!0;const a=wnt.getRegExp(`(${n.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!a.test(e);if(!i){const o=e.indexOf(r);o>0&&!a.test(e.substring(0,o))&&(i=!0)}return i},WM=(e,t,r=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const n=t.split(r);let a=e;for(let i=0;i<n.length;){if(!a||typeof a!="object")return;let o,s="";for(let l=i;l<n.length;++l)if(l!==i&&(s+=r),s+=n[l],o=a[s],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&l<n.length-1)continue;i+=l-i+1;break}a=o}return a},jg=e=>e==null?void 0:e.replace(/_/g,"-"),Cnt={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var r,n;(n=(r=console==null?void 0:console[e])==null?void 0:r.apply)==null||n.call(r,console,t)}};class JS{constructor(t,r={}){this.init(t,r)}init(t,r={}){this.prefix=r.prefix||"i18next:",this.logger=t||Cnt,this.options=r,this.debug=r.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,a){return a&&!this.debug?null:(Bt(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new JS(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new JS(this.logger,t)}}var Yi=new JS;class dx{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const a=this.observers[n].get(r)||0;this.observers[n].set(r,a+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t,...r){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([a,i])=>{for(let o=0;o<i;o++)a(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([a,i])=>{for(let o=0;o<i;o++)a.apply(a,[t,...r])})}}class lz extends dx{constructor(t,r={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n,a={}){var u,f;const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,o=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,r],n&&(Array.isArray(n)?s.push(...n):Bt(n)&&i?s.push(...n.split(i)):s.push(n)));const l=QS(this.data,s);return!l&&!r&&!n&&t.indexOf(".")>-1&&(t=s[0],r=s[1],n=s.slice(2).join(".")),l||!o||!Bt(n)?l:WM((f=(u=this.data)==null?void 0:u[t])==null?void 0:f[r],n,i)}addResource(t,r,n,a,i={silent:!1}){const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let s=[t,r];n&&(s=s.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(s=t.split("."),a=r,r=s[1]),this.addNamespaces(r),sz(this.data,s,a),i.silent||this.emit("added",t,r,n,a)}addResources(t,r,n,a={silent:!1}){for(const i in n)(Bt(n[i])||Array.isArray(n[i]))&&this.addResource(t,r,i,n[i],{silent:!0});a.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,a,i,o={silent:!1,skipCopy:!1}){let s=[t,r];t.indexOf(".")>-1&&(s=t.split("."),a=n,n=r,r=s[1]),this.addNamespaces(r);let l=QS(this.data,s)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),a?E8(l,n,i):l={...l,...n},sz(this.data,s,l),o.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(a=>r[a]&&Object.keys(r[a]).length>0)}toJSON(){return this.data}}var L8={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,a){return e.forEach(i=>{var o;t=((o=this.processors[i])==null?void 0:o.process(t,r,n,a))??t}),t}};const O8=Symbol("i18next/PATH_KEY");function Ant(){const e=[],t=Object.create(null);let r;return t.get=(n,a)=>{var i;return(i=r==null?void 0:r.revoke)==null||i.call(r),a===O8?e:(e.push(a),r=Proxy.revocable(n,t),r.proxy)},Proxy.revocable(Object.create(null),t).proxy}function uh(e,t){const{[O8]:r}=e(Ant()),n=(t==null?void 0:t.keySeparator)??".",a=(t==null?void 0:t.nsSeparator)??":";if(r.length>1&&a){const i=t==null?void 0:t.ns,o=Array.isArray(i)?i:null;if(o&&o.length>1&&o.slice(1).includes(r[0]))return`${r[0]}${a}${r.slice(1).join(n)}`}return r.join(n)}const uz={},iT=e=>!Bt(e)&&typeof e!="boolean"&&typeof e!="number";class t1 extends dx{constructor(t,r={}){super(),pnt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Yi.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,r={interpolation:{}}){const n={...r};if(t==null)return!1;const a=this.resolve(t,n);if((a==null?void 0:a.res)===void 0)return!1;const i=iT(a.res);return!(n.returnObjects===!1&&i)}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let i=r.ns||this.options.defaultNS||[];const o=n&&t.indexOf(n)>-1,s=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Tnt(t,n,a);if(o&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:Bt(i)?[i]:i};const u=t.split(n);(n!==a||n===a&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),t=u.join(a)}return{key:t,namespaces:Bt(i)?[i]:i}}translate(t,r,n){let a=typeof r=="object"?{...r}:r;if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),t==null)return"";typeof t=="function"&&(t=uh(t,{...this.options,...a})),Array.isArray(t)||(t=[String(t)]),t=t.map(E=>typeof E=="function"?uh(E,{...this.options,...a}):String(E));const i=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],a),u=l[l.length-1];let f=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;f===void 0&&(f=":");const c=a.lng||this.language,v=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((c==null?void 0:c.toLowerCase())==="cimode")return v?i?{res:`${u}${f}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(a)}:`${u}${f}${s}`:i?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(a)}:s;const h=this.resolve(t,a);let d=h==null?void 0:h.res;const p=(h==null?void 0:h.usedKey)||s,g=(h==null?void 0:h.exactUsedKey)||s,y=["[object Number]","[object Function]","[object RegExp]"],m=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,S=a.count!==void 0&&!Bt(a.count),b=t1.hasDefaultValue(a),x=S?this.pluralResolver.getSuffix(c,a.count,a):"",w=a.ordinal&&S?this.pluralResolver.getSuffix(c,a.count,{ordinal:!1}):"",T=S&&!a.ordinal&&a.count===0,C=T&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${x}`]||a[`defaultValue${w}`]||a.defaultValue;let A=d;_&&!d&&b&&(A=C);const M=iT(A),L=Object.prototype.toString.apply(A);if(_&&A&&M&&y.indexOf(L)<0&&!(Bt(m)&&Array.isArray(A))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const E=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,A,{...a,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(h.res=E,h.usedParams=this.getUsedParamsDetails(a),h):E}if(o){const E=Array.isArray(A),R=E?[]:{},I=E?g:p;for(const O in A)if(Object.prototype.hasOwnProperty.call(A,O)){const N=`${I}${o}${O}`;b&&!d?R[O]=this.translate(N,{...a,defaultValue:iT(C)?C[O]:void 0,joinArrays:!1,ns:l}):R[O]=this.translate(N,{...a,joinArrays:!1,ns:l}),R[O]===N&&(R[O]=A[O])}d=R}}else if(_&&Bt(m)&&Array.isArray(d))d=d.join(m),d&&(d=this.extendTranslation(d,t,a,n));else{let E=!1,R=!1;!this.isValidLookup(d)&&b&&(E=!0,d=C),this.isValidLookup(d)||(R=!0,d=s);const O=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&R?void 0:d,N=b&&C!==d&&this.options.updateMissing;if(R||E||N){if(this.logger.log(N?"updateKey":"missingKey",c,u,s,N?C:d),o){const H=this.resolve(s,{...a,keySeparator:!1});H&&H.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let P=[];const z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&z&&z[0])for(let H=0;H<z.length;H++)P.push(z[H]);else this.options.saveMissingTo==="all"?P=this.languageUtils.toResolveHierarchy(a.lng||this.language):P.push(a.lng||this.language);const B=(H,F,$)=>{var tt;const j=b&&$!==d?$:O;this.options.missingKeyHandler?this.options.missingKeyHandler(H,u,F,j,N,a):(tt=this.backendConnector)!=null&&tt.saveMissing&&this.backendConnector.saveMissing(H,u,F,j,N,a),this.emit("missingKey",H,u,F,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?P.forEach(H=>{const F=this.pluralResolver.getSuffixes(H,a);T&&a[`defaultValue${this.options.pluralSeparator}zero`]&&F.indexOf(`${this.options.pluralSeparator}zero`)<0&&F.push(`${this.options.pluralSeparator}zero`),F.forEach($=>{B([H],s+$,a[`defaultValue${$}`]||C)})}):B(P,s,C))}d=this.extendTranslation(d,t,a,h,n),R&&d===s&&this.options.appendNamespaceToMissingKey&&(d=`${u}${f}${s}`),(R||E)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${f}${s}`:s,E?d:void 0,a))}return i?(h.res=d,h.usedParams=this.getUsedParamsDetails(a),h):d}extendTranslation(t,r,n,a,i){var l,u;if((l=this.i18nFormat)!=null&&l.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const f=Bt(t)&&(((u=n==null?void 0:n.interpolation)==null?void 0:u.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(f){const h=t.match(this.interpolator.nestingRegexp);c=h&&h.length}let v=n.replace&&!Bt(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),t=this.interpolator.interpolate(t,v,n.lng||this.language||a.usedLng,n),f){const h=t.match(this.interpolator.nestingRegexp),d=h&&h.length;c<d&&(n.nest=!1)}!n.lng&&a&&a.res&&(n.lng=this.language||a.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,(...h)=>(i==null?void 0:i[0])===h[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${r[0]}`),null):this.translate(...h,r),n)),n.interpolation&&this.interpolator.reset()}const o=n.postProcess||this.options.postProcess,s=Bt(o)?[o]:o;return t!=null&&(s!=null&&s.length)&&n.applyPostProcessor!==!1&&(t=L8.handle(s,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t,r={}){let n,a,i,o,s;return Bt(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(l=>typeof l=="function"?uh(l,{...this.options,...r}):l)),t.forEach(l=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(l,r),f=u.key;a=f;let c=u.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const v=r.count!==void 0&&!Bt(r.count),h=v&&!r.ordinal&&r.count===0,d=r.context!==void 0&&(Bt(r.context)||typeof r.context=="number")&&r.context!=="",p=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);c.forEach(g=>{var y,m;this.isValidLookup(n)||(s=g,!uz[`${p[0]}-${g}`]&&((y=this.utils)!=null&&y.hasLoadedNamespace)&&!((m=this.utils)!=null&&m.hasLoadedNamespace(s))&&(uz[`${p[0]}-${g}`]=!0,this.logger.warn(`key "${a}" for languages "${p.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(_=>{var x;if(this.isValidLookup(n))return;o=_;const S=[f];if((x=this.i18nFormat)!=null&&x.addLookupKeys)this.i18nFormat.addLookupKeys(S,f,_,g,r);else{let w;v&&(w=this.pluralResolver.getSuffix(_,r.count,r));const T=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(r.ordinal&&w.indexOf(C)===0&&S.push(f+w.replace(C,this.options.pluralSeparator)),S.push(f+w),h&&S.push(f+T)),d){const A=`${f}${this.options.contextSeparator||"_"}${r.context}`;S.push(A),v&&(r.ordinal&&w.indexOf(C)===0&&S.push(A+w.replace(C,this.options.pluralSeparator)),S.push(A+w),h&&S.push(A+T))}}let b;for(;b=S.pop();)this.isValidLookup(n)||(i=b,n=this.getResource(_,g,b,r))}))})}),{res:n,usedKey:a,exactUsedKey:i,usedLng:o,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n,a={}){var i;return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(t,r,n,a):this.resourceStore.getResource(t,r,n,a)}getUsedParamsDetails(t={}){const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!Bt(t.replace);let a=n?t.replace:t;if(n&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!n){a={...a};for(const i of r)delete a[i]}return a}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}class fz{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Yi.create("languageUtils")}getScriptPartFromCode(t){if(t=jg(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=jg(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(Bt(t)&&t.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(t)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const a=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(a))&&(r=a)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const a=this.getScriptPartFromCode(n);if(this.isSupportedCode(a))return r=a;const i=this.getLanguagePartFromCode(n);if(this.isSupportedCode(i))return r=i;r=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),Bt(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],t),a=[],i=o=>{o&&(this.isSupportedCode(o)?a.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return Bt(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):Bt(t)&&i(this.formatLanguageCode(t)),n.forEach(o=>{a.indexOf(o)<0&&i(this.formatLanguageCode(o))}),a}}const cz={zero:0,one:1,two:2,few:3,many:4,other:5},vz={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Mnt{constructor(t,r={}){this.languageUtils=t,this.options=r,this.logger=Yi.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,r={}){const n=jg(t==="dev"?"en":t),a=r.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:a});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(n,{type:a})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),vz;if(!t.match(/-|_/))return vz;const l=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(l,r)}return this.pluralRulesCache[i]=o,o}needsPlural(t,r={}){let n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),(n==null?void 0:n.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,r,n={}){return this.getSuffixes(t,n).map(a=>`${r}${a}`)}getSuffixes(t,r={}){let n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),n?n.resolvedOptions().pluralCategories.sort((a,i)=>cz[a]-cz[i]).map(a=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,r,n={}){const a=this.getRule(t,n);return a?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a.select(r)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",r,n))}}const hz=(e,t,r,n=".",a=!0)=>{let i=mnt(e,t,r);return!i&&a&&Bt(r)&&(i=WM(e,r,n),i===void 0&&(i=WM(t,r,n))),i},oT=e=>e.replace(/\$/g,"$$$$");class dz{constructor(t={}){var r;this.logger=Yi.create("interpolator"),this.options=t,this.format=((r=t==null?void 0:t.interpolation)==null?void 0:r.format)||(n=>n),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:a,prefix:i,prefixEscaped:o,suffix:s,suffixEscaped:l,formatSeparator:u,unescapeSuffix:f,unescapePrefix:c,nestingPrefix:v,nestingPrefixEscaped:h,nestingSuffix:d,nestingSuffixEscaped:p,nestingOptionsSeparator:g,maxReplaces:y,alwaysFormat:m}=t.interpolation;this.escape=r!==void 0?r:Snt,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=i?bu(i):o||"{{",this.suffix=s?bu(s):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=f?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=v?bu(v):h||bu("$t("),this.nestingSuffix=d?bu(d):p||bu(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=y||1e3,this.alwaysFormat=m!==void 0?m:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>(r==null?void 0:r.source)===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,r,n,a){var h;let i,o,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=d=>{if(d.indexOf(this.formatSeparator)<0){const m=hz(r,l,d,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(m,void 0,n,{...a,...r,interpolationkey:d}):m}const p=d.split(this.formatSeparator),g=p.shift().trim(),y=p.join(this.formatSeparator).trim();return this.format(hz(r,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),y,n,{...a,...r,interpolationkey:g})};this.resetRegExp();const f=(a==null?void 0:a.missingInterpolationHandler)||this.options.missingInterpolationHandler,c=((h=a==null?void 0:a.interpolation)==null?void 0:h.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:d=>oT(d)},{regex:this.regexp,safeValue:d=>this.escapeValue?oT(this.escape(d)):oT(d)}].forEach(d=>{for(s=0;i=d.regex.exec(t);){const p=i[1].trim();if(o=u(p),o===void 0)if(typeof f=="function"){const y=f(t,i,a);o=Bt(y)?y:""}else if(a&&Object.prototype.hasOwnProperty.call(a,p))o="";else if(c){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${t}`),o="";else!Bt(o)&&!this.useRawValueToEscape&&(o=az(o));const g=d.safeValue(o);if(t=t.replace(i[0],g),c?(d.regex.lastIndex+=o.length,d.regex.lastIndex-=i[0].length):d.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,r,n={}){let a,i,o;const s=(l,u)=>{const f=this.nestingOptionsSeparator;if(l.indexOf(f)<0)return l;const c=l.split(new RegExp(`${bu(f)}[ ]*{`));let v=`{${c[1]}`;l=c[0],v=this.interpolate(v,o);const h=v.match(/'/g),d=v.match(/"/g);(((h==null?void 0:h.length)??0)%2===0&&!d||((d==null?void 0:d.length)??0)%2!==0)&&(v=v.replace(/'/g,'"'));try{o=JSON.parse(v),u&&(o={...u,...o})}catch(p){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,p),`${l}${f}${v}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;a=this.nestingRegexp.exec(t);){let l=[];o={...n},o=o.replace&&!Bt(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const u=/{.*}/.test(a[1])?a[1].lastIndexOf("}")+1:a[1].indexOf(this.formatSeparator);if(u!==-1&&(l=a[1].slice(u).split(this.formatSeparator).map(f=>f.trim()).filter(Boolean),a[1]=a[1].slice(0,u)),i=r(s.call(this,a[1].trim(),o),o),i&&a[0]===t&&!Bt(i))return i;Bt(i)||(i=az(i)),i||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),i=""),l.length&&(i=l.reduce((f,c)=>this.format(f,c,n.lng,{...n,interpolationkey:a[1].trim()}),i.trim())),t=t.replace(a[0],i),this.regexp.lastIndex=0}return t}}const Dnt=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const a=n[1].substring(0,n[1].length-1);t==="currency"&&a.indexOf(":")<0?r.currency||(r.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?r.range||(r.range=a.trim()):a.split(";").forEach(o=>{if(o){const[s,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),f=s.trim();r[f]||(r[f]=u),u==="false"&&(r[f]=!1),u==="true"&&(r[f]=!0),isNaN(u)||(r[f]=parseInt(u,10))}})}return{formatName:t,formatOptions:r}},pz=e=>{const t={};return(r,n,a)=>{let i=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(i={...i,[a.interpolationkey]:void 0});const o=n+JSON.stringify(i);let s=t[o];return s||(s=e(jg(n),a),t[o]=s),s(r)}},Ent=e=>(t,r,n)=>e(jg(r),n)(t);class Lnt{constructor(t={}){this.logger=Yi.create("formatter"),this.options=t,this.init(t)}init(t,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";const n=r.cacheInBuiltFormats?pz:Ent;this.formats={number:n((a,i)=>{const o=new Intl.NumberFormat(a,{...i});return s=>o.format(s)}),currency:n((a,i)=>{const o=new Intl.NumberFormat(a,{...i,style:"currency"});return s=>o.format(s)}),datetime:n((a,i)=>{const o=new Intl.DateTimeFormat(a,{...i});return s=>o.format(s)}),relativetime:n((a,i)=>{const o=new Intl.RelativeTimeFormat(a,{...i});return s=>o.format(s,i.range||"day")}),list:n((a,i)=>{const o=new Intl.ListFormat(a,{...i});return s=>o.format(s)})}}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=pz(r)}format(t,r,n,a={}){const i=r.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(s=>s.indexOf(")")>-1)){const s=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,s)].join(this.formatSeparator)}return i.reduce((s,l)=>{var c;const{formatName:u,formatOptions:f}=Dnt(l);if(this.formats[u]){let v=s;try{const h=((c=a==null?void 0:a.formatParams)==null?void 0:c[a.interpolationkey])||{},d=h.locale||h.lng||a.locale||a.lng||n;v=this.formats[u](s,d,{...f,...a,...h})}catch(h){this.logger.warn(h)}return v}else this.logger.warn(`there was no format function for ${u}`);return s},t)}}const Ont=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Rnt extends dx{constructor(t,r,n,a={}){var i,o;super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=a,this.logger=Yi.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],(o=(i=this.backend)==null?void 0:i.init)==null||o.call(i,n,a.backend,a)}queueLoad(t,r,n,a){const i={},o={},s={},l={};return t.forEach(u=>{let f=!0;r.forEach(c=>{const v=`${u}|${c}`;!n.reload&&this.store.hasResourceBundle(u,c)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?o[v]===void 0&&(o[v]=!0):(this.state[v]=1,f=!1,o[v]===void 0&&(o[v]=!0),i[v]===void 0&&(i[v]=!0),l[c]===void 0&&(l[c]=!0)))}),f||(s[u]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,r,n){const a=t.split("|"),i=a[0],o=a[1];r&&this.emit("failedLoading",i,o,r),!r&&n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&n&&(this.state[t]=0);const s={};this.queue.forEach(l=>{ynt(l.loaded,[i],o),Ont(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{s[u]||(s[u]={});const f=l.loaded[u];f.length&&f.forEach(c=>{s[u][c]===void 0&&(s[u][c]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,r,n,a=0,i=this.retryTimeout,o){if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:a,wait:i,callback:o});return}this.readingCalls++;const s=(u,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const c=this.waitingReads.shift();this.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}if(u&&f&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,a+1,i*2,o)},i);return}o(u,f)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const u=l(t,r);u&&typeof u.then=="function"?u.then(f=>s(null,f)).catch(s):s(null,u)}catch(u){s(u)}return}return l(t,r,s)}prepareLoading(t,r,n={},a){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();Bt(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Bt(r)&&(r=[r]);const i=this.queueLoad(t,r,n,a);if(!i.toLoad.length)return i.pending.length||a(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t,r=""){const n=t.split("|"),a=n[0],i=n[1];this.read(a,i,"read",void 0,void 0,(o,s)=>{o&&this.logger.warn(`${r}loading namespace ${i} for language ${a} failed`,o),!o&&s&&this.logger.log(`${r}loaded namespace ${i} for language ${a}`,s),this.loaded(t,o,s)})}saveMissing(t,r,n,a,i,o={},s=()=>{}){var l,u,f,c,v;if((u=(l=this.services)==null?void 0:l.utils)!=null&&u.hasLoadedNamespace&&!((c=(f=this.services)==null?void 0:f.utils)!=null&&c.hasLoadedNamespace(r))){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if((v=this.backend)!=null&&v.create){const h={...o,isUpdate:i},d=this.backend.create.bind(this.backend);if(d.length<6)try{let p;d.length===5?p=d(t,r,n,a,h):p=d(t,r,n,a),p&&typeof p.then=="function"?p.then(g=>s(null,g)).catch(s):s(null,p)}catch(p){s(p)}else d(t,r,n,a,s,h)}!t||!t[0]||this.store.addResource(t[0],r,n,a)}}}const sT=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Bt(e[1])&&(t.defaultValue=e[1]),Bt(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),gz=e=>{var t,r;return Bt(e.ns)&&(e.ns=[e.ns]),Bt(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Bt(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((r=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:r.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},Km=()=>{},Int=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})},R8="__i18next_supportNoticeShown",Pnt=()=>!!(typeof globalThis<"u"&&globalThis[R8]||typeof process<"u"&&aT&&aT.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&aT),Nnt=()=>{typeof globalThis<"u"&&(globalThis[R8]=!0)},knt=e=>{var t,r,n,a,i,o,s,l,u,f,c,v,h;return!!(((n=(r=(t=e==null?void 0:e.modules)==null?void 0:t.backend)==null?void 0:r.name)==null?void 0:n.indexOf("Locize"))>0||((s=(o=(i=(a=e==null?void 0:e.modules)==null?void 0:a.backend)==null?void 0:i.constructor)==null?void 0:o.name)==null?void 0:s.indexOf("Locize"))>0||(u=(l=e==null?void 0:e.options)==null?void 0:l.backend)!=null&&u.backends&&e.options.backend.backends.some(d=>{var p,g,y;return((p=d==null?void 0:d.name)==null?void 0:p.indexOf("Locize"))>0||((y=(g=d==null?void 0:d.constructor)==null?void 0:g.name)==null?void 0:y.indexOf("Locize"))>0})||(c=(f=e==null?void 0:e.options)==null?void 0:f.backend)!=null&&c.projectId||(h=(v=e==null?void 0:e.options)==null?void 0:v.backend)!=null&&h.backendOptions&&e.options.backend.backendOptions.some(d=>d==null?void 0:d.projectId))};class cg extends dx{constructor(t={},r){if(super(),this.options=gz(t),this.services={},this.logger=Yi,this.modules={external:[]},Int(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(t={},r){this.isInitializing=!0,typeof t=="function"&&(r=t,t={}),t.defaultNS==null&&t.ns&&(Bt(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const n=sT();this.options={...n,...this.options,...gz(t)},this.options.interpolation={...n.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!knt(this)&&!Pnt()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),Nnt());const a=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Yi.init(a(this.modules.logger),this.options):Yi.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=Lnt;const f=new fz(this.options);this.store=new lz(this.options.resources,this.options);const c=this.services;c.logger=Yi,c.resourceStore=this.store,c.languageUtils=f,c.pluralResolver=new Mnt(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),u&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(c.formatter=a(u),c.formatter.init&&c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new dz(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new Rnt(a(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",(h,...d)=>{this.emit(h,...d)}),this.modules.languageDetector&&(c.languageDetector=a(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=a(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new t1(this.services,this.options),this.translator.on("*",(h,...d)=>{this.emit(h,...d)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Km),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...f)=>this.store[u](...f)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...f)=>(this.store[u](...f),this)});const s=ep(),l=()=>{const u=(f,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(c),r(f,c)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),s}loadResources(t,r=Km){var i,o;let n=r;const a=Bt(t)?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if((a==null?void 0:a.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const s=[],l=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(c=>{c!=="cimode"&&s.indexOf(c)<0&&s.push(c)})};a?l(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>l(f)),(o=(i=this.options.preload)==null?void 0:i.forEach)==null||o.call(i,u=>l(u)),this.services.backendConnector.load(s,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(u)})}else n(null)}reloadResources(t,r,n){const a=ep();return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),n||(n=Km),this.services.backendConnector.reload(t,r,i=>{a.resolve(),n(i)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&L8.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,r){this.isLanguageChangingTo=t;const n=ep();this.emit("languageChanging",t);const a=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},i=(s,l)=>{l?this.isLanguageChangingTo===t&&(a(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,n.resolve((...u)=>this.t(...u)),r&&r(s,(...u)=>this.t(...u))},o=s=>{var f,c;!t&&!s&&this.services.languageDetector&&(s=[]);const l=Bt(s)?s:s&&s[0],u=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(Bt(s)?[s]:s);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),(c=(f=this.services.languageDetector)==null?void 0:f.cacheUserLanguage)==null||c.call(f,u)),this.loadResources(u,v=>{i(v,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t),n}getFixedT(t,r,n){const a=(i,o,...s)=>{let l;typeof o!="object"?l=this.options.overloadTranslationOptionHandler([i,o].concat(s)):l={...o},l.lng=l.lng||a.lng,l.lngs=l.lngs||a.lngs,l.ns=l.ns||a.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||n||a.keyPrefix);const u={...this.options,...l};typeof l.keyPrefix=="function"&&(l.keyPrefix=uh(l.keyPrefix,u));const f=this.options.keySeparator||".";let c;return l.keyPrefix&&Array.isArray(i)?c=i.map(v=>(typeof v=="function"&&(v=uh(v,u)),`${l.keyPrefix}${f}${v}`)):(typeof i=="function"&&(i=uh(i,u)),c=l.keyPrefix?`${l.keyPrefix}${f}${i}`:i),this.t(c,l)};return Bt(t)?a.lng=t:a.lngs=t,a.ns=r,a.keyPrefix=n,a}t(...t){var r;return(r=this.translator)==null?void 0:r.translate(...t)}exists(...t){var r;return(r=this.translator)==null?void 0:r.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,r={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const o=(s,l)=>{const u=this.services.backendConnector.state[`${s}|${l}`];return u===-1||u===0||u===2};if(r.precheck){const s=r.precheck(this,o);if(s!==void 0)return s}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(n,t)&&(!a||o(i,t)))}loadNamespaces(t,r){const n=ep();return this.options.ns?(Bt(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{n.resolve(),r&&r(a)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=ep();Bt(t)&&(t=[t]);const a=this.options.preload||[],i=t.filter(o=>a.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return i.length?(this.options.preload=a.concat(i),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}dir(t){var a,i;if(t||(t=this.resolvedLanguage||(((a=this.languages)==null?void 0:a.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const o=new Intl.Locale(t);if(o&&o.getTextInfo){const s=o.getTextInfo();if(s&&s.direction)return s.direction}}catch{}const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=((i=this.services)==null?void 0:i.languageUtils)||new fz(sT());return t.toLowerCase().indexOf("-latn")>1?"ltr":r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},r){const n=new cg(t,r);return n.createInstance=cg.createInstance,n}cloneInstance(t={},r=Km){const n=t.forkResourceStore;n&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},i=new cg(a);if((t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(s=>{i[s]=this[s]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n){const s=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},l[u]=Object.keys(l[u]).reduce((f,c)=>(f[c]={...l[u][c]},f),l[u]),l),{});i.store=new lz(s,a),i.services.resourceStore=i.store}if(t.interpolation){const l={...sT().interpolation,...this.options.interpolation,...t.interpolation},u={...a,interpolation:l};i.services.interpolator=new dz(u)}return i.translator=new t1(i.services,a),i.translator.on("*",(s,...l)=>{i.emit(s,...l)}),i.init(a,r),i.translator.options=a,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Gr=cg.createInstance();Gr.createInstance;Gr.dir;Gr.init;Gr.loadResources;Gr.reloadResources;Gr.use;Gr.changeLanguage;Gr.getFixedT;Gr.t;Gr.exists;Gr.setDefaultNamespace;Gr.hasLoadedNamespace;Gr.loadNamespaces;Gr.loadLanguages;const znt=(e,t,r,n)=>{var i,o,s,l;const a=[r,{code:t,...n||{}}];if((o=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&o.forward)return e.services.logger.forward(a,"warn","react-i18next::",!0);Ff(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),(l=(s=e==null?void 0:e.services)==null?void 0:s.logger)!=null&&l.warn?e.services.logger.warn(...a):console!=null&&console.warn&&console.warn(...a)},yz={},ZM=(e,t,r,n)=>{Ff(r)&&yz[r]||(Ff(r)&&(yz[r]=new Date),znt(e,t,r,n))},I8=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},qM=(e,t,r)=>{e.loadNamespaces(t,I8(e,r))},mz=(e,t,r,n)=>{if(Ff(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return qM(e,r,n);r.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,I8(e,n))},Bnt=(e,t,r={})=>!t.languages||!t.languages.length?(ZM(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:r.lng,precheck:(n,a)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!a(n.isLanguageChangingTo,e))return!1}}),Ff=e=>typeof e=="string",Vnt=e=>typeof e=="object"&&e!==null,Gnt=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Hnt={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Unt=e=>Hnt[e],Fnt=e=>e.replace(Gnt,Unt);let KM={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Fnt,transDefaultProps:void 0};const Ynt=(e={})=>{KM={...KM,...e}},jnt=()=>KM;let P8;const Xnt=e=>{P8=e},$nt=()=>P8,Wnt={type:"3rdParty",init(e){Ynt(e.options.react),Xnt(e)}},Znt=k.createContext();class qnt{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Knt=(e,t)=>{if(Ff(t))return t;if(Vnt(t)&&Ff(t.defaultValue))return t.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){const r=e[e.length-1];return typeof r=="function"?"":r}return e},Qnt={t:Knt,ready:!1},Jnt=()=>()=>{},px=(e,t={})=>{var C,A,M;const{i18n:r}=t,{i18n:n,defaultNS:a}=k.useContext(Znt)||{},i=r||n||$nt();i&&!i.reportNamespaces&&(i.reportNamespaces=new qnt),i||ZM(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const o=k.useMemo(()=>{var L;return{...jnt(),...(L=i==null?void 0:i.options)==null?void 0:L.react,...t}},[i,t]),{useSuspense:s,keyPrefix:l}=o,u=a||((C=i==null?void 0:i.options)==null?void 0:C.defaultNS),f=Ff(u)?[u]:u||["translation"],c=k.useMemo(()=>f,f);(M=(A=i==null?void 0:i.reportNamespaces)==null?void 0:A.addUsedNamespaces)==null||M.call(A,c);const v=k.useRef(0),h=k.useCallback(L=>{if(!i)return Jnt;const{bindI18n:E,bindI18nStore:R}=o,I=()=>{v.current+=1,L()};return E&&i.on(E,I),R&&i.store.on(R,I),()=>{E&&E.split(" ").forEach(O=>i.off(O,I)),R&&R.split(" ").forEach(O=>i.store.off(O,I))}},[i,o]),d=k.useRef(),p=k.useCallback(()=>{if(!i)return Qnt;const L=!!(i.isInitialized||i.initializedStoreOnce)&&c.every(P=>Bnt(P,i,o)),E=t.lng||i.language,R=v.current,I=d.current;if(I&&I.ready===L&&I.lng===E&&I.keyPrefix===l&&I.revision===R)return I;const N={t:i.getFixedT(E,o.nsMode==="fallback"?c:c[0],l),ready:L,lng:E,keyPrefix:l,revision:R};return d.current=N,N},[i,c,l,o,t.lng]),[g,y]=k.useState(0),{t:m,ready:_}=M8.useSyncExternalStore(h,p,p);k.useEffect(()=>{if(i&&!_&&!s){const L=()=>y(E=>E+1);t.lng?mz(i,t.lng,c,L):qM(i,c,L)}},[i,t.lng,c,_,s,g]);const S=i||{},b=k.useRef(null),x=k.useRef(),w=L=>{const E=Object.getOwnPropertyDescriptors(L);E.__original&&delete E.__original;const R=Object.create(Object.getPrototypeOf(L),E);if(!Object.prototype.hasOwnProperty.call(R,"__original"))try{Object.defineProperty(R,"__original",{value:L,writable:!1,enumerable:!1,configurable:!1})}catch{}return R},T=k.useMemo(()=>{const L=S,E=L==null?void 0:L.language;let R=L;L&&(b.current&&b.current.__original===L?x.current!==E?(R=w(L),b.current=R,x.current=E):R=b.current:(R=w(L),b.current=R,x.current=E));const I=!_&&!s?(...N)=>(ZM(i,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),m(...N)):m,O=[I,R,_];return O.t=I,O.i18n=R,O.ready=_,O},[m,S,_,S.resolvedLanguage,S.language,S.languages]);if(i&&s&&!_)throw new Promise(L=>{const E=()=>L();t.lng?mz(i,t.lng,c,E):qM(i,c,E)});return T};var QM={exports:{}},JM={exports:{}},tD={exports:{}},eD={exports:{}},rD={exports:{}};(function(e,t){var r=Object.prototype.toString;t=function(n){return r.call(n)},e.exports=t})(rD,rD.exports);var vu=rD.exports;(function(e,t){var r=vu;t=function(n){return r(n)==="[object Number]"},e.exports=t})(eD,eD.exports);var oR=eD.exports,nD={exports:{}};(function(e,t){var r=vu;t=function(n){var a=r(n);return a==="[object Function]"||a==="[object GeneratorFunction]"||a==="[object AsyncFunction]"},e.exports=t})(nD,nD.exports);var Sd=nD.exports;(function(e,t){var r=oR,n=Sd,a=Math.pow(2,53)-1;t=function(i){if(!i)return!1;var o=i.length;return r(o)&&o>=0&&o<=a&&!n(i)},e.exports=t})(tD,tD.exports);var gx=tD.exports,aD={exports:{}},iD={exports:{}};(function(e,t){var r=Object.prototype.hasOwnProperty;t=function(n,a){return r.call(n,a)},e.exports=t})(iD,iD.exports);var sR=iD.exports;(function(e,t){var r=sR;Object.keys?t=Object.keys:t=function(n){var a=[];for(var i in n)r(n,i)&&a.push(i);return a},e.exports=t})(aD,aD.exports);var Rc=aD.exports,oD={exports:{}},sD={exports:{}};(function(e,t){t=function(r){return r===void 0},e.exports=t})(sD,sD.exports);var yx=sD.exports;(function(e,t){var r=yx;t=function(n,a,i){if(r(a))return n;switch(i??3){case 1:return function(o){return n.call(a,o)};case 3:return function(o,s,l){return n.call(a,o,s,l)};case 4:return function(o,s,l,u){return n.call(a,o,s,l,u)}}return function(){return n.apply(a,arguments)}},e.exports=t})(oD,oD.exports);var N8=oD.exports;(function(e,t){var r=gx,n=Rc,a=N8;t=function(i,o,s){o=a(o,s);var l,u;if(r(i))for(l=0,u=i.length;l<u;l++)o(i[l],l,i);else{var f=n(i);for(l=0,u=f.length;l<u;l++)o(i[f[l]],f[l],i)}return i},e.exports=t})(JM,JM.exports);var sm=JM.exports,lD={exports:{}};(function(e,t){var r=vu;t=function(n){return r(n)==="[object String]"},e.exports=t})(lD,lD.exports);var lm=lD.exports;const tat=uu(lm);var uD={exports:{}};(function(e,t){var r=vu;Array.isArray?t=Array.isArray:t=function(n){return r(n)==="[object Array]"},e.exports=t})(uD,uD.exports);var Ic=uD.exports,fD={exports:{}};(function(e,t){t=function(r){var n=typeof r;return!!r&&(n==="function"||n==="object")},e.exports=t})(fD,fD.exports);var Pc=fD.exports;(function(e,t){var r=sm,n=lm,a=oR,i=Ic,o=Pc;t=function(){var s=[];return r(arguments,function(l){if(l){if(n(l)||a(l))return s.push(l);if(i(l))return s.push(t.apply(null,l));o(l)&&r(l,function(u,f){u&&s.push(f)})}}),s.join(" ")},e.exports=t})(QM,QM.exports);var eat=QM.exports;const yn=uu(eat);var cD={exports:{}},vD={exports:{}};(function(e,t){Date.now?t=Date.now:t=function(){return new Date().getTime()},e.exports=t})(vD,vD.exports);var rat=vD.exports;(function(e,t){var r=rat;t=function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:250;function o(){return new Promise(function(s,l){try{s(n())}catch(u){l(u)}})}return new Promise(function(s,l){var u=r(),f=function(){o().then(function(c){var v=r()-u;c?s(c):a&&v>=a?l(Error("Wait timed out after ".concat(a," ms"))):setTimeout(f,i)},l)};f()})},e.exports=t})(cD,cD.exports);var nat=cD.exports;const aat=uu(nat);var k8={exports:{}},mx={},z8={exports:{}},B8={};/**
36
+ * @license React
37
+ * scheduler.production.js
38
+ *
39
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
40
+ *
41
+ * This source code is licensed under the MIT license found in the
42
+ * LICENSE file in the root directory of this source tree.
43
+ */(function(e){function t(O,N){var P=O.length;O.push(N);t:for(;0<P;){var z=P-1>>>1,B=O[z];if(0<a(B,N))O[z]=N,O[P]=B,P=z;else break t}}function r(O){return O.length===0?null:O[0]}function n(O){if(O.length===0)return null;var N=O[0],P=O.pop();if(P!==N){O[0]=P;t:for(var z=0,B=O.length,H=B>>>1;z<H;){var F=2*(z+1)-1,$=O[F],j=F+1,tt=O[j];if(0>a($,P))j<B&&0>a(tt,$)?(O[z]=tt,O[j]=P,z=j):(O[z]=$,O[F]=P,z=F);else if(j<B&&0>a(tt,P))O[z]=tt,O[j]=P,z=j;else break t}}return N}function a(O,N){var P=O.sortIndex-N.sortIndex;return P!==0?P:O.id-N.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],f=1,c=null,v=3,h=!1,d=!1,p=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function S(O){for(var N=r(u);N!==null;){if(N.callback===null)n(u);else if(N.startTime<=O)n(u),N.sortIndex=N.expirationTime,t(l,N);else break;N=r(u)}}function b(O){if(p=!1,S(O),!d)if(r(l)!==null)d=!0,x||(x=!0,L());else{var N=r(u);N!==null&&I(b,N.startTime-O)}}var x=!1,w=-1,T=5,C=-1;function A(){return g?!0:!(e.unstable_now()-C<T)}function M(){if(g=!1,x){var O=e.unstable_now();C=O;var N=!0;try{t:{d=!1,p&&(p=!1,m(w),w=-1),h=!0;var P=v;try{e:{for(S(O),c=r(l);c!==null&&!(c.expirationTime>O&&A());){var z=c.callback;if(typeof z=="function"){c.callback=null,v=c.priorityLevel;var B=z(c.expirationTime<=O);if(O=e.unstable_now(),typeof B=="function"){c.callback=B,S(O),N=!0;break e}c===r(l)&&n(l),S(O)}else n(l);c=r(l)}if(c!==null)N=!0;else{var H=r(u);H!==null&&I(b,H.startTime-O),N=!1}}break t}finally{c=null,v=P,h=!1}N=void 0}}finally{N?L():x=!1}}}var L;if(typeof _=="function")L=function(){_(M)};else if(typeof MessageChannel<"u"){var E=new MessageChannel,R=E.port2;E.port1.onmessage=M,L=function(){R.postMessage(null)}}else L=function(){y(M,0)};function I(O,N){w=y(function(){O(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(O){O.callback=null},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(O){switch(v){case 1:case 2:case 3:var N=3;break;default:N=v}var P=v;v=N;try{return O()}finally{v=P}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(O,N){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var P=v;v=O;try{return N()}finally{v=P}},e.unstable_scheduleCallback=function(O,N,P){var z=e.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?z+P:z):P=z,O){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=P+B,O={id:f++,callback:N,priorityLevel:O,startTime:P,expirationTime:B,sortIndex:-1},P>z?(O.sortIndex=P,t(u,O),r(l)===null&&O===r(u)&&(p?(m(w),w=-1):p=!0,I(b,P-z))):(O.sortIndex=B,t(l,O),d||h||(d=!0,x||(x=!0,L()))),O},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(O){var N=v;return function(){var P=v;v=N;try{return O.apply(this,arguments)}finally{v=P}}}})(B8);z8.exports=B8;var iat=z8.exports;/**
44
+ * @license React
45
+ * react-dom-client.production.js
46
+ *
47
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
48
+ *
49
+ * This source code is licensed under the MIT license found in the
50
+ * LICENSE file in the root directory of this source tree.
51
+ */var gr=iat,V8=k,oat=Oc;function W(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}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."}function G8(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function um(e){for(var t=e,r=t;r&&!r.alternate;)t=r,t.flags&4098&&(e=t.return),r=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function H8(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function U8(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function _z(e){if(um(e)!==e)throw Error(W(188))}function sat(e){var t=e.alternate;if(!t){if(t=um(e),t===null)throw Error(W(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){r=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return _z(a),e;if(i===n)return _z(a),t;i=i.sibling}throw Error(W(188))}if(r.return!==n.return)r=a,n=i;else{for(var o=!1,s=a.child;s;){if(s===r){o=!0,r=a,n=i;break}if(s===n){o=!0,n=a,r=i;break}s=s.sibling}if(!o){for(s=i.child;s;){if(s===r){o=!0,r=i,n=a;break}if(s===n){o=!0,n=i,r=a;break}s=s.sibling}if(!o)throw Error(W(189))}}if(r.alternate!==n)throw Error(W(190))}if(r.tag!==3)throw Error(W(188));return r.stateNode.current===r?e:t}function F8(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=F8(e),t!==null)return t;e=e.sibling}return null}function Vn(e,t,r,n,a,i){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&r(e,n,a,i)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&Vn(e.child,t,r,n,a,i))return!0;e=e.sibling}return!1}function Nc(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function Sz(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function Y8(e){var t=[null,null],r=Nc(e);return r===null||j8(t,e,r.child,{foundSelf:!1}),t}function j8(e,t,r,n){for(;r!==null;){if(r===t)n.foundSelf=!0;else if(r.tag===5||r.tag===27||r.tag===6){if(n.foundSelf)return e[1]=r,!0;e[0]=r}else if((r.tag!==22||r.memoizedState===null)&&j8(e,t,r.child,n))return!0;r=r.sibling}return!1}function cr(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(W(559))}}var Yv=null,hD=null;function lat(e,t,r){return e===r?!0:e===t?(Yv=e,!0):!1}function uat(e,t,r){return e===r?(hD=e,!1):e===t?(hD!==null&&(Yv=e),!0):!1}function bz(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function dD(e,t,r){for(var n=0,a=e;a;a=r(a))n++;a=0;for(var i=t;i;i=r(i))a++;for(;0<n-a;)e=r(e),n--;for(;0<a-n;)t=r(t),a--;for(;n--;){if(e===t||t!==null&&e===t.alternate)return e;e=r(e),t=r(t)}return null}var Ce=Object.assign,fat=Symbol.for("react.element"),Qm=Symbol.for("react.transitional.element"),Fp=Symbol.for("react.portal"),jv=Symbol.for("react.fragment"),X8=Symbol.for("react.strict_mode"),pD=Symbol.for("react.profiler"),$8=Symbol.for("react.consumer"),ji=Symbol.for("react.context"),lR=Symbol.for("react.forward_ref"),gD=Symbol.for("react.suspense"),yD=Symbol.for("react.suspense_list"),uR=Symbol.for("react.memo"),sl=Symbol.for("react.lazy"),mD=Symbol.for("react.activity"),cat=Symbol.for("react.legacy_hidden"),vat=Symbol.for("react.memo_cache_sentinel"),_D=Symbol.for("react.view_transition"),hat=Symbol.for("react.recoverable"),xz=Symbol.iterator;function rp(e){return e===null||typeof e!="object"?null:(e=xz&&e[xz]||e["@@iterator"],typeof e=="function"?e:null)}var dat=Symbol.for("react.client.reference");function SD(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===dat?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case jv:return"Fragment";case pD:return"Profiler";case X8:return"StrictMode";case gD:return"Suspense";case yD:return"SuspenseList";case mD:return"Activity";case _D:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case Fp:return"Portal";case ji:return e.displayName||"Context";case $8:return(e._context.displayName||"Context")+".Consumer";case lR:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case uR:return t=e.displayName||null,t!==null?t:SD(e.type)||"Memo";case sl:t=e._payload,e=e._init;try{return SD(e(t))}catch{}}return null}var Yp=Array.isArray,Pt=V8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=oat.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Cf={pending:!1,data:null,method:null,action:null},bD=[],Xv=-1;function Lo(e){return{current:e}}function Hr(e){0>Xv||(e.current=bD[Xv],bD[Xv]=null,Xv--)}function Oe(e,t){Xv++,bD[Xv]=e.current,e.current=t}var ao=Lo(null),Xg=Lo(null),Al=Lo(null),e1=Lo(null);function r1(e,t){switch(Oe(Al,t),Oe(Xg,e),Oe(ao,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?NB(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=NB(t),e=p9(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Hr(ao),Oe(ao,e)}function zh(){Hr(ao),Hr(Xg),Hr(Al)}function xD(e){var t=e.memoizedState;t!==null&&($h._currentValue=t.memoizedState,Oe(e1,e)),t=ao.current;var r=p9(t,e.type);t!==r&&(Oe(Xg,e),Oe(ao,r))}function n1(e){Xg.current===e&&(Hr(ao),Hr(Xg)),e1.current===e&&(Hr(e1),$h._currentValue=Cf)}var lT,wz;function nl(e){if(lT===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);lT=t&&t[1]||"",wz=-1<r.stack.indexOf(`
52
+ at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
53
+ `+lT+e+wz}var uT=!1;function fT(e,t){if(!e||uT)return"";uT=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(d){var v=d}Reflect.construct(e,[],c)}else{try{c.call()}catch(d){v=d}c=!1;try{var h=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),c=!0,new e}finally{c&&(h!==void 0?Object.defineProperty(e.prototype,"props",h):delete e.prototype.props)}}}else{try{throw Error()}catch(d){v=d}(c=e())&&typeof c.catch=="function"&&c.catch(function(){})}}catch(d){if(d&&v&&typeof d.stack=="string")return[d.stack,v.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=n.DetermineComponentFrameRoot(),o=i[0],s=i[1];if(o&&s){var l=o.split(`
54
+ `),u=s.split(`
55
+ `);for(a=n=0;n<l.length&&!l[n].includes("DetermineComponentFrameRoot");)n++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(n===l.length||a===u.length)for(n=l.length-1,a=u.length-1;1<=n&&0<=a&&l[n]!==u[a];)a--;for(;1<=n&&0<=a;n--,a--)if(l[n]!==u[a]){if(n!==1||a!==1)do if(n--,a--,0>a||l[n]!==u[a]){var f=`
56
+ `+l[n].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=n&&0<=a);break}}}finally{uT=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?nl(r):""}function pat(e,t){switch(e.tag){case 26:case 27:case 5:return nl(e.type);case 16:return nl("Lazy");case 13:return e.child!==t&&t!==null?nl("Suspense Fallback"):nl("Suspense");case 19:return nl("SuspenseList");case 0:case 15:return fT(e.type,!1);case 11:return fT(e.type.render,!1);case 1:return fT(e.type,!0);case 31:return nl("Activity");case 30:return nl("ViewTransition");default:return""}}function Tz(e){try{var t="",r=null;do t+=pat(e,r),r=e,e=e.return;while(e);return t}catch(n){return`
57
+ Error generating stack: `+n.message+`
58
+ `+n.stack}}var wD=Object.prototype.hasOwnProperty,fR=gr.unstable_scheduleCallback,cT=gr.unstable_cancelCallback,gat=gr.unstable_shouldYield,yat=gr.unstable_requestPaint,ia=gr.unstable_now,mat=gr.unstable_getCurrentPriorityLevel,W8=gr.unstable_ImmediatePriority,Z8=gr.unstable_UserBlockingPriority,a1=gr.unstable_NormalPriority,_at=gr.unstable_LowPriority,q8=gr.unstable_IdlePriority,Sat=gr.log,bat=gr.unstable_setDisableYieldValue,fm=null,oa=null;function hl(e){if(typeof Sat=="function"&&bat(e),oa&&typeof oa.setStrictMode=="function")try{oa.setStrictMode(fm,e)}catch{}}var sa=Math.clz32?Math.clz32:Tat,xat=Math.log,wat=Math.LN2;function Tat(e){return e>>>=0,e===0?32:31-(xat(e)/wat|0)|0}var Jm=256,t0=262144,e0=4194304;function Ju(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function _x(e,t,r){var n=e.pendingLanes;if(n===0)return 0;var a=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=n&134217727;return s!==0?(n=s&~i,n!==0?a=Ju(n):(o&=s,o!==0?a=Ju(o):r||(r=s&~e,r!==0&&(a=Ju(r))))):(s=n&~i,s!==0?a=Ju(s):o!==0?a=Ju(o):r||(r=n&~e,r!==0&&(a=Ju(r)))),a===0?0:t!==0&&t!==a&&!(t&i)&&(i=a&-a,r=t&-t,i>=r||i===32&&(r&4194048)!==0)?t:a}function cm(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function K8(e,t){t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var n=31-sa(r),a=1<<n;t|=e[n],r&=~a}return t}function Cat(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Q8(){var e=e0;return e0<<=1,!(e0&62914560)&&(e0=4194304),e}function vT(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function vm(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Aat(e,t,r,n,a,i){var o=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(r=o&~r;0<r;){var f=31-sa(r),c=1<<f;s[f]=0,l[f]=-1;var v=u[f];if(v!==null)for(u[f]=null,f=0;f<v.length;f++){var h=v[f];h!==null&&(h.lane&=-536870913)}r&=~c}n!==0&&J8(e,n,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function J8(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-sa(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|r&261930}function t7(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-sa(r),a=1<<n;a&t|e[n]&t&&(e[n]|=t),r&=~a}}function e7(e,t){var r=t&-t;return r=r&42?1:cR(r),r&(e.suspendedLanes|t)?0:r}function cR(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function vR(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function r7(){var e=le.p;return e!==0?e:(e=window.event,e===void 0?32:k9(e.type))}function Cz(e,t){var r=le.p;try{return le.p=e,t()}finally{le.p=r}}var ks=Math.random().toString(36).slice(2),Br="__reactFiber$"+ks,Gn="__reactProps$"+ks,bd="__reactContainer$"+ks,Az="__reactEvents$"+ks,Mat="__reactListeners$"+ks,Dat="__reactHandles$"+ks,Mz="__reactResources$"+ks,hm="__reactMarker$"+ks,i1="__reactLoad$"+ks;function Sx(e){delete e[Br],delete e[Gn],delete e[Mat],delete e[Dat]}function df(e){var t;if(t=e[Br])return t;for(var r=e.parentNode;r;){if(t=r[bd]||r[Br]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=FB(e);e!==null;){if(r=e[Br])return r;e=FB(e)}return t}e=r,r=e.parentNode}return null}function xd(e){if(e=e[Br]||e[bd]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function jp(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(W(33))}function fh(e){var t=e[Mz];return t||(t=e[Mz]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ar(e){e[hm]=!0}function n7(e){e[i1]=void 0}var a7=new Set,i7={};function kc(e,t){Bh(e,t),Bh(e+"Capture",t)}function Bh(e,t){for(i7[e]=t,e=0;e<t.length;e++)a7.add(t[e])}var Eat=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Dz={},Ez={};function Lat(e){return wD.call(Ez,e)?!0:wD.call(Dz,e)?!1:Eat.test(e)?Ez[e]=!0:(Dz[e]=!0,!1)}var ae=!1;function Lz(){var e=ae;return ae=!1,e}function $_(e,t,r){if(Lat(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,r)}}function r0(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,r)}}function zo(e,t,r,n){if(n===null)e.removeAttribute(r);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,n)}}function Xn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function o7(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Oat(e,t,r){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function TD(e){if(!e._valueTracker){var t=o7(e)?"checked":"value";e._valueTracker=Oat(e,t,""+e[t])}}function s7(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=o7(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}var Rat=/[\n"\\]/g;function Ra(e){return e.replace(Rat,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function CD(e,t,r,n,a,i,o,s){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Xn(t)):e.value!==""+Xn(t)&&(e.value=""+Xn(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?o==="number"&&e.value==t?hT(e,Xn(e.value)):hT(e,Xn(t)):r!=null?hT(e,Xn(r)):n!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+Xn(s):e.removeAttribute("name")}function l7(e,t,r,n,a,i,o,s){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||r!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){TD(e);return}r=r!=null?""+Xn(r):"",t=t!=null?""+Xn(t):r,s||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=s?e.checked:!!n,e.defaultChecked=!!n,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),TD(e)}function hT(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function ch(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Xn(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function u7(e,t,r){if(t!=null&&(t=""+Xn(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+Xn(r):""}function f7(e,t,r,n){if(t==null){if(n!=null){if(r!=null)throw Error(W(92));if(Yp(n)){if(1<n.length)throw Error(W(93));n=n[0]}r=n}r==null&&(r=""),t=r}r=Xn(t),e.defaultValue=r,n=e.textContent,n===r&&n!==""&&n!==null&&(e.value=n),TD(e)}function Vh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Iat=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Oz(e,t,r){var n=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,r):typeof r!="number"||r===0||Iat.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function c7(e,t,r){if(t!=null&&typeof t!="object")throw Error(W(62));if(e=e.style,r!=null){for(var n in r)!r.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="",ae=!0);for(var a in t)n=t[a],t.hasOwnProperty(a)&&r[a]!==n&&(Oz(e,a,n),ae=!0)}else for(var i in t)t.hasOwnProperty(i)&&Oz(e,i,t[i])}function hR(e){if(e.indexOf("-")===-1)return!1;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 Pat=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Nat=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function W_(e){return Nat.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Xi(){}var AD=null;function dR(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $v=null,vh=null;function Rz(e){var t=xd(e);if(t&&(e=t.stateNode)){var r=e[Gn]||null;t:switch(e=t.stateNode,t.type){case"input":if(CD(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+Ra(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=n[Gn]||null;if(!a)throw Error(W(90));CD(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<r.length;t++)n=r[t],n.form===e.form&&s7(n)}break t;case"textarea":u7(e,r.value,r.defaultValue);break t;case"select":t=r.value,t!=null&&ch(e,!!r.multiple,t,!1)}}}var dT=!1;function v7(e,t,r){if(dT)return e(t,r);dT=!0;try{var n=e(t);return n}finally{if(dT=!1,($v!==null||vh!==null)&&(Nx(),$v&&(t=$v,e=vh,vh=$v=null,Rz(t),e)))for(t=0;t<e.length;t++)Rz(e[t])}}function $g(e,t){var r=e.stateNode;if(r===null)return null;var n=r[Gn]||null;if(n===null)return null;r=n[t];t:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break t;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(W(231,t,typeof r));return r}var ms=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),MD=!1;if(ms)try{var np={};Object.defineProperty(np,"passive",{get:function(){MD=!0}}),window.addEventListener("test",np,np),window.removeEventListener("test",np,np)}catch{MD=!1}var dl=null,pR=null,Z_=null;function h7(){if(Z_)return Z_;var e,t=pR,r=t.length,n,a="value"in dl?dl.value:dl.textContent,i=a.length;for(e=0;e<r&&t[e]===a[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===a[i-n];n++);return Z_=a.slice(e,1<n?1-n:void 0)}function q_(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function n0(){return!0}function Iz(){return!1}function An(e){function t(r,n,a,i,o){this._reactName=r,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?n0:Iz,this.isPropagationStopped=Iz,this}return Ce(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=n0)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=n0)},persist:function(){},isPersistent:n0}),t}var hu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bx=An(hu),dm=Ce({},hu,{view:0,detail:0}),kat=An(dm),pT,gT,ap,xx=Ce({},dm,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gR,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ap&&(ap&&e.type==="mousemove"?(pT=e.screenX-ap.screenX,gT=e.screenY-ap.screenY):gT=pT=0,ap=e),pT)},movementY:function(e){return"movementY"in e?e.movementY:gT}}),Pz=An(xx),zat=Ce({},xx,{dataTransfer:0}),Bat=An(zat),Vat=Ce({},dm,{relatedTarget:0}),yT=An(Vat),Gat=Ce({},hu,{animationName:0,elapsedTime:0,pseudoElement:0}),Hat=An(Gat),Uat=Ce({},hu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Fat=An(Uat),Yat=Ce({},hu,{data:0}),Nz=An(Yat),jat={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xat={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"},$at={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wat(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$at[e])?!!t[e]:!1}function gR(){return Wat}var Zat=Ce({},dm,{key:function(e){if(e.key){var t=jat[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=q_(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xat[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gR,charCode:function(e){return e.type==="keypress"?q_(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?q_(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),qat=An(Zat),Kat=Ce({},xx,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kz=An(Kat),Qat=Ce({},hu,{submitter:0}),Jat=An(Qat),tit=Ce({},dm,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gR}),eit=An(tit),rit=Ce({},hu,{propertyName:0,elapsedTime:0,pseudoElement:0}),nit=An(rit),ait=Ce({},xx,{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}),iit=An(ait),oit=Ce({},hu,{newState:0,oldState:0,source:0}),sit=An(oit),lit=[9,13,27,32],yR=ms&&"CompositionEvent"in window,vg=null;ms&&"documentMode"in document&&(vg=document.documentMode);var uit=ms&&"TextEvent"in window&&!vg,d7=ms&&(!yR||vg&&8<vg&&11>=vg),zz=" ",Bz=!1;function p7(e,t){switch(e){case"keyup":return lit.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function g7(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wv=!1;function fit(e,t){switch(e){case"compositionend":return g7(t);case"keypress":return t.which!==32?null:(Bz=!0,zz);case"textInput":return e=t.data,e===zz&&Bz?null:e;default:return null}}function cit(e,t){if(Wv)return e==="compositionend"||!yR&&p7(e,t)?(e=h7(),Z_=pR=dl=null,Wv=!1,e):null;switch(e){case"paste":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 d7&&t.locale!=="ko"?null:t.data;default:return null}}var vit={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 Vz(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!vit[e.type]:t==="textarea"}function y7(e,t,r,n){$v?vh?vh.push(n):vh=[n]:$v=n,t=M1(t,"onChange"),0<t.length&&(r=new bx("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var hg=null,Wg=null;function hit(e){v9(e,0)}function Tx(e){var t=jp(e);if(s7(t))return e}function Gz(e,t){if(e==="change")return t}var m7=!1;if(ms){var mT;if(ms){var _T="oninput"in document;if(!_T){var Hz=document.createElement("div");Hz.setAttribute("oninput","return;"),_T=typeof Hz.oninput=="function"}mT=_T}else mT=!1;m7=mT&&(!document.documentMode||9<document.documentMode)}function Uz(){hg&&(hg.detachEvent("onpropertychange",_7),Wg=hg=null)}function _7(e){if(e.propertyName==="value"&&Tx(Wg)){var t=[];y7(t,Wg,e,dR(e)),v7(hit,t)}}function dit(e,t,r){e==="focusin"?(Uz(),hg=t,Wg=r,hg.attachEvent("onpropertychange",_7)):e==="focusout"&&Uz()}function pit(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Tx(Wg)}function git(e,t){if(e==="click")return Tx(t)}function yit(e,t){if(e==="input"||e==="change")return Tx(t)}function mit(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var fa=typeof Object.is=="function"?Object.is:mit;function Zg(e,t){if(fa(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var a=r[n];if(!wD.call(t,a)||!fa(e[a],t[a]))return!1}return!0}function DD(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Fz(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yz(e,t){var r=Fz(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=Fz(r)}}function S7(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?S7(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function b7(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=DD(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=DD(e.document)}return t}function mR(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var _it=ms&&"documentMode"in document&&11>=document.documentMode,Zv=null,ED=null,dg=null,LD=!1;function jz(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;LD||Zv==null||Zv!==DD(n)||(n=Zv,"selectionStart"in n&&mR(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),dg&&Zg(dg,n)||(dg=n,n=M1(ED,"onSelect"),0<n.length&&(t=new bx("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Zv)))}function xu(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var qv={animationend:xu("Animation","AnimationEnd"),animationiteration:xu("Animation","AnimationIteration"),animationstart:xu("Animation","AnimationStart"),transitionrun:xu("Transition","TransitionRun"),transitionstart:xu("Transition","TransitionStart"),transitioncancel:xu("Transition","TransitionCancel"),transitionend:xu("Transition","TransitionEnd")},ST={},x7={};ms&&(x7=document.createElement("div").style,"AnimationEvent"in window||(delete qv.animationend.animation,delete qv.animationiteration.animation,delete qv.animationstart.animation),"TransitionEvent"in window||delete qv.transitionend.transition);function zc(e){if(ST[e])return ST[e];if(!qv[e])return e;var t=qv[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in x7)return ST[e]=t[r];return e}var w7=zc("animationend"),T7=zc("animationiteration"),C7=zc("animationstart"),Sit=zc("transitionrun"),bit=zc("transitionstart"),xit=zc("transitioncancel"),A7=zc("transitionend"),M7=new Map,OD="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");OD.push("scrollEnd");function _i(e,t){M7.set(e,t),kc(t,[e])}var wit=0;function _s(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=fi.identifierPrefix;var r=wit++;return e="_"+e+"t_"+r.toString(32)+"_",t.autoName=e}function Xz(e){if(e==null||typeof e=="string")return e;var t=null,r=_h;if(r!==null)for(var n=0;n<r.length;n++){var a=e[r[n]];if(a!=null){if(a==="none")return"none";t=t==null?a:t+(" "+a)}}return t??e.default}function zs(e,t){return e=Xz(e),t=Xz(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var o1=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ta=[],Kv=0,_R=0;function Cx(){for(var e=Kv,t=_R=Kv=0;t<e;){var r=Ta[t];Ta[t++]=null;var n=Ta[t];Ta[t++]=null;var a=Ta[t];Ta[t++]=null;var i=Ta[t];if(Ta[t++]=null,n!==null&&a!==null){var o=n.pending;o===null?a.next=a:(a.next=o.next,o.next=a),n.pending=a}i!==0&&D7(r,a,i)}}function Ax(e,t,r,n){Ta[Kv++]=e,Ta[Kv++]=t,Ta[Kv++]=r,Ta[Kv++]=n,_R|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function SR(e,t,r,n){return Ax(e,t,r,n),s1(e)}function Bc(e,t){return Ax(e,null,null,t),s1(e)}function D7(e,t,r){e.lanes|=r;var n=e.alternate;n!==null&&(n.lanes|=r);for(var a=!1,i=e.return;i!==null;)i.childLanes|=r,n=i.alternate,n!==null&&(n.childLanes|=r),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-sa(r),e=i.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=r|536870912),i):null}function s1(e){if(50<Tg)throw Tg=0,oS=null,Error(W(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Qv={};function Tit(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function On(e,t,r,n){return new Tit(e,t,r,n)}function bR(e){return e=e.prototype,!(!e||!e.isReactComponent)}function as(e,t){var r=e.alternate;return r===null?(r=On(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&1206910976,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function E7(e,t){e.flags&=1206910978;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function K_(e,t,r,n,a,i){var o=0;if(n=e,typeof n=="function")bR(n)&&(o=1);else if(typeof n=="string")o=Qot(e,r,ao.current)?26:e==="html"||e==="head"||e==="body"?27:5;else t:switch(n){case mD:return e=On(31,r,t,a),e.elementType=mD,e.lanes=i,e;case jv:return Af(r.children,a,i,t);case X8:o=8,a|=24;break;case pD:return e=On(12,r,t,a|2),e.elementType=pD,e.lanes=i,e;case gD:return e=On(13,r,t,a),e.elementType=gD,e.lanes=i,e;case yD:return e=On(19,r,t,a),e.elementType=yD,e.lanes=i,e;case cat:case _D:return e=a|32,e=On(30,r,t,e),e.elementType=_D,e.lanes=i,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case ji:o=10;break t;case $8:o=9;break t;case lR:o=11;break t;case uR:o=14;break t;case sl:o=16,n=null;break t}o=29,r=Error(W(130,e===null?"null":typeof e,"")),n=null}return t=On(o,r,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function Af(e,t,r,n){return e=On(7,e,n,t),e.lanes=r,e}function bT(e,t,r){return e=On(6,e,null,t),e.lanes=r,e}function L7(e){var t=On(18,null,null,0);return t.stateNode=e,t}function xT(e,t,r){return t=On(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var $z=new WeakMap;function Ia(e,t){if(typeof e=="object"&&e!==null){var r=$z.get(e);return r!==void 0?r:(t={value:e,source:t,stack:Tz(t)},$z.set(e,t),t)}return{value:e,source:t,stack:Tz(t)}}var Jv=[],th=0,l1=null,qg=0,Ma=[],Da=0,$l=null,$i=1,Wi="";function $o(e,t){Jv[th++]=qg,Jv[th++]=l1,l1=e,qg=t}function O7(e,t,r){Ma[Da++]=$i,Ma[Da++]=Wi,Ma[Da++]=$l,$l=e;var n=$i;e=Wi;var a=32-sa(n)-1;n&=~(1<<a),r+=1;var i=32-sa(t)+a;if(30<i){var o=a-a%5;i=(n&(1<<o)-1).toString(32),n>>=o,a-=o,$i=1<<32-sa(t)+a|r<<a|n,Wi=i+e}else $i=1<<i|r<<a|n,Wi=e}function Mx(e){e.return!==null&&($o(e,1),O7(e,1,0))}function xR(e){for(;e===l1;)l1=Jv[--th],Jv[th]=null,qg=Jv[--th],Jv[th]=null;for(;e===$l;)$l=Ma[--Da],Ma[Da]=null,Wi=Ma[--Da],Ma[Da]=null,$i=Ma[--Da],Ma[Da]=null}function R7(e,t){Ma[Da++]=$i,Ma[Da++]=Wi,Ma[Da++]=$l,$i=t.id,Wi=t.overflow,$l=e}var Dr=null,Ee=null,Wt=!1,Ml=null,Pa=!1,RD=Error(W(519));function Wl(e){var t=Error(W(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Kg(Ia(t,e)),RD}function Wz(e){var t=e.stateNode,r=e.type,n=e.memoizedProps;switch(t[Br]=e,t[Gn]=n,r){case"dialog":Kt("cancel",t),Kt("close",t);break;case"iframe":case"object":case"embed":Kt("load",t);break;case"video":case"audio":for(r=0;r<ey.length;r++)Kt(ey[r],t);break;case"source":Kt("error",t);break;case"img":case"image":case"link":Kt("error",t),Kt("load",t);break;case"details":Kt("toggle",t);break;case"input":Kt("invalid",t),l7(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Kt("invalid",t);break;case"textarea":Kt("invalid",t),f7(t,n.value,n.defaultValue,n.children)}r=n.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||n.suppressHydrationWarning===!0||d9(t.textContent,r)?(n.popover!=null&&(Kt("beforetoggle",t),Kt("toggle",t)),n.onScroll!=null&&Kt("scroll",t),n.onScrollEnd!=null&&Kt("scrollend",t),n.onClick!=null&&(t.onclick=Xi),t=!0):t=!1,t||Wl(e,!0)}function u1(e){for(Dr=e.return;Dr;)switch(Dr.tag){case 5:case 31:case 13:Pa=!1;return;case 27:case 3:Pa=!0;return;default:Dr=Dr.return}}function rv(e){if(e!==Dr)return!1;if(!Wt)return u1(e),Wt=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||g2(e.type,e.memoizedProps)),r=!r),r&&Ee&&Wl(e),u1(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(W(317));Ee=UB(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(W(317));Ee=UB(e)}else t===27?(t=Ee,du(e.type)?(e=S2,S2=null,Ee=e):Ee=t):Ee=Dr?Va(e.stateNode.nextSibling):null;return!0}function Yf(){Ee=Dr=null,Wt=!1}function wT(){var e=Ml;return e!==null&&(En===null?En=e:En.push.apply(En,e),Ml=null),e}function Kg(e){Ml===null?Ml=[e]:Ml.push(e)}var ID=Lo(null),Vc=null,Ko=null;function pl(e,t,r){Oe(ID,t._currentValue),t._currentValue=r}function is(e){e._currentValue=ID.current,Hr(ID)}function Q_(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function PD(e,t,r,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var o=a.child;i=i.firstContext;t:for(;i!==null;){var s=i;i=a;for(var l=0;l<t.length;l++)if(s.context===t[l]){i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),Q_(i.return,r,e),n||(o=null);break t}i=s.next}}else if(a.tag===18){if(o=a.return,o===null)throw Error(W(341));o.lanes|=r,i=o.alternate,i!==null&&(i.lanes|=r),Q_(o,r,e),o=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=r,o=a.alternate,o!==null&&(o.lanes|=r),Q_(a.return,r,e),o=a.child,o=o!==null?o.sibling:null):o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===e){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}}function jf(e,t,r,n){e=null;for(var a=t,i=!1;a!==null;){if(!i){if(a.flags&524288)i=!0;else if(a.flags&262144)break}if(a.tag===10){var o=a.alternate;if(o===null)throw Error(W(387));if(o=o.memoizedProps,o!==null){var s=a.type;fa(a.pendingProps.value,o.value)||(e!==null?e.push(s):e=[s])}}else if(a===e1.current){if(o=a.alternate,o===null)throw Error(W(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push($h):e=[$h])}a=a.return}return e!==null&&PD(t,e,r,n),t.flags|=262144,e!==null}function f1(e){for(e=e.firstContext;e!==null;){if(!fa(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xf(e){Vc=e,Ko=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Vr(e){return I7(Vc,e)}function a0(e,t){return Vc===null&&Xf(e),I7(e,t)}function I7(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},Ko===null){if(e===null)throw Error(W(308));Ko=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ko=Ko.next=t;return r}var Cit=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},Ait=gr.unstable_scheduleCallback,Mit=gr.unstable_NormalPriority,er={$$typeof:ji,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wR(){return{controller:new Cit,data:new Map,refCount:0}}function pm(e){e.refCount--,e.refCount===0&&Ait(Mit,function(){e.controller.abort()})}function Zz(e,t){if(e.pendingLanes&4194048){var r=e.transitionTypes;for(r===null&&(r=e.transitionTypes=[]),e=0;e<t.length;e++){var n=t[e];r.indexOf(n)===-1&&r.push(n)}}}var Xp=null;function Dit(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var pg=null,ND=0,$f=0,hh=null;function Eit(e,t){if(pg===null){var r=pg=[];ND=0,$f=KR(),hh={status:"pending",value:void 0,then:function(n){r.push(n)}}}return ND++,t.then(qz,qz),t}function qz(){if(--ND===0&&(Xp=null,pg!==null)){hh!==null&&(hh.status="fulfilled");var e=pg;pg=null,$f=0,hh=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Lit(e,t){var r=[],n={status:"pending",value:null,reason:null,then:function(a){r.push(a)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var a=0;a<r.length;a++)(0,r[a])(t)},function(a){for(n.status="rejected",n.reason=a,a=0;a<r.length;a++)(0,r[a])(void 0)}),n}var Kz=Pt.S;Pt.S=function(e,t){if(KY=ia(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Eit(e,t),Xp!==null)for(var r=Yh;r!==null;)Zz(r,Xp),r=r.next;if(r=e.types,r!==null){for(var n=Yh;n!==null;)Zz(n,r),n=n.next;if($f!==0){n=Xp,n===null&&(n=Xp=[]);for(var a=0;a<r.length;a++){var i=r[a];n.indexOf(i)===-1&&n.push(i)}}}Kz!==null&&Kz(e,t)};var Mf=Lo(null);function TR(){var e=Mf.current;return e!==null?e:Te.pooledCache}function J_(e,t){t===null?Oe(Mf,Mf.current):Oe(Mf,t.pool)}function P7(){var e=TR();return e===null?null:{parent:er._currentValue,pool:e}}var wd=Error(W(460)),CR=Error(W(474)),Dx=Error(W(542)),c1={then:function(){}};function Qz(e){return e=e.status,e==="fulfilled"||e==="rejected"}function N7(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(Xi,Xi),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,tB(e),e===void 0&&!("reason"in t)?Error(W(600)):e;default:if(typeof t.status=="string")t.then(Xi,Xi);else{if(e=Te,e!==null&&100<e.shellSuspendCounter)throw Error(W(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=n}},function(n){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,tB(e),e}throw Df=t,wd}}function tf(e){try{var t=e._init;return t(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(Df=r,wd):r}}var Df=null;function Jz(){if(Df===null)throw Error(W(459));var e=Df;return Df=null,e}function tB(e){if(e===wd||e===Dx)throw Error(W(483))}var dh=null,Qg=0;function i0(e){var t=Qg;return Qg+=1,dh===null&&(dh=[]),N7(dh,e,t)}function Ws(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function o0(e,t){throw t.$$typeof===fat?Error(W(525)):(e=Object.prototype.toString.call(t),Error(W(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function k7(e){function t(y,m){if(e){var _=y.deletions;_===null?(y.deletions=[m],y.flags|=16):_.push(m)}}function r(y,m){if(!e)return null;for(;m!==null;)t(y,m),m=m.sibling;return null}function n(y){for(var m=new Map;y!==null;)y.key===null?m.set(y.index,y):m.set(y.key,y),y=y.sibling;return m}function a(y,m){return y=as(y,m),y.index=0,y.sibling=null,y}function i(y,m,_){return y.index=_,e?(_=y.alternate,_!==null?(_=_.index,_<m?(y.flags|=2,m):_):(y.flags|=134217730,m)):(y.flags|=1048576,m)}function o(y){return e&&y.alternate===null&&(y.flags|=134217730),y}function s(y,m,_,S){return m===null||m.tag!==6?(m=bT(_,y.mode,S),m.return=y,m):(m=a(m,_),m.return=y,m)}function l(y,m,_,S){var b=_.type;return b===jv?(y=f(y,m,_.props.children,S,_.key),Ws(y,_),y):m!==null&&(m.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===sl&&tf(b)===m.type)?(m=a(m,_.props),Ws(m,_),m.return=y,m):(m=K_(_.type,_.key,_.props,null,y.mode,S),Ws(m,_),m.return=y,m)}function u(y,m,_,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==_.containerInfo||m.stateNode.implementation!==_.implementation?(m=xT(_,y.mode,S),m.return=y,m):(m=a(m,_.children||[]),m.return=y,m)}function f(y,m,_,S,b){return m===null||m.tag!==7?(m=Af(_,y.mode,S,b),m.return=y,m):(m=a(m,_),m.return=y,m)}function c(y,m,_){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=bT(""+m,y.mode,_),m.return=y,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Qm:return _=K_(m.type,m.key,m.props,null,y.mode,_),Ws(_,m),_.return=y,_;case Fp:return m=xT(m,y.mode,_),m.return=y,m;case sl:return m=tf(m),c(y,m,_)}if(Yp(m)||rp(m))return m=Af(m,y.mode,_,null),m.return=y,m;if(typeof m.then=="function")return c(y,i0(m),_);if(m.$$typeof===ji)return c(y,a0(y,m),_);o0(y,m)}return null}function v(y,m,_,S){var b=m!==null?m.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return b!==null?null:s(y,m,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Qm:return _.key===b?l(y,m,_,S):null;case Fp:return _.key===b?u(y,m,_,S):null;case sl:return _=tf(_),v(y,m,_,S)}if(Yp(_)||rp(_))return b!==null?null:f(y,m,_,S,null);if(typeof _.then=="function")return v(y,m,i0(_),S);if(_.$$typeof===ji)return v(y,m,a0(y,_),S);o0(y,_)}return null}function h(y,m,_,S,b){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return y=y.get(_)||null,s(m,y,""+S,b);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Qm:return y=y.get(S.key===null?_:S.key)||null,l(m,y,S,b);case Fp:return y=y.get(S.key===null?_:S.key)||null,u(m,y,S,b);case sl:return S=tf(S),h(y,m,_,S,b)}if(Yp(S)||rp(S))return y=y.get(_)||null,f(m,y,S,b,null);if(typeof S.then=="function")return h(y,m,_,i0(S),b);if(S.$$typeof===ji)return h(y,m,_,a0(m,S),b);o0(m,S)}return null}function d(y,m,_,S){for(var b=null,x=null,w=m,T=m=0,C=null;w!==null&&T<_.length;T++){w.index>T?(C=w,w=null):C=w.sibling;var A=v(y,w,_[T],S);if(A===null){w===null&&(w=C);break}e&&w&&A.alternate===null&&t(y,w),m=i(A,m,T),x===null?b=A:x.sibling=A,x=A,w=C}if(T===_.length)return r(y,w),Wt&&$o(y,T),b;if(w===null){for(;T<_.length;T++)w=c(y,_[T],S),w!==null&&(m=i(w,m,T),x===null?b=w:x.sibling=w,x=w);return Wt&&$o(y,T),b}for(w=n(w);T<_.length;T++)C=h(w,y,T,_[T],S),C!==null&&(e&&(A=C.alternate,A!==null&&w.delete(A.key===null?T:A.key)),m=i(C,m,T),x===null?b=C:x.sibling=C,x=C);return e&&w.forEach(function(M){return t(y,M)}),Wt&&$o(y,T),b}function p(y,m,_,S){if(_==null)throw Error(W(151));for(var b=null,x=null,w=m,T=m=0,C=null,A=_.next();w!==null&&!A.done;T++,A=_.next()){w.index>T?(C=w,w=null):C=w.sibling;var M=v(y,w,A.value,S);if(M===null){w===null&&(w=C);break}e&&w&&M.alternate===null&&t(y,w),m=i(M,m,T),x===null?b=M:x.sibling=M,x=M,w=C}if(A.done)return r(y,w),Wt&&$o(y,T),b;if(w===null){for(;!A.done;T++,A=_.next())A=c(y,A.value,S),A!==null&&(m=i(A,m,T),x===null?b=A:x.sibling=A,x=A);return Wt&&$o(y,T),b}for(w=n(w);!A.done;T++,A=_.next())A=h(w,y,T,A.value,S),A!==null&&(e&&(C=A.alternate,C!==null&&w.delete(C.key===null?T:C.key)),m=i(A,m,T),x===null?b=A:x.sibling=A,x=A);return e&&w.forEach(function(L){return t(y,L)}),Wt&&$o(y,T),b}function g(y,m,_,S){if(typeof _=="object"&&_!==null&&_.type===jv&&_.key===null&&_.props.ref===void 0&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Qm:t:{for(var b=_.key;m!==null;){if(m.key===b){if(b=_.type,b===jv){if(m.tag===7){r(y,m.sibling),S=a(m,_.props.children),Ws(S,_),S.return=y,y=S;break t}}else if(m.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===sl&&tf(b)===m.type){r(y,m.sibling),S=a(m,_.props),Ws(S,_),S.return=y,y=S;break t}r(y,m);break}else t(y,m);m=m.sibling}_.type===jv?(S=Af(_.props.children,y.mode,S,_.key),Ws(S,_),S.return=y,y=S):(S=K_(_.type,_.key,_.props,null,y.mode,S),Ws(S,_),S.return=y,y=S)}return o(y);case Fp:t:{for(b=_.key;m!==null;){if(m.key===b)if(m.tag===4&&m.stateNode.containerInfo===_.containerInfo&&m.stateNode.implementation===_.implementation){r(y,m.sibling),S=a(m,_.children||[]),S.return=y,y=S;break t}else{r(y,m);break}else t(y,m);m=m.sibling}S=xT(_,y.mode,S),S.return=y,y=S}return o(y);case sl:return _=tf(_),g(y,m,_,S)}if(Yp(_))return d(y,m,_,S);if(rp(_)){if(b=rp(_),typeof b!="function")throw Error(W(150));return _=b.call(_),p(y,m,_,S)}if(typeof _.then=="function")return g(y,m,i0(_),S);if(_.$$typeof===ji)return g(y,m,a0(y,_),S);o0(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,m!==null&&m.tag===6?(r(y,m.sibling),S=a(m,_),S.return=y,y=S):(r(y,m),S=bT(_,y.mode,S),S.return=y,y=S),o(y)):r(y,m)}return function(y,m,_,S){try{Qg=0;var b=g(y,m,_,S);return dh=null,b}catch(w){if(w===wd||w===Dx)throw w;var x=On(29,w,null,y.mode);return x.lanes=S,x.return=y,x}finally{}}}var Wf=k7(!0),z7=k7(!1),ll=!1;function AR(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function kD(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Dl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function El(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,oe&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=s1(e),D7(e,null,r),t}return Ax(e,n,t,r),s1(e)}function gg(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,t7(e,r)}}function TT(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var o={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};i===null?a=i=o:i=i.next=o,r=r.next}while(r!==null);i===null?a=i=t:i=i.next=t}else a=i=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var zD=!1;function yg(){if(zD){var e=hh;if(e!==null)throw e}}function mg(e,t,r,n){zD=!1;var a=e.updateQueue;ll=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==o&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(i!==null){var c=a.baseState;o=0,f=u=l=null,s=i;do{var v=s.lane&-536870913,h=v!==s.lane;if(h?(Jt&v)===v:(n&v)===v){v!==0&&v===$f&&(zD=!0),f!==null&&(f=f.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});t:{var d=e,p=s;v=t;var g=r;switch(p.tag){case 1:if(d=p.payload,typeof d=="function"){c=d.call(g,c,v);break t}c=d;break t;case 3:d.flags=d.flags&-65537|128;case 0:if(d=p.payload,v=typeof d=="function"?d.call(g,c,v):d,v==null)break t;c=Ce({},c,v);break t;case 2:ll=!0}}v=s.callback,v!==null&&(e.flags|=64,h&&(e.flags|=8192),h=a.callbacks,h===null?a.callbacks=[v]:h.push(v))}else h={lane:v,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=h,l=c):f=f.next=h,o|=v;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;h=s,s=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);f===null&&(l=c),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=f,i===null&&(a.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=c}}function B7(e,t){if(typeof e!="function")throw Error(W(191,e));e.call(t)}function V7(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)B7(r[e],t)}var Zl=Lo(null),v1=Lo(0);function eB(e,t){e=ws,Oe(v1,e),Oe(Zl,t),ws=e|t.baseLanes}function BD(){Oe(v1,ws),Oe(Zl,Zl.current)}function MR(){ws=v1.current,Hr(Zl),Hr(v1)}var jr=Lo(null),an=null;function Ll(e){var t=e.alternate;Oe(Ur,Ur.current&1),Oe(jr,e),an===null&&(t===null||Zl.current!==null||t.memoizedState!==null)&&(an=e)}function VD(e){Oe(Ur,Ur.current),Oe(jr,e),an===null&&(an=e)}function G7(e){e.tag===22?(Oe(Ur,Ur.current),Oe(jr,e),an===null&&(an=e)):Ol()}function Ol(){Oe(Ur,Ur.current),Oe(jr,jr.current)}function Wn(e){Hr(jr),an===e&&(an=null),Hr(Ur)}var Ur=Lo(0);function Jg(e,t){Oe(jr,jr.current),Oe(Ur,t)}function DR(e){Hr(Ur),Hr(jr),an===e&&(an=null)}function h1(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||_2(r)||eI(r)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ss=0,Ft=null,_e=null,tr=null,d1=!1,ph=!1,Zf=!1,p1=0,ty=0,gh=null,Oit=0;function He(){throw Error(W(321))}function ER(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!fa(e[r],t[r]))return!1;return!0}function LR(e,t,r,n,a,i){return Ss=i,Ft=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Pt.H=e===null||e.memoizedState===null?yY:mY,Zf=!1,i=r(n,a),Zf=!1,ph&&(i=U7(t,r,n,a)),H7(e),i}function H7(e){Pt.H=g1;var t=_e!==null&&_e.next!==null;if(Ss=0,tr=_e=Ft=null,d1=!1,ty=0,gh=null,t)throw Error(W(300));e===null||rr||(e=e.dependencies,e!==null&&f1(e)&&(rr=!0))}function U7(e,t,r,n){Ft=e;var a=0;do{if(ph&&(gh=null),ty=0,ph=!1,25<=a)throw Error(W(301));if(a+=1,tr=_e=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}Pt.H=Vit,i=t(r,n)}while(ph);return i}function Rit(){var e=Pt.H,t=e.useState()[0];return t=typeof t.then=="function"?gm(t):t,e=e.useState()[0],(_e!==null?_e.memoizedState:null)!==e&&(Ft.flags|=1024),t}function OR(){var e=p1!==0;return p1=0,e}function RR(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function IR(e){if(d1){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}d1=!1}Ss=0,tr=_e=Ft=null,ph=!1,ty=p1=0,gh=null}function hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tr===null?Ft.memoizedState=tr=e:tr=tr.next=e,tr}function qe(){if(_e===null){var e=Ft.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=tr===null?Ft.memoizedState:tr.next;if(t!==null)tr=t,_e=e;else{if(e===null)throw Ft.alternate===null?Error(W(467)):Error(W(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},tr===null?Ft.memoizedState=tr=e:tr=tr.next=e}return tr}function Ex(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gm(e){var t=ty;return ty+=1,gh===null&&(gh=[]),e=N7(gh,e,t),t=Ft,(tr===null?t.memoizedState:tr.next)===null&&(t=t.alternate,Pt.H=t===null||t.memoizedState===null?yY:mY),e}function Lx(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return gm(e);if(e.$$typeof===hat)return;if(e.$$typeof===ji)return Vr(e)}throw Error(W(438,String(e)))}function PR(e){var t=null,r=Ft.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var n=Ft.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=Ex(),Ft.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),n=0;n<e;n++)r[n]=vat;return t.index++,r}function bs(e,t){return typeof t=="function"?t(e):t}function tS(e){var t=qe();return NR(t,_e,e)}function NR(e,t,r){var n=e.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=r;var a=e.baseQueue,i=n.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}t.baseQueue=a=i,n.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var s=o=null,l=null,u=t,f=!1;do{var c=u.lane&-536870913;if(c!==u.lane?(Jt&c)===c:(Ss&c)===c){var v=u.revertLane;if(v===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),c===$f&&(f=!0);else if((Ss&v)===v){u=u.next,v===$f&&(f=!0);continue}else c={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=c,o=i):l=l.next=c,Ft.lanes|=v,Kl|=v;c=u.action,Zf&&r(i,c),i=u.hasEagerState?u.eagerState:r(i,c)}else v={lane:c,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=v,o=i):l=l.next=v,Ft.lanes|=c,Kl|=c;u=u.next}while(u!==null&&u!==t);if(l===null?o=i:l.next=s,!fa(i,e.memoizedState)&&(rr=!0,f&&(r=hh,r!==null)))throw r;e.memoizedState=i,e.baseState=o,e.baseQueue=l,n.lastRenderedState=i}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function CT(e){var t=qe(),r=t.queue;if(r===null)throw Error(W(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,i=t.memoizedState;if(a!==null){r.pending=null;var o=a=a.next;do i=e(i,o.action),o=o.next;while(o!==a);fa(i,t.memoizedState)||(rr=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function F7(e,t,r){var n=Ft,a=qe(),i=Wt;if(i){if(r===void 0)throw Error(W(407));r=r()}else r=t();var o=!fa((_e||a).memoizedState,r);if(o&&(a.memoizedState=r,rr=!0),a=a.queue,kR(X7.bind(null,n,a,e),[e]),e=a.getSnapshot!==t||o||tr!==null&&(tr.memoizedState.tag&1)!==0,Gh(e?9:8,{destroy:void 0},j7.bind(null,n,a,r,t),null),e){if(n.flags|=2048,Te===null)throw Error(W(349));i||Ss&127||Y7(n,t,r)}return r}function Y7(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ft.updateQueue,t===null?(t=Ex(),Ft.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function j7(e,t,r,n){t.value=r,t.getSnapshot=n,$7(t)&&W7(e)}function X7(e,t,r){return r(function(){$7(t)&&W7(e)})}function $7(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!fa(e,r)}catch{return!0}}function W7(e){var t=Bc(e,2);t!==null&&kn(t,e,2)}function GD(e){var t=hn();if(typeof e=="function"){var r=e;if(e=r(),Zf){hl(!0);try{r()}finally{hl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bs,lastRenderedState:e},t}function Z7(e,t,r,n){return e.baseState=r,NR(e,_e,typeof n=="function"?n:bs)}function Iit(e,t,r,n,a){if(Rx(e))throw Error(W(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};Pt.T!==null?r(!0):i.isTransition=!1,n(i),r=t.pending,r===null?(i.next=t.pending=i,q7(t,i)):(i.next=r.next,t.pending=r.next=i)}}function q7(e,t){var r=t.action,n=t.payload,a=e.state;if(t.isTransition){var i=Pt.T,o={};o.types=i!==null?i.types:null,Pt.T=o;try{var s=r(a,n),l=Pt.S;l!==null&&l(o,s),rB(e,t,s)}catch(u){HD(e,t,u)}finally{i!==null&&o.types!==null&&(i.types=o.types),Pt.T=i}}else try{i=r(a,n),rB(e,t,i)}catch(u){HD(e,t,u)}}function rB(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(n){nB(e,t,n)},function(n){return HD(e,t,n)}):nB(e,t,r)}function nB(e,t,r){t.status="fulfilled",t.value=r,K7(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,q7(e,r)))}function HD(e,t,r){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=r,K7(t),t=t.next;while(t!==n)}e.action=null}function K7(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Q7(e,t){return t}function aB(e,t){if(Wt){var r=Te.formState;if(r!==null){t:{var n=Ft;if(Wt){if(Ee){e:{for(var a=Ee,i=Pa;a.nodeType!==8;){if(!i){a=null;break e}if(a=Va(a.nextSibling),a===null){a=null;break e}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){Ee=Va(a.nextSibling),n=a.data==="F!";break t}}Wl(n)}n=!1}n&&(t=r[0])}}return r=hn(),r.memoizedState=r.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Q7,lastRenderedState:t},r.queue=n,r=dY.bind(null,Ft,n),n.dispatch=r,n=GD(!1),i=GR.bind(null,Ft,!1,n.queue),n=hn(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,r=Iit.bind(null,Ft,a,i,r),a.dispatch=r,n.memoizedState=e,[t,r,!1]}function iB(e){var t=qe();return J7(t,_e,e)}function J7(e,t,r){if(t=NR(e,t,Q7)[0],e=tS(bs)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=gm(t)}catch(o){throw o===wd?Dx:o}else n=t;t=qe();var a=t.queue,i=a.dispatch;return r!==t.memoizedState&&(Ft.flags|=2048,Gh(9,{destroy:void 0},Pit.bind(null,a,r),null)),[n,i,e]}function Pit(e,t){e.action=t}function oB(e){var t=qe(),r=_e;if(r!==null)return J7(t,r,e);qe(),t=t.memoizedState,r=qe();var n=r.queue.dispatch;return r.memoizedState=e,[t,n,!1]}function Gh(e,t,r,n){return e={tag:e,create:r,deps:n,inst:t,next:null},t=Ft.updateQueue,t===null&&(t=Ex(),Ft.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function tY(){return qe().memoizedState}function eS(e,t,r,n){var a=hn();Ft.flags|=e,a.memoizedState=Gh(1|t,{destroy:void 0},r,n===void 0?null:n)}function Ox(e,t,r,n){var a=qe();n=n===void 0?null:n;var i=a.memoizedState.inst;_e!==null&&n!==null&&ER(n,_e.memoizedState.deps)?a.memoizedState=Gh(t,i,r,n):(Ft.flags|=e,a.memoizedState=Gh(1|t,i,r,n))}function sB(e,t){eS(8390656,8,e,t)}function kR(e,t){Ox(2048,8,e,t)}function Nit(e){Ft.flags|=4;var t=Ft.updateQueue;if(t===null)t=Ex(),Ft.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function eY(e){var t=qe().memoizedState;return Nit({ref:t,nextImpl:e}),function(){if(oe&2)throw Error(W(440));return t.impl.apply(void 0,arguments)}}function rY(e,t){return Ox(4,2,e,t)}function nY(e,t){return Ox(4,4,e,t)}function aY(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function iY(e,t,r){r=r!=null?r.concat([e]):null,Ox(4,4,aY.bind(null,t,e),r)}function zR(){}function oY(e,t){var r=qe();t=t===void 0?null:t;var n=r.memoizedState;return t!==null&&ER(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function sY(e,t){var r=qe();t=t===void 0?null:t;var n=r.memoizedState;if(t!==null&&ER(t,n[1]))return n[0];if(n=e(),Zf){hl(!0);try{e()}finally{hl(!1)}}return r.memoizedState=[n,t],n}function BR(e,t,r){return r===void 0||Ss&1073741824&&!(Jt&261930)?e.memoizedState=t:(e.memoizedState=r,e=JY(),Ft.lanes|=e,Kl|=e,r)}function lY(e,t,r,n){return fa(r,t)?r:Zl.current!==null?(e=BR(e,r,n),fa(e,t)||(rr=!0),e):!(Ss&106)||Ss&1073741824&&!(Jt&261930)?(rr=!0,e.memoizedState=r):(e=JY(),Ft.lanes|=e,Kl|=e,t)}function uY(e,t,r,n,a){var i=le.p;le.p=i!==0&&8>i?i:8;var o=Pt.T,s={};s.types=o!==null?o.types:null,Pt.T=s,GR(e,!1,t,r);try{var l=a(),u=Pt.S;if(u!==null&&u(s,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var f=Lit(l,n);_g(e,t,f,la(e))}else _g(e,t,n,la(e))}catch(c){_g(e,t,{then:function(){},status:"rejected",reason:c},la())}finally{le.p=i,o!==null&&s.types!==null&&(o.types=s.types),Pt.T=o}}function kit(){}function UD(e,t,r,n){if(e.tag!==5)throw Error(W(476));var a=fY(e).queue;uY(e,a,t,Cf,r===null?kit:function(){return cY(e),r(n)})}function fY(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Cf,baseState:Cf,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bs,lastRenderedState:Cf},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bs,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function cY(e){var t=fY(e);t.next===null&&(t=e.alternate.memoizedState),_g(e,t.next.queue,{},la())}function VR(){return Vr($h)}function vY(){return qe().memoizedState}function hY(){return qe().memoizedState}function zit(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=la();e=Dl(r);var n=El(t,e,r);n!==null&&(kn(n,t,r),gg(n,t,r)),t={cache:wR()},e.payload=t;return}t=t.return}}function Bit(e,t,r){var n=la();r={lane:n,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Rx(e)?pY(t,r):(r=SR(e,t,r,n),r!==null&&(kn(r,e,n),gY(r,t,n)))}function dY(e,t,r){var n=la();_g(e,t,r,n)}function _g(e,t,r,n){var a={lane:n,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Rx(e))pY(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,r);if(a.hasEagerState=!0,a.eagerState=s,fa(s,o))return Ax(e,t,a,0),Te===null&&Cx(),!1}catch{}finally{}if(r=SR(e,t,a,n),r!==null)return kn(r,e,n),gY(r,t,n),!0}return!1}function GR(e,t,r,n){if(n={lane:2,revertLane:KR(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Rx(e)){if(t)throw Error(W(479))}else t=SR(e,r,n,2),t!==null&&kn(t,e,2)}function Rx(e){var t=e.alternate;return e===Ft||t!==null&&t===Ft}function pY(e,t){ph=d1=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function gY(e,t,r){if(r&4194048){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,t7(e,r)}}var g1={readContext:Vr,use:Lx,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He,useEffectEvent:He},yY={readContext:Vr,use:Lx,useCallback:function(e,t){return hn().memoizedState=[e,t===void 0?null:t],e},useContext:Vr,useEffect:sB,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,eS(4194308,4,aY.bind(null,t,e),r)},useLayoutEffect:function(e,t){return eS(4194308,4,e,t)},useInsertionEffect:function(e,t){eS(4,2,e,t)},useMemo:function(e,t){var r=hn();t=t===void 0?null:t;var n=e();if(Zf){hl(!0);try{e()}finally{hl(!1)}}return r.memoizedState=[n,t],n},useReducer:function(e,t,r){var n=hn();if(r!==void 0){var a=r(t);if(Zf){hl(!0);try{r(t)}finally{hl(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=Bit.bind(null,Ft,e),[n.memoizedState,e]},useRef:function(e){var t=hn();return e={current:e},t.memoizedState=e},useState:function(e){e=GD(e);var t=e.queue,r=dY.bind(null,Ft,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:zR,useDeferredValue:function(e,t){var r=hn();return BR(r,e,t)},useTransition:function(){var e=GD(!1);return e=uY.bind(null,Ft,e.queue,!0,!1),hn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var n=Ft,a=hn();if(Wt){if(r===void 0)throw Error(W(407));r=r()}else{if(r=t(),Te===null)throw Error(W(349));Jt&127||Y7(n,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,sB(X7.bind(null,n,i,e),[e]),n.flags|=2048,Gh(9,{destroy:void 0},j7.bind(null,n,i,r,t),null),r},useId:function(){var e=hn(),t=Te.identifierPrefix;if(Wt){var r=Wi,n=$i;r=(n&~(1<<32-sa(n)-1)).toString(32)+r,t="_"+t+"R_"+r,r=p1++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=Oit++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:VR,useFormState:aB,useActionState:aB,useOptimistic:function(e){var t=hn();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=GR.bind(null,Ft,!0,r),r.dispatch=t,[e,t]},useMemoCache:PR,useCacheRefresh:function(){return hn().memoizedState=zit.bind(null,Ft)},useEffectEvent:function(e){var t=hn(),r={impl:e};return t.memoizedState=r,function(){if(oe&2)throw Error(W(440));return r.impl.apply(void 0,arguments)}}},mY={readContext:Vr,use:Lx,useCallback:oY,useContext:Vr,useEffect:kR,useImperativeHandle:iY,useInsertionEffect:rY,useLayoutEffect:nY,useMemo:sY,useReducer:tS,useRef:tY,useState:function(){return tS(bs)},useDebugValue:zR,useDeferredValue:function(e,t){var r=qe();return lY(r,_e.memoizedState,e,t)},useTransition:function(){var e=tS(bs)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:gm(e),t]},useSyncExternalStore:F7,useId:vY,useHostTransitionStatus:VR,useFormState:iB,useActionState:iB,useOptimistic:function(e,t){var r=qe();return Z7(r,_e,e,t)},useMemoCache:PR,useCacheRefresh:hY,useEffectEvent:eY},Vit={readContext:Vr,use:Lx,useCallback:oY,useContext:Vr,useEffect:kR,useImperativeHandle:iY,useInsertionEffect:rY,useLayoutEffect:nY,useMemo:sY,useReducer:CT,useRef:tY,useState:function(){return CT(bs)},useDebugValue:zR,useDeferredValue:function(e,t){var r=qe();return _e===null?BR(r,e,t):lY(r,_e.memoizedState,e,t)},useTransition:function(){var e=CT(bs)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:gm(e),t]},useSyncExternalStore:F7,useId:vY,useHostTransitionStatus:VR,useFormState:oB,useActionState:oB,useOptimistic:function(e,t){var r=qe();return _e!==null?Z7(r,_e,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:PR,useCacheRefresh:hY,useEffectEvent:eY};function AT(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Ce({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var FD={enqueueSetState:function(e,t,r){e=e._reactInternals;var n=la(),a=Dl(n);a.payload=t,r!=null&&(a.callback=r),t=El(e,a,n),t!==null&&(kn(t,e,n),gg(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=la(),a=Dl(n);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=El(e,a,n),t!==null&&(kn(t,e,n),gg(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=la(),n=Dl(r);n.tag=2,t!=null&&(n.callback=t),t=El(e,n,r),t!==null&&(kn(t,e,r),gg(t,e,r))}};function lB(e,t,r,n,a,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,o):t.prototype&&t.prototype.isPureReactComponent?!Zg(r,n)||!Zg(a,i):!0}function uB(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&FD.enqueueReplaceState(t,t.state,null)}function qf(e,t){var r=t;if("ref"in t){r={};for(var n in t)n!=="ref"&&(r[n]=t[n])}if(e=e.defaultProps){r===t&&(r=Ce({},r));for(var a in e)r[a]===void 0&&(r[a]=e[a])}return r}function _Y(e){o1(e)}function SY(e){console.error(e)}function bY(e){o1(e)}function y1(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function fB(e,t,r){try{var n=e.onCaughtError;n(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function YD(e,t,r){return r=Dl(r),r.tag=3,r.payload={element:null},r.callback=function(){y1(e,t)},r}function xY(e){return e=Dl(e),e.tag=3,e}function wY(e,t,r,n){var a=r.type.getDerivedStateFromError;if(typeof a=="function"){var i=n.value;e.payload=function(){return a(i)},e.callback=function(){fB(t,r,n)}}var o=r.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){fB(t,r,n),typeof a!="function"&&(Rl===null?Rl=new Set([this]):Rl.add(this));var s=n.stack;this.componentDidCatch(n.value,{componentStack:s!==null?s:""})})}function Git(e,t,r,n,a){if(r.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=r.alternate,t!==null&&jf(t,r,a,!0),r=jr.current,r!==null){switch(r.tag){case 31:case 13:case 19:return an===null?C1():r.alternate===null&&Ye===0&&(Ye=3),r.flags&=-257,r.flags|=65536,r.lanes=a,n===c1?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([n]):t.add(n),IT(e,n,a)),!1;case 22:return r.flags|=65536,n===c1?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([n]):r.add(n)),IT(e,n,a)),!1}throw Error(W(435,r.tag))}return IT(e,n,a),C1(),!1}if(Wt)return t=jr.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==RD&&(e=Error(W(422),{cause:n}),Kg(Ia(e,r)))):(n!==RD&&(t=Error(W(423),{cause:n}),Kg(Ia(t,r))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=Ia(n,r),a=YD(e.stateNode,n,a),TT(e,a),Ye!==4&&(Ye=2)),!1;var i=Error(W(520),{cause:n});if(i=Ia(i,r),wg===null?wg=[i]:wg.push(i),Ye!==4&&(Ye=2),t===null)return!0;n=Ia(n,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=a&-a,r.lanes|=e,e=YD(r.stateNode,n,e),TT(r,e),!1;case 1:if(t=r.type,i=r.stateNode,!(r.flags&128)&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Rl===null||!Rl.has(i))))return r.flags|=65536,a&=-a,r.lanes|=a,a=xY(a),wY(a,e,r,n),TT(r,a),!1;break;case 22:if(r.memoizedState!==null)return r.flags|=65536,!1}r=r.return}while(r!==null);return!1}var HR=Error(W(461)),rr=!1;function ur(e,t,r,n){t.child=e===null?z7(t,null,r,n):Wf(t,e.child,r,n)}function cB(e,t,r,n,a){r=r.render;var i=t.ref;if("ref"in n){var o={};for(var s in n)s!=="ref"&&(o[s]=n[s])}else o=n;return Xf(t),n=LR(e,t,r,o,i,a),s=OR(),e!==null&&!rr?(RR(e,t,a),xs(e,t,a)):(Wt&&s&&Mx(t),t.flags|=1,ur(e,t,n,a),t.child)}function vB(e,t,r,n,a){if(e===null){var i=r.type;return typeof i=="function"&&!bR(i)&&i.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=i,TY(e,t,i,n,a)):(e=K_(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!FR(e,a)){var o=i.memoizedProps;if(r=r.compare,r=r!==null?r:Zg,r(o,n)&&e.ref===t.ref)return xs(e,t,a)}return t.flags|=1,e=as(i,n),e.ref=t.ref,e.return=t,t.child=e}function TY(e,t,r,n,a){if(e!==null){var i=e.memoizedProps;if(Zg(i,n)&&e.ref===t.ref)if(rr=!1,t.pendingProps=n=i,FR(e,a))e.flags&131072&&(rr=!0);else return t.lanes=e.lanes,xs(e,t,a)}return jD(e,t,r,n,a)}function CY(e,t,r,n){var a=n.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if(t.flags&128){if(i=i!==null?i.baseLanes|r:r,e!==null){for(n=t.child=e.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~i}else n=0,t.child=null;return hB(e,t,i,r,n)}if(r&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&J_(t,i!==null?i.cachePool:null),i!==null?eB(t,i):BD(),G7(t);else return n=t.lanes=536870912,hB(e,t,i!==null?i.baseLanes|r:r,r,n)}else i!==null?(J_(t,i.cachePool),eB(t,i),Ol(),t.memoizedState=null):(e!==null&&J_(t,null),BD(),Ol());return ur(e,t,a,r),t.child}function Sg(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function hB(e,t,r,n,a){var i=TR();return i=i===null?null:{parent:er._currentValue,pool:i},t.memoizedState={baseLanes:r,cachePool:i},e!==null&&J_(t,null),BD(),G7(t),e!==null&&jf(e,t,n,!0),t.childLanes=a,null}function rS(e,t){return t=Ix({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function dB(e,t,r){return Wf(t,e.child,null,r),e=rS(t,t.pendingProps),e.flags|=2,Wn(t),t.memoizedState=null,e}function Hit(e,t,r){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Wt){if(n.mode==="hidden")return e=rS(t,n),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Sg(null,e);if(VD(t),(e=Ee)?(e=T9(e,Pa),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$l!==null?{id:$i,overflow:Wi}:null,retryLane:536870912,hydrationErrors:null},r=L7(e),r.return=t,t.child=r,Dr=t,Ee=null)):e=null,e===null)throw Wl(t);return t.lanes=536870912,null}return rS(t,n)}var i=e.memoizedState;if(i!==null){var o=i.dehydrated;if(VD(t),a)if(t.flags&256)t.flags&=-257,t=dB(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(W(558));else if(rr||jf(e,t,r,!1),a=(r&e.childLanes)!==0,rr||a){if(Zl.current===null){if(n=Te,n!==null&&(o=e7(n,r),o!==0&&o!==i.retryLane))throw i.retryLane=o,Bc(e,o),kn(n,e,o),HR;C1()}t=dB(e,t,r)}else e=i.treeContext,Ee=Va(o.nextSibling),Dr=t,Wt=!0,Ml=null,Pa=!1,e!==null&&R7(t,e),t=rS(t,n),t.flags|=134221824;return t}return e=as(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Iv(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(W(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function jD(e,t,r,n,a){return Xf(t),r=LR(e,t,r,n,void 0,a),n=OR(),e!==null&&!rr?(RR(e,t,a),xs(e,t,a)):(Wt&&n&&Mx(t),t.flags|=1,ur(e,t,r,a),t.child)}function pB(e,t,r,n,a,i){return Xf(t),t.updateQueue=null,r=U7(t,n,r,a),H7(e),n=OR(),e!==null&&!rr?(RR(e,t,i),xs(e,t,i)):(Wt&&n&&Mx(t),t.flags|=1,ur(e,t,r,i),t.child)}function gB(e,t,r,n,a){if(Xf(t),t.stateNode===null){var i=Qv,o=r.contextType;typeof o=="object"&&o!==null&&(i=Vr(o)),i=new r(n,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=FD,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=n,i.state=t.memoizedState,i.refs={},AR(t),o=r.contextType,i.context=typeof o=="object"&&o!==null?Vr(o):Qv,i.state=t.memoizedState,o=r.getDerivedStateFromProps,typeof o=="function"&&(AT(t,r,o,n),i.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&FD.enqueueReplaceState(i,i.state,null),mg(t,n,i,a),yg(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){i=t.stateNode;var s=t.memoizedProps,l=qf(r,s);i.props=l;var u=i.context,f=r.contextType;o=Qv,typeof f=="object"&&f!==null&&(o=Vr(f));var c=r.getDerivedStateFromProps;f=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s||u!==o)&&uB(t,i,n,o),ll=!1;var v=t.memoizedState;i.state=v,mg(t,n,i,a),yg(),u=t.memoizedState,s||v!==u||ll?(typeof c=="function"&&(AT(t,r,c,n),u=t.memoizedState),(l=ll||lB(t,r,l,n,v,u,o))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),i.props=n,i.state=u,i.context=o,n=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,kD(e,t),o=t.memoizedProps,f=qf(r,o),i.props=f,c=t.pendingProps,v=i.context,u=r.contextType,l=Qv,typeof u=="object"&&u!==null&&(l=Vr(u)),s=r.getDerivedStateFromProps,(u=typeof s=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==c||v!==l)&&uB(t,i,n,l),ll=!1,v=t.memoizedState,i.state=v,mg(t,n,i,a),yg();var h=t.memoizedState;o!==c||v!==h||ll||e!==null&&e.dependencies!==null&&f1(e.dependencies)?(typeof s=="function"&&(AT(t,r,s,n),h=t.memoizedState),(f=ll||lB(t,r,f,n,v,h,l)||e!==null&&e.dependencies!==null&&f1(e.dependencies))?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,h,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,h,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=h),i.props=n,i.state=h,i.context=l,n=f):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),n=!1)}return i=n,Iv(e,t),n=(t.flags&128)!==0,i||n?(i=t.stateNode,r=n&&typeof r.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&n?(t.child=Wf(t,e.child,null,a),t.child=Wf(t,null,r,a)):ur(e,t,r,a),t.memoizedState=i.state,e=t.child):e=xs(e,t,a),e}function yB(e,t,r,n){return Yf(),t.flags|=256,ur(e,t,r,n),t.child}var XD={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $D(e){return{baseLanes:e,cachePool:P7()}}function WD(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=ta),e}function AY(e,t,r){var n=t.pendingProps,a=!1,i=(t.flags&128)!==0,o;if((o=i)||(o=e!==null&&e.memoizedState===null?!1:(Ur.current&2)!==0),o&&(a=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(Wt){if(a?Ll(t):Ol(),(e=Ee)?(e=T9(e,Pa),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$l!==null?{id:$i,overflow:Wi}:null,retryLane:536870912,hydrationErrors:null},r=L7(e),r.return=t,t.child=r,Dr=t,Ee=null)):e=null,e===null)throw Wl(t);return eI(e)?t.lanes=32:t.lanes=536870912,null}return i=n.children,n=n.fallback,a?(Ol(),a=t.mode,i=Ix({mode:"hidden",children:i},a),n=Af(n,a,r,null),i.return=t,n.return=t,i.sibling=n,t.child=i,n=t.child,n.memoizedState=$D(r),n.childLanes=WD(e,o,r),t.memoizedState=XD,Sg(null,n)):(Ll(t),UR(t,i))}var s=e.memoizedState;if(s!==null){var l=s.dehydrated;if(l!==null)return Uit(e,t,i,o,n,l,s,r)}return a?(Ol(),a=n.fallback,i=t.mode,s=e.child,l=s.sibling,n=as(s,{mode:"hidden",children:n.children}),n.subtreeFlags=s.subtreeFlags&1206910976,l!==null?a=as(l,a):(a=Af(a,i,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,Sg(null,n),n=t.child,a=e.child.memoizedState,a===null?a=$D(r):(i=a.cachePool,i!==null?(s=er._currentValue,i=i.parent!==s?{parent:s,pool:s}:i):i=P7(),a={baseLanes:a.baseLanes|r,cachePool:i}),n.memoizedState=a,n.childLanes=WD(e,o,r),t.memoizedState=XD,Sg(e.child,n)):(Ll(t),r=e.child,e=r.sibling,r=as(r,{mode:"visible",children:n.children}),r.return=t,r.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=r,t.memoizedState=null,r)}function UR(e,t){return t=Ix({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ix(e,t){return e=On(22,e,null,t),e.lanes=0,e}function s0(e,t,r){return Wf(t,e.child,null,r),e=UR(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Uit(e,t,r,n,a,i,o,s){if(r)return t.flags&256?(Ll(t),t.flags&=-257,s0(e,t,s)):t.memoizedState!==null?(Ol(),t.child=e.child,t.flags|=128,null):(Ol(),i=a.fallback,o=t.mode,a=Ix({mode:"visible",children:a.children},o),i=Af(i,o,s,null),i.flags|=2,a.return=t,i.return=t,a.sibling=i,t.child=a,Wf(t,e.child,null,s),a=t.child,a.memoizedState=$D(s),a.childLanes=WD(e,n,s),t.memoizedState=XD,Sg(null,a));if(Ll(t),eI(i)){if(n=i.nextSibling&&i.nextSibling.dataset,n)var l=n.dgst;return n=l,n!==""&&(a=Error(W(419)),a.stack="",a.digest=n,Kg({value:a,source:null,stack:null})),s0(e,t,s)}if(rr||jf(e,t,s,!1),n=(s&e.childLanes)!==0,rr||n){if(Zl.current!==null)return s0(e,t,s);if(n=Te,n!==null&&(a=e7(n,s),a!==0&&a!==o.retryLane))throw o.retryLane=a,Bc(e,a),kn(n,e,a),HR;return _2(i)||C1(),s0(e,t,s)}return _2(i)?(t.flags|=192,t.child=e.child,null):(e=o.treeContext,Ee=Va(i.nextSibling),Dr=t,Wt=!0,Ml=null,Pa=!1,e!==null&&R7(t,e),t=UR(t,a.children),t.flags|=134221824,t)}function mB(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Q_(e.return,t,r)}function _B(e){for(var t=null;e!==null;){var r=e.alternate;r!==null&&h1(r)===null&&(t=e),e=e.sibling}return t}function l0(e,t,r,n,a,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a,treeForkCount:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=a,o.treeForkCount=i)}function MT(e){var t=e.child;for(e.child=null;t!==null;){var r=t.sibling;t.sibling=e.child,e.child=t,t=r}}function ZD(e,t,r){var n=t.pendingProps,a=n.revealOrder,i=n.tail;n=n.children;var o=Ur.current;if(t.flags&128)return Jg(t,o),null;var s=(o&2)!==0;if(s?(o=o&1|2,t.flags|=128):o&=1,Jg(t,o),a==="backwards"&&e!==null?(MT(e),ur(e,t,n,r),MT(e)):ur(e,t,n,r),n=Wt?qg:0,!s&&e!==null&&e.flags&128)t:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mB(e,r,t);else if(e.tag===19)mB(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"backwards":r=_B(t.child),r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null,MT(t)),l0(t,!0,a,null,i,n);break;case"unstable_legacy-backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&h1(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}l0(t,!0,r,null,i,n);break;case"together":l0(t,!1,null,null,void 0,n);break;case"independent":t.memoizedState=null;break;default:r=_B(t.child),r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),l0(t,!1,a,r,i,n)}return t.child}function SB(e,t,r){var n=t.pendingProps;return pl(t,t.type,n.value),ur(e,t,n.children,r),t.child}function xs(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Kl|=t.lanes,!(r&t.childLanes))if(e!==null){if(jf(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(W(153));if(t.child!==null){for(e=t.child,r=as(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=as(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function FR(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&f1(e)))}function Fit(e,t,r){switch(t.tag){case 3:r1(t,t.stateNode.containerInfo),pl(t,er,e.memoizedState.cache),Yf();break;case 27:case 5:xD(t);break;case 4:r1(t,t.stateNode.containerInfo);break;case 10:pl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,VD(t),null;break;case 13:var n=t.memoizedState;if(n!==null){if(n.dehydrated!==null)return Ll(t),t.flags|=128,null;n=jf(e,t,r,!1);var a=t.child.childLanes;return n||r&a?AY(e,t,r):(Ll(t),e=xs(e,t,r),e!==null?e.sibling:null)}Ll(t);break;case 19:if(t.flags&128)return ZD(e,t,r);if(a=(e.flags&128)!==0,n=(r&t.childLanes)!==0,n||(jf(e,t,r,!1),n=(r&t.childLanes)!==0),a){if(n)return ZD(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Jg(t,Ur.current),n)break;return null;case 22:return t.lanes=0,CY(e,t,r,t.pendingProps);case 24:pl(t,er,e.memoizedState.cache)}return xs(e,t,r)}function MY(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)rr=!0;else{if(!FR(e,r)&&!(t.flags&128))return rr=!1,Fit(e,t,r);rr=!!(e.flags&131072)}else rr=!1,Wt&&t.flags&1048576&&O7(t,qg,t.index);switch(t.lanes=0,t.tag){case 16:t:{var n=t.pendingProps;if(e=tf(t.elementType),t.type=e,typeof e=="function")bR(e)?(n=qf(e,n),t.tag=1,t=gB(null,t,e,n,r)):(t.tag=0,t=jD(null,t,e,n,r));else{if(e!=null){var a=e.$$typeof;if(a===lR){t.tag=11,t=cB(null,t,e,n,r);break t}else if(a===uR){t.tag=14,t=vB(null,t,e,n,r);break t}else if(a===ji){t.tag=10,t.type=e,t=SB(null,t,r);break t}}throw t=SD(e)||e,Error(W(306,t,""))}}return t;case 0:return jD(e,t,t.type,t.pendingProps,r);case 1:return n=t.type,a=qf(n,t.pendingProps),gB(e,t,n,a,r);case 3:t:{if(r1(t,t.stateNode.containerInfo),e===null)throw Error(W(387));n=t.pendingProps;var i=t.memoizedState;a=i.element,kD(e,t),mg(t,n,null,r);var o=t.memoizedState;if(n=o.cache,pl(t,er,n),n!==i.cache&&PD(t,[er],r,!0),yg(),n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=yB(e,t,n,r);break t}else if(n!==a){a=Ia(Error(W(424)),t),Kg(a),t=yB(e,t,n,r);break t}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ee=Va(e.firstChild),Dr=t,Wt=!0,Ml=null,Pa=!0,r=z7(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|134221824,r=r.sibling}else{if(Yf(),n===a){t=xs(e,t,r);break t}ur(e,t,n,r)}t=t.child}return t;case 26:return Iv(e,t),e===null?(r=jB(t.type,null,t.pendingProps,null))?t.memoizedState=r:Wt||(t.stateNode=g9(t.type,t.pendingProps,Al.current,t)):t.memoizedState=jB(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return xD(t),e===null&&Wt&&(n=t.stateNode=C9(t.type,t.pendingProps,Al.current),Dr=t,Pa=!0,a=Ee,du(t.type)?(S2=a,Ee=Va(n.firstChild)):Ee=a),ur(e,t,t.pendingProps.children,r),Iv(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Wt&&((a=n=Ee)&&(n=zot(n,t.type,t.pendingProps,Pa),n!==null?(t.stateNode=n,Dr=t,Ee=Va(n.firstChild),Pa=!1,a=!0):a=!1),a||Wl(t)),xD(t),a=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,n=i.children,g2(a,i)?n=null:o!==null&&g2(a,o)&&(t.flags|=32),t.memoizedState!==null&&(a=LR(e,t,Rit,null,null,r),$h._currentValue=a),Iv(e,t),ur(e,t,n,r),t.child;case 6:return e===null&&Wt&&((e=r=Ee)&&(r=Bot(r,t.pendingProps,Pa),r!==null?(t.stateNode=r,Dr=t,Ee=null,e=!0):e=!1),e||Wl(t)),null;case 13:return AY(e,t,r);case 4:return r1(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Wf(t,null,n,r):ur(e,t,n,r),t.child;case 11:return cB(e,t,t.type,t.pendingProps,r);case 7:return n=t.pendingProps,Iv(e,t),ur(e,t,n,r),t.child;case 8:return ur(e,t,t.pendingProps.children,r),t.child;case 12:return ur(e,t,t.pendingProps.children,r),t.child;case 10:return SB(e,t,r);case 9:return a=t.type._context,n=t.pendingProps.children,Xf(t),a=Vr(a),n=n(a),t.flags|=1,ur(e,t,n,r),t.child;case 14:return vB(e,t,t.type,t.pendingProps,r);case 15:return TY(e,t,t.type,t.pendingProps,r);case 19:return ZD(e,t,r);case 31:return Hit(e,t,r);case 22:return CY(e,t,r,t.pendingProps);case 24:return Xf(t),n=Vr(er),e===null?(a=TR(),a===null&&(a=Te,i=wR(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=r),a=i),t.memoizedState={parent:n,cache:a},AR(t),pl(t,er,a)):(e.lanes&r&&(kD(e,t),mg(t,null,null,r),yg()),a=e.memoizedState,i=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),pl(t,er,n)):(n=i.cache,pl(t,er,n),n!==a.cache&&PD(t,[er],r,!0))),ur(e,t,t.pendingProps.children,r),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),n=t.pendingProps,n.name!=null&&n.name!=="auto"?t.flags|=e===null?18882560:18874368:Wt&&Mx(t),e!==null&&e.memoizedProps.name!==n.name?t.flags|=4194816:Iv(e,t),ur(e,t,n.children,r),t.child;case 29:throw t.pendingProps}throw Error(W(156,t.tag))}function Bo(e){e.flags|=4}function DT(e,t,r,n,a){var i;if((i=(e.mode&32)!==0)&&(i=r===null?WB(t,n):WB(t,n)&&(n.src!==r.src||n.srcSet!==r.srcSet)),i){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(r9())e.flags|=8192;else throw Df=c1,CR}else e.flags&=-16777217}function bB(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!E9(t))if(r9())e.flags|=8192;else throw Df=c1,CR}function u0(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Q8():536870912,e.lanes|=t,Hh|=t)}function ip(e,t){if(!Wt)switch(e.tailMode){case"visible":break;case"collapsed":for(var r=e.tail,n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null;break;default:for(t=e.tail,r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null}}function Me(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&1206910976,n|=a.flags&1206910976,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Yit(e,t,r){var n=t.pendingProps;switch(xR(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return Me(t),null;case 3:return r=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),is(er),zh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(rv(t)?Bo(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,wT())),Me(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(Bo(t),i!==null?(Me(t),bB(t,i)):(Me(t),DT(t,a,null,n,r))):i?i!==e.memoizedState?(Bo(t),Me(t),bB(t,i)):(Me(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Bo(t),Me(t),DT(t,a,e,n,r)),null;case 27:if(n1(t),r=Al.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Bo(t);else{if(!n){if(t.stateNode===null)throw Error(W(166));return Me(t),t.subtreeFlags&=-33554433,null}e=ao.current,rv(t)?Wz(t):(e=C9(a,n,r),t.stateNode=e,Bo(t))}return Me(t),t.subtreeFlags&=-33554433,null;case 5:if(n1(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Bo(t);else{if(!n){if(t.stateNode===null)throw Error(W(166));return Me(t),t.subtreeFlags&=-33554433,null}if(i=ao.current,rv(t))Wz(t);else{var o=ny(Al.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?o.createElement("select",{is:n.is}):o.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?o.createElement(a,{is:n.is}):o.createElement(a)}}i[Br]=t,i[Gn]=n;t:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break t;for(;o.sibling===null;){if(o.return===null||o.return===t)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=i;t:switch(Fr(i,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&Bo(t)}}return Me(t),t.subtreeFlags&=-33554433,DT(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Bo(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(W(166));if(e=Al.current,rv(t)){if(e=t.stateNode,r=t.memoizedProps,n=null,a=Dr,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[Br]=t,e=!!(e.nodeValue===r||n!==null&&n.suppressHydrationWarning===!0||d9(e.nodeValue,r)),e||Wl(t,!0)}else e=ny(e).createTextNode(n),e[Br]=t,t.stateNode=e}return Me(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(n=rv(t),r!==null){if(e===null){if(!n)throw Error(W(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(W(557));e[Br]=t}else Yf(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Me(t),e=!1}else r=wT(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(Wn(t),t):(Wn(t),null);if(t.flags&128)throw Error(W(558))}return Me(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=rv(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(W(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(W(317));a[Br]=t}else Yf(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Me(t),a=!1}else a=wT(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Wn(t),t):(Wn(t),null)}return Wn(t),t.flags&128?(t.lanes=r,t):(r=n!==null,e=e!==null&&e.memoizedState!==null,r&&(n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),u0(t,t.updateQueue),Me(t),null);case 4:return zh(),e===null&&QR(t.stateNode.containerInfo),t.flags|=67108864,Me(t),null;case 10:return is(t.type),Me(t),null;case 19:if(DR(t),n=t.memoizedState,n===null)return Me(t),null;if(a=(t.flags&128)!==0,i=n.rendering,i===null)if(a)ip(n,!1);else{if(Ye!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=h1(e),i!==null){for(t.flags|=128,ip(n,!1),e=i.updateQueue,t.updateQueue=e,u0(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)E7(r,e),r=r.sibling;return Jg(t,Ur.current&1|2),Wt&&$o(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&ia()>w1&&(t.flags|=128,a=!0,ip(n,!1),t.lanes=4194304)}else{if(!a)if(e=h1(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,u0(t,e),ip(n,!0),n.tail===null&&n.tailMode!=="collapsed"&&n.tailMode!=="visible"&&!i.alternate&&!Wt)return Me(t),null}else 2*ia()-n.renderingStartTime>w1&&r!==536870912&&(t.flags|=128,a=!0,ip(n,!1),t.lanes=4194304);n.isBackwards?(i.sibling=t.child,t.child=i):(e=n.last,e!==null?e.sibling=i:t.child=i,n.last=i)}if(n.tail!==null){e=n.tail;t:{for(r=e;r!==null;){if(r.alternate!==null){r=!1;break t}r=r.sibling}r=!0}return n.rendering=e,n.tail=e.sibling,n.renderingStartTime=ia(),e.sibling=null,i=Ur.current,i=a?i&1|2:i&1,n.tailMode==="visible"||n.tailMode==="collapsed"||!r||Wt?Jg(t,i):(r=i,Oe(jr,t),Oe(Ur,r),an===null&&(an=t)),Wt&&$o(t,n.treeForkCount),e}return Me(t),null;case 22:case 23:return Wn(t),MR(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?r&536870912&&!(t.flags&128)&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),r=t.updateQueue,r!==null&&u0(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==r&&(t.flags|=2048),e!==null&&Hr(Mf),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),is(er),Me(t),null;case 25:return null;case 30:return t.flags|=33554432,Me(t),null}throw Error(W(156,t.tag))}function jit(e,t){switch(xR(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return is(er),zh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return n1(t),null;case 31:if(t.memoizedState!==null){if(Wn(t),t.alternate===null)throw Error(W(340));Yf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Wn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Yf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return DR(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return zh(),null;case 10:return is(t.type),null;case 22:case 23:return Wn(t),MR(),e!==null&&Hr(Mf),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return is(er),null;case 25:return null;default:return null}}function DY(e,t){switch(xR(t),t.tag){case 3:is(er),zh();break;case 26:case 27:case 5:n1(t);break;case 4:zh();break;case 31:t.memoizedState!==null&&Wn(t);break;case 13:Wn(t);break;case 19:DR(t);break;case 10:is(t.type);break;case 22:case 23:Wn(t),MR(),e!==null&&Hr(Mf);break;case 24:is(er)}}function ym(e,t){try{var r=t.updateQueue,n=r!==null?r.lastEffect:null;if(n!==null){var a=n.next;r=a;do{if((r.tag&e)===e){n=void 0;var i=r.create,o=r.inst;n=i(),o.destroy=n}r=r.next}while(r!==a)}}catch(s){ge(t,t.return,s)}}function ql(e,t,r){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){var o=n.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,a=t;var l=r,u=s;try{u()}catch(f){ge(a,l,f)}}}n=n.next}while(n!==i)}}catch(f){ge(t,t.return,f)}}function EY(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{V7(t,r)}catch(n){ge(e,e.return,n)}}}function LY(e,t,r){r.props=qf(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(n){ge(e,t,n)}}function Bi(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:var a=e.stateNode,i=_s(e.memoizedProps,a);(a.ref===null||a.ref.name!==i)&&(a.ref=_9(i)),n=a.ref;break;case 7:if(e.stateNode===null){var o=new ha(e);Vn(e.child,!1,Not,o,void 0,void 0),e.stateNode=o}n=e.stateNode;break;default:n=e.stateNode}typeof r=="function"?e.refCleanup=r(n):r.current=n}}catch(s){ge(e,t,s)}}function Nr(e,t){var r=e.ref,n=e.refCleanup;if(r!==null)if(typeof n=="function")try{n()}catch(a){ge(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(a){ge(e,t,a)}else r.current=null}function m1(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var r=0;r<t.length;r++)w9(e.stateNode,t[r])}function xB(e){for(var t=e.return;t!==null&&(jR(t)&&w9(e.stateNode,t.stateNode),!YR(t));)t=t.return}function bg(e){for(var t=e.return;t!==null&&(jR(t)&&kot(e.stateNode,t.stateNode),!YR(t));)t=t.return}function YR(e){return e.tag===5||e.tag===3||e.tag===27}function jR(e){return e&&e.tag===7&&e.stateNode!==null}function qD(e){var t=e.type,r=e.memoizedProps,n=e.stateNode;try{t:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&n.focus();break t;case"img":r.src?n.src=r.src:r.srcSet&&(n.srcset=r.srcSet)}}catch(a){ge(e,e.return,a)}}function ET(e,t,r){try{var n=e.stateNode;yot(n,e.type,r,t),n[Gn]=t}catch(a){ge(e,e.return,a)}}function OY(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&du(e.type)||e.tag===4}function LT(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||OY(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&du(e.type)||e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function KD(e,t,r,n){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(a,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(a),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Xi)),m1(e,n),ae=!0;else if(a!==4&&(a===27&&(m1(e,n),n=null,du(e.type)&&(r=e.stateNode,t=null)),e=e.child,e!==null))for(KD(e,t,r,n),e=e.sibling;e!==null;)KD(e,t,r,n),e=e.sibling}function _1(e,t,r,n){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?r.insertBefore(a,t):r.appendChild(a),m1(e,n),ae=!0;else if(a!==4&&(a===27&&(m1(e,n),n=null,du(e.type)&&(r=e.stateNode)),e=e.child,e!==null))for(_1(e,t,r,n),e=e.sibling;e!==null;)_1(e,t,r,n),e=e.sibling}function RY(e){var t=e.stateNode,r=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Fr(t,n,r),t[Br]=e,t[Gn]=r}catch(i){ge(e,e.return,i)}}var S1=!1,Kn=null;function wB(e){(e.tag===30||e.subtreeFlags&33554432)&&(S1=!0)}var Gi=null;function TB(){var e=Gi;return Gi=null,e}var Ln=0;function Td(e,t,r,n,a){return Ln=0,IY(e.child,t,r,n,a)}function IY(e,t,r,n,a){for(var i=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(n!==null){var s=y2(o);n.push(s),s.view&&(i=!0)}else i||y2(o).view&&(i=!0);S1=!0,y9(o,Ln===0?t:t+"_"+Ln,r),Ln++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&a||IY(e.child,t,r,n,a)&&(i=!0));e=e.sibling}return i}function go(e,t){for(;e!==null;)e.tag===5?m9(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||go(e.child,t)),e=e.sibling}function nS(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(nS(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(W(544));var r=t.name;t=zs(t.default,t.share),t!=="none"&&(Td(e,r,t,null,!1)||go(e.child,!1))}e=e.sibling}}function QD(e,t){if(e.tag===30){var r=e.stateNode,n=e.memoizedProps,a=_s(n,r),i=zs(n.default,r.paired?n.share:n.enter);i!=="none"?Td(e,a,i,null,!1)?(nS(e),r.paired||t||Uh(e,n.onEnter)):go(e.child,!1):nS(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)QD(e,t),e=e.sibling;else nS(e)}function JD(e){if(Kn!==null&&Kn.size!==0){var t=Kn;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var r=e.memoizedProps,n=r.name;if(n!=null&&n!=="auto"){var a=t.get(n);if(a!==void 0){var i=zs(r.default,r.share);if(i!=="none"&&(Td(e,n,i,null,!1)?(i=e.stateNode,a.paired=i,i.paired=a,Uh(e,r.onShare)):go(e.child,!1)),t.delete(n),t.size===0)break}}}JD(e)}e=e.sibling}}}function t2(e){if(e.tag===30){var t=e.memoizedProps,r=_s(t,e.stateNode),n=Kn!==null?Kn.get(r):void 0,a=zs(t.default,n!==void 0?t.share:t.exit);a!=="none"&&(Td(e,r,a,null,!1)?n!==void 0?(a=e.stateNode,n.paired=a,a.paired=n,Kn.delete(r),Uh(e,t.onShare)):Uh(e,t.onExit):go(e.child,!1)),Kn!==null&&JD(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)t2(e),e=e.sibling;else Kn!==null&&JD(e)}function PY(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,r=_s(t,e.stateNode);t=zs(t.default,t.update),e.flags&=-5,t!=="none"&&Td(e,r,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&PY(e);e=e.sibling}}function e2(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,go(e.child,!1))}e2(e)}e=e.sibling}}function aS(e){if(e.tag===30)e.stateNode.paired=null,go(e.child,!1),e2(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)aS(e),e=e.sibling;else e2(e)}function NY(e){for(e=e.child;e!==null;)e.tag===30?go(e.child,!1):e.subtreeFlags&33554432&&NY(e),e=e.sibling}function XR(e,t,r,n,a,i,o){for(var s=!1;t!==null;){if(t.tag===5){var l=t.stateNode;if(i!==null&&Ln<i.length){var u=i[Ln],f=y2(l);(u.view||f.view)&&(s=!0);var c;if(c=(e.flags&4)===0)if(f.clip)c=!0;else{c=u.rect;var v=f.rect;c=c.y!==v.y||c.x!==v.x||c.height!==v.height||c.width!==v.width}c&&(e.flags|=4),f.abs?f=!u.abs:(u=u.rect,f=f.rect,f=u.height!==f.height||u.width!==f.width),f&&(e.flags|=32)}else e.flags|=32;e.flags&4&&y9(l,Ln===0?r:r+"_"+Ln,a),s&&e.flags&4||(Gi===null&&(Gi=[]),Gi.push(l,Ln===0?n:n+"_"+Ln,t.memoizedProps)),Ln++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:XR(e,t.child,r,n,a,i,o)&&(s=!0));t=t.sibling}return s}function kY(e,t){for(e=e.child;e!==null;){if(e.tag===30){var r=e.memoizedProps,n=e.stateNode,a=_s(r,n),i=zs(r.default,r.update),o;o=e.memoizedState,e.memoizedState=null,n=e;var s=e.child;Ln=0,a=XR(n,s,a,a,i,o,!1),e.flags&4&&a&&Uh(e,r.onUpdate)}else e.subtreeFlags&33554432&&kY(e);e=e.sibling}}var br=!1,ve=!1,Ti=!1,OT=!1,CB=typeof WeakSet=="function"?WeakSet:Set,xr=null,Ci=!1,$p=!1,b1=!1,r2=!1;function Xit(e,t,r){if(e=e.containerInfo,d2=Wh,e=b7(e),mR(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else t:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var i=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break t}var s=0,l=-1,u=-1,f=0,c=0,v=e,h=null;e:for(;;){for(var d;v!==n||i!==0&&v.nodeType!==3||(l=s+i),v!==o||a!==0&&v.nodeType!==3||(u=s+a),v.nodeType===3&&(s+=v.nodeValue.length),(d=v.firstChild)!==null;)h=v,v=d;for(;;){if(v===e)break e;if(h===n&&++f===i&&(l=s),h===o&&++c===a&&(u=s),(d=v.nextSibling)!==null)break;v=h,h=v.parentNode}v=d}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(p2={focusedElem:e,selectionRange:n},Wh=!1,r=(r&335544064)===r,xr=t,t=r?9270:1024;xr!==null;){if(e=xr,r&&(n=e.deletions,n!==null))for(i=0;i<n.length;i++)r&&t2(n[i]);if(e.alternate===null&&e.flags&2)r&&wB(e),f0(r);else{if(e.tag===22){if(n=e.alternate,e.memoizedState!==null){n!==null&&n.memoizedState===null&&r&&t2(n),f0(r);continue}else if(n!==null&&n.memoizedState!==null){r&&wB(e),f0(r);continue}}n=e.child,e.subtreeFlags&t&&n!==null?(n.return=e,xr=n):(r&&PY(e),f0(r))}}Kn=null}function f0(e){for(;xr!==null;){var t=xr,r=e,n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&n!==null){r=void 0,a=n.memoizedProps,n=n.memoizedState;var i=t.stateNode;try{var o=qf(t.type,a);r=i.getSnapshotBeforeUpdate(o,n),i.__reactInternalSnapshotBeforeUpdate=r}catch(s){ge(t,t.return,s)}}break;case 3:if(a&1024){if(n=t.stateNode.containerInfo,r=n.nodeType,r===9)m2(n);else if(r===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":m2(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:r&&n!==null&&(r=_s(n.memoizedProps,n.stateNode),a=t.memoizedProps,a=zs(a.default,a.update),a!=="none"&&Td(n,r,a,n.memoizedState=[],!0));break;default:if(a&1024)throw Error(W(163))}if(n=t.sibling,n!==null){n.return=t.return,xr=n;break}xr=t.return}}function zY(e,t,r){var n=r.flags;switch(r.tag){case 0:case 11:case 15:Ai(e,r),n&4&&ym(5,r);break;case 1:if(Ai(e,r),n&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(o){ge(r,r.return,o)}else{var a=qf(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){ge(r,r.return,o)}}n&64&&EY(r),n&512&&Bi(r,r.return);break;case 3:if(Ai(e,r),n&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{V7(e,t)}catch(o){ge(r,r.return,o)}}break;case 27:t===null&&n&4&&RY(r);case 26:case 5:Ai(e,r),t===null&&n&4&&qD(r),n&512&&Bi(r,r.return);break;case 12:Ai(e,r);break;case 31:Ai(e,r),n&4&&HY(e,r);break;case 13:Ai(e,r),n&4&&UY(e,r),n&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=aot.bind(null,r),Vot(e,r))));break;case 22:if(n=r.memoizedState!==null||br,!n){var i=t!==null&&t.memoizedState!==null||ve;t=br,a=ve,br=n,(ve=i)&&!a?(n=2,r.subtreeFlags&8772&&(n|=1),ti(e,r,n)):Ai(e,r),br=t,ve=a}break;case 30:Ai(e,r),n&512&&Bi(r,r.return);break;case 7:n&512&&Bi(r,r.return);default:Ai(e,r)}}function n2(e,t){for(e=e.child;e!==null;)BY(e,t),e=e.sibling}function BY(e,t){switch(e.tag){case 5:case 26:try{var r=e.stateNode;if(t){var n=r.style;typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"}else{var a=e.stateNode,i=e.memoizedProps.style,o=i!=null&&i.hasOwnProperty("display")?i.display:null;a.style.display=o==null||typeof o=="boolean"?"":(""+o).trim()}}catch(l){ge(e,e.return,l)}a2(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,ae=!0}catch(l){ge(e,e.return,l)}break;case 18:try{var s=e.stateNode;t?VB(s,!0):VB(e.stateNode,!1)}catch(l){ge(e,e.return,l)}break;case 22:case 23:e.memoizedState===null&&n2(e,t);break;default:n2(e,t)}}function a2(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){t:{var r=e,n=t;switch(r.tag){case 4:BY(r,n);break t;case 22:r.memoizedState===null&&a2(r,n);break t;default:a2(r,n)}}e=e.sibling}}function VY(e){var t=e.alternate;t!==null&&(e.alternate=null,VY(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Sx(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ke=null,Dn=!1;function Qa(e,t,r){for(r=r.child;r!==null;)GY(e,t,r),r=r.sibling}function GY(e,t,r){if(oa&&typeof oa.onCommitFiberUnmount=="function")try{oa.onCommitFiberUnmount(fm,r)}catch{}switch(r.tag){case 26:ve||Nr(r,t),Qa(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&!ve&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:ve||Nr(r,t),bg(r);var n=ke,a=Dn;du(r.type)&&(ke=r.stateNode,Dn=!1),Qa(e,t,r),A9(r.stateNode,r.type,r.memoizedProps),ke=n,Dn=a;break;case 5:ve||Nr(r,t),bg(r);case 6:if(r.tag===6&&bg(r),n=ke,a=Dn,ke=null,Qa(e,t,r),ke=n,Dn=a,ke!==null)if(Dn)try{(ke.nodeType===9?ke.body:ke.nodeName==="HTML"?ke.ownerDocument.body:ke).removeChild(r.stateNode),ae=!0}catch(i){ge(r,t,i)}else try{ke.removeChild(r.stateNode),ae=!0}catch(i){ge(r,t,i)}break;case 18:ke!==null&&(Dn?(e=ke,BB(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),Zh(e)):BB(ke,r.stateNode));break;case 4:n=ke,a=Dn,ke=r.stateNode.containerInfo,Dn=!0,Qa(e,t,r),ke=n,Dn=a;break;case 0:case 11:case 14:case 15:ql(2,r,t),ve||ql(4,r,t),Qa(e,t,r);break;case 1:ve||(Nr(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"&&LY(r,t,n)),Qa(e,t,r);break;case 21:Qa(e,t,r);break;case 22:ve=(n=ve)||r.memoizedState!==null,Qa(e,t,r),ve=n;break;case 30:Nr(r,t),Qa(e,t,r);break;case 7:ve||Nr(r,t),Qa(e,t,r);break;default:Qa(e,t,r)}}function HY(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Zh(e)}catch(r){ge(t,t.return,r)}}}function UY(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Zh(e)}catch(r){ge(t,t.return,r)}}function $it(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new CB),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new CB),t;default:throw Error(W(435,e.tag))}}function c0(e,t){var r=$it(e);t.forEach(function(n){if(!r.has(n)){r.add(n);var a=iot.bind(null,e,n);n.then(a,a)}})}function fn(e,t,r){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],o=e,s=t,l=s;t:for(;l!==null;){switch(l.tag){case 27:if(du(l.type)){ke=l.stateNode,Dn=!1;break t}break;case 5:ke=l.stateNode,Dn=!1;break t;case 3:case 4:ke=l.stateNode.containerInfo,Dn=!0;break t}l=l.return}if(ke===null)throw Error(W(160));GY(o,s,i),ke=null,Dn=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)FY(t,e,r),t=t.sibling}var ii=null;function FY(e,t,r){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(n=e.updateQueue,n=n!==null?n.events:null,n!==null))for(var i=0;i<n.length;i++){var o=n[i];o.ref.impl=o.nextImpl}fn(t,e,r),cn(e),a&4&&(ql(3,e,e.return),ym(3,e),ql(5,e,e.return));break;case 1:fn(t,e,r),cn(e),a&512&&(ve||n===null||Nr(n,n.return)),a&64&&br&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?t:r.concat(t))));break;case 26:if(i=ii,fn(t,e,r),cn(e),a&512&&(ve||n===null||Nr(n,n.return)),a&4)if(a=n!==null?n.memoizedState:null,r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null)if(br)e.stateNode=g9(e.type,e.memoizedProps,t.containerInfo,e);else{t:{t=e.type,r=e.memoizedProps,a=i.ownerDocument||i;e:switch(t){case"title":n=a.getElementsByTagName("title")[0],(!n||n[hm]||n[Br]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=a.createElement(t),a.head.insertBefore(n,a.querySelector("head > title"))),Fr(n,t,r),n[Br]=e,Ar(n),t=n;break t;case"link":if(i=$B("link","href",a).get(t+(r.href||""))){for(o=0;o<i.length;o++)if(n=i[o],n.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&n.getAttribute("rel")===(r.rel==null?null:r.rel)&&n.getAttribute("title")===(r.title==null?null:r.title)&&n.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){i.splice(o,1);break e}}n=a.createElement(t),Fr(n,t,r),a.head.appendChild(n);break;case"meta":if(i=$B("meta","content",a).get(t+(r.content||""))){for(o=0;o<i.length;o++)if(n=i[o],n.getAttribute("content")===(r.content==null?null:""+r.content)&&n.getAttribute("name")===(r.name==null?null:r.name)&&n.getAttribute("property")===(r.property==null?null:r.property)&&n.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&n.getAttribute("charset")===(r.charSet==null?null:r.charSet)){i.splice(o,1);break e}}n=a.createElement(t),Fr(n,t,r),a.head.appendChild(n);break;default:throw Error(W(468,t))}n[Br]=e,Ar(n),t=n}e.stateNode=t}else br||b2(i,e.type,e.stateNode);else e.stateNode=XB(i,r,e.memoizedProps);else a!==r?(a===null?(t=n.stateNode,t===null||ve||t.parentNode.removeChild(t)):a.count--,r===null?br||b2(i,e.type,e.stateNode):XB(i,r,e.memoizedProps)):r===null&&e.stateNode!==null&&ET(e,e.memoizedProps,n.memoizedProps);break;case 27:fn(t,e,r),cn(e),a&512&&(ve||n===null||Nr(n,n.return)),n!==null&&a&4&&ET(e,e.memoizedProps,n.memoizedProps);break;case 5:if(i=Ti,Ti=!1,fn(t,e,r),Ti=i,cn(e),a&512&&(ve||n===null||Nr(n,n.return)),e.flags&32){t=e.stateNode;try{Vh(t,""),ae=!0}catch(f){ge(e,e.return,f)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,ET(e,t,n!==null?n.memoizedProps:t)),a&1024&&(OT=!0);break;case 6:if(fn(t,e,r),cn(e),a&4){if(e.stateNode===null)throw Error(W(162));t=e.memoizedProps,r=e.stateNode;try{r.nodeValue=t,ae=!0}catch(f){ge(e,e.return,f)}}break;case 3:if(ae=!1,lS=null,i=ii,ii=ay(t.containerInfo),fn(t,e,r),ii=i,cn(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Zh(t.containerInfo)}catch(f){ge(e,e.return,f)}OT&&(OT=!1,YY(e)),ae=!1;break;case 4:a=Ti,Ti=br,n=Lz(),i=ii,ii=ay(e.stateNode.containerInfo),fn(t,e,r),cn(e),ii=i,ae&&$p&&(b1=!0),ae=n,Ti=a;break;case 12:fn(t,e,r),cn(e);break;case 31:fn(t,e,r),cn(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,c0(e,t)));break;case 13:fn(t,e,r),cn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Px=ia()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,c0(e,t)));break;case 22:i=e.memoizedState!==null,o=n!==null&&n.memoizedState!==null;var s=br,l=ve,u=Ti;br=s||i,Ti=u||i,ve=l||o,fn(t,e,r),ve=l,Ti=u,br=s,cn(e),a&8192&&(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,!i||n===null||o||br||ve||(t=o||ve,r=br,n=ve,br=i||br,ve=t,al(e,2),br=r,ve=n),!i&&Ti||n2(e,i)),a&4&&(t=e.updateQueue,t!==null&&(r=t.retryQueue,r!==null&&(t.retryQueue=null,c0(e,r))));break;case 19:fn(t,e,r),cn(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,c0(e,t)));break;case 30:a&512&&(ve||n===null||Nr(n,n.return)),a=Lz(),i=$p,o=(r&335544064)===r,s=e.memoizedProps,$p=o&&zs(s.default,s.update)!=="none",fn(t,e,r),cn(e),o&&n!==null&&ae&&(e.flags|=4),$p=i,ae=a;break;case 21:break;case 7:a&512&&(ve||n===null||Nr(n,n.return)),n&&n.stateNode!==null&&(n.stateNode._fragmentFiber=e);default:fn(t,e,r),cn(e)}}function cn(e){var t=e.flags;if(t&2){try{for(var r,n=e.return;n!==null;){if(OY(n)){r=n;break}n=n.return}n=null;for(var a=e.return;a!==null;){if(jR(a)){var i=a.stateNode;n===null?n=[i]:n.push(i)}if(YR(a))break;a=a.return}var o=n;if(r==null)throw Error(W(160));switch(r.tag){case 27:var s=r.stateNode,l=LT(e);_1(e,l,s,o);break;case 5:var u=r.stateNode;r.flags&32&&(Vh(u,""),r.flags&=-33);var f=LT(e);_1(e,f,u,o);break;case 3:case 4:var c=r.stateNode.containerInfo,v=LT(e);KD(e,v,c,o);break;default:throw Error(W(161))}}catch(h){ge(e,e.return,h)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function YY(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;YY(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Wh=!0,t.reset(),Wh=!1),e=e.sibling}}function nv(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)jY(t,e),t=t.sibling;else kY(t)}function jY(e,t){var r=e.alternate;if(r===null)QD(e,!1);else switch(e.tag){case 3:if(r2=Ci=!1,TB(),nv(t,e),!Ci&&!b1){if(e=Gi,e!==null)for(var n=0;n<e.length;n+=3){r=e[n];var a=e[n+1];m9(r,e[n+2]),r=r.ownerDocument.documentElement,r!==null&&r.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+a+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),r2=!0}Gi=null;break;case 5:nv(t,e);break;case 4:n=Ci,Ci=!1,nv(t,e),Ci&&(b1=!0),Ci=n;break;case 22:e.memoizedState===null&&(r.memoizedState!==null?QD(e,!1):nv(t,e));break;case 30:n=Ci,a=TB(),Ci=!1,nv(t,e),Ci&&(e.flags|=4);var i=e.memoizedProps,o=e.stateNode;t=_s(i,o),o=_s(r.memoizedProps,o);var s=zs(i.default,i.update);s==="none"?t=!1:(i=r.memoizedState,r.memoizedState=null,r=e.child,Ln=0,t=XR(e,r,t,o,s,i,!0),Ln!==(i===null?0:i.length)&&(e.flags|=32)),e.flags&4&&t?(Uh(e,e.memoizedProps.onUpdate),Gi=a):a!==null&&(a.push.apply(a,Gi),Gi=a),Ci=e.flags&32?!0:n;break;default:nv(t,e)}}function Ai(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)zY(e,t.alternate,t),t=t.sibling}function al(e,t){for(e=e.child;e!==null;){var r=e,n=t;switch(r.tag){case 0:case 11:case 14:case 15:ql(4,r,r.return),al(r,n);break;case 1:Nr(r,r.return);var a=r.stateNode;typeof a.componentWillUnmount=="function"&&LY(r,r.return,a),al(r,n);break;case 27:n&2&&A9(r.stateNode,r.type,r.memoizedProps);case 5:Nr(r,r.return),r.tag!==5&&r.tag!==27||bg(r),al(r,n);break;case 6:bg(r);break;case 26:Nr(r,r.return),a=r.stateNode,r.memoizedState!==null||a===null||ve||a.parentNode.removeChild(a),al(r,n);break;case 22:r.memoizedState===null&&al(r,n);break;case 30:Nr(r,r.return),al(r,n);break;case 7:Nr(r,r.return);default:al(r,n)}e=e.sibling}}function ti(e,t,r){for(r=t.subtreeFlags&8772?r:r&-2,t=t.child;t!==null;){var n=t.alternate,a=e,i=t,o=i.flags,s=(r&1)!==0;switch(i.tag){case 0:case 11:case 15:ti(a,i,r),ym(4,i);break;case 1:if(ti(a,i,r),n=i,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(f){ge(n,n.return,f)}if(n=i,a=n.updateQueue,a!==null){var l=n.stateNode;try{var u=a.shared.hiddenCallbacks;if(u!==null)for(a.shared.hiddenCallbacks=null,a=0;a<u.length;a++)B7(u[a],l)}catch(f){ge(n,n.return,f)}}s&&o&64&&EY(i),Bi(i,i.return);break;case 27:r&2&&RY(i);case 5:i.tag!==5&&i.tag!==27||xB(i),ti(a,i,r),s&&n===null&&o&4&&qD(i),Bi(i,i.return);break;case 6:xB(i);break;case 26:l=i.stateNode,i.memoizedState!==null||l===null||br||b2(ay(l.ownerDocument),i.type,l),ti(a,i,r),s&&n===null&&o&4&&qD(i),Bi(i,i.return);break;case 12:ti(a,i,r);break;case 31:ti(a,i,r),s&&o&4&&HY(a,i);break;case 13:ti(a,i,r),s&&o&4&&UY(a,i);break;case 22:i.memoizedState===null&&ti(a,i,r),Bi(i,i.return);break;case 30:ti(a,i,r),Bi(i,i.return);break;case 7:Bi(i,i.return);default:ti(a,i,r)}t=t.sibling}}function $R(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&pm(r))}function WR(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pm(e))}function ga(e,t,r,n){var a=(r&335544064)===r;if(t.subtreeFlags&(a?10262:10256))for(t=t.child;t!==null;)XY(e,t,r,n),t=t.sibling;else a&&NY(t)}function XY(e,t,r,n){var a=(r&335544064)===r;a&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&aS(t);var i=t.flags;switch(t.tag){case 0:case 11:case 15:ga(e,t,r,n),i&2048&&ym(9,t);break;case 1:ga(e,t,r,n);break;case 3:ga(e,t,r,n),a&&r2&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),i&2048&&(i=null,t.alternate!==null&&(i=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==i&&(t.refCount++,i!=null&&pm(i)));break;case 12:if(i&2048){ga(e,t,r,n),i=t.stateNode;try{var o=t.memoizedProps,s=o.id,l=o.onPostCommit;typeof l=="function"&&l(s,t.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(u){ge(t,t.return,u)}}else ga(e,t,r,n);break;case 31:ga(e,t,r,n);break;case 13:ga(e,t,r,n);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState!==null?(a&&s!==null&&s.memoizedState===null&&aS(s),o._visibility&2?ga(e,t,r,n):xg(e,t)):(a&&s!==null&&s.memoizedState!==null&&aS(t),o._visibility&2?ga(e,t,r,n):(o._visibility|=2,Pv(e,t,r,n,(t.subtreeFlags&10256)!==0||!1))),i&2048&&$R(s,t);break;case 24:ga(e,t,r,n),i&2048&&WR(t.alternate,t);break;case 30:a&&(i=t.alternate,i!==null&&(go(i.child,!0),go(t.child,!0))),ga(e,t,r,n);break;default:ga(e,t,r,n)}}function Pv(e,t,r,n,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,o=t,s=r,l=n,u=o.flags;switch(o.tag){case 0:case 11:case 15:Pv(i,o,s,l,a),ym(8,o);break;case 23:break;case 22:var f=o.stateNode;o.memoizedState!==null?f._visibility&2?Pv(i,o,s,l,a):xg(i,o):(f._visibility|=2,Pv(i,o,s,l,a)),a&&u&2048&&$R(o.alternate,o);break;case 24:Pv(i,o,s,l,a),a&&u&2048&&WR(o.alternate,o);break;default:Pv(i,o,s,l,a)}t=t.sibling}}function xg(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,n=t,a=n.flags;switch(n.tag){case 22:xg(r,n),a&2048&&$R(n.alternate,n);break;case 24:xg(r,n),a&2048&&WR(n.alternate,n);break;default:xg(r,n)}t=t.sibling}}var ef=8192;function wu(e,t,r){if(e.subtreeFlags&ef)for(e=e.child;e!==null;)$Y(e,t,r),e=e.sibling}function $Y(e,t,r){switch(e.tag){case 26:wu(e,t,r),e.flags&ef&&(e.memoizedState!==null?Jot(r,ii,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&ZB(r,e)));break;case 5:wu(e,t,r),e.flags&ef&&(e=e.stateNode,(t&335544128)===t&&ZB(r,e));break;case 3:case 4:var n=ii;ii=ay(e.stateNode.containerInfo),wu(e,t,r),ii=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=ef,ef=16777216,wu(e,t,r),ef=n):wu(e,t,r));break;case 30:if(e.flags&ef&&(n=e.memoizedProps.name,n!=null&&n!=="auto")){var a=e.stateNode;a.paired=null,Kn===null&&(Kn=new Map),Kn.set(n,a)}wu(e,t,r);break;default:wu(e,t,r)}}function WY(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function op(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var r=0;r<t.length;r++){var n=t[r];xr=n,qY(n,e)}WY(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ZY(e),e=e.sibling}function ZY(e){switch(e.tag){case 0:case 11:case 15:op(e),e.flags&2048&&ql(9,e,e.return);break;case 3:op(e);break;case 12:op(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,iS(e)):op(e);break;default:op(e)}}function iS(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var r=0;r<t.length;r++){var n=t[r];xr=n,qY(n,e)}WY(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ql(8,t,t.return),iS(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,iS(t));break;default:iS(t)}e=e.sibling}}function qY(e,t){for(;xr!==null;){var r=xr;switch(r.tag){case 0:case 11:case 15:ql(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var n=r.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:pm(r.memoizedState.cache)}if(n=r.child,n!==null)n.return=r,xr=n;else t:for(r=e;xr!==null;){n=xr;var a=n.sibling,i=n.return;if(VY(n),n===r){xr=null;break t}if(a!==null){a.return=i,xr=a;break t}xr=i}}}var Wit={getCacheForType:function(e){var t=Vr(er),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return Vr(er).controller.signal}},Zit=typeof WeakMap=="function"?WeakMap:Map,oe=0,Te=null,Qt=null,Jt=0,he=0,Fn=null,gl=!1,Cd=!1,ZR=!1,ws=0,Ye=0,Kl=0,Ef=0,x1=0,ta=0,Hh=0,wg=null,En=null,i2=!1,Px=0,KY=0,w1=1/0,T1=null,Rl=null,Ve=0,fi=null,Kf=null,io=0,o2=0,s2=null,QY=null,yh=null,mh=null,_h=null,Tg=0,oS=null;function la(){return oe&2&&Jt!==0?Jt&-Jt:Pt.T!==null?KR():r7()}function JY(){if(ta===0)if(!(Jt&536870912)||Wt){var e=t0;t0<<=1,!(t0&3932160)&&(t0=262144),ta=e}else ta=536870912;return e=jr.current,e!==null&&(e.flags|=32),ta}function Uh(e,t){if(t!=null){var r=e.stateNode,n=r.ref;n===null&&(n=r.ref=_9(_s(e.memoizedProps,r))),mh===null&&(mh=[]),mh.push(t.bind(null,n))}}function kn(e,t,r){(e===Te&&(he===2||he===9)||e.cancelPendingCommit!==null)&&(Fh(e,0),yl(e,Jt,ta,!1)),vm(e,r),(!(oe&2)||e!==Te)&&(e===Te&&(!(oe&2)&&(Ef|=r),Ye===4&&yl(e,Jt,ta,!1)),Oo(e))}function t9(e,t,r){if(oe&6)throw Error(W(327));var n=!r&&(t&127)===0&&(t&e.expiredLanes)===0||cm(e,t),a=n?Qit(e,t):RT(e,t,!0),i=n;do{if(a===0){Cd&&!n&&yl(e,t,0,!1);break}else{if(r=e.current.alternate,i&&!qit(r)){a=RT(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;t:{var s=e;a=wg;var l=s.current.memoizedState.isDehydrated;if(l&&(Fh(s,o).flags|=256),o=RT(s,o,!1),o!==2&&o!==6){if(ZR&&!l){s.errorRecoveryDisabledLanes|=i,Ef|=i,a=4;break t}i=En,En=a,i!==null&&(En===null?En=i:En.push.apply(En,i))}a=o}if(i=!1,a!==2)continue}}if(a===1){Fh(e,0),yl(e,t,0,!0);break}t:{switch(n=e,i=a,i){case 0:case 1:throw Error(W(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:yl(n,t,ta,!gl);break t;case 2:En=null;break;case 3:case 5:break;default:throw Error(W(329))}if((t&62914560)===t&&(a=Px+300-ia(),10<a)){if(yl(n,t,ta,!gl),_x(n,0,!0)!==0)break t;io=t,n.timeoutHandle=JR(AB.bind(null,n,r,En,T1,i2,t,ta,Ef,Hh,gl,i,"Throttled",-0,0),a);break t}AB(n,r,En,T1,i2,t,ta,Ef,Hh,gl,i,null,-0,0)}}break}while(!0);Oo(e)}function AB(e,t,r,n,a,i,o,s,l,u,f,c,v,h){e.timeoutHandle=-1;var d=t.subtreeFlags,p=(i&335544064)===i;if(c=null,(p||d&8192||(d&16785408)===16785408)&&(c={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xi},Kn=null,$Y(t,i,c),p&&(d=c,p=e.containerInfo,p=(p.nodeType===9?p:p.ownerDocument).__reactViewTransition,p!=null&&(d.count++,d.waitingForViewTransition=!0,d=iy.bind(d),p.finished.then(d,d))),d=(i&62914560)===i?Px-ia():(i&4194048)===i?KY-ia():0,d=tst(c,d),d!==null)){io=i,e.cancelPendingCommit=d(DB.bind(null,e,t,i,r,n,a,o,s,l,u,f,c,null,v,h)),yl(e,i,o,!u);return}DB(e,t,i,r,n,a,o,s,l,u,f,c)}function qit(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var n=0;n<r.length;n++){var a=r[n],i=a.getSnapshot;a=a.value;try{if(!fa(i(),a))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function yl(e,t,r,n){t=K8(e,t),t&=~x1,t&=~Ef,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var i=31-sa(a),o=1<<i;n[i]=-1,a&=~o}r!==0&&J8(e,r,t)}function Nx(){return oe&6?!0:(mm(0),!1)}function qR(){if(Qt!==null){if(he===0)var e=Qt.return;else e=Qt,Ko=Vc=null,IR(e),dh=null,Qg=0,e=Qt;for(;e!==null;)DY(e.alternate,e),e=e.return;Qt=null}}function Fh(e,t){var r=e.timeoutHandle;return r!==-1&&(e.timeoutHandle=-1,Sot(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),io=0,qR(),Te=e,Qt=r=as(e.current,null),Jt=t,he=0,Fn=null,gl=!1,Cd=cm(e,t),ZR=!1,Hh=ta=x1=Ef=Kl=Ye=0,En=wg=null,i2=!1,ws=K8(e,t),Cx(),r}function e9(e,t){Ft=null,Pt.H=g1,t===wd||t===Dx?(t=Jz(),he=3):t===CR?(t=Jz(),he=4):he=t===HR?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Fn=t,Qt===null&&(Ye=1,y1(e,Ia(t,e.current)))}function r9(){var e=jr.current;return e===null?!0:(Jt&4194048)===Jt?an===null:(Jt&62914560)===Jt||Jt&536870912?e===an:!1}function n9(){var e=Pt.H;return Pt.H=g1,e===null?g1:e}function a9(){var e=Pt.A;return Pt.A=Wit,e}function C1(){Ye=4,gl||(Jt&4194048)!==Jt&&jr.current!==null||(Cd=!0),!(Kl&134217727)&&!(Ef&134217727)||Te===null||yl(Te,Jt,ta,!1)}function RT(e,t,r){var n=oe;oe|=2;var a=n9(),i=a9();(Te!==e||Jt!==t)&&(T1=null,Fh(e,t)),t=!1;var o=Ye;t:do try{if(he!==0&&Qt!==null){var s=Qt,l=Fn;switch(he){case 8:qR(),o=6;break t;case 3:case 2:case 9:case 6:jr.current===null&&(t=!0);var u=he;if(he=0,Fn=null,eh(e,s,l,u),r&&Cd){o=0;break t}break;default:u=he,he=0,Fn=null,eh(e,s,l,u)}}Kit(),o=Ye;break}catch(f){e9(e,f)}while(!0);return t&&e.shellSuspendCounter++,Ko=Vc=null,oe=n,Pt.H=a,Pt.A=i,Qt===null&&(Te=null,Jt=0,Cx()),o}function Kit(){for(;Qt!==null;)i9(Qt)}function Qit(e,t){var r=oe;oe|=2;var n=n9(),a=a9();Te!==e||Jt!==t?(T1=null,w1=ia()+500,Fh(e,t)):Cd=cm(e,t);t:do try{if(he!==0&&Qt!==null){t=Qt;var i=Fn;e:switch(he){case 1:he=0,Fn=null,eh(e,t,i,1);break;case 2:case 9:if(Qz(i)){he=0,Fn=null,MB(t);break}t=function(){he!==2&&he!==9||Te!==e||(he=7),Oo(e)},i.then(t,t);break t;case 3:he=7;break t;case 4:he=5;break t;case 7:Qz(i)?(he=0,Fn=null,MB(t)):(he=0,Fn=null,eh(e,t,i,7));break;case 5:var o=null;switch(Qt.tag){case 26:o=Qt.memoizedState;case 5:case 27:var s=Qt;if(o?E9(o):s.stateNode.complete){he=0,Fn=null;var l=s.sibling;if(l!==null)Qt=l;else{var u=s.return;u!==null?(Qt=u,kx(u)):Qt=null}break e}}he=0,Fn=null,eh(e,t,i,5);break;case 6:he=0,Fn=null,eh(e,t,i,6);break;case 8:qR(),Ye=6;break t;default:throw Error(W(462))}}Jit();break}catch(f){e9(e,f)}while(!0);return Ko=Vc=null,Pt.H=n,Pt.A=a,oe=r,Qt!==null?0:(Te=null,Jt=0,Cx(),Ye)}function Jit(){for(;Qt!==null&&!gat();)i9(Qt)}function i9(e){var t=MY(e.alternate,e,ws);e.memoizedProps=e.pendingProps,t===null?kx(e):Qt=t}function MB(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=pB(r,t,t.pendingProps,t.type,void 0,Jt);break;case 11:t=pB(r,t,t.pendingProps,t.type.render,t.ref,Jt);break;case 5:IR(t);var n=t;n===Dr&&(Wt?(u1(n),n.tag===5&&n.stateNode!=null&&(Ee=n.stateNode)):(u1(n),Wt=!0));default:DY(r,t),t=Qt=E7(t,ws),t=MY(r,t,ws)}e.memoizedProps=e.pendingProps,t===null?kx(e):Qt=t}function eh(e,t,r,n){Ko=Vc=null,IR(t),dh=null,Qg=0;var a=t.return;try{if(Git(e,a,t,r,Jt)){Ye=1,y1(e,Ia(r,e.current)),Qt=null;return}}catch(i){if(a!==null)throw Qt=a,i;Ye=1,y1(e,Ia(r,e.current)),Qt=null;return}t.flags&32768?(Wt||n===1?e=!0:Cd||Jt&536870912?e=!1:(gl=e=!0,(n===2||n===9||n===3||n===6)&&(n=jr.current,n!==null&&n.tag===13&&(n.flags|=16384))),o9(t,e)):kx(t)}function kx(e){var t=e;do{if(t.flags&32768){o9(t,gl);return}e=t.return;var r=Yit(t.alternate,t,ws);if(r!==null){Qt=r;return}if(t=t.sibling,t!==null){Qt=t;return}Qt=t=e}while(t!==null);Ye===0&&(Ye=5)}function o9(e,t){do{var r=jit(e.alternate,e);if(r!==null){r.flags&=32767,Qt=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){Qt=e;return}Qt=e=r}while(e!==null);Ye=6,Qt=null}function DB(e,t,r,n,a,i,o,s,l,u,f,c){e.cancelPendingCommit=null;do zx();while(Ve!==0);if(oe&6)throw Error(W(327));if(t!==null){if(t===e.current)throw Error(W(177));e===Te&&(Qt=Te=null,Jt=0),Kf=t,fi=e,io=r,s2=a,QY=n,tot(e,t,r,o,s,l,c)}}function tot(e,t,r,n,a,i,o){var s=t.lanes|t.childLanes;if(o2=s,s|=_R,Aat(e,r,s,n,a,i),mh=null,(r&335544064)===r?(_h=Dit(e),n=10262):(_h=null,n=10256),t.subtreeFlags&n||t.flags&n?(e.callbackNode=null,e.callbackPriority=0,oot(a1,function(){return c2(),null})):(e.callbackNode=null,e.callbackPriority=0),S1=!1,n=(t.flags&13878)!==0,t.subtreeFlags&13878||n){n=Pt.T,Pt.T=null,a=le.p,le.p=2,i=oe,oe|=4;try{Xit(e,t,r)}finally{oe=i,le.p=a,Pt.T=n}}Ve=1,S1?yh=Aot(o,e.containerInfo,_h,l2,u2,rot,f2,c2,eot):(l2(),u2(),f2())}function eot(e){if(Ve!==0){var t=fi.onRecoverableError;t(e,{componentStack:null})}}function rot(){Ve===3&&(Ve=0,jY(Kf,fi),Ve=4)}function l2(){if(Ve===1){Ve=0;var e=fi,t=Kf,r=io,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=Pt.T,Pt.T=null;var a=le.p;le.p=2;var i=oe;oe|=4;try{$p=b1=!1,FY(t,e,r),r=p2;var o=b7(e.containerInfo),s=r.focusedElem,l=r.selectionRange;if(o!==s&&s&&s.ownerDocument&&S7(s.ownerDocument.documentElement,s)){if(l!==null&&mR(s)){var u=l.start,f=l.end;if(f===void 0&&(f=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(f,s.value.length);else{var c=s.ownerDocument||document,v=c&&c.defaultView||window;if(v.getSelection){var h=v.getSelection(),d=s.textContent.length,p=Math.min(l.start,d),g=l.end===void 0?p:Math.min(l.end,d);!h.extend&&p>g&&(o=g,g=p,p=o);var y=Yz(s,p),m=Yz(s,g);if(y&&m&&(h.rangeCount!==1||h.anchorNode!==y.node||h.anchorOffset!==y.offset||h.focusNode!==m.node||h.focusOffset!==m.offset)){var _=c.createRange();_.setStart(y.node,y.offset),h.removeAllRanges(),p>g?(h.addRange(_),h.extend(m.node,m.offset)):(_.setEnd(m.node,m.offset),h.addRange(_))}}}}for(c=[],h=s;h=h.parentNode;)h.nodeType===1&&c.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<c.length;s++){var S=c[s];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}Wh=!!d2,p2=d2=null}finally{oe=i,le.p=a,Pt.T=n}}e.current=t,Ve=2}}function u2(){if(Ve===2){Ve=0;var e=fi,t=Kf,r=(t.flags&8772)!==0;if(t.subtreeFlags&8772||r){r=Pt.T,Pt.T=null;var n=le.p;le.p=2;var a=oe;oe|=4;try{zY(e,t.alternate,t)}finally{oe=a,le.p=n,Pt.T=r}}Ve=3}}function f2(){if(Ve===4||Ve===3){Ve=0;var e=yh;yh=null,yat();var t=fi,r=Kf,n=io,a=QY,i=(n&335544064)===n?10262:10256;if(r.subtreeFlags&i||r.flags&i?Ve=5:(Ve=0,Kf=fi=null,s9(t,t.pendingLanes)),i=t.pendingLanes,i===0&&(Rl=null),vR(n),r=r.stateNode,oa&&typeof oa.onCommitFiberRoot=="function")try{oa.onCommitFiberRoot(fm,r,void 0,(r.current.flags&128)===128)}catch{}if(a!==null){r=Pt.T,i=le.p,le.p=2,Pt.T=null;try{for(var o=t.onRecoverableError,s=0;s<a.length;s++){var l=a[s];o(l.value,{componentStack:l.stack})}}finally{Pt.T=r,le.p=i}}if(a=mh,o=_h,_h=null,a!==null&&(mh=null,o===null&&(o=[]),e!==null))for(l=0;l<a.length;l++)r=(0,a[l])(o),r!==void 0&&e.finished.finally(r);io&3&&zx(),Oo(t),i=t.pendingLanes,n&261930&&i&42?t===oS?Tg++:(Tg=0,oS=t):(Tg=0,oS=null),mm(0)}}function s9(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,pm(t)))}function zx(){return yh!==null&&(yh.skipTransition(),yh=null),l2(),u2(),f2(),c2()}function c2(){if(Ve!==5)return!1;var e=fi,t=o2;o2=0;var r=vR(io),n=Pt.T,a=le.p;try{le.p=32>r?32:r,Pt.T=null,r=s2,s2=null;var i=fi,o=io;if(Ve=0,Kf=fi=null,io=0,oe&6)throw Error(W(331));var s=oe;if(oe|=4,ZY(i.current),XY(i,i.current,o,r),oe=s,mm(0,!1),oa&&typeof oa.onPostCommitFiberRoot=="function")try{oa.onPostCommitFiberRoot(fm,i)}catch{}return!0}finally{le.p=a,Pt.T=n,s9(e,t)}}function EB(e,t,r){t=Ia(r,t),t=YD(e.stateNode,t,2),e=El(e,t,2),e!==null&&(vm(e,2),Oo(e))}function ge(e,t,r){if(e.tag===3)EB(e,e,r);else for(;t!==null;){if(t.tag===3){EB(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Rl===null||!Rl.has(n))){e=Ia(r,e),r=xY(2),n=El(t,r,2),n!==null&&(wY(r,n,t,e),vm(n,2),Oo(n));break}}t=t.return}}function IT(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new Zit;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(ZR=!0,a.add(r),e=not.bind(null,e,t,r),t.then(e,e))}function not(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Te===e&&(Jt&r)===r&&(Ye===4||Ye===3&&(Jt&62914560)===Jt&&300>ia()-Px?oe&2?x1|=r:Fh(e,0):x1|=r,Hh===Jt&&(Hh=0)),Oo(e)}function l9(e,t){t===0&&(t=Q8()),e=Bc(e,t),e!==null&&(vm(e,t),Oo(e))}function aot(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),l9(e,r)}function iot(e,t){var r=0;switch(e.tag){case 31:case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(W(314))}n!==null&&n.delete(t),l9(e,r)}function oot(e,t){return fR(e,t)}var Yh=null,Nv=null,v2=!1,A1=!1,PT=!1,ml=0;function Oo(e){e!==Nv&&e.next===null&&(Nv===null?Yh=Nv=e:Nv=Nv.next=e),A1=!0,v2||(v2=!0,lot())}function mm(e,t){if(!PT&&A1){PT=!0;do for(var r=!1,n=Yh;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var i=0;else{var o=n.suspendedLanes,s=n.pingedLanes;i=(1<<31-sa(42|e)+1)-1,i&=a&~(o&~s),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(r=!0,LB(n,i))}else i=Jt,i=_x(n,n===Te?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),!(i&3)||cm(n,i)||(r=!0,LB(n,i));n=n.next}while(r);PT=!1}}function sot(){u9()}function u9(){A1=v2=!1;var e=0;ml!==0&&_ot()&&(e=ml);for(var t=ia(),r=null,n=Yh;n!==null;){var a=n.next,i=f9(n,t);i===0?(n.next=null,r===null?Yh=a:r.next=a,a===null&&(Nv=r)):(r=n,(e!==0||i&3)&&(A1=!0)),n=a}Ve!==0&&Ve!==5||mm(e),ml!==0&&(ml=0)}function f9(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var o=31-sa(i),s=1<<o,l=a[o];l===-1?(!(s&r)||s&n)&&(a[o]=Cat(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}if(t=Te,r=Jt,r=_x(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,r===0||e===t&&(he===2||he===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&cT(n),e.callbackNode=null,e.callbackPriority=0;if(!(r&3)||cm(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(n!==null&&cT(n),vR(r)){case 2:case 8:r=Z8;break;case 32:r=a1;break;case 268435456:r=q8;break;default:r=a1}return n=c9.bind(null,e),r=fR(r,n),e.callbackPriority=t,e.callbackNode=r,t}return n!==null&&n!==null&&cT(n),e.callbackPriority=2,e.callbackNode=null,2}function c9(e,t){if(Ve!==0&&Ve!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(zx()&&e.callbackNode!==r)return null;var n=Jt;return n=_x(e,e===Te?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(t9(e,n,t),f9(e,ia()),e.callbackNode!=null&&e.callbackNode===r?c9.bind(null,e):null)}function LB(e,t){if(zx())return null;t9(e,t,!0)}function lot(){bot(function(){oe&6?fR(W8,sot):u9()})}function KR(){if(ml===0){var e=$f;e===0&&(e=Jm,Jm<<=1,!(Jm&261888)&&(Jm=256)),ml=e}return ml}function OB(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:W_(e)}function uot(e,t,r,n,a){if(t==="submit"&&r&&r.stateNode===a){var i=OB((a[Gn]||null).action),o=n.submitter;o&&(t=(t=o[Gn]||null)?OB(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var s=new bx("action","action",null,n,a);e.push({event:s,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(ml!==0){var l=new FormData(a,o);UD(r,{pending:!0,data:l,method:a.method,action:i},null,l)}}else typeof i=="function"&&(s.preventDefault(),l=new FormData(a,o),UD(r,{pending:!0,data:l,method:a.method,action:i},i,l))},currentTarget:a}]})}}for(var NT=0;NT<OD.length;NT++){var kT=OD[NT],fot=kT.toLowerCase(),cot=kT[0].toUpperCase()+kT.slice(1);_i(fot,"on"+cot)}_i(w7,"onAnimationEnd");_i(T7,"onAnimationIteration");_i(C7,"onAnimationStart");_i("dblclick","onDoubleClick");_i("focusin","onFocus");_i("focusout","onBlur");_i(Sit,"onTransitionRun");_i(bit,"onTransitionStart");_i(xit,"onTransitionCancel");_i(A7,"onTransitionEnd");Bh("onMouseEnter",["mouseout","mouseover"]);Bh("onMouseLeave",["mouseout","mouseover"]);Bh("onPointerEnter",["pointerout","pointerover"]);Bh("onPointerLeave",["pointerout","pointerover"]);kc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));kc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));kc("onBeforeInput",["compositionend","keypress","textInput","paste"]);kc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));kc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));kc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ey="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(" "),vot=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ey));function v9(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],a=n.event;n=n.listeners;t:{var i=void 0;if(t)for(var o=n.length-1;0<=o;o--){var s=n[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&a.isPropagationStopped())break t;i=s,a.currentTarget=u;try{i(a)}catch(f){o1(f)}a.currentTarget=null,i=l}else for(o=0;o<n.length;o++){if(s=n[o],l=s.instance,u=s.currentTarget,s=s.listener,l!==i&&a.isPropagationStopped())break t;i=s,a.currentTarget=u;try{i(a)}catch(f){o1(f)}a.currentTarget=null,i=l}}}}function Kt(e,t){var r=t[Az];r===void 0&&(r=t[Az]=new Set);var n=e+"__bubble";r.has(n)||(h9(t,e,2,!1),r.add(n))}function zT(e,t,r){var n=0;t&&(n|=4),h9(r,e,n,t)}var v0="_reactListening"+Math.random().toString(36).slice(2);function QR(e){if(!e[v0]){e[v0]=!0,a7.forEach(function(r){r!=="selectionchange"&&(vot.has(r)||zT(r,!1,e),zT(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[v0]||(t[v0]=!0,zT("selectionchange",!1,t))}}function h9(e,t,r,n){switch(k9(t)){case 2:var a=ast;break;case 8:a=ist;break;default:a=iI}r=a.bind(null,t,r,e),a=void 0,!MD||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function BT(e,t,r,n,a){var i=n;if(!(t&1)&&!(t&2)&&n!==null)t:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var s=n.stateNode.containerInfo;if(s===a)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===a)return;o=o.return}for(;s!==null;){if(o=df(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){n=i=o;continue t}s=s.parentNode}}n=n.return}v7(function(){var u=i,f=dR(r),c=[];t:{var v=M7.get(e);if(v!==void 0){var h=bx,d=e;switch(e){case"keypress":if(q_(r)===0)break t;case"keydown":case"keyup":h=qat;break;case"focusin":d="focus",h=yT;break;case"focusout":d="blur",h=yT;break;case"beforeblur":case"afterblur":h=yT;break;case"click":if(r.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Pz;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Bat;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=eit;break;case w7:case T7:case C7:h=Hat;break;case A7:h=nit;break;case"scroll":case"scrollend":h=kat;break;case"wheel":h=iit;break;case"copy":case"cut":case"paste":h=Fat;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=kz;break;case"submit":h=Jat;break;case"toggle":case"beforetoggle":h=sit}var p=(t&4)!==0,g=!p&&(e==="scroll"||e==="scrollend"),y=p?v!==null?v+"Capture":null:v;p=[];for(var m=u,_;m!==null;){var S=m;if(_=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||_===null||y===null||(S=$g(m,y),S!=null&&p.push(ry(m,S,_))),g)break;m=m.return}0<p.length&&(v=new h(v,d,null,r,f),c.push({event:v,listeners:p}))}}if(!(t&7)){t:{if(h=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",h&&r!==AD&&(d=r.relatedTarget||r.fromElement)&&(df(d)||d[bd]))break t;(v||h)&&(d=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,v?(h=r.relatedTarget||r.toElement,v=u,h=h?df(h):null,h!==null&&(g=um(h),p=h.tag,h!==g||p!==5&&p!==27&&p!==6)&&(h=null)):(v=null,h=u),v!==h&&(p=Pz,S="onMouseLeave",y="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(p=kz,S="onPointerLeave",y="onPointerEnter",m="pointer"),g=v==null?d:jp(v),_=h==null?d:jp(h),d=new p(S,m+"leave",v,r,f),d.target=g,d.relatedTarget=_,S=null,df(f)===u&&(p=new p(y,m+"enter",h,r,f),p.target=_,p.relatedTarget=g,S=p),g=S,p=v&&h?dD(v,h,hot):null,v!==null&&RB(c,d,v,p,!1),h!==null&&g!==null&&RB(c,g,h,p,!0)))}t:{if(v=u?jp(u):window,h=v.nodeName&&v.nodeName.toLowerCase(),h==="select"||h==="input"&&v.type==="file")var b=Gz;else if(Vz(v))if(m7)b=yit;else{b=pit;var x=dit}else h=v.nodeName,!h||h.toLowerCase()!=="input"||v.type!=="checkbox"&&v.type!=="radio"?u&&hR(u.elementType)&&(b=Gz):b=git;if(b&&(b=b(e,u))){y7(c,b,r,f);break t}x&&x(e,v,u)}switch(x=u?jp(u):window,e){case"focusin":(Vz(x)||x.contentEditable==="true")&&(Zv=x,ED=u,dg=null);break;case"focusout":dg=ED=Zv=null;break;case"mousedown":LD=!0;break;case"contextmenu":case"mouseup":case"dragend":LD=!1,jz(c,r,f);break;case"selectionchange":if(_it)break;case"keydown":case"keyup":jz(c,r,f)}var w;if(yR)t:{switch(e){case"compositionstart":var T="onCompositionStart";break t;case"compositionend":T="onCompositionEnd";break t;case"compositionupdate":T="onCompositionUpdate";break t}T=void 0}else Wv?p7(e,r)&&(T="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(T="onCompositionStart");T&&(d7&&r.locale!=="ko"&&(Wv||T!=="onCompositionStart"?T==="onCompositionEnd"&&Wv&&(w=h7()):(dl=f,pR="value"in dl?dl.value:dl.textContent,Wv=!0)),x=M1(u,T),0<x.length&&(T=new Nz(T,e,null,r,f),c.push({event:T,listeners:x}),w?T.data=w:(w=g7(r),w!==null&&(T.data=w)))),(w=uit?fit(e,r):cit(e,r))&&(T=M1(u,"onBeforeInput"),0<T.length&&(x=new Nz("onBeforeInput","beforeinput",null,r,f),c.push({event:x,listeners:T}),x.data=w)),uot(c,e,u,r,f)}v9(c,t)})}function ry(e,t,r){return{instance:e,listener:t,currentTarget:r}}function M1(e,t){for(var r=t+"Capture",n=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=$g(e,r),a!=null&&n.unshift(ry(e,a,i)),a=$g(e,t),a!=null&&n.push(ry(e,a,i))),e.tag===3)return n;e=e.return}return[]}function hot(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function RB(e,t,r,n,a){for(var i=t._reactName,o=[];r!==null&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(s=s.tag,l!==null&&l===n)break;s!==5&&s!==26&&s!==27||u===null||(l=u,a?(u=$g(r,i),u!=null&&o.unshift(ry(r,u,l))):a||(u=$g(r,i),u!=null&&o.push(ry(r,u,l)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var dot=/\r\n?/g,pot=/\u0000|\uFFFD/g;function IB(e){return(typeof e=="string"?e:""+e).replace(dot,`
59
+ `).replace(pot,"")}function d9(e,t){return t=IB(t),IB(e)===t}function de(e,t,r,n,a,i){switch(r){case"children":if(typeof n=="string")t==="body"||t==="textarea"&&n===""||Vh(e,n);else if(typeof n=="number"||typeof n=="bigint")t!=="body"&&Vh(e,""+n);else return;break;case"className":r0(e,"class",n);break;case"tabIndex":r0(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":r0(e,r,n);break;case"style":c7(e,n,i);return;case"data":if(t!=="object"){r0(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(r);break}n=W_(n),e.setAttribute(r,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(r==="formAction"?(t!=="input"&&de(e,t,"name",a.name,a,null),de(e,t,"formEncType",a.formEncType,a,null),de(e,t,"formMethod",a.formMethod,a,null),de(e,t,"formTarget",a.formTarget,a,null)):(de(e,t,"encType",a.encType,a,null),de(e,t,"method",a.method,a,null),de(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(r);break}n=W_(n),e.setAttribute(r,n);break;case"onClick":n!=null&&(e.onclick=Xi);return;case"onScroll":n!=null&&Kt("scroll",e);return;case"onScrollEnd":n!=null&&Kt("scrollend",e);return;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(W(61));if(r=n.__html,r!=null){if(a.children!=null)throw Error(W(60));(i!=null?i.__html:void 0)!==r&&(e.innerHTML=r)}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}r=W_(n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,n):e.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":n===!0?e.setAttribute(r,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,n):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(r,n):e.removeAttribute(r);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(r):e.setAttribute(r,n);break;case"popover":Kt("beforetoggle",e),Kt("toggle",e),$_(e,"popover",n);break;case"xlinkActuate":zo(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":zo(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":zo(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":zo(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":zo(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":zo(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":zo(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":zo(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":zo(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":$_(e,"is",n);break;case"innerText":case"textContent":return;default:if(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")r=Pat.get(r)||r,$_(e,r,n);else return}ae=!0}function h2(e,t,r,n,a,i){switch(r){case"style":c7(e,n,i);return;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(W(61));if(r=n.__html,r!=null){if(a.children!=null)throw Error(W(60));(i!=null?i.__html:void 0)!==r&&(e.innerHTML=r)}}break;case"children":if(typeof n=="string")Vh(e,n);else if(typeof n=="number"||typeof n=="bigint")Vh(e,""+n);else return;break;case"onScroll":n!=null&&Kt("scroll",e);return;case"onScrollEnd":n!=null&&Kt("scrollend",e);return;case"onClick":n!=null&&(e.onclick=Xi);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!i7.hasOwnProperty(r))t:{if(r[0]==="o"&&r[1]==="n"&&(a=r.endsWith("Capture"),i=r.slice(2,a?r.length-7:void 0),t=e[Gn]||null,t=t!=null?t[r]:null,typeof t=="function"&&e.removeEventListener(i,t,a),typeof n=="function")){typeof t!="function"&&t!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(i,n,a);break t}ae=!0,r in e?e[r]=n:n===!0?e.setAttribute(r,""):$_(e,r,n)}return}ae=!0}function Fr(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Kt("error",e),Kt("load",e);var n=!1,a=!1,i;for(i in r)if(r.hasOwnProperty(i)){var o=r[i];if(o!=null)switch(i){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(W(137,t));default:de(e,t,i,o,r,null)}}a&&de(e,t,"srcSet",r.srcSet,r,null),n&&de(e,t,"src",r.src,r,null);return;case"input":Kt("invalid",e);var s=i=o=a=null,l=null,u=null;for(n in r)if(r.hasOwnProperty(n)){var f=r[n];if(f!=null)switch(n){case"name":a=f;break;case"type":o=f;break;case"checked":l=f;break;case"defaultChecked":u=f;break;case"value":i=f;break;case"defaultValue":s=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(W(137,t));break;default:de(e,t,n,f,r,null)}}l7(e,i,s,l,u,o,a,!1);return;case"select":Kt("invalid",e),n=o=i=null;for(a in r)if(r.hasOwnProperty(a)&&(s=r[a],s!=null))switch(a){case"value":i=s;break;case"defaultValue":o=s;break;case"multiple":n=s;default:de(e,t,a,s,r,null)}t=i,r=o,e.multiple=!!n,t!=null?ch(e,!!n,t,!1):r!=null&&ch(e,!!n,r,!0);return;case"textarea":Kt("invalid",e),i=a=n=null;for(o in r)if(r.hasOwnProperty(o)&&(s=r[o],s!=null))switch(o){case"value":n=s;break;case"defaultValue":a=s;break;case"children":i=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(W(91));break;default:de(e,t,o,s,r,null)}f7(e,n,a,i);return;case"option":for(l in r)if(r.hasOwnProperty(l)&&(n=r[l],n!=null))switch(l){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:de(e,t,l,n,r,null)}return;case"dialog":Kt("beforetoggle",e),Kt("toggle",e),Kt("cancel",e),Kt("close",e);break;case"iframe":case"object":Kt("load",e);break;case"video":case"audio":for(n=0;n<ey.length;n++)Kt(ey[n],e);break;case"image":Kt("error",e),Kt("load",e);break;case"details":Kt("toggle",e);break;case"embed":case"source":case"link":Kt("error",e),Kt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in r)if(r.hasOwnProperty(u)&&(n=r[u],n!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(W(137,t));default:de(e,t,u,n,r,null)}return;default:if(hR(t)){for(f in r)r.hasOwnProperty(f)&&(n=r[f],n!==void 0&&h2(e,t,f,n,r,void 0));return}}for(s in r)r.hasOwnProperty(s)&&(n=r[s],n!=null&&de(e,t,s,n,r,null))}var got={};function yot(e,t,r,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,o=null,s=null,l=null,u=null,f=null;for(h in r){var c=r[h];if(r.hasOwnProperty(h)&&c!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":l=c;default:n.hasOwnProperty(h)||de(e,t,h,null,n,c)}}for(var v in n){var h=n[v];if(c=r[v],n.hasOwnProperty(v)&&(h!=null||c!=null))switch(v){case"type":h!==c&&(ae=!0),i=h;break;case"name":h!==c&&(ae=!0),a=h;break;case"checked":h!==c&&(ae=!0),u=h;break;case"defaultChecked":h!==c&&(ae=!0),f=h;break;case"value":h!==c&&(ae=!0),o=h;break;case"defaultValue":h!==c&&(ae=!0),s=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(W(137,t));break;default:h!==c&&de(e,t,v,h,n,c)}}CD(e,o,s,l,u,f,i,a);return;case"select":h=o=s=v=null;for(i in r)if(l=r[i],r.hasOwnProperty(i)&&l!=null)switch(i){case"value":break;case"multiple":h=l;default:n.hasOwnProperty(i)||de(e,t,i,null,n,l)}for(a in n)if(i=n[a],l=r[a],n.hasOwnProperty(a)&&(i!=null||l!=null))switch(a){case"value":i!==l&&(ae=!0),v=i;break;case"defaultValue":i!==l&&(ae=!0),s=i;break;case"multiple":i!==l&&(ae=!0),o=i;default:i!==l&&de(e,t,a,i,n,l)}t=s,r=o,n=h,v!=null?ch(e,!!r,v,!1):!!n!=!!r&&(t!=null?ch(e,!!r,t,!0):ch(e,!!r,r?[]:"",!1));return;case"textarea":h=v=null;for(s in r)if(a=r[s],r.hasOwnProperty(s)&&a!=null&&!n.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:de(e,t,s,null,n,a)}for(o in n)if(a=n[o],i=r[o],n.hasOwnProperty(o)&&(a!=null||i!=null))switch(o){case"value":a!==i&&(ae=!0),v=a;break;case"defaultValue":a!==i&&(ae=!0),h=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(W(91));break;default:a!==i&&de(e,t,o,a,n,i)}u7(e,v,h);return;case"option":for(var d in r)if(v=r[d],r.hasOwnProperty(d)&&v!=null&&!n.hasOwnProperty(d))switch(d){case"selected":e.selected=!1;break;default:de(e,t,d,null,n,v)}for(l in n)if(v=n[l],h=r[l],n.hasOwnProperty(l)&&v!==h&&(v!=null||h!=null))switch(l){case"selected":v!==h&&(ae=!0),e.selected=v&&typeof v!="function"&&typeof v!="symbol";break;default:de(e,t,l,v,n,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var p in r)v=r[p],r.hasOwnProperty(p)&&v!=null&&!n.hasOwnProperty(p)&&de(e,t,p,null,n,v);for(u in n)if(v=n[u],h=r[u],n.hasOwnProperty(u)&&v!==h&&(v!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(v!=null)throw Error(W(137,t));break;default:de(e,t,u,v,n,h)}return;default:if(hR(t)){for(var g in r)v=r[g],r.hasOwnProperty(g)&&v!==void 0&&!n.hasOwnProperty(g)&&h2(e,t,g,void 0,n,v);for(f in n)v=n[f],h=r[f],!n.hasOwnProperty(f)||v===h||v===void 0&&h===void 0||h2(e,t,f,v,n,h);return}}for(var y in r)v=r[y],r.hasOwnProperty(y)&&v!=null&&!n.hasOwnProperty(y)&&de(e,t,y,null,n,v);for(c in n)v=n[c],h=r[c],!n.hasOwnProperty(c)||v===h||v==null&&h==null||de(e,t,c,v,n,h)}function PB(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function mot(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),n=0;n<r.length;n++){var a=r[n],i=a.transferSize,o=a.initiatorType,s=a.duration;if(i&&s&&PB(o)){for(o=0,s=a.responseEnd,n+=1;n<r.length;n++){var l=r[n],u=l.startTime;if(u>s)break;var f=l.transferSize,c=l.initiatorType;f&&PB(c)&&(l=l.responseEnd,o+=f*(l<s?1:(s-u)/(l-u)))}if(--n,t+=8*(i+o)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var d2=null,p2=null;function ny(e){return e.nodeType===9?e:e.ownerDocument}function NB(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function p9(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function g9(e,t,r,n){return r=ny(r).createElement(e),r[Br]=n,r[Gn]=t,Fr(r,e,t),Ar(r),r}function g2(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var VT=null;function _ot(){var e=window.event;return e&&e.type==="popstate"?e===VT?!1:(VT=e,!0):(VT=null,!1)}var JR=typeof setTimeout=="function"?setTimeout:void 0,Sot=typeof clearTimeout=="function"?clearTimeout:void 0,kB=typeof Promise=="function"?Promise:void 0,zB=typeof requestAnimationFrame=="function"?requestAnimationFrame:JR,bot=typeof queueMicrotask=="function"?queueMicrotask:typeof kB<"u"?function(e){return kB.resolve(null).then(e).catch(xot)}:JR;function xot(e){setTimeout(function(){throw e})}function du(e){return e==="head"}function BB(e,t){var r=t,n=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"||r==="/&"){if(n===0){e.removeChild(a),Zh(t);return}n--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")n++;else if(r==="html")HT(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,HT(r);for(var i=r.firstChild;i;){var o=i.nextSibling,s=i.nodeName;i[hm]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&i.rel.toLowerCase()==="stylesheet"||r.removeChild(i),i=o}}else r==="body"&&HT(e.ownerDocument.body);r=a}while(r);Zh(t)}function VB(e,t){var r=e;e=0;do{var n=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=n}while(r)}function y9(e,t,r){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,r!=null&&(e.style.viewTransitionClass=r),r=getComputedStyle(e),r.display==="inline"){if(t=e.getClientRects(),t.length===1)var n=1;else for(var a=n=0;a<t.length;a++){var i=t[a];0<i.width&&0<i.height&&n++}n===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+r.paddingTop,e.marginBottom="-"+r.paddingBottom)}}function m9(e,t){e=e.style,t=t.style;var r=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=r==null||typeof r=="boolean"?"":(""+r).trim(),r=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=r==null||typeof r=="boolean"?"":(""+r).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(r=t.display,e.display=r==null||typeof r=="boolean"?"":r,r=t.margin,r!=null?e.margin=r:(r=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=r==null||typeof r=="boolean"?"":r,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function wot(e,t,r){return r=r.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=r.innerHeight&&e.left<=r.innerWidth}}function y2(e){var t=e.getBoundingClientRect(),r=getComputedStyle(e);return wot(t,r,e)}function Tot(e){return e.documentElement.clientHeight}function Cot(e){this.addEventListener("load",e),this.addEventListener("error",e)}function Aot(e,t,r,n,a,i,o,s,l){var u=t.nodeType===9?t:t.ownerDocument;try{var f=u.startViewTransition({update:function(){var v=u.defaultView,h=v.navigation&&v.navigation.transition,d=u.fonts.status;n();var p=[];if(d==="loaded"&&(Tot(u),u.fonts.status==="loading"&&p.push(u.fonts.ready)),d=p.length,e!==null)for(var g=e.suspenseyImages,y=0,m=0;m<g.length;m++){var _=g[m];if(!_.complete){var S=_.getBoundingClientRect();if(0<S.bottom&&0<S.right&&S.top<v.innerHeight&&S.left<v.innerWidth){if(y+=L9(_),y>uS){p.length=d;break}_=new Promise(Cot.bind(_)),p.push(_)}}}if(0<p.length)return v=Promise.race([Promise.all(p),new Promise(function(b){return setTimeout(b,500)})]).then(a,a),(h?Promise.allSettled([h.finished,v]):v).then(i,i);if(a(),h)return h.finished.then(i,i);i()},types:r});u.__reactViewTransition=f;var c=[];return f.ready.then(function(){for(var v=u.documentElement.getAnimations({subtree:!0}),h=0;h<v.length;h++){var d=v[h],p=d.effect,g=p.pseudoElement;if(g!=null&&g.startsWith("::view-transition")){c.push(d),d=p.getKeyframes();for(var y=g=void 0,m=!0,_=0;_<d.length;_++){var S=d[_],b=S.width;if(g===void 0)g=b;else if(g!==b){m=!1;break}if(b=S.height,y===void 0)y=b;else if(y!==b){m=!1;break}delete S.width,delete S.height,S.transform==="none"&&delete S.transform}m&&g!==void 0&&y!==void 0&&(p.setKeyframes(d),m=getComputedStyle(p.target,p.pseudoElement),m.width!==g||m.height!==y)&&(m=d[0],m.width=g,m.height=y,m=d[d.length-1],m.width=g,m.height=y,p.setKeyframes(d))}}o()},function(v){u.__reactViewTransition===f&&(u.__reactViewTransition=null);try{if(typeof v=="object"&&v!==null)switch(v.name){case"InvalidStateError":(v.message==="View transition was skipped because document visibility state is hidden."||v.message==="Skipping view transition because document visibility state has become hidden."||v.message==="Skipping view transition because viewport size changed."||v.message==="Transition was aborted because of invalid state")&&(v=null)}v!==null&&l(v)}finally{n(),a(),o()}}),f.finished.finally(function(){for(var v=0;v<c.length;v++)c[v].cancel();u.__reactViewTransition===f&&(u.__reactViewTransition=null),s()}),f}catch{return n(),a(),o(),null}}function pf(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}pf.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:Ce({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};pf.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,r=e.getAnimations({subtree:!0}),n=[],a=0;a<r.length;a++){var i=r[a].effect;i!==null&&i.target===e&&i.pseudoElement===t&&n.push(r[a])}return n};pf.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function _9(e){return{name:e,group:new pf("group",e),imagePair:new pf("image-pair",e),old:new pf("old",e),new:new pf("new",e)}}function ha(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}ha.prototype.addEventListener=function(e,t,r){var n=null,a=null;if(!(r!=null&&typeof r!="boolean"&&(n=r.signal||null,n!==null&&n.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var i=this._eventListeners;if(S9(i,e,t,r)===-1){var o=this,s=t;r!=null&&typeof r!="boolean"&&r.once===!0&&(s=function(l){o.removeEventListener(e,t,r),typeof t=="function"?t.call(this,l):t.handleEvent(l)}),n!==null&&(a=o.removeEventListener.bind(o,e,t,r),n.addEventListener("abort",a,{once:!0}),a=n.removeEventListener.bind(n,"abort",a)),n=jh(r),i.push({type:e,listener:t,optionsOrUseCapture:r,attachedListener:s,cleanup:a}),Vn(this._fragmentFiber.child,!1,Mot,e,s,n)}this._eventListeners=i}};function Mot(e,t,r,n){return cr(e).addEventListener(t,r,n),!1}ha.prototype.removeEventListener=function(e,t,r){var n=this._eventListeners;if(n!==null&&(t=S9(n,e,t,r),t!==-1)){var a=n[t];r=a.attachedListener;var i=a.cleanup;a=jh(a.optionsOrUseCapture),Vn(this._fragmentFiber.child,!1,Dot,e,r,a),n.splice(t,1),i!==null&&i()}};function Dot(e,t,r,n){return cr(e).removeEventListener(t,r,n),!1}function jh(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function GB(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function S9(e,t,r,n){if(e.length===0)return-1;n=GB(n);for(var a=0;a<e.length;a++){var i=e[a];if(i.type===t&&i.listener===r&&GB(i.optionsOrUseCapture)===n)return a}return-1}ha.prototype.dispatchEvent=function(e){var t=Nc(this._fragmentFiber);if(t===null)return!0;t=cr(t);var r=this._eventListeners;if(r!==null&&0<r.length||!e.bubbles){var n=t.nodeType===9?t.createComment(""):document.createTextNode("");if(r)for(var a=0;a<r.length;a++){var i=r[a];n.addEventListener(i.type,i.attachedListener,jh(i.optionsOrUseCapture))}if(t.appendChild(n),e=n.dispatchEvent(e),r)for(a=0;a<r.length;a++)i=r[a],n.removeEventListener(i.type,i.attachedListener,jh(i.optionsOrUseCapture));return t.removeChild(n),e}return t.dispatchEvent(e)};ha.prototype.focus=function(e){Vn(this._fragmentFiber.child,!0,b9,e,void 0,void 0)};function b9(e,t){return e.tag===6?!1:(e=cr(e),Got(e,t))}ha.prototype.focusLast=function(e){var t=[];Vn(this._fragmentFiber.child,!0,tI,t,void 0,void 0);for(var r=t.length-1;0<=r&&!b9(t[r],e);r--);};function tI(e,t){return t.push(e),!1}ha.prototype.blur=function(){var e=Nc(this._fragmentFiber);e!==null&&(e=cr(e),e=ny(e).activeElement,e!==null&&Vn(this._fragmentFiber.child,!1,Eot,e,void 0,void 0))};function Eot(e,t){return e.tag===6?!1:(e=cr(e),e===t||e.contains(t)?(t.blur(),!0):!1)}ha.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),Vn(this._fragmentFiber.child,!1,Lot,e,void 0,void 0)};function Lot(e,t){return e.tag===6||(e=cr(e),t.observe(e)),!1}ha.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),Vn(this._fragmentFiber.child,!1,Oot,e,void 0,void 0);for(var r=t=0;r<oi.length;r++){var n=oi[r];n.fragmentInstance===this&&n.observer===e?e.unobserve(n.instance):oi[t++]=n}oi.length=t}};function Oot(e,t){return e.tag===6||(e=cr(e),t.unobserve(e)),!1}var oi=[],GT=!1;function Rot(e,t,r){oi.push({fragmentInstance:e,observer:t,instance:r}),GT||(GT=!0,Hot(function(){GT=!1;var n=oi;oi=[];for(var a=0;a<n.length;a++){var i=n[a];i.observer.unobserve(i.instance)}}))}ha.prototype.getClientRects=function(){var e=[];return Vn(this._fragmentFiber.child,!1,Iot,e,void 0,void 0),e};function Iot(e,t){if(e.tag===6){e=e.stateNode;var r=e.ownerDocument.createRange();r.selectNodeContents(e),t.push.apply(t,r.getClientRects())}else e=cr(e),t.push.apply(t,e.getClientRects());return!1}ha.prototype.getRootNode=function(e){var t=Nc(this._fragmentFiber);return t===null?this:cr(t).getRootNode(e)};ha.prototype.compareDocumentPosition=function(e){var t=Nc(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var r=[];Vn(this._fragmentFiber.child,!1,tI,r,void 0,void 0);var n=cr(t);if(r.length===0){if(r=n,Sz(this._fragmentFiber)){t:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break t}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(r=t)}t=this._fragmentFiber;var a=n=r.compareDocumentPosition(e);return r===e?a=Node.DOCUMENT_POSITION_CONTAINS:n&Node.DOCUMENT_POSITION_CONTAINED_BY&&(r=Y8(t)[1],r===null?a=Node.DOCUMENT_POSITION_PRECEDING:(e=cr(r).compareDocumentPosition(e),a=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),a|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=cr(r[0]),a=cr(r[r.length-1]);var i=Sz(this._fragmentFiber)?t.parentElement:n;if(i==null)return Node.DOCUMENT_POSITION_DISCONNECTED;n=i.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,i=i.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=a.compareDocumentPosition(e),l=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=n&&i&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=n&&t===e||i&&a===e||l||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!n&&t===e||!i&&a===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Pot(t,this._fragmentFiber,r[0],r[r.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Pot(e,t,r,n,a){var i=df(a);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(r=!!i)t:{for(;i!==null;){if(i.tag===7&&(i===t||i.alternate===t)){r=!0;break t}i=i.return}r=!1}return r}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(i===null)return i=a.ownerDocument,a===i||a===i.documentElement||a===i.body;t:{for(i=t,t=Nc(t);i!==null;){if(!(i.tag!==5&&i.tag!==3&&i.tag!==27||i!==t&&i.alternate!==t)){i=!0;break t}i=i.return}i=!1}return i}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!i)&&!(t=i===r)&&(t=dD(r,i,bz),t===null?t=!1:(Vn(t,!0,lat,i,r),i=Yv,Yv=null,t=i!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!i)&&!(t=i===n)&&(t=dD(n,i,bz),t===null?t=!1:(Vn(t,!0,uat,i,n),i=Yv,hD=Yv=null,t=i!==null)),t):!1}function HB(e,t){var r=e.ownerDocument.createRange();r.selectNodeContents(e),e=r.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}ha.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(W(566));var t=[];Vn(this._fragmentFiber.child,!1,tI,t,void 0,void 0);var r=e!==!1;if(t.length===0){var n=Y8(this._fragmentFiber);if(n=r?n[1]||n[0]||Nc(this._fragmentFiber):n[0]||n[1],n===null)return;if(n.tag===6){e=cr(n),HB(e,r);return}if(n=cr(n),n.nodeType!==9){if(n.nodeType===11){r="host"in n?n.host:null,r!==null&&r.scrollIntoView(e);return}n.scrollIntoView(e)}}for(n=r?t.length-1:0;n!==(r?-1:t.length);){var a=t[n];a.tag===6?(a=cr(a),HB(a,r)):cr(a).scrollIntoView(e),n+=r?-1:1}};function Not(e,t){return e=cr(e),x9(e,t),!1}function x9(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function w9(e,t){var r=t._eventListeners;if(r!==null)for(var n=0;n<r.length;n++){var a=r[n];e.addEventListener(a.type,a.attachedListener,jh(a.optionsOrUseCapture))}e.nodeType!==3&&(r=t._observers,r!==null&&r.forEach(function(i){for(var o=0,s=0;s<oi.length;s++){var l=oi[s];(l.fragmentInstance!==t||l.observer!==i||l.instance!==e)&&(oi[o++]=l)}oi.length=o,i.observe(e)}),x9(e,t))}function kot(e,t){var r=t._eventListeners;if(r!==null)for(var n=0;n<r.length;n++){var a=r[n];e.removeEventListener(a.type,a.attachedListener,jh(a.optionsOrUseCapture))}e.nodeType!==3&&(r=t._observers,r!==null&&r.forEach(function(i){typeof i.rootMargin=="string"?Rot(t,i,e):i.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function m2(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":m2(r),Sx(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function zot(e,t,r,n){for(;e.nodeType===1;){var a=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[hm])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Va(e.nextSibling),e===null)break}return null}function Bot(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Va(e.nextSibling),e===null))return null;return e}function T9(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Va(e.nextSibling),e===null))return null;return e}function _2(e){return e.data==="$?"||e.data==="$~"}function eI(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Vot(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var n=function(){t(),r.removeEventListener("DOMContentLoaded",n)};r.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Va(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var S2=null;function UB(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return Va(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function FB(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function Got(e,t){function r(){n=!0}if(e.ownerDocument.activeElement===e)return!0;var n=!1;try{e.ownerDocument.addEventListener("focus",r,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",r,!0)}return n}function Hot(e){zB(function(){zB(function(t){return e(t)})})}function C9(e,t,r){switch(t=ny(r),e){case"html":if(e=t.documentElement,!e)throw Error(W(452));return e;case"head":if(e=t.head,!e)throw Error(W(453));return e;case"body":if(e=t.body,!e)throw Error(W(454));return e;default:throw Error(W(451))}}function A9(e,t,r){for(var n in r){var a=r[n];r.hasOwnProperty(n)&&a!=null&&de(e,t,n,null,got,a)}r.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Xi&&(e.onclick=null),Sx(e)}function HT(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Sx(e)}var Fa=new Map,YB=new Set;function ay(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Bs=le.d;le.d={f:Uot,r:Fot,D:Yot,C:jot,L:Xot,m:$ot,X:Zot,S:Wot,M:qot};function Uot(){var e=Bs.f(),t=Nx();return e||t}function Fot(e){var t=xd(e);t!==null&&t.tag===5&&t.type==="form"?cY(t):Bs.r(e)}var Ad=typeof document>"u"?null:document;function M9(e,t,r){var n=Ad;if(n&&typeof t=="string"&&t){var a=Ra(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof r=="string"&&(a+='[crossorigin="'+r+'"]'),YB.has(a)||(YB.add(a),e={rel:e,crossOrigin:r,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),Fr(t,"link",e),Ar(t),n.head.appendChild(t)))}}function Yot(e){Bs.D(e),M9("dns-prefetch",e,null)}function jot(e,t){Bs.C(e,t),M9("preconnect",e,t)}function Xot(e,t,r){Bs.L(e,t,r);var n=Ad;if(n&&e&&t){var a='link[rel="preload"][as="'+Ra(t)+'"]';t==="image"&&r&&r.imageSrcSet?(a+='[imagesrcset="'+Ra(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(a+='[imagesizes="'+Ra(r.imageSizes)+'"]')):a+='[href="'+Ra(e)+'"]';var i=a;switch(t){case"style":i=Xh(e);break;case"script":i=Md(e)}if(!(Fa.has(i)||(e=Ce({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),Fa.set(i,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(_m(i))||t==="script"&&n.querySelector(Sm(i))))){var o=n.createElement("link");Fr(o,"link",e),t==="style"&&(o[i1]=!0,o.onload=o.onerror=function(){n7(o)}),Ar(o),n.head.appendChild(o)}}}function $ot(e,t){Bs.m(e,t);var r=Ad;if(r&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Ra(n)+'"][href="'+Ra(e)+'"]',i=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Md(e)}if(!Fa.has(i)&&(e=Ce({rel:"modulepreload",href:e},t),Fa.set(i,e),r.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Sm(i)))return}n=r.createElement("link"),Fr(n,"link",e),Ar(n),r.head.appendChild(n)}}}function Wot(e,t,r){Bs.S(e,t,r);var n=Ad;if(n&&e){var a=fh(n).hoistableStyles,i=Xh(e);t=t||"default";var o=a.get(i);if(!o){var s={loading:0,preload:null};if(o=n.querySelector(_m(i)))s.loading=5;else{e=Ce({rel:"stylesheet",href:e,"data-precedence":t},r),(r=Fa.get(i))&&rI(e,r);var l=o=n.createElement("link");Ar(l),Fr(l,"link",e),l._p=new Promise(function(u,f){l.onload=u,l.onerror=f}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,sS(o,t,n)}o={type:"stylesheet",instance:o,count:1,state:s},a.set(i,o)}}}function Zot(e,t){Bs.X(e,t);var r=Ad;if(r&&e){var n=fh(r).hoistableScripts,a=Md(e),i=n.get(a);i||(i=r.querySelector(Sm(a)),i||(e=Ce({src:e,async:!0},t),(t=Fa.get(a))&&nI(e,t),i=r.createElement("script"),Ar(i),Fr(i,"link",e),r.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function qot(e,t){Bs.M(e,t);var r=Ad;if(r&&e){var n=fh(r).hoistableScripts,a=Md(e),i=n.get(a);i||(i=r.querySelector(Sm(a)),i||(e=Ce({src:e,async:!0,type:"module"},t),(t=Fa.get(a))&&nI(e,t),i=r.createElement("script"),Ar(i),Fr(i,"link",e),r.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function jB(e,t,r,n){var a=(a=Al.current)?ay(a):null;if(!a)throw Error(W(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(r=Xh(r.href),t=fh(a).hoistableStyles,n=t.get(r),n||(n={type:"style",instance:null,count:0,state:null},t.set(r,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=Xh(r.href);var i=fh(a).hoistableStyles,o=i.get(e);if(o||(a=a.ownerDocument||a,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,o),(i=a.querySelector(_m(e)))?i._p||(o.instance=i,o.state.loading=5):(i=Fa.get(e),i||(i={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},Fa.set(e,i)),Kot(a,e,i,o.state))),t&&n===null)throw Error(W(528,""));return o}if(t&&n!==null)throw Error(W(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(r=Md(r),t=fh(a).hoistableScripts,n=t.get(r),n||(n={type:"script",instance:null,count:0,state:null},t.set(r,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(W(444,e))}}function Xh(e){return'href="'+Ra(e)+'"'}function _m(e){return'link[rel="stylesheet"]['+e+"]"}function D9(e){return Ce({},e,{"data-precedence":e.precedence,precedence:null})}function Kot(e,t,r,n){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[i1]!==!0){n.loading=1;return}}else t=e.createElement("link"),t[i1]=!0,t.onload=t.onerror=n7.bind(null,t),Fr(t,"link",r),Ar(t),e.head.appendChild(t);n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2})}function Md(e){return'[src="'+Ra(e)+'"]'}function Sm(e){return"script[async]"+e}function XB(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Ra(r.href)+'"]');if(n)return t.instance=n,Ar(n),n;var a=Ce({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Ar(n),Fr(n,"style",a),sS(n,r.precedence,e),t.instance=n;case"stylesheet":a=Xh(r.href);var i=e.querySelector(_m(a));if(i)return t.state.loading|=4,t.instance=i,Ar(i),i;n=D9(r),(a=Fa.get(a))&&rI(n,a),i=(e.ownerDocument||e).createElement("link"),Ar(i);var o=i;return o._p=new Promise(function(s,l){o.onload=s,o.onerror=l}),Fr(i,"link",n),t.state.loading|=4,sS(i,r.precedence,e),t.instance=i;case"script":return i=Md(r.src),(a=e.querySelector(Sm(i)))?(t.instance=a,Ar(a),a):(n=r,(a=Fa.get(i))&&(n=Ce({},r),nI(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),Ar(a),Fr(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(W(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(n=t.instance,t.state.loading|=4,sS(n,r.precedence,e));return t.instance}function sS(e,t,r){for(var n=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,i=a,o=0;o<n.length;o++){var s=n[o];if(s.dataset.precedence===t)i=s;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function rI(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function nI(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var lS=null;function $B(e,t,r){if(lS===null){var n=new Map,a=lS=new Map;a.set(r,n)}else a=lS,n=a.get(r),n||(n=new Map,a.set(r,n));if(n.has(e))return n;for(n.set(e,null),r=r.getElementsByTagName(e),a=0;a<r.length;a++){var i=r[a];if(!(i[hm]||i[Br]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(t)||"";o=e+o;var s=n.get(o);s?s.push(i):n.set(o,[i])}}return n}function b2(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function Qot(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function WB(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function E9(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function L9(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function ZB(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=L9(t),e.suspenseyImages.push(t)),e=est.bind(e),t.decode().then(e,e))}function Jot(e,t,r,n){if(r.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(r.state.loading&4)){if(r.instance===null){var a=Xh(n.href),i=t.querySelector(_m(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=iy.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=i,Ar(i);return}i=t.ownerDocument||t,n=D9(n),(a=Fa.get(a))&&rI(n,a),i=i.createElement("link"),Ar(i);var o=i;o._p=new Promise(function(s,l){o.onload=s,o.onerror=l}),Fr(i,"link",n),r.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&!(r.state.loading&3)&&(e.count++,r=iy.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var uS=0;function tst(e,t){return e.stylesheets&&e.count===0&&fS(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var n=setTimeout(function(){if(e.stylesheets&&fS(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&uS===0&&(uS=62500*mot());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&fS(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>uS?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function O9(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)fS(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function iy(){this.count--,O9(this)}function est(){this.imgCount--,O9(this)}var D1=null;function fS(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,D1=new Map,t.forEach(rst,e),D1=null,iy.call(e))}function rst(e,t){if(!(t.state.loading&4)){var r=D1.get(e);if(r)var n=r.get(null);else{r=new Map,D1.set(e,r);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var o=a[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(r.set(o.dataset.precedence,o),n=o)}n&&r.set(null,n)}a=t.instance,o=a.getAttribute("data-precedence"),i=r.get(o)||n,i===n&&r.set(null,a),r.set(o,a),this.count++,n=iy.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var $h={$$typeof:ji,Provider:null,Consumer:null,_currentValue:Cf,_currentValue2:Cf,_threadCount:0};function nst(e,t,r,n,a,i,o,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=vT(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vT(0),this.hiddenUpdates=vT(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.transitionTypes=null,this.incompleteTransitions=new Map}function R9(e,t,r,n,a,i,o,s,l,u,f,c){return e=new nst(e,t,r,o,l,u,f,c,s),t=1,i===!0&&(t|=24),i=On(3,null,null,t),e.current=i,i.stateNode=e,t=wR(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:n,isDehydrated:r,cache:t},AR(i),e}function I9(e){return e?(e=Qv,e):Qv}function P9(e,t,r,n,a,i){a=I9(a),n.context===null?n.context=a:n.pendingContext=a,n=Dl(t),n.payload={element:r},i=i===void 0?null:i,i!==null&&(n.callback=i),r=El(e,n,t),r!==null&&(kn(r,e,t),gg(r,e,t))}function qB(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function aI(e,t){qB(e,t),(e=e.alternate)&&qB(e,t)}function N9(e){if(e.tag===13||e.tag===31){var t=Bc(e,67108864);t!==null&&kn(t,e,67108864),aI(e,67108864)}}function KB(e){if(e.tag===13||e.tag===31){var t=la();t=cR(t);var r=Bc(e,t);r!==null&&kn(r,e,t),aI(e,t)}}var Wh=!0;function ast(e,t,r,n){var a=Pt.T;Pt.T=null;var i=le.p;try{le.p=2,iI(e,t,r,n)}finally{le.p=i,Pt.T=a}}function ist(e,t,r,n){var a=Pt.T;Pt.T=null;var i=le.p;try{le.p=8,iI(e,t,r,n)}finally{le.p=i,Pt.T=a}}function iI(e,t,r,n){if(Wh){var a=x2(n);if(a===null)BT(e,t,n,E1,r),QB(e,n);else if(sst(a,e,t,r,n))n.stopPropagation();else if(QB(e,n),t&4&&-1<ost.indexOf(e)){for(;a!==null;){var i=xd(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=Ju(i.pendingLanes);if(o!==0){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var l=1<<31-sa(o);s.entanglements[1]|=l,o&=~l}Oo(i),!(oe&6)&&(w1=ia()+500,mm(0))}}break;case 31:case 13:s=Bc(i,2),s!==null&&kn(s,i,2),Nx(),aI(i,2)}if(i=x2(n),i===null&&BT(e,t,n,E1,r),i===a)break;a=i}a!==null&&n.stopPropagation()}else BT(e,t,n,null,r)}}function x2(e){return e=dR(e),oI(e)}var E1=null;function oI(e){if(E1=null,e=df(e),e!==null){var t=um(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=H8(t),e!==null)return e;e=null}else if(r===31){if(e=U8(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return E1=e,null}function k9(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(mat()){case W8:return 2;case Z8:return 8;case a1:case _at:return 32;case q8:return 268435456;default:return 32}default:return 32}}var w2=!1,Il=null,Pl=null,Nl=null,oy=new Map,sy=new Map,cl=[],ost="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function QB(e,t){switch(e){case"focusin":case"focusout":Il=null;break;case"dragenter":case"dragleave":Pl=null;break;case"mouseover":case"mouseout":Nl=null;break;case"pointerover":case"pointerout":oy.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":sy.delete(t.pointerId)}}function sp(e,t,r,n,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},t!==null&&(t=xd(t),t!==null&&N9(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function sst(e,t,r,n,a){switch(t){case"focusin":return Il=sp(Il,e,t,r,n,a),!0;case"dragenter":return Pl=sp(Pl,e,t,r,n,a),!0;case"mouseover":return Nl=sp(Nl,e,t,r,n,a),!0;case"pointerover":var i=a.pointerId;return oy.set(i,sp(oy.get(i)||null,e,t,r,n,a)),!0;case"gotpointercapture":return i=a.pointerId,sy.set(i,sp(sy.get(i)||null,e,t,r,n,a)),!0}return!1}function z9(e){var t=df(e.target);if(t!==null){var r=um(t);if(r!==null){if(t=r.tag,t===13){if(t=H8(r),t!==null){e.blockedOn=t,Cz(e.priority,function(){KB(r)});return}}else if(t===31){if(t=U8(r),t!==null){e.blockedOn=t,Cz(e.priority,function(){KB(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function cS(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=x2(e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);AD=n,r.target.dispatchEvent(n),AD=null}else return t=xd(r),t!==null&&N9(t),e.blockedOn=r,!1;t.shift()}return!0}function JB(e,t,r){cS(e)&&r.delete(t)}function lst(){w2=!1,Il!==null&&cS(Il)&&(Il=null),Pl!==null&&cS(Pl)&&(Pl=null),Nl!==null&&cS(Nl)&&(Nl=null),oy.forEach(JB),sy.forEach(JB)}function h0(e,t){e.blockedOn===t&&(e.blockedOn=null,w2||(w2=!0,gr.unstable_scheduleCallback(gr.unstable_NormalPriority,lst)))}var d0=null;function t3(e){d0!==e&&(d0=e,gr.unstable_scheduleCallback(gr.unstable_NormalPriority,function(){d0===e&&(d0=null);for(var t=0;t<e.length;t+=3){var r=e[t],n=e[t+1],a=e[t+2];if(typeof n!="function"){if(oI(n||r)===null)continue;break}var i=xd(r);i!==null&&(e.splice(t,3),t-=3,UD(i,{pending:!0,data:a,method:r.method,action:n},n,a))}}))}function Zh(e){function t(l){return h0(l,e)}Il!==null&&h0(Il,e),Pl!==null&&h0(Pl,e),Nl!==null&&h0(Nl,e),oy.forEach(t),sy.forEach(t);for(var r=0;r<cl.length;r++){var n=cl[r];n.blockedOn===e&&(n.blockedOn=null)}for(;0<cl.length&&(r=cl[0],r.blockedOn===null);)z9(r),r.blockedOn===null&&cl.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(n=0;n<r.length;n+=3){var a=r[n],i=r[n+1],o=a[Gn]||null;if(typeof i=="function")o||t3(r);else if(o){var s=null;if(i&&i.hasAttribute("formAction")){if(a=i,o=i[Gn]||null)s=o.formAction;else if(oI(a)!==null)continue}else s=o.action;typeof s=="function"?r[n+1]=s:(r.splice(n,3),n-=3),t3(r)}}}function B9(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return a=o})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),n||setTimeout(r,20)}function r(){if(!n&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function sI(e){this._internalRoot=e}Bx.prototype.render=sI.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(W(409));var r=t.current,n=la();P9(r,n,e,t,null,null)};Bx.prototype.unmount=sI.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;P9(e.current,2,null,e,null,null),Nx(),t[bd]=null}};function Bx(e){this._internalRoot=e}Bx.prototype.unstable_scheduleHydration=function(e){if(e){var t=r7();e={blockedOn:null,target:e,priority:t};for(var r=0;r<cl.length&&t!==0&&t<cl[r].priority;r++);cl.splice(r,0,e),r===0&&z9(e)}};var e3=V8.version;if(e3!=="19.3.0")throw Error(W(527,e3,"19.3.0"));le.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(W(188)):(e=Object.keys(e).join(","),Error(W(268,e)));return e=sat(t),e=e!==null?F8(e):null,e=e===null?null:e.stateNode,e};var ust={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:Pt,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var p0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!p0.isDisabled&&p0.supportsFiber)try{fm=p0.inject(ust),oa=p0}catch{}}mx.createRoot=function(e,t){if(!G8(e))throw Error(W(299));var r=!1,n="",a=_Y,i=SY,o=bY;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=R9(e,1,!1,null,null,r,n,null,a,i,o,B9),e[bd]=t.current,QR(e),new sI(t)};mx.hydrateRoot=function(e,t,r){if(!G8(e))throw Error(W(299));var n=!1,a="",i=_Y,o=SY,s=bY,l=null;return r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onUncaughtError!==void 0&&(i=r.onUncaughtError),r.onCaughtError!==void 0&&(o=r.onCaughtError),r.onRecoverableError!==void 0&&(s=r.onRecoverableError),r.formState!==void 0&&(l=r.formState)),t=R9(e,1,!0,t,r??null,n,a,l,i,o,s,B9),t.context=I9(null),r=t.current,n=la(),n=cR(n),a=Dl(n),a.callback=null,El(r,a,n),r=n,t.current.lanes=r,vm(t,r),Oo(t),e[bd]=t.current,QR(e),new Bx(t)};mx.version="19.3.0";function V9(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(V9)}catch(e){console.error(e)}}V9(),k8.exports=mx;var fst=k8.exports;async function cst(e){Gr.use(Wnt).init({resources:{"en-US":{translation:e["en-US"]},"zh-CN":{translation:e["zh-CN"]}},lng:"en-US",fallbackLng:"en-US",interpolation:{escapeValue:!1}});const t=await tinker.getLanguage();Gr.changeLanguage(t),tinker.on("changeLanguage",r=>Gr.changeLanguage(r))}async function vst(e,t){await cst(t);const r=document.getElementById("app");fst.createRoot(r).render(Z.jsx(e,{}))}var T2={exports:{}},C2={exports:{}},A2={exports:{}},M2={exports:{}},D2={exports:{}},E2={exports:{}};(function(e,t){var r=yx,n=sm;t=function(a,i){return function(o){return n(arguments,function(s,l){if(l!==0){var u=a(s);n(u,function(f){(!i||r(o[f]))&&(o[f]=s[f])})}}),o}},e.exports=t})(E2,E2.exports);var lI=E2.exports,L2={exports:{}},O2={exports:{}};(function(e,t){var r=Pc,n=Sd,a=Object.getPrototypeOf,i={}.constructor;t=function(o){if(r(o)){if(a)return a(o);var s=o.__proto__;if(s||s===null)return s;if(n(o.constructor))return o.constructor.prototype;if(o instanceof i)return i.prototype}},e.exports=t})(O2,O2.exports);var hst=O2.exports,R2={exports:{}},I2={exports:{}},P2={exports:{}},N2={exports:{}},k2={exports:{}};(function(e,t){var r=Rc,n=lI;t=n(r),e.exports=t})(k2,k2.exports);var dst=k2.exports,z2={exports:{}};(function(e,t){var r=Rc;t=function(n,a){var i=r(a),o=i.length;if(n==null)return!o;n=Object(n);for(var s=0;s<o;s++){var l=i[s];if(a[l]!==n[l]||!(l in n))return!1}return!0},e.exports=t})(z2,z2.exports);var pst=z2.exports;(function(e,t){var r=dst,n=pst;t=function(a){return a=r({},a),function(i){return n(i,a)}},e.exports=t})(N2,N2.exports);var gst=N2.exports,B2={exports:{}};(function(e,t){t=function(r){return r},e.exports=t})(B2,B2.exports);var yst=B2.exports,V2={exports:{}},G2={exports:{}},H2={exports:{}};(function(e,t){var r=sR,n=Ic;t=function(o,s){if(n(o))return o;if(s&&r(s,o))return[o];var l=[];return o.replace(a,function(u,f,c,v){l.push(c?v.replace(i,"$1"):f||u)}),l};var a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;e.exports=t})(H2,H2.exports);var mst=H2.exports;(function(e,t){var r=yx,n=mst;t=function(a,i){i=n(i,a);var o;for(o=i.shift();!r(o);){if(a=a[o],a==null)return;o=i.shift()}return a},e.exports=t})(G2,G2.exports);var G9=G2.exports;(function(e,t){var r=Ic,n=G9;t=function(i){return r(i)?function(o){return n(o,i)}:a(i)};function a(i){return function(o){return o==null?void 0:o[i]}}e.exports=t})(V2,V2.exports);var _st=V2.exports;(function(e,t){var r=Sd,n=Pc,a=Ic,i=N8,o=gst,s=yst,l=_st;t=function(u,f,c){return u==null?s:r(u)?i(u,f,c):n(u)&&!a(u)?o(u):l(u)},e.exports=t})(P2,P2.exports);var H9=P2.exports;(function(e,t){var r=H9,n=sm;t=function(a,i,o){var s=[];return i=r(i,o),n(a,function(l,u,f){i(l,u,f)&&s.push(l)}),s},e.exports=t})(I2,I2.exports);var Sst=I2.exports;(function(e,t){var r=Sst;t=function(a,i){return i=i||n,r(a,function(o,s,l){for(var u=l.length;++s<u;)if(i(o,l[s]))return!1;return!0})};function n(a,i){return a===i}e.exports=t})(R2,R2.exports);var bst=R2.exports;(function(e,t){var r=Rc,n=hst,a=bst,i=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols;t=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=l.prototype,f=u===void 0?!0:u,c=l.unenumerable,v=c===void 0?!1:c,h=l.symbol,d=h===void 0?!1:h,p=[];if((v||d)&&i){var g=r;v&&i&&(g=i);do p=p.concat(g(s)),d&&o&&(p=p.concat(o(s)));while(f&&(s=n(s))&&s!==Object.prototype);p=a(p)}else if(f)for(var y in s)p.push(y);else p=r(s);return p},e.exports=t})(L2,L2.exports);var U9=L2.exports;(function(e,t){var r=lI,n=U9;t=r(n),e.exports=t})(D2,D2.exports);var F9=D2.exports,U2={exports:{}},F2={exports:{}};(function(e,t){var r=H9,n=Rc,a=gx;t=function(i,o,s){o=r(o,s);for(var l=!a(i)&&n(i),u=(l||i).length,f=Array(u),c=0;c<u;c++){var v=l?l[c]:c;f[c]=o(i[v],v,i)}return f},e.exports=t})(F2,F2.exports);var xst=F2.exports;(function(e,t){var r=gx,n=xst,a=Ic,i=lm;t=function(o){return o?a(o)?o:r(o)&&!i(o)?n(o):[o]:[]},e.exports=t})(U2,U2.exports);var uI=U2.exports,Y2={exports:{}},j2={exports:{}};(function(e,t){var r=Pc;t=function(a){if(!r(a))return{};if(n)return n(a);function i(){}return i.prototype=a,new i};var n=Object.create;e.exports=t})(j2,j2.exports);var wst=j2.exports;(function(e,t){var r=wst;t=function(n,a){n.prototype=r(a.prototype)},e.exports=t})(Y2,Y2.exports);var Tst=Y2.exports,X2={exports:{}};(function(e,t){var r=Sd;t=typeof wx<"u"&&r(wx.openLocation),e.exports=t})(X2,X2.exports);var Cst=X2.exports;(function(e,t){var r=F9,n=uI,a=Tst,i=G9,o=Cst;t=function(u,f){return l.extend(u,f)};function s(u,f,c){c=c||{};var v=f.className||i(f,"initialize.name")||"";delete f.className;var h=function(){var d=n(arguments);return this.initialize?this.initialize.apply(this,d)||this:this};if(!o)try{h=new Function("toArr","return function "+v+"(){var args = toArr(arguments);return this.initialize ? this.initialize.apply(this, args) || this : this;};")(n)}catch{}return a(h,u),h.prototype.constructor=h,h.extend=function(d,p){return s(h,d,p)},h.inherits=function(d){a(h,d)},h.methods=function(d){return r(h.prototype,d),h},h.statics=function(d){return r(h,d),h},h.methods(f).statics(c),h}var l=t.Base=s(Object,{className:"Base",callSuper:function(u,f,c){var v=u.prototype[f];return v.apply(this,c)},toString:function(){return this.constructor.name}});e.exports=t})(M2,M2.exports);var Ast=M2.exports,$2={exports:{}};(function(e,t){t=function(r,n,a){var i=r.length;n==null?n=0:n<0?n=Math.max(i+n,0):n=Math.min(n,i),a==null?a=i:a<0?a=Math.max(i+a,0):a=Math.min(a,i);for(var o=[];n<a;)o.push(r[n++]);return o},e.exports=t})($2,$2.exports);var Mst=$2.exports,W2={exports:{}},Z2={exports:{}},q2={exports:{}};(function(e,t){t=function(r,n){return n=n==null?r.length-1:+n,function(){var a=Math.max(arguments.length-n,0),i=new Array(a),o;for(o=0;o<a;o++)i[o]=arguments[o+n];switch(n){case 0:return r.call(this,i);case 1:return r.call(this,arguments[0],i);case 2:return r.call(this,arguments[0],arguments[1],i)}var s=new Array(n+1);for(o=0;o<n;o++)s[o]=arguments[o];return s[n]=i,r.apply(this,s)}},e.exports=t})(q2,q2.exports);var Dst=q2.exports;(function(e,t){var r=Dst,n=uI;t=r(function(a,i){return function(){var o=[];return o=o.concat(i),o=o.concat(n(arguments)),a.apply(this,o)}}),e.exports=t})(Z2,Z2.exports);var Est=Z2.exports,K2={exports:{}};(function(e,t){t=function(r,n){var a;return function(){return--r>0&&(a=n.apply(this,arguments)),r<=1&&(n=null),a}},e.exports=t})(K2,K2.exports);var Lst=K2.exports;(function(e,t){var r=Est,n=Lst;t=r(n,2),e.exports=t})(W2,W2.exports);var Ost=W2.exports,Q2={exports:{}};(function(e,t){var r=Pc,n=Ic,a=F9;t=function(i){return r(i)?n(i)?i.slice():a({},i):i},e.exports=t})(Q2,Q2.exports);var Rst=Q2.exports;(function(e,t){var r=Ast,n=sR,a=sm,i=Mst,o=Ost,s=Rst;t=r({initialize:function(){this._events=this._events||{}},on:function(l,u){return this._events[l]=this._events[l]||[],this._events[l].push(u),this},off:function(l,u){var f=this._events;if(n(f,l)){var c=f[l].indexOf(u);return c>-1&&f[l].splice(c,1),this}},once:function(l,u){return this.on(l,o(u)),this},emit:function(l){var u=this;if(n(this._events,l)){var f=i(arguments,1),c=s(this._events[l]);return a(c,function(v){return v.apply(u,f)},this),this}},removeAllListeners:function(l){return l?delete this._events[l]:this._events={},this}},{mixin:function(l){a(["on","off","once","emit","removeAllListeners"],function(u){l[u]=t.prototype[u]}),l._events=l._events||{}}}),e.exports=t})(A2,A2.exports);var Ist=A2.exports;(function(e,t){var r=Ist,n=lm,a=Pc,i=sm,o=uI;t=r.extend({initialize:function(l){this.callSuper(r,"initialize",arguments),this._data=l||{},this.save(this._data)},set:function(s,l){var u;n(s)?(u={},u[s]=l):a(s)&&(u=s);var f=this;i(u,function(c,v){var h=f._data[v];f._data[v]=c,f.emit("change",v,c,h)}),this.save(this._data)},get:function(s){var l=this._data;if(n(s))return l[s];var u={};return i(s,function(f){u[f]=l[f]}),u},remove:function(s){s=o(s);var l=this._data;i(s,function(u){delete l[u]}),this.save(l)},clear:function(){this._data={},this.save(this._data)},each:function(s){i(this._data,s)},save:function(s){this._data=s}}),e.exports=t})(C2,C2.exports);var Pst=C2.exports,J2={exports:{}},tE={exports:{}};(function(e,t){var r=Rc;t={getItem:function(l){return(a[l]?n[l]:this[l])||null},setItem:function(l,u){a[l]?n[l]=u:this[l]=u},removeItem:function(l){a[l]?delete n[l]:delete this[l]},key:function(l){var u=i();return l>=0&&l<u.length?u[l]:null},clear:function(){for(var l=o(),u=0,f;f=l[u];u++)delete this[f];l=s();for(var c=0,v;v=l[c];c++)delete n[v]}},Object.defineProperty(t,"length",{enumerable:!1,configurable:!0,get:function(){return i().length}});var n={},a={getItem:1,setItem:1,removeItem:1,key:1,clear:1,length:1};function i(){return o().concat(s())}function o(){return r(t).filter(function(l){return!a[l]})}function s(){return r(n)}e.exports=t})(tE,tE.exports);var Nst=tE.exports;(function(e,t){var r=Nst;t=function(n){n=n||"local";var a;switch(n){case"local":a=window.localStorage;break;case"session":a=window.sessionStorage;break}try{var i="test-localStorage-"+Date.now();a.setItem(i,i);var o=a.getItem(i);if(a.removeItem(i),o!==i)throw new Error}catch{return r}return a},e.exports=t})(J2,J2.exports);var kst=J2.exports,eE={exports:{}},rE={exports:{}};(function(e,t){var r=vu;t=function(n){return r(n)==="[object Arguments]"},e.exports=t})(rE,rE.exports);var zst=rE.exports;(function(e,t){var r=gx,n=Ic,a=lm,i=zst,o=Rc;t=function(s){return s==null?!0:r(s)&&(n(s)||a(s)||i(s))?s.length===0:o(s).length===0},e.exports=t})(eE,eE.exports);var Bst=eE.exports,nE={exports:{}},aE={exports:{}},iE={exports:{}};(function(e,t){var r=oR;t=function(n){return r(n)&&n!==+n},e.exports=t})(iE,iE.exports);var Vst=iE.exports,oE={exports:{}},sE={exports:{}};(function(e,t){t=function(r){return r==null?"":r.toString()},e.exports=t})(sE,sE.exports);var fI=sE.exports;const Gst=uu(fI);(function(e,t){var r=fI;t=function(n){return r(n).toLocaleLowerCase()},e.exports=t})(oE,oE.exports);var Hst=oE.exports,lE={exports:{}};(function(e,t){var r=Sd;t=function(n){return n==null?!1:n._isBuffer?!0:n.constructor&&r(n.constructor.isBuffer)&&n.constructor.isBuffer(n)},e.exports=t})(lE,lE.exports);var Ust=lE.exports;(function(e,t){var r=vu,n=Vst,a=Hst,i=Ust;t=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u;return s===null&&(u="Null"),s===void 0&&(u="Undefined"),n(s)&&(u="NaN"),i(s)&&(u="Buffer"),u||(u=r(s).match(o),u&&(u=u[1])),u?l?a(u):u:""};var o=/^\[object\s+(.*?)]$/;e.exports=t})(aE,aE.exports);var Fst=aE.exports,uE={exports:{}};(function(e,t){t=function(r){return r.length<1?r:r[0].toUpperCase()+r.slice(1)},e.exports=t})(uE,uE.exports);var Yst=uE.exports,fE={exports:{}};(function(e,t){var r=vu;t=function(n){return r(n)==="[object RegExp]"},e.exports=t})(fE,fE.exports);var jst=fE.exports;(function(e,t){var r=Fst,n=Yst,a=fI,i=yx,o=Sd,s=jst;t=function(u,f){return JSON.stringify(u,l(),f)};function l(){var u=[],f=[];return function(c,v){if(u.length>0){var h=u.indexOf(this);h>-1?(u.splice(h+1),f.splice(h,1/0,c)):(u.push(this),f.push(c));var d=u.indexOf(v);d>-1&&(u[0]===v?v="[Circular ~]":v="[Circular ~."+f.slice(0,d).join(".")+"]")}else u.push(v);return s(v)||o(v)?v="["+n(r(v))+" "+a(v)+"]":i(v)&&(v=null),v}}e.exports=t})(nE,nE.exports);var Xst=nE.exports,cE={exports:{}};(function(e,t){var r=lI,n=U9;t=r(n,!0),e.exports=t})(cE,cE.exports);var $st=cE.exports;(function(e,t){var r=Pst,n=kst,a=Bst,i=Xst,o=$st,s=Pc,l=n("local");t=r.extend({initialize:function(f,c){this._name=f,c=c||{};var v=l.getItem(f);try{v=JSON.parse(v)}catch{v={}}s(v)||(v={}),c=o(v,c),this.callSuper(r,"initialize",[c])},save:function(u){if(a(u))return l.removeItem(this._name);l.setItem(this._name,i(u))}}),e.exports=t})(T2,T2.exports);var Wst=T2.exports;const Zst=uu(Wst),lp="__TINKER_PLUGIN_STORAGE__";function qst(){var t;const e=window;try{const r=(t=window.opener)==null?void 0:t[lp];if(r)return e[lp]=r,r}catch{}return e[lp]||(e[lp]=new Zst(location.host)),e[lp]}const r3=qst();class Kst{constructor(){Xs(this,"isDark",!1);this.initTheme()}setIsDark(t){this.isDark=t}async initTheme(){try{const t=await tinker.getTheme();this.setIsDark(t==="dark"),tinker.on("changeTheme",async()=>{const r=await tinker.getTheme();this.setIsDark(r==="dark")})}catch(t){console.error("Failed to initialize theme:",t)}}}var vE={exports:{}};(function(e,t){var r=vu;t=function(n){switch(r(n)){case"[object Error]":case"[object DOMException]":return!0;default:return n instanceof Error}},e.exports=t})(vE,vE.exports);var Qst=vE.exports;const Jst=uu(Qst);function tlt(e){return Jst(e)?e.message:tat(e)&&e?e:Gst(e)}function n3(){return new Date().toISOString().split("T")[0]}function Y9(e){return e==="zh-CN"?"zh-CN":"en-US"}function a3(){return{total:{inputTokens:0,outputTokens:0,cacheCreationTokens:0,cacheReadTokens:0,totalTokens:0,sessionCount:0},byDay:[]}}const i3="dataSource";class elt extends Kst{constructor(){super();Xs(this,"dataSource","claude-code");Xs(this,"usageData",a3());Xs(this,"loading",!1);Xs(this,"error",null);Xs(this,"dateRange",(()=>{const r=n3();return{start:r,end:r}})());Xs(this,"seriesVisibility",{inputTokens:!0,outputTokens:!0,totalTokens:!1,sessionCount:!0});Mrt(this),this.loadFromStorage()}loadFromStorage(){const r=r3.get(i3);(r==="claude-code"||r==="codex")&&(this.dataSource=r)}setDataSource(r){this.dataSource=r,r3.set(i3,r)}async switchDataSource(r){this.setDataSource(r),await this.loadUsageData()}setUsageData(r){this.usageData=r}setLoading(r){this.loading=r}setError(r){this.error=r}setDateRange(r,n){this.dateRange={start:r,end:n}}toggleSeriesVisibility(r){Object.values(this.seriesVisibility).filter(a=>a).length===1&&this.seriesVisibility[r]||(this.seriesVisibility[r]=!this.seriesVisibility[r])}get filteredStats(){var i;if(!this.usageData||!this.dateRange)return((i=this.usageData)==null?void 0:i.total)||null;const{start:r,end:n}=this.dateRange,a=this.usageData.byDay.filter(o=>o.date>=r&&o.date<=n);return a.length===0?this.usageData.total:a.reduce((o,s)=>(o.inputTokens+=s.inputTokens,o.outputTokens+=s.outputTokens,o.cacheCreationTokens+=s.cacheCreationTokens,o.cacheReadTokens+=s.cacheReadTokens,o.totalTokens+=s.totalTokens,o.sessionCount+=s.sessionCount,o),{inputTokens:0,outputTokens:0,cacheCreationTokens:0,cacheReadTokens:0,totalTokens:0,sessionCount:0})}async loadUsageData(){this.setLoading(!0),this.setError(null);try{const r=await tokenUsage.getUsage(this.dataSource);if(this.setUsageData(r),r.byDay&&r.byDay.length>0){const n=r.byDay[0].date,a=r.byDay[r.byDay.length-1].date;this.setDateRange(n,a)}}catch(r){console.error("Failed to load token usage data:",r),this.setError(tlt(r));const n=n3();this.setUsageData(a3()),this.setDateRange(n,n)}finally{this.setLoading(!1)}}async refresh(){await this.loadUsageData()}}const Be=new elt,xt={background:{primary:"bg-gradient-to-br from-neutral-50 via-neutral-100 to-neutral-50 dark:from-neutral-950 dark:via-neutral-900 dark:to-neutral-950",card:"bg-white/80 dark:bg-neutral-900/80 backdrop-blur-xl",hover:"hover:bg-neutral-50 dark:hover:bg-neutral-800/50"},text:{primary:"text-neutral-900 dark:text-neutral-100",secondary:"text-neutral-700 dark:text-neutral-300",muted:"text-neutral-500 dark:text-neutral-400",white:"text-white"},border:{card:"border border-neutral-300 dark:border-neutral-700"},gradient:{blue:"from-blue-500 to-blue-600 dark:from-blue-400 dark:to-blue-500",green:"from-green-500 to-green-600 dark:from-green-400 dark:to-green-500",purple:"from-purple-500 to-purple-600 dark:from-purple-400 dark:to-purple-500",orange:"from-orange-500 to-orange-600 dark:from-orange-400 dark:to-orange-500"},button:{primary:{base:"bg-gradient-to-br from-[#df754f] to-[#d66638] dark:from-[#f08a65] dark:to-[#df754f]",hover:"hover:scale-105 active:scale-95",disabled:"disabled:from-neutral-300 disabled:to-neutral-400 dark:disabled:from-neutral-700 dark:disabled:to-neutral-800 disabled:shadow-none disabled:cursor-not-allowed disabled:scale-100",transition:"transition-all duration-200"}},select:{trigger:{base:"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md border transition-colors min-w-[140px] justify-between",background:"bg-white dark:bg-neutral-800",border:"border-neutral-300 dark:border-neutral-700",hover:"hover:bg-neutral-50 dark:hover:bg-neutral-700",focus:"focus:outline-none focus:ring-2 focus:ring-[#df754f] dark:focus:ring-[#f08a65]",disabled:"data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed"},content:{base:"overflow-hidden rounded-md border shadow-lg z-50",background:"bg-white dark:bg-neutral-800",border:"border-neutral-300 dark:border-neutral-700"},item:{base:"relative flex items-center gap-2 px-8 py-2 text-sm rounded cursor-pointer outline-none data-[state=checked]:font-medium",highlighted:"data-[highlighted]:bg-[#df754f] dark:data-[highlighted]:bg-[#f08a65] data-[highlighted]:text-white"}},error:{background:"bg-gradient-to-br from-red-50 to-red-100/50 dark:from-red-950/30 dark:to-red-900/20",border:"border border-red-200 dark:border-red-800/50",icon:{background:"bg-red-100 dark:bg-red-900/30",border:"border border-red-200 dark:border-red-800",text:"text-red-600 dark:text-red-400"},text:{title:"text-red-900 dark:text-red-300",content:"text-red-800 dark:text-red-400"}},chart:{colors:["#3b82f6","#10b981","#a855f7","#f59e0b"],tooltip:{background:"rgba(255, 255, 255, 0.95)",border:"rgba(148, 163, 184, 0.35)",text:"#0f172a"},axis:{label:"#64748b",line:"rgba(148, 163, 184, 0.35)",split:"rgba(148, 163, 184, 0.18)"},zoom:{border:"rgba(148, 163, 184, 0.35)",filler:"rgba(59, 130, 246, 0.12)",handle:"rgba(59, 130, 246, 0.6)"},spinner:"#df754f"}},gf=e=>e.toLocaleString(),j9=(e,t,r)=>{try{return new Date(e).toLocaleDateString(t,{month:"short",day:"numeric",...r})}catch{return e}},g0=({label:e,value:t,color:r="blue",isActive:n=!0,onClick:a})=>{const i={blue:xt.gradient.blue,green:xt.gradient.green,purple:xt.gradient.purple,orange:xt.gradient.orange};return Z.jsxs("div",{onClick:a,className:yn(xt.background.card,"rounded-lg p-2",xt.border.card,a&&"cursor-pointer transition-all duration-200",a&&xt.background.hover),children:[Z.jsx("div",{className:`text-[10px] font-medium ${xt.text.muted} tracking-wider mb-1`,children:e}),Z.jsx("div",{className:yn("text-xl font-bold",n?"bg-gradient-to-br bg-clip-text text-transparent":xt.text.muted,n&&i[r]),children:t})]})};/**
60
+ * @license lucide-react v0.564.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const X9=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
65
+ * @license lucide-react v0.564.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const rlt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
70
+ * @license lucide-react v0.564.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */const nlt=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());/**
75
+ * @license lucide-react v0.564.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const o3=e=>{const t=nlt(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
80
+ * @license lucide-react v0.564.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */var alt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
85
+ * @license lucide-react v0.564.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const ilt=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
90
+ * @license lucide-react v0.564.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const olt=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:i,iconNode:o,...s},l)=>k.createElement("svg",{ref:l,...alt,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:X9("lucide",a),...!i&&!ilt(s)&&{"aria-hidden":"true"},...s},[...o.map(([u,f])=>k.createElement(u,f)),...Array.isArray(i)?i:[i]]));/**
95
+ * @license lucide-react v0.564.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const Vx=(e,t)=>{const r=k.forwardRef(({className:n,...a},i)=>k.createElement(olt,{ref:i,iconNode:t,className:X9(`lucide-${rlt(o3(e))}`,`lucide-${e}`,n),...a}));return r.displayName=o3(e),r};/**
100
+ * @license lucide-react v0.564.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const slt=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],llt=Vx("check",slt);/**
105
+ * @license lucide-react v0.564.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const ult=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],flt=Vx("chevron-down",ult);/**
110
+ * @license lucide-react v0.564.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const clt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],vlt=Vx("circle-alert",clt);/**
115
+ * @license lucide-react v0.564.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const hlt=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],dlt=Vx("refresh-cw",hlt),plt=om(()=>{const{t:e}=px(),{error:t}=Be;return t?Z.jsx("div",{className:yn("mb-4 p-4 rounded-lg",xt.error.background,xt.error.border),children:Z.jsxs("div",{className:"flex items-start gap-4",children:[Z.jsx("div",{className:yn("flex-shrink-0 w-10 h-10 flex items-center justify-center rounded-full",xt.error.icon.background,xt.error.icon.border),children:Z.jsx(vlt,{className:yn("w-5 h-5",xt.error.icon.text)})}),Z.jsxs("div",{className:"flex-1",children:[Z.jsx("h3",{className:yn("font-bold mb-2",xt.error.text.title),children:e("errorTitle")}),Z.jsx("p",{className:yn("text-sm font-mono",xt.error.text.content),children:t})]})]})}):null}),glt=om(()=>{const{loading:e}=Be;return Z.jsx("button",{onClick:()=>Be.refresh(),disabled:e,className:yn("p-1 rounded-md",xt.button.primary.base,xt.text.white,xt.button.primary.hover,xt.button.primary.disabled,xt.button.primary.transition),children:Z.jsx(dlt,{className:yn("w-4 h-4",e&&"animate-spin")})})});var hE=function(e,t){return hE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},hE(e,t)};function $9(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");hE(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Qn=function(){return Qn=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Qn.apply(this,arguments)};function cI(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function s3(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(f){try{u(n.next(f))}catch(c){o(c)}}function l(f){try{u(n.throw(f))}catch(c){o(c)}}function u(f){f.done?i(f.value):a(f.value).then(s,l)}u((n=n.apply(e,t||[])).next())})}function l3(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(f){return l([u,f])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(r=0)),r;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(f){u=[6,f],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function ylt(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}/*! *****************************************************************************
120
+ Copyright (c) Microsoft Corporation.
121
+
122
+ Permission to use, copy, modify, and/or distribute this software for any
123
+ purpose with or without fee is hereby granted.
124
+
125
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
126
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
127
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
128
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
129
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
130
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
131
+ PERFORMANCE OF THIS SOFTWARE.
132
+ ***************************************************************************** */var dE=function(e,t){return dE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},dE(e,t)};function G(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");dE(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var mlt=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),_lt=function(){function e(){this.browser=new mlt,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),Vt=new _lt;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Vt.wxa=!0,Vt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Vt.worker=!0:!Vt.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Vt.node=!0,Vt.svgSupported=!0):Slt(navigator.userAgent,Vt);function Slt(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}}var vI=12,W9="sans-serif",Ts=vI+"px "+W9,blt=20,xlt=100,wlt="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Tlt(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),a=(e.charCodeAt(r)-blt)/xlt;t[n]=a}return t}var Clt=Tlt(wlt),hr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var a=hr.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Ts),e.measureText(r);r=r||"",n=n||Ts;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||vI,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=Clt[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n},getTime:function(){return Date.now?Date.now():+new Date}};function Z9(e){for(var t in hr)hr.hasOwnProperty(t)&&e[t]&&(hr[t]=e[t])}var q9=Ya(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),K9=Ya(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Dd=Object.prototype.toString,Gx=Array.prototype,Alt=Gx.forEach,Mlt=Gx.filter,hI=Gx.slice,Dlt=Gx.map,u3=(function(){}).constructor,y0=u3?u3.prototype:null,dI="__proto__",UT=2311,Elt=Math.pow(2,53)-1;function pI(){return UT>=Elt&&(UT=0),UT++}function Hx(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function st(e){if(e==null||typeof e!="object")return e;var t=e,r=Dd.call(e);if(r==="[object Array]"){if(!Sh(e)){t=[];for(var n=0,a=e.length;n<a;n++)t[n]=st(e[n])}}else if(K9[r]){if(!Sh(e)){var i=e.constructor;if(i.from)t=i.from(e);else{t=new i(e.length);for(var n=0,a=e.length;n<a;n++)t[n]=e[n]}}}else if(!q9[r]&&!Sh(e)&&!Qf(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==dI&&(t[o]=st(e[o]))}return t}function wt(e,t,r){if(!pt(t)||!pt(e))return r?st(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==dI){var a=e[n],i=t[n];pt(i)&&pt(a)&&!Y(i)&&!Y(a)&&!Qf(i)&&!Qf(a)&&!pE(i)&&!pE(a)&&!Sh(i)&&!Sh(a)?wt(a,i,r):(r||!(n in e))&&(e[n]=st(t[n]))}return e}function Ux(e,t){for(var r=e[0],n=1,a=e.length;n<a;n++)r=wt(r,e[n],t);return r}function U(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==dI&&(e[r]=t[r]);return e}function Q9(e,t,r){e=e||{};for(var n=0;n<r.length;n++){var a=r[n];e[a]=t[a]}return e}function dt(e,t,r){for(var n=kt(t),a=0,i=n.length;a<i;a++){var o=n[a];(r?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}var Llt=hr.createCanvas;function St(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function gI(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var a in r)r.hasOwnProperty(a)&&(e.prototype[a]=r[a]);e.prototype.constructor=e,e.superClass=t}function We(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(r?t[i]!=null:e[i]==null)&&(e[i]=t[i])}else dt(e,t,r)}function Xr(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function D(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Alt)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(r,e[i],i,e)}function X(e,t,r){if(!e)return[];if(!t)return Fx(e);if(e.map&&e.map===Dlt)return e.map(t,r);for(var n=[],a=0,i=e.length;a<i;a++)n.push(t.call(r,e[a],a,e));return n}function Ya(e,t,r,n){if(e&&t){for(var a=0,i=e.length;a<i;a++)r=t.call(n,r,e[a],a,e);return r}}function qt(e,t,r){if(!e)return[];if(!t)return Fx(e);if(e.filter&&e.filter===Mlt)return e.filter(t,r);for(var n=[],a=0,i=e.length;a<i;a++)t.call(r,e[a],a,e)&&n.push(e[a]);return n}function Vs(e,t,r){if(e&&t){for(var n=0,a=e.length;n<a;n++)if(t.call(r,e[n],n,e))return e[n]}}function kt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function Olt(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(hI.call(arguments)))}}var rt=y0&&ut(y0.bind)?y0.call.bind(y0.bind):Olt;function At(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(hI.call(arguments)))}}function Y(e){return Array.isArray?Array.isArray(e):Dd.call(e)==="[object Array]"}function ut(e){return typeof e=="function"}function J(e){return typeof e=="string"}function L1(e){return Dd.call(e)==="[object String]"}function Ut(e){return typeof e=="number"}function pt(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function pE(e){return!!q9[Dd.call(e)]}function wn(e){return!!K9[Dd.call(e)]}function Qf(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function bm(e){return e.colorStops!=null}function J9(e){return e.image!=null}function tj(e){return Dd.call(e)==="[object RegExp]"}function Yr(e){return e!==e}function nn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function ot(e,t){return e??t}function zn(e,t,r){return e??t??r}function Fx(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return hI.apply(e,t)}function xm(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function $r(e,t){if(!e)throw new Error(t)}function ea(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ej="__ec_primitive__";function ly(e){e[ej]=!0}function Sh(e){return e[ej]}var Rlt=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return kt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),rj=typeof Map=="function";function Ilt(){return rj?new Map:new Rlt}var nj=function(){function e(t){var r=Y(t);this.data=Ilt();var n=this;t instanceof e?t.each(a):t&&D(t,a);function a(i,o){r?n.set(i,o):n.set(o,i)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,a){t.call(r,n,a)})},e.prototype.keys=function(){var t=this.data.keys();return rj?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function nt(e){return new nj(e)}function qh(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var a=e.length,n=0;n<t.length;n++)r[n+a]=t[n];return r}function wm(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&U(r,t),r}function yI(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function it(e,t){return e.hasOwnProperty(t)}function Pe(){}var Cg=180/Math.PI,Plt=Number.EPSILON||Math.pow(2,-52);const Nlt=Object.freeze(Object.defineProperty({__proto__:null,EPSILON:Plt,HashMap:nj,RADIAN_TO_DEGREE:Cg,assert:$r,assignProps:Q9,bind:rt,clone:st,concatArray:qh,createCanvas:Llt,createHashMap:nt,createObject:wm,curry:At,defaults:dt,disableUserSelect:yI,each:D,eqNaN:Yr,extend:U,filter:qt,find:Vs,guid:pI,hasOwn:it,indexOf:St,inherits:gI,isArray:Y,isArrayLike:Xr,isBuiltInObject:pE,isDom:Qf,isFunction:ut,isGradientObject:bm,isImagePatternObject:J9,isNumber:Ut,isObject:pt,isPrimitive:Sh,isRegExp:tj,isString:J,isStringSafe:L1,isTypedArray:wn,keys:kt,logError:Hx,map:X,merge:wt,mergeAll:Ux,mixin:We,noop:Pe,normalizeCssArray:xm,reduce:Ya,retrieve:nn,retrieve2:ot,retrieve3:zn,setAsPrimitive:ly,slice:Fx,trim:ea},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
133
+ Copyright (c) Microsoft Corporation.
134
+
135
+ Permission to use, copy, modify, and/or distribute this software for any
136
+ purpose with or without fee is hereby granted.
137
+
138
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
139
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
140
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
141
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
142
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
143
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
144
+ PERFORMANCE OF THIS SOFTWARE.
145
+ ***************************************************************************** */var gE=function(e,t){return gE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},gE(e,t)};function be(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");gE(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function pu(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Ir(e,t){return e[0]=t[0],e[1]=t[1],e}function oo(e){return[e[0],e[1]]}function os(e,t,r){return e[0]=t,e[1]=r,e}function yE(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function O1(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function _l(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function uy(e){return Math.sqrt(mI(e))}var klt=uy;function mI(e){return e[0]*e[0]+e[1]*e[1]}var zlt=mI;function Blt(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function Vlt(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function Glt(e,t){return e[0]*t[0]+e[1]*t[1]}function Ag(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Gc(e,t){var r=uy(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function R1(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Qo=R1;function aj(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var kl=aj;function Hlt(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Mg(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function Ne(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a+r[4],e[1]=r[1]*n+r[3]*a+r[5],e}function Jo(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function ts(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}const Ult=Object.freeze(Object.defineProperty({__proto__:null,add:yE,applyTransform:Ne,clone:oo,copy:Ir,create:pu,dist:Qo,distSquare:kl,distance:R1,distanceSquare:aj,div:Vlt,dot:Glt,len:uy,lenSquare:mI,length:klt,lengthSquare:zlt,lerp:Mg,max:ts,min:Jo,mul:Blt,negate:Hlt,normalize:Gc,scale:Ag,scaleAndAdd:O1,set:os,sub:_l},Symbol.toStringTag,{value:"Module"}));var av=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),Flt=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new av(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,a=t.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,r.drift(i,o,t),this.handler.dispatchToElement(new av(r,t),"drag",t.event);var s=this.handler.findHover(n,a,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new av(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new av(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new av(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new av(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Za=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===n)return this;var l={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[t].length-1,f=i[t][u];return f&&f.callAtLast?i[t].splice(u,0,l):i[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var a=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==r&&a.push(n[t][i]);n[t]=a}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e}(),Ylt=Math.log(2);function mE(e,t,r,n,a,i){var o=n+"-"+a,s=e.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/Ylt);return e[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,v=0,h=0;v<s;v++){var d=1<<v;d&a||(c+=(h%2?-1:1)*e[r][v]*mE(e,t-1,f,u,a|d,i),h++)}return i[o]=c,c}function f3(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},a=mE(r,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*mE(r,7,o===0?1:0,1<<o,1<<s,n)/a*t[o];return function(l,u,f){var c=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/c,l[1]=(u*i[3]+f*i[4]+i[5])/c}}}var I1="___zrEVENTSAVED",FT=[];function jlt(e,t,r,n,a){return _E(FT,t,n,a,!0)&&_E(e,r,FT[0],FT[1])}function Xlt(e,t){e&&r(e),t&&r(t);function r(n){var a=n[I1];a&&(a.clearMarkers&&a.clearMarkers(),delete n[I1])}}function _E(e,t,r,n,a){if(t.getBoundingClientRect&&Vt.domSupported&&!ij(t)){var i=t[I1]||(t[I1]={}),o=$lt(t,i),s=Wlt(o,i,a);if(s)return s(e,r,n),!0}return!1}function $lt(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return t.clearMarkers=function(){D(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function Wlt(e,t,r){for(var n=r?"invTrans":"trans",a=t[n],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=e[u].getBoundingClientRect(),c=2*u,v=f.left,h=f.top;o.push(v,h),l=l&&i&&v===i[c]&&h===i[c+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[n]=r?f3(s,o):f3(o,s))}function ij(e){return e.nodeName.toUpperCase()==="CANVAS"}var Zlt=/([&<>"'])/g,qlt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function rn(e){return e==null?"":(e+"").replace(Zlt,function(t,r){return qlt[r]})}var Klt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,YT=[],Qlt=Vt.browser.firefox&&+Vt.browser.version.split(".")[0]<39;function SE(e,t,r,n){return r=r||{},n?c3(e,t,r):Qlt&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):c3(e,t,r),r}function c3(e,t,r){if(Vt.domSupported&&e.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(ij(e)){var i=e.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(_E(YT,e,n,a)){r.zrX=YT[0],r.zrY=YT[1];return}}r.zrX=r.zrY=0}function _I(e){return e||window.event}function xa(e,t,r){if(t=_I(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&SE(e,o,t,r)}else{SE(e,t,t,r);var i=Jlt(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Klt.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Jlt(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var a=Math.abs(n!==0?n:r),i=n>0?-1:n<0?1:r>0?-1:1;return 3*a*i}function bE(e,t,r,n){e.addEventListener(t,r,n)}function tut(e,t,r,n){e.removeEventListener(t,r,n)}var Cs=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function v3(e){return e.which===2||e.which===3}var eut=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var a=t.touches;if(a){for(var i={points:[],touches:[],target:r,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=SE(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},e.prototype._recognize=function(t){for(var r in jT)if(jT.hasOwnProperty(r)){var n=jT[r](this._track,t);if(n)return n}},e}();function h3(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function rut(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var jT={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,a=(e[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=h3(n)/h3(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=rut(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function we(){return[1,0,0,1,0,0]}function Hc(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Ql(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function ua(e,t,r){var n=t[0]*r[0]+t[2]*r[1],a=t[1]*r[0]+t[3]*r[1],i=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function gi(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Gs(e,t,r,n){n===void 0&&(n=[0,0]);var a=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(r),c=Math.cos(r);return e[0]=a*c+s*f,e[1]=-a*f+s*c,e[2]=i*c+l*f,e[3]=-i*f+c*l,e[4]=c*(o-n[0])+f*(u-n[1])+n[0],e[5]=c*(u-n[1])-f*(o-n[0])+n[1],e}function Yx(e,t,r){var n=r[0],a=r[1];return e[0]=t[0]*n,e[1]=t[1]*a,e[2]=t[2]*n,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*a,e}function ca(e,t){var r=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=r*o-i*n;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*a)*l,e[5]=(i*a-r*s)*l,e):null}function oj(e){var t=we();return Ql(t,e),t}const nut=Object.freeze(Object.defineProperty({__proto__:null,clone:oj,copy:Ql,create:we,identity:Hc,invert:ca,mul:ua,rotate:Gs,scale:Yx,translate:gi},Symbol.toStringTag,{value:"Module"}));var gt=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,a){t.x=r.x+n.x*a,t.y=r.y+n.y*a},e.lerp=function(t,r,n,a){var i=1-a;t.x=i*r.x+a*n.x,t.y=i*r.y+a*n.y},e}(),yf=Math.min,rh=Math.max,xE=Math.abs,d3=["x","y"],aut=["width","height"],Tu=new gt,Cu=new gt,Au=new gt,Mu=new gt,$n=uj(),Wp=$n.minTv,wE=$n.maxTv,Dg=[0,0],vt=function(){function e(t,r,n,a){XT(this,t,r,n,a)}return e.set=function(t,r,n,a,i){return a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),t.x=r,t.y=n,t.width=a,t.height=i,t},e.prototype.union=function(t){var r=yf(t.x,this.x),n=yf(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=rh(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=rh(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){return sj(we(),this,t)},e.prototype.intersect=function(t,r,n){return e.intersect(this,t,r,n)},e.intersect=function(t,r,n,a){n&&gt.set(n,0,0);var i=a&&a.outIntersectRect||null,o=a&&a.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!t||!r)return!1;t instanceof e||(t=XT(out,t.x,t.y,t.width,t.height)),r instanceof e||(r=XT(sut,r.x,r.y,r.width,r.height));var s=!!n;$n.reset(a,s);var l=$n.touchThreshold,u=t.x+l,f=t.x+t.width-l,c=t.y+l,v=t.y+t.height-l,h=r.x+l,d=r.x+r.width-l,p=r.y+l,g=r.y+r.height-l;if(u>f||c>v||h>d||p>g)return!1;var y=!(f<h||d<u||v<p||g<c);return(s||i)&&(Dg[0]=1/0,Dg[1]=0,p3(u,f,h,d,0,s,i,o),p3(c,v,p,g,1,s,i,o),s&&gt.copy(n,y?$n.useDir?$n.dirMinTv:Wp:wE)),y},e.contain=function(t,r,n){return r>=t.x&&r<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},e.prototype.contain=function(t,r){return e.contain(this,t,r)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){Kh(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(t,r){return t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height,t},e.applyTransform=function(t,r,n){if(!n){t!==r&&Kh(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];t.x=r.x*a+o,t.y=r.y*i+s,t.width=r.width*a,t.height=r.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Tu.x=Au.x=r.x,Tu.y=Mu.y=r.y,Cu.x=Mu.x=r.x+r.width,Cu.y=Au.y=r.y+r.height,Tu.transform(n),Mu.transform(n),Cu.transform(n),Au.transform(n),t.x=yf(Tu.x,Cu.x,Au.x,Mu.x),t.y=yf(Tu.y,Cu.y,Au.y,Mu.y);var l=rh(Tu.x,Cu.x,Au.x,Mu.x),u=rh(Tu.y,Cu.y,Au.y,Mu.y);t.width=l-t.x,t.height=u-t.y},e.calculateTransform=function(t,r,n){var a=n.width/r.width,i=n.height/r.height;return t=Hc(t||[]),gi(t,t,os($T,-r.x,-r.y)),Yx(t,t,os($T,a,i)),gi(t,t,os($T,n.x,n.y)),t},e}(),jx=vt.create,XT=vt.set,Kh=vt.copy,sj=vt.calculateTransform,lj=vt.applyTransform,iut=vt.contain,out=new vt(0,0,0,0),sut=new vt(0,0,0,0),$T=[];function p3(e,t,r,n,a,i,o,s){var l=xE(t-r),u=xE(n-e),f=yf(l,u),c=d3[a],v=d3[1-a],h=aut[a];t<r||n<e?l<u?(i&&(wE[c]=-l),s&&(o[c]=t,o[h]=0)):(i&&(wE[c]=u),s&&(o[c]=e,o[h]=0)):(o&&(o[c]=rh(e,r),o[h]=yf(t,n)-o[c]),i&&(f<Dg[0]||$n.useDir)&&(Dg[0]=yf(f,Dg[0]),(l<u||!$n.bidirectional)&&(Wp[c]=l,Wp[v]=0,$n.useDir&&$n.calcDirMTV()),(l>=u||!$n.bidirectional)&&(Wp[c]=-u,Wp[v]=0,$n.useDir&&$n.calcDirMTV())))}function uj(){var e=0,t=new gt,r=new gt,n={minTv:new gt,maxTv:new gt,useDir:!1,dirMinTv:new gt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){n.touchThreshold=0,i&&i.touchThreshold!=null&&(n.touchThreshold=rh(0,i.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,i&&i.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),e=i.direction,n.bidirectional=i.bidirectional==null||!!i.bidirectional,n.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var i=n.minTv,o=n.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(e),u=Math.cos(e),f=l*i.y+u*i.x;if(a(f)){a(i.x)&&a(i.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,a(r.x)&&a(r.y)){o.set(0,0);return}(n.bidirectional||t.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function a(i){return xE(i)<1e-10}return n}var fj="silent";function lut(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:uut}}function uut(){Cs(this.event)}var fut=function(e){be(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Za),up=function(){function e(t,r){this.x=t,this.y=r}return e}(),cut=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],WT=new vt(0,0,0,0),cj=function(e){be(t,e);function t(r,n,a,i,o){var s=e.call(this)||this;return s._hovered=new up(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new fut,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Flt(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(cut,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=vj(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new up(n,a):this.findHover(n,a),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new up(0,0)},t.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,a){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+n,s=lut(n,r,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),o=new up(r,n);if(g3(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new vt(r-u,n-u,l,l),c=i.length-1;c>=0;c--){var v=i[c];v!==a&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(WT.copy(v.getBoundingRect()),v.transform&&WT.applyTransform(v.transform),WT.intersect(f)&&s.push(v))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<p;y+=d){var m=r+g*Math.cos(y),_=n+g*Math.sin(y);if(g3(s,o,m,_,a),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new eut);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;r.gestureEvent=o;var s=new up;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(Za);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){cj.prototype[e]=function(t){var r=t.zrX,n=t.zrY,a=vj(this,r,n),i,o;if((e!=="mouseup"||!a)&&(i=this.findHover(r,n),o=i.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||Qo(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function vut(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return a?fj:!0}return!1}function g3(e,t,r,n,a){for(var i=e.length-1;i>=0;i--){var o=e[i],s=void 0;if(o!==a&&!o.ignore&&(s=vut(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==fj)){t.target=o;break}}}function vj(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var hj=32,fp=7;function hut(e){for(var t=0;e>=hj;)t|=e&1,e>>=1;return e+t}function y3(e,t,r,n){var a=t+1;if(a===r)return 1;if(n(e[a++],e[t])<0){for(;a<r&&n(e[a],e[a-1])<0;)a++;dut(e,t,a)}else for(;a<r&&n(e[a],e[a-1])>=0;)a++;return a-t}function dut(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function m3(e,t,r,n,a){for(n===t&&n++;n<r;n++){for(var i=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,a(i,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=i}}function ZT(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])>0){for(s=n-a;l<s&&i(e,t[r+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(e,t[r+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);i(e,t[r+f])>0?o=f+1:l=f}return l}function qT(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])<0){for(s=a+1;l<s&&i(e,t[r+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(e,t[r+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);i(e,t[r+f])<0?l=f:o=f+1}return l}function put(e,t){var r=fp,n,a,i=0,o=[];n=[],a=[];function s(h,d){n[i]=h,a[i]=d,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;f(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,f(h)}}function f(h){var d=n[h],p=a[h],g=n[h+1],y=a[h+1];a[h]=p+y,h===i-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),i--;var m=qT(e[g],e,d,p,0,t);d+=m,p-=m,p!==0&&(y=ZT(e[d+p-1],e,g,y,y-1,t),y!==0&&(p<=y?c(d,p,g,y):v(d,p,g,y)))}function c(h,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=e[h+y];var m=0,_=p,S=h;if(e[S++]=e[_++],--g===0){for(y=0;y<d;y++)e[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)e[S+y]=e[_+y];e[S+g]=o[m];return}for(var b=r,x,w,T;;){x=0,w=0,T=!1;do if(t(e[_],o[m])<0){if(e[S++]=e[_++],w++,x=0,--g===0){T=!0;break}}else if(e[S++]=o[m++],x++,w=0,--d===1){T=!0;break}while((x|w)<b);if(T)break;do{if(x=qT(e[_],o,m,d,0,t),x!==0){for(y=0;y<x;y++)e[S+y]=o[m+y];if(S+=x,m+=x,d-=x,d<=1){T=!0;break}}if(e[S++]=e[_++],--g===0){T=!0;break}if(w=ZT(o[m],e,_,g,0,t),w!==0){for(y=0;y<w;y++)e[S+y]=e[_+y];if(S+=w,_+=w,g-=w,g===0){T=!0;break}}if(e[S++]=o[m++],--d===1){T=!0;break}b--}while(x>=fp||w>=fp);if(T)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),d===1){for(y=0;y<g;y++)e[S+y]=e[_+y];e[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)e[S+y]=o[m+y]}}function v(h,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=e[p+y];var m=h+d-1,_=g-1,S=p+g-1,b=0,x=0;if(e[S--]=e[m--],--d===0){for(b=S-(g-1),y=0;y<g;y++)e[b+y]=o[y];return}if(g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)e[x+y]=e[b+y];e[S]=o[_];return}for(var w=r;;){var T=0,C=0,A=!1;do if(t(o[_],e[m])<0){if(e[S--]=e[m--],T++,C=0,--d===0){A=!0;break}}else if(e[S--]=o[_--],C++,T=0,--g===1){A=!0;break}while((T|C)<w);if(A)break;do{if(T=d-qT(o[_],e,h,d,d-1,t),T!==0){for(S-=T,m-=T,d-=T,x=S+1,b=m+1,y=T-1;y>=0;y--)e[x+y]=e[b+y];if(d===0){A=!0;break}}if(e[S--]=o[_--],--g===1){A=!0;break}if(C=g-ZT(e[m],o,0,g,g-1,t),C!==0){for(S-=C,_-=C,g-=C,x=S+1,b=_+1,y=0;y<C;y++)e[x+y]=o[b+y];if(g<=1){A=!0;break}}if(e[S--]=e[m--],--d===0){A=!0;break}w--}while(T>=fp||C>=fp);if(A)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)e[x+y]=e[b+y];e[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;y<g;y++)e[b+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function vS(e,t,r,n){r||(r=0),n||(n=e.length);var a=n-r;if(!(a<2)){var i=0;if(a<hj){i=y3(e,r,n,t),m3(e,r,n,r+i,t);return}var o=put(e,t),s=hut(a);do{if(i=y3(e,r,n,t),i<s){var l=a;l>s&&(l=s),m3(e,r,r+l,r+i,t),i=l}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(a!==0);o.forceMergeRuns()}}var Pn=1,Zp=2,kv=4,_3=!1;function KT(){_3||(_3=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function S3(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var gut=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=S3}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,t);n.length=this._displayListLen,vS(n,S3)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath(),i=r&&r.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(i||a)){if(s||(s=t.__clipPaths=[]),i)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=a,f=t;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var c=t.childrenRef(),v=0;v<c.length;v++){var h=c[v];t.__dirty&&(h.__dirty|=Pn),this._updateAndAddDisplayable(h,s,n)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(KT(),d.z=0),isNaN(d.z2)&&(KT(),d.z2=0),isNaN(d.zlevel)&&(KT(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,s,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var y=t.getTextContent();y&&this._updateAndAddDisplayable(y,s,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var a=St(this._roots,t);a>=0&&this._roots.splice(a,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}(),P1;P1=Vt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Eg={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Eg.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?Eg.bounceIn(e*2)*.5:Eg.bounceOut(e*2-1)*.5+.5}},m0=Math.pow,zl=Math.sqrt,N1=1e-8,dj=1e-4,b3=zl(3),_0=1/3,Hi=pu(),Ea=pu(),bh=pu();function Sl(e){return e>-N1&&e<N1}function pj(e){return e>N1||e<-N1}function fr(e,t,r,n,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*n+3*i*r)}function x3(e,t,r,n,a){var i=1-a;return 3*(((t-e)*i+2*(r-t)*a)*i+(n-r)*a*a)}function k1(e,t,r,n,a,i){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-a,f=s*s-3*o*l,c=s*l-9*o*u,v=l*l-3*s*u,h=0;if(Sl(f)&&Sl(c))if(Sl(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[h++]=d)}else{var p=c*c-4*f*v;if(Sl(p)){var g=c/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y)}else if(p>0){var m=zl(p),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-m0(-_,_0):_=m0(_,_0),S<0?S=-m0(-S,_0):S=m0(S,_0);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var b=(2*f*s-3*o*c)/(2*zl(f*f*f)),x=Math.acos(b)/3,w=zl(f),T=Math.cos(x),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+b3*Math.sin(x)))/(3*o),C=(-s+w*(T-b3*Math.sin(x)))/(3*o);d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y),C>=0&&C<=1&&(i[h++]=C)}}return h}function gj(e,t,r,n,a){var i=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Sl(o)){if(pj(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var f=i*i-4*o*s;if(Sl(f))a[0]=-i/(2*o);else if(f>0){var c=zl(f),u=(-i+c)/(2*o),v=(-i-c)/(2*o);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function Jl(e,t,r,n,a,i){var o=(t-e)*a+e,s=(r-t)*a+t,l=(n-r)*a+r,u=(s-o)*a+o,f=(l-s)*a+s,c=(f-u)*a+u;i[0]=e,i[1]=o,i[2]=u,i[3]=c,i[4]=c,i[5]=f,i[6]=l,i[7]=n}function yj(e,t,r,n,a,i,o,s,l,u,f){var c,v=.005,h=1/0,d,p,g,y;Hi[0]=l,Hi[1]=u;for(var m=0;m<1;m+=.05)Ea[0]=fr(e,r,a,o,m),Ea[1]=fr(t,n,i,s,m),g=kl(Hi,Ea),g<h&&(c=m,h=g);h=1/0;for(var _=0;_<32&&!(v<dj);_++)d=c-v,p=c+v,Ea[0]=fr(e,r,a,o,d),Ea[1]=fr(t,n,i,s,d),g=kl(Ea,Hi),d>=0&&g<h?(c=d,h=g):(bh[0]=fr(e,r,a,o,p),bh[1]=fr(t,n,i,s,p),y=kl(bh,Hi),p<=1&&y<h?(c=p,h=y):v*=.5);return f&&(f[0]=fr(e,r,a,o,c),f[1]=fr(t,n,i,s,c)),zl(h)}function yut(e,t,r,n,a,i,o,s,l){for(var u=e,f=t,c=0,v=1/l,h=1;h<=l;h++){var d=h*v,p=fr(e,r,a,o,d),g=fr(t,n,i,s,d),y=p-u,m=g-f;c+=Math.sqrt(y*y+m*m),u=p,f=g}return c}function wr(e,t,r,n){var a=1-n;return a*(a*e+2*n*t)+n*n*r}function TE(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function mut(e,t,r,n,a){var i=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Sl(i)){if(pj(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*i*s;if(Sl(f)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var c=zl(f),u=(-o+c)/(2*i),v=(-o-c)/(2*i);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function mj(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function fy(e,t,r,n,a){var i=(t-e)*n+e,o=(r-t)*n+t,s=(o-i)*n+i;a[0]=e,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function _j(e,t,r,n,a,i,o,s,l){var u,f=.005,c=1/0;Hi[0]=o,Hi[1]=s;for(var v=0;v<1;v+=.05){Ea[0]=wr(e,r,a,v),Ea[1]=wr(t,n,i,v);var h=kl(Hi,Ea);h<c&&(u=v,c=h)}c=1/0;for(var d=0;d<32&&!(f<dj);d++){var p=u-f,g=u+f;Ea[0]=wr(e,r,a,p),Ea[1]=wr(t,n,i,p);var h=kl(Ea,Hi);if(p>=0&&h<c)u=p,c=h;else{bh[0]=wr(e,r,a,g),bh[1]=wr(t,n,i,g);var y=kl(bh,Hi);g<=1&&y<c?(u=g,c=y):f*=.5}}return l&&(l[0]=wr(e,r,a,u),l[1]=wr(t,n,i,u)),zl(c)}function _ut(e,t,r,n,a,i,o){for(var s=e,l=t,u=0,f=1/o,c=1;c<=o;c++){var v=c*f,h=wr(e,r,a,v),d=wr(t,n,i,v),p=h-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=h,l=d}return u}var Sut=/cubic-bezier\(([0-9,\.e ]+)\)/;function SI(e){var t=e&&Sut.exec(e);if(t){var r=t[1].split(","),n=+ea(r[0]),a=+ea(r[1]),i=+ea(r[2]),o=+ea(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:k1(0,n,i,1,l,s)&&fr(0,a,o,1,s[0])}}}var but=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Pe,this.ondestroy=t.ondestroy||Pe,this.onrestart=t.onrestart||Pe,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ut(t)?t:Eg[t]||SI(t)},e}(),Sj=function(){function e(t){this.value=t}return e}(),xut=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new Sj(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Qh=function(){function e(t){this._list=new xut,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,a=this._map,i=null;if(a[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Sj(r),s.key=t,n.insertEntry(s),a[t]=s}return i},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),w3={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 ci(e){return e=Math.round(e),e<0?0:e>255?255:e}function wut(e){return e=Math.round(e),e<0?0:e>360?360:e}function cy(e){return e<0?0:e>1?1:e}function hS(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?ci(parseFloat(t)/100*255):ci(parseInt(t,10))}function ss(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?cy(parseFloat(t)/100):cy(parseFloat(t))}function QT(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function bl(e,t,r){return e+(t-e)*r}function Sa(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e}function CE(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var bj=new Qh(20),S0=null;function iv(e,t){S0&&CE(S0,t),S0=bj.put(e,S0||t.slice())}function on(e,t){if(e){t=t||[];var r=bj.get(e);if(r)return CE(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in w3)return CE(t,w3[n]),iv(e,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){Sa(t,0,0,0,1);return}return Sa(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),iv(e,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Sa(t,0,0,0,1);return}return Sa(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),iv(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Sa(t,+u[0],+u[1],+u[2],1):Sa(t,0,0,0,1);f=ss(u.pop());case"rgb":if(u.length>=3)return Sa(t,hS(u[0]),hS(u[1]),hS(u[2]),u.length===3?f:ss(u[3])),iv(e,t),t;Sa(t,0,0,0,1);return;case"hsla":if(u.length!==4){Sa(t,0,0,0,1);return}return u[3]=ss(u[3]),AE(u,t),iv(e,t),t;case"hsl":if(u.length!==3){Sa(t,0,0,0,1);return}return AE(u,t),iv(e,t),t;default:return}}Sa(t,0,0,0,1)}}function AE(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=ss(e[1]),a=ss(e[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],Sa(t,ci(QT(o,i,r+1/3)*255),ci(QT(o,i,r)*255),ci(QT(o,i,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Tut(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var f=((i-t)/6+o/2)/o,c=((i-r)/6+o/2)/o,v=((i-n)/6+o/2)/o;t===i?l=v-c:r===i?l=1/3+f-v:n===i&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function z1(e,t){var r=on(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Ga(r,r.length===4?"rgba":"rgb")}}function Cut(e){var t=on(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Lg(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=t[a],s=t[i],l=n-a;return r[0]=ci(bl(o[0],s[0],l)),r[1]=ci(bl(o[1],s[1],l)),r[2]=ci(bl(o[2],s[2],l)),r[3]=cy(bl(o[3],s[3],l)),r}}var Aut=Lg;function bI(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=on(t[a]),s=on(t[i]),l=n-a,u=Ga([ci(bl(o[0],s[0],l)),ci(bl(o[1],s[1],l)),ci(bl(o[2],s[2],l)),cy(bl(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}var Mut=bI;function ls(e,t,r,n){var a=on(e);if(e)return a=Tut(a),t!=null&&(a[0]=wut(ut(t)?t(a[0]):t)),r!=null&&(a[1]=ss(ut(r)?r(a[1]):r)),n!=null&&(a[2]=ss(ut(n)?n(a[2]):n)),Ga(AE(a),"rgba")}function vy(e,t){var r=on(e);if(r&&t!=null)return r[3]=cy(t),Ga(r,"rgba")}function Ga(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function hy(e,t){var r=on(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function Dut(){return Ga([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var T3=new Qh(100);function B1(e){if(J(e)){var t=T3.get(e);return t||(t=z1(e,-.1),T3.put(e,t)),t}else if(bm(e)){var r=U({},e);return r.colorStops=X(e.colorStops,function(n){return{offset:n.offset,color:z1(n.color,-.1)}}),r}return e}const Eut=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Lg,fastMapToColor:Aut,lerp:bI,lift:z1,liftColor:B1,lum:hy,mapToColor:Mut,modifyAlpha:vy,modifyHSL:ls,parse:on,parseCssFloat:ss,parseCssInt:hS,random:Dut,stringify:Ga,toHex:Cut},Symbol.toStringTag,{value:"Module"}));var V1=Math.round;function dy(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=on(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var C3=1e-4;function xl(e){return e<C3&&e>-C3}function b0(e){return V1(e*1e3)/1e3}function ME(e){return V1(e*1e4)/1e4}function Lut(e){return"matrix("+b0(e[0])+","+b0(e[1])+","+b0(e[2])+","+b0(e[3])+","+ME(e[4])+","+ME(e[5])+")"}var Out={left:"start",right:"end",center:"middle",middle:"middle"};function Rut(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function Iut(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Put(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function xj(e){return e&&!!e.image}function Nut(e){return e&&!!e.svgElement}function xI(e){return xj(e)||Nut(e)}function wj(e){return e.type==="linear"}function Tj(e){return e.type==="radial"}function Cj(e){return e&&(e.type==="linear"||e.type==="radial")}function Xx(e){return"url(#"+e+")"}function Aj(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function Mj(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*Cg,a=ot(e.scaleX,1),i=ot(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+V1(o*Cg)+"deg, "+V1(s*Cg)+"deg)"),l.join(" ")}var kut=function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(e){return Buffer.from(e).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}}(),DE=Array.prototype.slice;function Yo(e,t,r){return(t-e)*r+e}function JT(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=Yo(t[i],r[i],n);return e}function zut(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=Yo(t[o][s],r[o][s],n)}return e}function x0(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=t[i]+r[i]*n;return e}function A3(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function But(e,t){for(var r=e.length,n=t.length,a=r>n?t:e,i=Math.min(r,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(r,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function Vut(e,t,r){var n=e,a=t;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(r===1?a[l]:DE.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=a[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=a[l][f])}}function Og(e){if(Xr(e)){var t=e.length;if(Xr(e[0])){for(var r=[],n=0;n<t;n++)r.push(DE.call(e[n]));return r}return DE.call(e)}return e}function dS(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function Gut(e){return Xr(e&&e[0])?2:1}var w0=0,pS=1,Dj=2,qp=3,EE=4,LE=5,M3=6;function D3(e){return e===EE||e===LE}function T0(e){return e===pS||e===Dj}var cp=[0,0,0,0],Hut=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=M3,l=r;if(Xr(r)){var u=Gut(r);s=u,(u===1&&!Ut(r[0])||u===2&&!Ut(r[0][0]))&&(o=!0)}else if(Ut(r)&&!Yr(r))s=w0;else if(J(r))if(!isNaN(+r))s=w0;else{var f=on(r);f&&(l=f,s=qp)}else if(bm(r)){var c=U({},l);c.colorStops=X(r.colorStops,function(h){return{offset:h.offset,color:on(h.color)}}),wj(r)?s=EE:Tj(r)&&(s=LE),l=c}i===0?this.valType=s:(s!==this.valType||s===M3)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=ut(n)?n:Eg[n]||SI(n)),a.push(v),v},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=T0(a),u=D3(a),f=0;f<i;f++){var c=n[f],v=c.value,h=o.value;c.percent=c.time/t,s||(l&&f!==i-1?Vut(v,h,a):u&&But(v.colorStops,h.colorStops))}if(!s&&a!==LE&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<i;f++)a===w0?n[f].additiveValue=n[f].value-d:a===qp?n[f].additiveValue=x0([],n[f].value,d,-1):T0(a)&&(n[f].additiveValue=a===pS?x0([],n[f].value,d,-1):A3([],n[f].value,d,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===qp,f,c=this._lastFr,v=Math.min,h,d;if(s===1)h=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=v(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=r;var g=d.percent-h.percent,y=g===0?1:v((r-h.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?cp:t[l];if((T0(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:d.rawValue;else if(T0(i))i===pS?JT(m,h[a],d[a],y):zut(m,h[a],d[a],y);else if(D3(i)){var _=h[a],S=d[a],b=i===EE;t[l]={type:b?"linear":"radial",x:Yo(_.x,S.x,y),y:Yo(_.y,S.y,y),colorStops:X(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:Yo(w.offset,C.offset,y),color:dS(JT([],w.color,C.color,y))}}),global:S.global},b?(t[l].x2=Yo(_.x2,S.x2,y),t[l].y2=Yo(_.y2,S.y2,y)):t[l].r=Yo(_.r,S.r,y)}else if(u)JT(m,h[a],d[a],y),n||(t[l]=dS(m));else{var x=Yo(h[a],d[a],y);n?this._additiveValue=x:t[l]=x}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,a=this._additiveValue;r===w0?t[n]=t[n]+a:r===qp?(on(t[n],cp),x0(cp,cp,a,1),t[n]=dS(cp)):r===pS?x0(t[n],t[n],a,1):r===Dj&&A3(t[n],t[n],a,1)},e}(),wI=function(){function e(t,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&a){Hx("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,kt(r),n)},e.prototype.whenWithKeys=function(t,r,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new Hut(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,v=c[c.length-1];u=v&&v.value,f.valType===qp&&u&&(u=dS(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Og(u),a),this._trackKeys.push(s)}l.addKeyframe(t,Og(r[s]),a)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(t);i&&(r=i)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new but({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,h);var y=r._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return X(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var i=r[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[i]=Og(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||kt(t);for(var n=0;n<r.length;n++){var a=r[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function nh(){return new Date().getTime()}var Uut=function(e){be(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=nh()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(P1(n),!r._paused&&r.update())}P1(n)},t.prototype.start=function(){this._running||(this._time=nh(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=nh(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=nh()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var a=new wI(r,n.loop);return this.addAnimator(a),a},t}(Za),Fut=300,tC=Vt.domSupported,eC=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=X(e,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:n}}(),E3={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},L3=!1;function OE(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Yut(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function rC(e){e&&(e.zrByTouch=!0)}function jut(e,t){return xa(e.dom,new Xut(e,t),!0)}function Ej(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var Xut=function(){function e(t,r){this.stopPropagation=Pe,this.stopImmediatePropagation=Pe,this.preventDefault=Pe,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),ri={mousedown:function(e){e=xa(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=xa(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=xa(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=xa(this.dom,e);var t=e.toElement||e.relatedTarget;Ej(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){L3=!0,e=xa(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){L3||(e=xa(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=xa(this.dom,e),rC(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),ri.mousemove.call(this,e),ri.mousedown.call(this,e)},touchmove:function(e){e=xa(this.dom,e),rC(e),this.handler.processGesture(e,"change"),ri.mousemove.call(this,e)},touchend:function(e){e=xa(this.dom,e),rC(e),this.handler.processGesture(e,"end"),ri.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Fut&&ri.click.call(this,e)},pointerdown:function(e){ri.mousedown.call(this,e)},pointermove:function(e){OE(e)||ri.mousemove.call(this,e)},pointerup:function(e){ri.mouseup.call(this,e)},pointerout:function(e){OE(e)||ri.mouseout.call(this,e)}};D(["click","dblclick","contextmenu"],function(e){ri[e]=function(t){t=xa(this.dom,t),this.trigger(e,t)}});var RE={pointermove:function(e){OE(e)||RE.mousemove.call(this,e)},pointerup:function(e){RE.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 $ut(e,t){var r=t.domHandlers;Vt.pointerEventsSupported?D(eC.pointer,function(n){gS(t,n,function(a){r[n].call(e,a)})}):(Vt.touchEventsSupported&&D(eC.touch,function(n){gS(t,n,function(a){r[n].call(e,a),Yut(t)})}),D(eC.mouse,function(n){gS(t,n,function(a){a=_I(a),t.touching||r[n].call(e,a)})}))}function Wut(e,t){Vt.pointerEventsSupported?D(E3.pointer,r):Vt.touchEventsSupported||D(E3.mouse,r);function r(n){function a(i){i=_I(i),Ej(e,i.target)||(i=jut(e,i),t.domHandlers[n].call(e,i))}gS(t,n,a,{capture:!0})}}function gS(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,bE(e.domTarget,t,r,n)}function nC(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&tut(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var O3=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),Zut=function(e){be(t,e);function t(r,n){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new O3(r,ri),tC&&(a._globalHandlerScope=new O3(document,RE)),$ut(a,a._localHandlerScope),a}return t.prototype.dispose=function(){nC(this._localHandlerScope),tC&&nC(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,tC&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?Wut(this,n):nC(n)}},t}(Za),Lj=1;Vt.hasGlobalWindow&&(Lj=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var G1=Lj,IE=.4,PE="#333",NE="#ccc",qut="#eee",R3=Hc,I3=5e-5;function Du(e){return e>I3||e<-I3}var Eu=[],ov=[],aC=we(),iC=Math.abs,Ro=function(){function e(){}return e.prototype.getLocalTransform=function(t){return tu(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Du(this.rotation)||Du(this.x)||Du(this.y)||Du(this.scaleX-1)||Du(this.scaleY-1)||Du(this.skewX)||Du(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(R3(n),this.invTransform=null);return}n=n||we(),r?this.getLocalTransform(n):R3(n),t&&(r?ua(n,t,n):Ql(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||we(),ca(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Eu);var n=Eu[0]<0?-1:1,a=Eu[1]<0?-1:1,i=((Eu[0]-n)*r+n)/Eu[0]||0,o=((Eu[1]-a)*r+a)/Eu[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||we(),ua(ov,t.invTransform,r),r=ov);var n=this.originX,a=this.originY;(n||a)&&(aC[4]=n,aC[5]=a,ua(ov,r,aC),ov[4]-=n,ov[5]-=a,r=ov),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],a=this.invTransform;return a&&Ne(n,n,a),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],a=this.transform;return a&&Ne(n,n,a),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&iC(t[0]-1)>1e-10&&iC(t[3]-1)>1e-10?Math.sqrt(iC(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){yo(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,v=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||a||s||l){var d=n+s,p=a+l;r[4]=-d*i-v*p*o,r[5]=-p*o-h*d*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=h*i,r[2]=v*o,u&&Gs(r,r,u),r[4]+=n+f,r[5]+=a+c,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),tu=Ro.getLocalTransform;function xh(){return new Ro}var As=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function yo(e,t){return Q9(e,t,As)}function so(e){C0||(C0=new Qh(100)),e=e||Ts;var t=C0.get(e);return t||(t={font:e,strWidthCache:new Qh(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:hr.measureText("国",e).width,asciiCharWidth:hr.measureText("a",e).width},C0.put(e,t)),t}var C0;function Kut(e){if(!(oC>=P3)){e=e||Ts;for(var t=[],r=+new Date,n=0;n<=127;n++)t[n]=hr.measureText(String.fromCharCode(n),e).width;var a=+new Date-r;return a>16?oC=P3:a>2&&oC++,t}}var oC=0,P3=5;function Oj(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=Kut(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function lo(e,t){var r=e.strWidthCache,n=r.get(t);return n==null&&(n=hr.measureText(t,e.font).width,r.put(t,n)),n}function N3(e,t,r,n){var a=lo(so(t),e),i=Tm(t),o=Jh(0,a,r),s=Lf(0,i,n),l=new vt(o,s,a,i);return l}function $x(e,t,r,n){var a=((e||"")+"").split(`
146
+ `),i=a.length;if(i===1)return N3(a[0],t,r,n);for(var o=new vt(0,0,0,0),s=0;s<a.length;s++){var l=N3(a[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function Jh(e,t,r,n){return r==="right"?n?e+=t:e-=t:r==="center"&&(n?e+=t/2:e-=t/2),e}function Lf(e,t,r,n){return r==="middle"?n?e+=t/2:e-=t/2:r==="bottom"&&(n?e+=t:e-=t),e}function Tm(e){return so(e).stWideCharWidth}function mo(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function H1(e,t,r){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=mo(n[0],r.width),u+=mo(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=a,u+=s,f="right",c="middle";break;case"right":l+=a+o,u+=s,c="middle";break;case"top":l+=o/2,u-=a,f="center",c="bottom";break;case"bottom":l+=o/2,u+=i+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=a,u+=s,c="middle";break;case"insideRight":l+=o-a,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=i-a,f="center",c="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=i-a,c="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,f="right",c="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=f,e.verticalAlign=c,e}var sC="__zr_normal__",lC=As.concat(["ignore"]),Qut=Ya(As,function(e,t){return e[t]=!0,e},{ignore:!1}),sv={},Jut=new vt(0,0,0,0),A0=[],yS=0,Wx=1,Zx=function(){function e(t){this.id=pI(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=r.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;i.copyTransform(r);var f=n.position!=null,c=n.autoOverflowArea,v=void 0;if((c||f)&&(v=Jut,n.layoutRect?v.copy(n.layoutRect):v.copy(this.getBoundingRect()),a||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(sv,n,v):H1(sv,n,v),i.x=sv.x,i.y=sv.y,o=sv.align,s=sv.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=v.width*.5,p=v.height*.5):(d=mo(h[0],v.width),p=mo(h[1],v.height)),u=!0,i.originX=-i.x+d+(a?0:v.x),i.originY=-i.y+p+(a?0:v.y)}}n.rotation!=null&&(i.rotation=n.rotation);var g=n.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var m=y.overflowRect=y.overflowRect||new vt(0,0,0,0);i.getLocalTransform(A0),ca(A0,A0),vt.copy(m,v),m.applyTransform(A0)}else y.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,S=void 0,b=void 0,x=void 0;_&&this.canBeInsideText()?(S=n.insideFill,b=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(S),x=!0)):(S=n.outsideFill,b=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(S),x=!0)),S=S||"#000",(S!==y.fill||b!==y.stroke||x!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=b,y.autoStroke=x,y.align=o,y.verticalAlign=s,r.setDefaultTextStyle(y)),r.__dirty|=Pn,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?NE:PE},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&on(r);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,Ga(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},U(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(pt(t))for(var n=t,a=kt(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==sC)){var o=a.targetName,s=o?r[o]:r;a.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,lC)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var a=0;a<n.length;a++){var i=n[a];t[i]!=null&&!(i in r)&&(r[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(sC,!1,t)},e.prototype.useState=function(t,r,n,a){var i=t===sC,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(St(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){Hx("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=this._textContent,c=k3(this,f,u,a);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(t,u,this._normalState,r,B3(this,n,l),l);var v=this._textGuide;return f&&f.useState(t,r,n,!!c),v&&v.useState(t,r,n,!!c),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=yS,this.__dirty&=~Pn),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&a.push(f)}var c=a[o-1],v=this._textContent,h=k3(this,v,c,n);h&&!this.__inHover&&(this.__inHover=h);var d=this._mergeStates(a),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,B3(this,r,p),p);var g=this._textGuide;v&&v.useStates(t,r,!!h),g&&g.useStates(t,r,!!h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=yS,this.__dirty&=~Pn)}},e.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var r=t.__hostTarget;t=r?t.ignoreHostSilent?null:r:t.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=St(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var a=this.currentStates.slice(),i=St(a,t),o=St(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,a=0;a<t.length;a++){var i=t[a];U(r,i),i.textConfig&&(n=n||{},U(n,i.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,a,i,o){if(this.__inHover!==Wx){var s=!(r&&a);r&&r.textConfig?(this.textConfig=U({},a?this.textConfig:n.textConfig),U(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<lC.length;f++){var c=lC[f],v=i&&Qut[c];r&&r[c]!=null?v?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(v?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!i)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||n)[d]:r||n)}u&&this._transitionState(t,l,o)}},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new Ro,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),U(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Pn;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var a=t?this[t]:this,i=new wI(a,r,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},e.prototype.addAnimator=function(t,r){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(r)}).done(function(){var i=a.animators,o=St(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!t||t===s.scope?s.stop(r):i.push(s)}return this.animators=i,this},e.prototype.animateTo=function(t,r,n){uC(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){uC(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,a){for(var i=uC(this,r,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=yS,t.__dirty=Pn;function r(n,a,i,o){Object.defineProperty(t,n,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(f){l[i]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();We(Zx,Za);We(Zx,Ro);function uC(e,t,r,n,a){r=r||{};var i=[];Rj(e,"",e,t,r,n,i,a);var o=i.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&r.during&&i[0].during(function(d,p){r.during(p)});for(var v=0;v<i.length;v++){var h=i[v];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return i}function fC(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function tft(e){return Xr(e[0])}function eft(e,t,r){if(Xr(t[r]))if(Xr(e[r])||(e[r]=[]),wn(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),fC(e[r],t[r],n))}else{var a=t[r],i=e[r],o=a.length;if(tft(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?fC(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else fC(i,a,o);i.length=a.length}else e[r]=t[r]}function rft(e,t){return e===t||Xr(e)&&Xr(t)&&nft(e,t)}function nft(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function Rj(e,t,r,n,a,i,o,s){for(var l=kt(n),u=a.duration,f=a.delay,c=a.additive,v=a.setToFinal,h=!pt(i),d=e.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=n[y];if(m!=null&&r[y]!=null&&(h||i[y]))if(pt(m)&&!Xr(m)&&!bm(m)){if(t){s||(r[y]=m,e.updateDuringAnimation(t));continue}Rj(e,y,r[y],m,a,i&&i[y],o,s)}else p.push(y);else s||(r[y]=m,e.updateDuringAnimation(t),p.push(y))}var _=p.length;if(!c&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===t){var x=b.stopTracks(p);if(x){var w=St(d,b);d.splice(w,1)}}}if(a.force||(p=qt(p,function(M){return!rft(n[M],r[M])}),_=p.length),_>0||a.force&&!o.length){var T=void 0,C=void 0,A=void 0;if(s){C={},v&&(T={});for(var S=0;S<_;S++){var y=p[S];C[y]=r[y],v?T[y]=n[y]:r[y]=n[y]}}else if(v){A={};for(var S=0;S<_;S++){var y=p[S];A[y]=Og(r[y]),eft(r,n,y)}}var b=new wI(r,!1,!1,c?qt(d,function(L){return L.targetName===t}):null);b.targetName=t,a.scope&&(b.scope=a.scope),v&&T&&b.whenWithKeys(0,T,p),A&&b.whenWithKeys(0,A,p),b.whenWithKeys(u??500,s?C:n,p).delay(f||0),e.addAnimator(b,t),o.push(b)}}function k3(e,t,r,n){return!(r&&r.hoverLayer||n)||z3(e)||t&&z3(t)?yS:Wx}function z3(e){return e.type==="text"||e.type==="tspan"}function B3(e,t,r){return!t&&!e.__inHover&&r&&r.duration>0}var ct=function(e){be(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var a=St(this._children,r);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(r,n){var a=this._children,i=a[n];if(r&&r!==this&&r.parent!==this&&r!==i){a[n]=r,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,a=this._children,i=St(a,r);return i<0?this:(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a<r.length;a++){var i=r[a];n&&i.removeSelfFromZr(n),i.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];r.call(n,o,i)}return this},t.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=r.call(n,i);i.isGroup&&!o&&i.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new vt(0,0,0,0),a=r||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(vt.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(Zx);ct.prototype.type="group";/*!
147
+ * ZRender, a high performance 2d drawing library.
148
+ *
149
+ * Copyright (c) 2013, Baidu Inc.
150
+ * All rights reserved.
151
+ *
152
+ * LICENSE
153
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE
154
+ */var mS={},mf={};function aft(e){delete mf[e]}function ift(e){if(!e)return!1;if(typeof e=="string")return hy(e,1)<IE;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,a=0;a<n;a++)r+=hy(t[a].color,1);return r/=n,r<IE}return!1}var oft=function(){function e(t,r,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var i=new gut,o=n.renderer||"canvas";mS[o]||(o=kt(mS)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new mS[o](r,i,n,t),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Vt.node&&!Vt.worker&&!l?new Zut(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?Vt.touchEventsSupported:!!f,v=44,h;c&&(h=ot(n.pointerSize,v)),this.handler=new cj(i,s,u,s.root,h),this.animation=new Uut({stage:{update:l?null:function(){return a._flush(!1)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=ift(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(t){var r,n=nh(),a=this._needsRefresh,i=this._needsRefreshHover;(a||i)&&(r=!0,this._refresh({animUpdate:t,refresh:a,refreshHover:i}));var o=nh();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof ct&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,aft(this.id))},e}();function kE(e,t){var r=new oft(pI(),e,t);return mf[r.id]=r,r}function sft(e){e.dispose()}function lft(){for(var e in mf)mf.hasOwnProperty(e)&&mf[e].dispose();mf={}}function uft(e){return mf[e]}function Ij(e,t){mS[e]=t}var zE;function Pj(e){if(typeof zE=="function")return zE(e)}function Nj(e){zE=e}var fft="6.1.0";const cft=Object.freeze(Object.defineProperty({__proto__:null,dispose:sft,disposeAll:lft,getElementSSRData:Pj,getInstance:uft,init:kE,registerPainter:Ij,registerSSRDataGetter:Nj,version:fft},Symbol.toStringTag,{value:"Module"}));var V3=1e-4,U1=20,vft=14;function hft(e){return e.replace(/^\s+|\s+$/g,"")}var te=Math.min,Dt=Math.max,Ie=Math.abs,_o=Math.round,ja=Math.floor,Uc=Math.ceil,Fc=Math.pow,Jf=Math.log,py=Math.LN10,F1=Math.PI,dft=Math.random;function Xt(e,t,r,n){var a=t[0],i=t[1],o=r[0],s=r[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=a)return o;if(e>=i)return s}else{if(e>=a)return o;if(e<=i)return s}else{if(e===a)return o;if(e===i)return s}return(e-a)/l*u+o}var et=pft;function pft(e,t,r){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Y1(e,t,r)}function Y1(e,t,r){return J(e)?kj(e)?parseFloat(e)/100*t+(r||0):parseFloat(e):e==null?NaN:+e}function gft(e){return J(e)&&kj(e)}function kj(e){return!!hft(e).match(/%$/)}function Yt(e,t,r){return isNaN(t)?r?""+e:+e:(t=te(Dt(0,t),U1),e=(+e).toFixed(t),r?e:+e)}function yft(e,t,r){return t==null&&(t=10),Yt(e,t,r)}function Er(e){return e.sort(function(t,r){return t-r}),e}function Zi(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(_o(e*t)/t===e)return r}return zj(e)}function zj(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,a=r>0?r:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Dt(0,o-n)}function mft(e,t){var r=ja(Jf(e[1]-e[0])/py),n=_o(Jf(Ie(t[1]-t[0]))/py),a=te(Dt(-r+n,0),U1);return isFinite(a)?a:U1}function TI(e,t,r){var n=Ie(e[1]-e[0]);if(!isFinite(n)||n===0)return NaN;var a=Jf(2*Ie(r||1)*Ie(n))/py,i=Jf(Ie(t))/py,o=Dt(0,Uc(-a+i));return isFinite(o)||(o=NaN),o}function _ft(e,t,r){if(!e[t])return 0;var n=Bj(e,r);return n[t]||0}function Bj(e,t){var r=Ya(e,function(h,d){return h+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Fc(10,t),a=X(e,function(h){return(isNaN(h)?0:h)/r*n*100}),i=n*100,o=X(a,function(h){return ja(h)}),s=Ya(o,function(h,d){return h+d},0),l=X(a,function(h,d){return h-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,v=l.length;c<v;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return X(o,function(h){return h/n})}function rf(e,t){var r=Dt(Zi(e),Zi(t)),n=e+t;return r>U1?n:Yt(n,r)}var gy=Fc(2,53)-1;function CI(e){var t=F1*2;return(e%t+t)%t}function tc(e){return e>-V3&&e<V3}var Sft=/^(?:(\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 Io(e){if(e instanceof Date)return e;if(J(e)){var t=Sft.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(_o(e))}function AI(e){return Fc(10,qx(e))}function qx(e){if(e===0)return 0;var t=ja(Jf(e)/py);return e/Fc(10,t)>=10&&t++,t}var Vj=2;function Kx(e,t){var r=qx(e),n=Fc(10,r),a=e/n,i;return t===Vj?i=1:t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,e=i*n,Yt(e,-r)}function _S(e,t){var r=(e.length-1)*t+1,n=ja(r),a=+e[n-1],i=r-n;return i?a+i*(e[n]-a):a}function BE(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n<e.length;){for(var a=e[n].interval,i=e[n].close,o=0;o<2;o++)a[o]<=t&&(a[o]=t,i[o]=o?1:1-r),t=a[o],r=i[o];a[0]===a[1]&&i[0]*i[1]!==1?e.splice(n,1):n++}return e;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function So(e){var t=parseFloat(e);return t==e&&(t!==0||!J(e)||e.indexOf("x")<=0)?t:NaN}function MI(e){return!isNaN(So(e))}function DI(){return _o(dft()*9)}function Gj(e,t){return t===0?e:Gj(t,e%t)}function G3(e,t){return e==null?t:t==null?e:e*t/Gj(e,t)}function Xa(e){return e!=null&&isFinite(e)}var bft="[ECharts] ",xft=typeof console<"u"&&console.warn&&console.log;function wft(e,t,r){xft&&console[e](bft+t)}function Hj(e,t){wft("error",e)}function Zt(e){throw new Error(e)}function H3(e,t,r){return(t-e)*r+e}var Uj="series\0",Fj="\0_ec_\0";function ue(e){return e instanceof Array?e:e==null?[]:[e]}function ec(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!e.emphasis[t].hasOwnProperty(i)&&e[t].hasOwnProperty(i)&&(e.emphasis[t][i]=e[t][i])}}}var U3=["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 Ed(e){return pt(e)&&!Y(e)&&!(e instanceof Date)?e.value:e}function Tft(e){return pt(e)&&!(e instanceof Array)}function Yj(e,t,r){var n=r==="normalMerge",a=r==="replaceMerge",i=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=nt();D(t,function(l,u){if(!pt(l)){t[u]=null;return}});var s=Cft(e,o,r);return(n||a)&&Aft(s,e,o,t),n&&Mft(s,t),n||a?Dft(s,t,a):i&&Eft(s,t),Lft(s),s}function Cft(e,t,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<e.length;a++){var i=e[a];i&&i.id!=null&&t.set(i.id,a),n.push({existing:r==="replaceMerge"||yy(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function Aft(e,t,r,n){D(n,function(a,i){if(!(!a||a.id==null)){var o=Rg(a.id),s=r.get(o);if(s!=null){var l=e[s];$r(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],n[i]=null}}})}function Mft(e,t){D(t,function(r,n){if(!(!r||r.name==null))for(var a=0;a<e.length;a++){var i=e[a].existing;if(!e[a].newOption&&i&&(i.id==null||r.id==null)&&!yy(r)&&!yy(i)&&jj("name",i,r)){e[a].newOption=r,t[n]=null;return}}})}function Dft(e,t,r){D(t,function(n){if(n){for(var a,i=0;(a=e[i])&&(a.newOption||yy(a.existing)||a.existing&&n.id!=null&&!jj("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}function Eft(e,t){D(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function Lft(e){var t=nt();D(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),D(e,function(r){var n=r.newOption;$r(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),D(e,function(r,n){var a=r.existing,i=r.newOption,o=r.keyInfo;if(pt(i)){if(o.name=i.name!=null?Rg(i.name):a?a.name:Uj+n,a)o.id=Rg(a.id);else if(i.id!=null)o.id=Rg(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function jj(e,t,r){var n=nr(t[e],null),a=nr(r[e],null);return n!=null&&a!=null&&n===a}function Rg(e){return nr(e,"")}function nr(e,t){return e==null?t:J(e)?e:Ut(e)||L1(e)?e+"":t}function EI(e){var t=e.name;return!!(t&&t.indexOf(Uj))}function yy(e){return e&&e.id!=null&&Rg(e.id).indexOf(Fj)===0}function Oft(e){return Fj+e}function Rft(e,t,r){D(e,function(n){var a=n.newOption;pt(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=Ift(t,a,n.existing,r))})}function Ift(e,t,r,n){var a=t.type?t.type:r?r.subType:n.determineSubType(e,t);return a}function Pft(e,t){var r={},n={};return a(e||[],r),a(t||[],n,r),[i(r),i(n)];function a(o,s,l){for(var u=0,f=o.length;u<f;u++){var c=nr(o[u].seriesId,null);if(c==null)return;for(var v=ue(o[u].dataIndex),h=l&&l[c],d=0,p=v.length;d<p;d++){var g=v[d];h&&h[g]?h[g]=null:(s[c]||(s[c]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function rc(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Y(t.dataIndex)?X(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Y(t.name)?X(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Tt(){var e="__ec_inner_"+Nft++;return function(t){return t[e]||(t[e]={})}}var Nft=DI();function wh(e,t,r){var n=LI(t,r),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,f){var c=Ld(e,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function LI(e,t){var r;if(J(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var a=nt(),i={},o=!1;return D(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&St(t.includeMainTypes,f)<0)){o=o||!!f;var v=a.get(f)||a.set(f,{});v[c]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var ze={useDefault:!0,enableAll:!1,enableNone:!1},kft={useDefault:!1,enableAll:!0,enableNone:!0};function Ld(e,t,r,n){n=n||ze;var a=r.index,i=r.id,o=r.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}if(a==="none"||a===!1){if(n.enableNone)return s.models=[],s;a=-1}return a==="all"&&(n.enableAll?a=i=o=null:a=-1),s.models=e.queryComponents({mainType:t,index:a,id:i,name:o}),s}function OI(e,t,r){var n={};n[t+"Id"]=e[t+"Id"],n[t+"Index"]=e[t+"Index"],n[t+"Name"]=e[t+"Name"];var a={mainType:t,query:n};return r&&(a.subType=r),a}function Xj(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function zft(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Bft(e){return e==="auto"?Vt.domSupported?"html":"richText":e||"html"}function VE(e,t){var r=nt(),n=[];return D(e,function(a){var i=t(a);(r.get(i)||(n.push(i),r.set(i,[]))).push(a)}),{keys:n,buckets:r}}function $j(e,t,r,n,a){var i=t==null||t==="auto";if(n==null)return n;if(Ut(n)){var o=H3(r||0,n,a);return Yt(o,i?Math.max(Zi(r||0),Zi(n)):t)}else{if(J(n))return a<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var v=e.getDimensionInfo(c);if(v&&v.type==="ordinal")s[c]=(a<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,d=u[c],o=H3(h,d,a);s[c]=Yt(o,i?Math.max(Zi(h),Zi(d)):t)}}return s}}var Bl=function(){function e(){}return e.prototype.reset=function(t,r,n,a){return this._list=t,this._step=a=a||1,this._idx=r,this._end=n??(a>0?t.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},e}();function cC(e){e.option=e.parentModel=e.ecModel=null}function kr(){return[1/0,-1/0]}function GE(e,t){Ms(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function Wj(e,t){Ms(t)&&t<e[0]&&(e[0]=t)}function Zj(e,t){Ms(t)&&t>e[1]&&(e[1]=t)}function Vft(e,t){nc(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function Ms(e){return e!=null&&isFinite(e)}function nc(e,t){return Ms(e)&&Ms(t)&&e<=t}function Gft(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function SS(e){nc(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Od(){var e="__ec_once_"+Hft++;return function(t,r){it(t,e)||(t[e]=1,r())}}var Hft=DI();function Qx(e,t,r){var n=nt(),a=0;D(e,function(i){var o=t(i),s=n.get(o)||0;r&&r(i,s),!s&&!r&&(e[a++]=i),n.set(o,s+1)}),r||(e.length=a)}function Uft(e){return e.value+""}function Fft(e){return e+""}function uo(e,t){return ot(t,!0)?e.seriesIndex+2:0}function qj(e,t,r){var n=e.getData().count();return{progressiveRender:r.progressiveEnabled&&t.incrementalPrepareRender&&n>=r.threshold,large:e.get("large")&&n>=e.get("largeThreshold"),modDataCount:e.get("progressiveChunkMode")==="mod"?e.getData().count():null}}function or(e,t){return{seriesType:e,overallReset:t}}function Cm(e){return{overallReset:e}}var Yft=".",Lu="___EC__COMPONENT__CONTAINER___",Kj="___EC__EXTENDED_CLASS___";function qi(e){var t={main:"",sub:""};if(e){var r=e.split(Yft);t.main=r[0]||"",t.sub=r[1]||""}return t}function jft(e){$r(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Xft(e){return!!(e&&e[Kj])}function RI(e,t){e.$constructor=e,e.extend=function(r){var n=this,a;return $ft(n)?a=function(i){G(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},gI(a,this)),U(a.prototype,r),a[Kj]=!0,a.extend=this.extend,a.superCall=qft,a.superApply=Kft,a.superClass=n,a}}function $ft(e){return ut(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Qj(e,t){e.extend=t.extend}var Wft=Math.round(Math.random()*10);function Zft(e){var t=["__\0is_clz",Wft++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function qft(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function Kft(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Jx(e){var t={};e.registerClass=function(n){var a=n.type||n.prototype.type;if(a){jft(a),n.prototype.type=a;var i=qi(a);if(!i.sub)t[i.main]=n;else if(i.sub!==Lu){var o=r(i);o[i.sub]=n}}return n},e.getClass=function(n,a,i){var o=t[n];if(o&&o[Lu]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var a=qi(n),i=[],o=t[a.main];return o&&o[Lu]?D(o,function(s,l){l!==Lu&&i.push(s)}):i.push(o),i},e.hasClass=function(n){var a=qi(n);return!!t[a.main]},e.getAllClassMainTypes=function(){var n=[];return D(t,function(a,i){n.push(i)}),n},e.hasSubTypes=function(n){var a=qi(n),i=t[a.main];return i&&i[Lu]};function r(n){var a=t[n.main];return(!a||!a[Lu])&&(a=t[n.main]={},a[Lu]=!0),a}}function ac(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,a,i){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(a&&St(a,l)>=0||i&&St(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var Qft=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Jft=ac(Qft),tct=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return Jft(this,t,r)},e}(),HE=new Qh(50);function ect(e){if(typeof e=="string"){var t=HE.get(e);return t&&t.image}else return e}function II(e,t,r,n,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var i=HE.get(e),o={hostEl:r,cb:n,cbPayload:a};return i?(t=i.image,!tw(t)&&i.pending.push(o)):(t=hr.loadImage(e,F3,F3),t.__zrImageSrc=e,HE.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function F3(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function tw(e){return e&&e.width&&e.height}var vC=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function rct(e,t,r,n,a){var i={};return Jj(i,e,t,r,n,a),i.text}function Jj(e,t,r,n,a,i){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split(`
155
+ `);i=tX(r,n,a,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)eX(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;e.text=o.join(`
156
+ `),e.isTruncated=s}function tX(e,t,r,n){n=n||{};var a=U({},n);r=ot(r,"..."),a.maxIterations=ot(n.maxIterations,2);var i=a.minChar=ot(n.minChar,0),o=a.fontMeasureInfo=so(t),s=o.asciiCharWidth;a.placeholder=ot(n.placeholder,"");for(var l=e=Math.max(0,e-1),u=0;u<i&&l>=s;u++)l-=s;var f=lo(o,r);return f>l&&(r="",f=0),l=e-f,a.ellipsis=r,a.ellipsisWidth=f,a.contentWidth=l,a.containerWidth=e,a}function eX(e,t,r){var n=r.containerWidth,a=r.contentWidth,i=r.fontMeasureInfo;if(!n){e.textLine="",e.isTruncated=!1;return}var o=lo(i,t);if(o<=n){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=r.maxIterations){t+=r.ellipsis;break}var l=s===0?nct(t,a,i):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=lo(i,t)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function nct(e,t,r){for(var n=0,a=0,i=e.length;a<i&&n<t;a++)n+=Oj(r,e.charCodeAt(a));return a}function act(e,t,r,n){var a=PI(e),i=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=t.font,f=i==="truncate",c=Tm(u),v=ot(t.lineHeight,c),h=t.lineOverflow==="truncate",d=!1,p=t.width;p==null&&r!=null&&(p=r-s);var g=t.height;g==null&&n!=null&&(g=n-l);var y;p!=null&&(i==="break"||i==="breakAll")?y=a?rX(a,t.font,p,i==="breakAll",0).lines:[]:y=a?a.split(`
157
+ `):[];var m=y.length*v;if(g==null&&(g=m),m>g&&h){var _=Math.floor(g/v);d=d||y.length>_,y=y.slice(0,_),m=y.length*v}if(a&&f&&p!=null)for(var S=tX(p,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),b={},x=0;x<y.length;x++)eX(b,y[x],S),y[x]=b.textLine,d=d||b.isTruncated;for(var w=g,T=0,C=so(u),x=0;x<y.length;x++)T=Math.max(lo(C,y[x]),T);p==null&&(p=T);var A=p;return w+=l,A+=s,{lines:y,height:g,outerWidth:A,outerHeight:w,lineHeight:v,calculatedLineHeight:c,contentWidth:T,contentHeight:m,width:p,isTruncated:d}}var ict=function(){function e(){}return e}(),Y3=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),oct=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function sct(e,t,r,n,a){var i=new oct,o=PI(e);if(!o)return i;var s=t.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=t.width;f==null&&r!=null&&(f=r-l);var c=t.height;c==null&&n!=null&&(c=n-u);for(var v=t.overflow,h=(v==="break"||v==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:v==="breakAll"}:null,d=vC.lastIndex=0,p;(p=vC.exec(o))!=null;){var g=p.index;g>d&&hC(i,o.substring(d,g),t,h),hC(i,p[2],t,h,p[1]),d=vC.lastIndex}d<o.length&&hC(i,o.substring(d,o.length),t,h);var y=[],m=0,_=0,S=v==="truncate",b=t.lineOverflow==="truncate",x={};function w(mt,Nt,Q){mt.width=Nt,mt.lineHeight=Q,m+=Q,_=Math.max(_,Nt)}t:for(var T=0;T<i.lines.length;T++){for(var C=i.lines[T],A=0,M=0,L=0;L<C.tokens.length;L++){var E=C.tokens[L],R=E.styleName&&t.rich[E.styleName]||{},I=E.textPadding=R.padding,O=I?I[1]+I[3]:0,N=E.font=R.font||t.font;E.contentHeight=Tm(N);var P=ot(R.height,E.contentHeight);if(E.innerHeight=P,I&&(P+=I[0]+I[2]),E.height=P,E.lineHeight=zn(R.lineHeight,t.lineHeight,P),E.align=R&&R.align||a,E.verticalAlign=R&&R.verticalAlign||"middle",b&&c!=null&&m+E.lineHeight>c){var z=i.lines.length;L>0?(C.tokens=C.tokens.slice(0,L),w(C,M,A),i.lines=i.lines.slice(0,T+1)):i.lines=i.lines.slice(0,T),i.isTruncated=i.isTruncated||i.lines.length<z;break t}var B=R.width,H=B==null||B==="auto";if(typeof B=="string"&&B.charAt(B.length-1)==="%")E.percentWidth=B,y.push(E),E.contentWidth=lo(so(N),E.text);else{if(H){var F=R.backgroundColor,$=F&&F.image;$&&($=ect($),tw($)&&(E.width=Math.max(E.width,$.width*P/$.height)))}var j=S&&f!=null?f-M:null;j!=null&&j<E.width?!H||j<O?(E.text="",E.width=E.contentWidth=0):(Jj(x,E.text,j-O,N,t.ellipsis,{minChar:t.truncateMinChar}),E.text=x.text,i.isTruncated=i.isTruncated||x.isTruncated,E.width=E.contentWidth=lo(so(N),E.text)):E.contentWidth=lo(so(N),E.text)}E.width+=O,M+=E.width,R&&(A=Math.max(A,E.lineHeight))}w(C,M,A)}i.outerWidth=i.width=ot(f,_),i.outerHeight=i.height=ot(c,m),i.contentHeight=m,i.contentWidth=_,i.outerWidth+=l,i.outerHeight+=u;for(var T=0;T<y.length;T++){var E=y[T],tt=E.percentWidth;E.width=parseInt(tt,10)/100*i.width}return i}function hC(e,t,r,n,a){var i=t==="",o=a&&r.rich[a]||{},s=e.lines,l=o.font||r.font,u=!1,f,c;if(n){var v=o.padding,h=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=mo(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
158
+ `),u=!0),n.accumWidth=d}else{var p=rX(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,c=p.linesWidths,f=p.lines}}f||(f=t.split(`
159
+ `));for(var g=so(l),y=0;y<f.length;y++){var m=f[y],_=new ict;if(_.styleName=a,_.text=m,_.isLineHolder=!m&&!i,typeof o.width=="number"?_.width=o.width:_.width=c?c[y]:lo(g,m),!y&&!u){var S=(s[s.length-1]||(s[0]=new Y3)).tokens,b=S.length;b===1&&S[0].isLineHolder?S[0]=_:(m||!b||i)&&S.push(_)}else s.push(new Y3([_]))}}function lct(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var uct=Ya(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function fct(e){return lct(e)?!!uct[e]:!0}function rX(e,t,r,n,a){for(var i=[],o=[],s="",l="",u=0,f=0,c=so(t),v=0;v<e.length;v++){var h=e.charAt(v);if(h===`
160
+ `){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=Oj(c,h.charCodeAt(0)),p=n?!1:!fct(h);if(i.length?f+d>r:a+f+d>r){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=h,f=d)):p?(i.push(l),o.push(u),l=h,u=d):(i.push(h),o.push(d));continue}f+=d,p?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=a),{accumWidth:f,lines:i,linesWidths:o}}function j3(e,t,r,n,a,i){if(e.baseX=r,e.baseY=n,e.outerWidth=e.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;vt.set(X3,Jh(r,o,a),Lf(n,s,i),o,s),vt.intersect(t,X3,null,$3);var l=$3.outIntersectRect;e.outerWidth=l.width,e.outerHeight=l.height,e.baseX=Jh(l.x,l.width,a,!0),e.baseY=Lf(l.y,l.height,i,!0)}}var X3=new vt(0,0,0,0),$3={outIntersectRect:{},clamp:!0};function PI(e){return e!=null?e+="":e=""}function cct(e){var t=PI(e.text),r=e.font,n=lo(so(r),t),a=Tm(r);return UE(e,n,a,null)}function UE(e,t,r,n){var a=new vt(Jh(e.x||0,t,e.textAlign),Lf(e.y||0,r,e.textBaseline),t,r),i=n??(nX(e)?e.lineWidth:0);return i>0&&(a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i),a}function nX(e){var t=e.stroke;return t!=null&&t!=="none"&&e.lineWidth>0}var FE="__zr_style_"+Math.round(Math.random()*10),Of={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ew={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Of[FE]=!0;var W3=["z","z2","invisible"],vct=["invisible"],$a=function(e){be(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=kt(r),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(r[i]):e.prototype.attrKV.call(this,i,r[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(r){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&hct(this,r,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new vt(0,0,0,0)),n?vt.applyTransform(r,a,n):r.copy(a),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new vt(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:U(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Zp,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Zp)},t.prototype.styleUpdated=function(){this.__dirty&=~Zp},t.prototype.createStyle=function(r){return wm(Of,r)},t.prototype.useStyle=function(r){r[FE]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},t.prototype._useHoverStyle=function(r){this.__hoverStyle=r},t.prototype.isStyleObject=function(r){return r[FE]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,W3)},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u=this.__inHover===Wx,f;if(n&&n.style?o?i?f=n.style:(f=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(f,n.style)):(f=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(f,n.style)):l&&(f=a.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var v=kt(c),h=0;h<v.length;h++){var d=v[h];d in f&&(f[d]=f[d],this.style[d]=c[d])}for(var p=kt(f),h=0;h<p.length;h++){var d=p[h];this.style[d]=this.style[d]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var g=this.__inHover?vct:W3,h=0;h<g.length;h++){var d=g[h];n&&n[d]!=null?this[d]=n[d]:l&&a[d]!=null&&(this[d]=a[d])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(r,n){return U(r,n),r},t.prototype.getAnimationStyleProps=function(){return ew},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Pn|Zp}(),t}(Zx),dC=new vt(0,0,0,0),pC=new vt(0,0,0,0);function hct(e,t,r){return dC.copy(e.getBoundingRect()),e.transform&&dC.applyTransform(e.transform),pC.width=t,pC.height=r,!dC.intersect(pC)}var Rn=Math.min,In=Math.max,gC=Math.sin,yC=Math.cos,Ou=Math.PI*2,M0=pu(),D0=pu(),E0=pu();function rw(e,t,r){if(e.length!==0){for(var n=e[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<e.length;l++)n=e[l],a=Rn(a,n[0]),i=In(i,n[0]),o=Rn(o,n[1]),s=In(s,n[1]);t[0]=a,t[1]=o,r[0]=i,r[1]=s}}function Z3(e,t,r,n,a,i){a[0]=Rn(e,r),a[1]=Rn(t,n),i[0]=In(e,r),i[1]=In(t,n)}var q3=[],K3=[];function dct(e,t,r,n,a,i,o,s,l,u){var f=gj,c=fr,v=f(e,r,a,o,q3);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<v;h++){var d=c(e,r,a,o,q3[h]);l[0]=Rn(d,l[0]),u[0]=In(d,u[0])}v=f(t,n,i,s,K3);for(var h=0;h<v;h++){var p=c(t,n,i,s,K3[h]);l[1]=Rn(p,l[1]),u[1]=In(p,u[1])}l[0]=Rn(e,l[0]),u[0]=In(e,u[0]),l[0]=Rn(o,l[0]),u[0]=In(o,u[0]),l[1]=Rn(t,l[1]),u[1]=In(t,u[1]),l[1]=Rn(s,l[1]),u[1]=In(s,u[1])}function pct(e,t,r,n,a,i,o,s){var l=mj,u=wr,f=In(Rn(l(e,r,a),1),0),c=In(Rn(l(t,n,i),1),0),v=u(e,r,a,f),h=u(t,n,i,c);o[0]=Rn(e,a,v),o[1]=Rn(t,i,h),s[0]=In(e,a,v),s[1]=In(t,i,h)}function gct(e,t,r,n,a,i,o,s,l){var u=Jo,f=ts,c=Math.abs(a-i);if(c%Ou<1e-4&&c>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(M0[0]=yC(a)*r+e,M0[1]=gC(a)*n+t,D0[0]=yC(i)*r+e,D0[1]=gC(i)*n+t,u(s,M0,D0),f(l,M0,D0),a=a%Ou,a<0&&(a=a+Ou),i=i%Ou,i<0&&(i=i+Ou),a>i&&!o?i+=Ou:a<i&&o&&(a+=Ou),o){var v=i;i=a,a=v}for(var h=0;h<i;h+=Math.PI/2)h>a&&(E0[0]=yC(h)*r+e,E0[1]=gC(h)*n+t,u(s,E0,s),f(l,E0,l))}var ce={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ru=[],Iu=[],Mi=[],Zs=[],Di=[],Ei=[],mC=Math.min,_C=Math.max,Pu=Math.cos,Nu=Math.sin,Vo=Math.abs,YE=Math.PI,il=YE*2,SC=typeof Float32Array<"u",vp=[];function bC(e){var t=Math.round(e/YE*1e8)/1e8;return t%2*YE}function nw(e,t){var r=bC(e[0]);r<0&&(r+=il);var n=r-e[0],a=e[1];a+=n,!t&&a-r>=il?a=r+il:t&&r-a>=il?a=r-il:!t&&r>a?a=r+(il-bC(r-a)):t&&r<a&&(a=r-(il-bC(a-r))),e[0]=r,e[1]=a}var bo=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=Vo(n/G1/t)||0,this._uy=Vo(n/G1/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(ce.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Vo(t-this._xi),a=Vo(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(ce.L,t,r),this._ctx&&i&&this._ctx.lineTo(t,r),i)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,a,i,o){return this._drawPendingPt(),this.addData(ce.C,t,r,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,a,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,a){return this._drawPendingPt(),this.addData(ce.Q,t,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,a),this._xi=n,this._yi=a,this},e.prototype.arc=function(t,r,n,a,i,o){this._drawPendingPt(),vp[0]=a,vp[1]=i,nw(vp,o),a=vp[0],i=vp[1];var s=i-a;return this.addData(ce.A,t,r,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,a,i,o),this._xi=Pu(i)*n+t,this._yi=Nu(i)*n+r,this},e.prototype.arcTo=function(t,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,a,i),this},e.prototype.rect=function(t,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,a),this.addData(ce.R,t,r,n,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(ce.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){if(this._saveData){var r=t.length;!(this.data&&this.data.length===r)&&SC&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var r=t.length,n=0,a=this._len,i=0;i<r;i++)n+=t[i].len();var o=this.data;if(SC&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(a+n),a>0&&o))for(var s=0;s<a;s++)this.data[s]=o[s];for(var i=0;i<r;i++)for(var l=t[i].data,s=0;s<l.length;s++)this.data[a++]=l[s];this._len=a}},e.prototype.addData=function(t,r,n,a,i,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[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 t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,SC&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Mi[0]=Mi[1]=Di[0]=Di[1]=Number.MAX_VALUE,Zs[0]=Zs[1]=Ei[0]=Ei[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],a=r,i=n),s){case ce.M:r=a=t[o++],n=i=t[o++],Di[0]=a,Di[1]=i,Ei[0]=a,Ei[1]=i;break;case ce.L:Z3(r,n,t[o],t[o+1],Di,Ei),r=t[o++],n=t[o++];break;case ce.C:dct(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Di,Ei),r=t[o++],n=t[o++];break;case ce.Q:pct(r,n,t[o++],t[o++],t[o],t[o+1],Di,Ei),r=t[o++],n=t[o++];break;case ce.A:var u=t[o++],f=t[o++],c=t[o++],v=t[o++],h=t[o++],d=t[o++]+h;o+=1;var p=!t[o++];l&&(a=Pu(h)*c+u,i=Nu(h)*v+f),gct(u,f,c,v,h,d,p,Di,Ei),r=Pu(d)*c+u,n=Nu(d)*v+f;break;case ce.R:a=r=t[o++],i=n=t[o++];var g=t[o++],y=t[o++];Z3(a,i,a+g,i+y,Di,Ei);break;case ce.Z:r=a,n=i;break}Jo(Mi,Mi,Di),ts(Zs,Zs,Ei)}return o===0&&(Mi[0]=Mi[1]=Zs[0]=Zs[1]=0),new vt(Mi[0],Mi[1],Zs[0]-Mi[0],Zs[1]-Mi[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,v=0;v<r;){var h=t[v++],d=v===1;d&&(i=t[v],o=t[v+1],s=i,l=o);var p=-1;switch(h){case ce.M:i=s=t[v++],o=l=t[v++];break;case ce.L:{var g=t[v++],y=t[v++],m=g-i,_=y-o;(Vo(m)>n||Vo(_)>a||v===r-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case ce.C:{var S=t[v++],b=t[v++],g=t[v++],y=t[v++],x=t[v++],w=t[v++];p=yut(i,o,S,b,g,y,x,w,10),i=x,o=w;break}case ce.Q:{var S=t[v++],b=t[v++],g=t[v++],y=t[v++];p=_ut(i,o,S,b,g,y,10),i=g,o=y;break}case ce.A:var T=t[v++],C=t[v++],A=t[v++],M=t[v++],L=t[v++],E=t[v++],R=E+L;v+=1,d&&(s=Pu(L)*A+T,l=Nu(L)*M+C),p=_C(A,M)*mC(il,Math.abs(E)),i=Pu(R)*A+T,o=Nu(R)*M+C;break;case ce.R:{s=i=t[v++],l=o=t[v++];var I=t[v++],O=t[v++];p=I*2+O*2;break}case ce.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,f,c,v,h=r<1,d,p,g=0,y=0,m,_=0,S,b;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=r*p,!m)))t:for(var x=0;x<o;){var w=n[x++],T=x===1;switch(T&&(u=n[x],f=n[x+1],s=u,l=f),w!==ce.L&&_>0&&(t.lineTo(S,b),_=0),w){case ce.M:s=u=n[x++],l=f=n[x++],t.moveTo(u,f);break;case ce.L:{c=n[x++],v=n[x++];var C=Vo(c-u),A=Vo(v-f);if(C>a||A>i){if(h){var M=d[y++];if(g+M>m){var L=(m-g)/M;t.lineTo(u*(1-L)+c*L,f*(1-L)+v*L);break t}g+=M}t.lineTo(c,v),u=c,f=v,_=0}else{var E=C*C+A*A;E>_&&(S=c,b=v,_=E)}break}case ce.C:{var R=n[x++],I=n[x++],O=n[x++],N=n[x++],P=n[x++],z=n[x++];if(h){var M=d[y++];if(g+M>m){var L=(m-g)/M;Jl(u,R,O,P,L,Ru),Jl(f,I,N,z,L,Iu),t.bezierCurveTo(Ru[1],Iu[1],Ru[2],Iu[2],Ru[3],Iu[3]);break t}g+=M}t.bezierCurveTo(R,I,O,N,P,z),u=P,f=z;break}case ce.Q:{var R=n[x++],I=n[x++],O=n[x++],N=n[x++];if(h){var M=d[y++];if(g+M>m){var L=(m-g)/M;fy(u,R,O,L,Ru),fy(f,I,N,L,Iu),t.quadraticCurveTo(Ru[1],Iu[1],Ru[2],Iu[2]);break t}g+=M}t.quadraticCurveTo(R,I,O,N),u=O,f=N;break}case ce.A:var B=n[x++],H=n[x++],F=n[x++],$=n[x++],j=n[x++],tt=n[x++],mt=n[x++],Nt=!n[x++],Q=F>$?F:$,q=Vo(F-$)>.001,ht=j+tt,K=!1;if(h){var M=d[y++];g+M>m&&(ht=j+tt*(m-g)/M,K=!0),g+=M}if(q&&t.ellipse?t.ellipse(B,H,F,$,mt,j,ht,Nt):t.arc(B,H,Q,j,ht,Nt),K)break t;T&&(s=Pu(j)*F+B,l=Nu(j)*$+H),u=Pu(ht)*F+B,f=Nu(ht)*$+H;break;case ce.R:s=u=n[x],l=f=n[x+1],c=n[x++],v=n[x++];var at=n[x++],bt=n[x++];if(h){var M=d[y++];if(g+M>m){var Mt=m-g;t.moveTo(c,v),t.lineTo(c+mC(Mt,at),v),Mt-=at,Mt>0&&t.lineTo(c+at,v+mC(Mt,bt)),Mt-=bt,Mt>0&&t.lineTo(c+_C(at-Mt,0),v+bt),Mt-=at,Mt>0&&t.lineTo(c,v+_C(bt-Mt,0));break t}g+=M}t.rect(c,v,at,bt);break;case ce.Z:if(h){var M=d[y++];if(g+M>m){var L=(m-g)/M;t.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}g+=M}t.closePath(),u=s,f=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=ce,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function ul(e,t,r,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||i>e+s&&i>r+s||i<e-s&&i<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(i-e)<=s/2;var f=l*i-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function yct(e,t,r,n,a,i,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>t+c&&f>n+c&&f>i+c&&f>s+c||f<t-c&&f<n-c&&f<i-c&&f<s-c||u>e+c&&u>r+c&&u>a+c&&u>o+c||u<e-c&&u<r-c&&u<a-c&&u<o-c)return!1;var v=yj(e,t,r,n,a,i,o,s,u,f,null);return v<=c/2}function aX(e,t,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>i+u||l<t-u&&l<n-u&&l<i-u||s>e+u&&s>r+u&&s>a+u||s<e-u&&s<r-u&&s<a-u)return!1;var f=_j(e,t,r,n,a,i,s,l,null);return f<=u/2}var Q3=Math.PI*2;function ra(e){return e%=Q3,e<0&&(e+=Q3),e}var hp=Math.PI*2;function mct(e,t,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-a)%hp<1e-4)return!0;if(i){var c=n;n=ra(a),a=ra(c)}else n=ra(n),a=ra(a);n>a&&(a+=hp);var v=Math.atan2(l,s);return v<0&&(v+=hp),v>=n&&v<=a||v+hp>=n&&v+hp<=a}function jo(e,t,r,n,a,i){if(i>t&&i>n||i<t&&i<n||n===t)return 0;var o=(i-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===a?1/0:l>a?s:0}var qs=bo.CMD,ku=Math.PI*2,_ct=1e-4;function Sct(e,t){return Math.abs(e-t)<_ct}var dn=[-1,-1,-1],Ca=[-1,-1];function bct(){var e=Ca[0];Ca[0]=Ca[1],Ca[1]=e}function xct(e,t,r,n,a,i,o,s,l,u){if(u>t&&u>n&&u>i&&u>s||u<t&&u<n&&u<i&&u<s)return 0;var f=k1(t,n,i,s,u,dn);if(f===0)return 0;for(var c=0,v=-1,h=void 0,d=void 0,p=0;p<f;p++){var g=dn[p],y=g===0||g===1?.5:1,m=fr(e,r,a,o,g);m<l||(v<0&&(v=gj(t,n,i,s,Ca),Ca[1]<Ca[0]&&v>1&&bct(),h=fr(t,n,i,s,Ca[0]),v>1&&(d=fr(t,n,i,s,Ca[1]))),v===2?g<Ca[0]?c+=h<t?y:-y:g<Ca[1]?c+=d<h?y:-y:c+=s<d?y:-y:g<Ca[0]?c+=h<t?y:-y:c+=s<h?y:-y)}return c}function wct(e,t,r,n,a,i,o,s){if(s>t&&s>n&&s>i||s<t&&s<n&&s<i)return 0;var l=mut(t,n,i,s,dn);if(l===0)return 0;var u=mj(t,n,i);if(u>=0&&u<=1){for(var f=0,c=wr(t,n,i,u),v=0;v<l;v++){var h=dn[v]===0||dn[v]===1?.5:1,d=wr(e,r,a,dn[v]);d<o||(dn[v]<u?f+=c<t?h:-h:f+=i<c?h:-h)}return f}else{var h=dn[0]===0||dn[0]===1?.5:1,d=wr(e,r,a,dn[0]);return d<o?0:i<t?h:-h}}function Tct(e,t,r,n,a,i,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);dn[0]=-l,dn[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=ku-1e-4){n=0,a=ku;var f=i?1:-1;return o>=dn[0]+e&&o<=dn[1]+e?f:0}if(n>a){var c=n;n=a,a=c}n<0&&(n+=ku,a+=ku);for(var v=0,h=0;h<2;h++){var d=dn[h];if(d+e>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=ku+p),(p>=n&&p<=a||p+ku>=n&&p+ku<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),v+=f)}}return v}function iX(e,t,r,n,a){for(var i=e.data,o=e.len(),s=0,l=0,u=0,f=0,c=0,v,h,d=0;d<o;){var p=i[d++],g=d===1;switch(p===qs.M&&d>1&&(r||(s+=jo(l,u,f,c,n,a))),g&&(l=i[d],u=i[d+1],f=l,c=u),p){case qs.M:f=i[d++],c=i[d++],l=f,u=c;break;case qs.L:if(r){if(ul(l,u,i[d],i[d+1],t,n,a))return!0}else s+=jo(l,u,i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case qs.C:if(r){if(yct(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],t,n,a))return!0}else s+=xct(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case qs.Q:if(r){if(aX(l,u,i[d++],i[d++],i[d],i[d+1],t,n,a))return!0}else s+=wct(l,u,i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case qs.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],b=i[d++],x=i[d++];d+=1;var w=!!(1-i[d++]);v=Math.cos(b)*_+y,h=Math.sin(b)*S+m,g?(f=v,c=h):s+=jo(l,u,v,h,n,a);var T=(n-y)*S/_+y;if(r){if(mct(y,m,S,b,b+x,w,t,T,a))return!0}else s+=Tct(y,m,S,b,b+x,w,T,a);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case qs.R:f=l=i[d++],c=u=i[d++];var C=i[d++],A=i[d++];if(v=f+C,h=c+A,r){if(ul(f,c,v,c,t,n,a)||ul(v,c,v,h,t,n,a)||ul(v,h,f,h,t,n,a)||ul(f,h,f,c,t,n,a))return!0}else s+=jo(v,c,v,h,n,a),s+=jo(f,h,f,c,n,a);break;case qs.Z:if(r){if(ul(l,u,f,c,t,n,a))return!0}else s+=jo(l,u,f,c,n,a);l=f,u=c;break}}return!r&&!Sct(u,c)&&(s+=jo(l,u,f,c,n,a)||0),s!==0}function Cct(e,t,r){return iX(e,0,!1,t,r)}function Act(e,t,r,n){return iX(e,t,!0,r,n)}var j1=dt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Of),Mct={style:dt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ew.style)},xC=As.concat(["invisible","culling","z","z2","zlevel","parent"]),Rt=function(e){be(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<xC.length;++s)a[xC[s]]=this[xC[s]];a.__dirty|=Pn}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=kt(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=r[o];o==="style"?this.style?U(this.style,s):this.useStyle(s):o==="shape"?U(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(J(r)){var n=hy(r,0);return n>.5?PE:n>.2?qut:NE}else if(r)return NE}return PE},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(J(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=hy(r,0)<IE;if(i===o)return n}},t.prototype.buildPath=function(r,n,a){},t.prototype.pathUpdated=function(){this.__dirty&=~kv},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new bo(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&kv)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||a){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect(),o=this.style;if(r=a[0],n=a[1],i.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Act(s,l/u,r,n)))return!0}if(this.hasFill())return Cct(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=kv,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:U(a,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&kv)},t.prototype.createStyle=function(r){return wm(j1,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=U({},this.shape))},t.prototype._applyStateObj=function(r,n,a,i,o,s){if(e.prototype._applyStateObj.call(this,r,n,a,i,o,s),this.__inHover!==Wx){var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=U({},a.shape),U(u,n.shape)):(u=U({},i?this.shape:a.shape),U(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=U({},this.shape);for(var f={},c=kt(u),v=0;v<c.length;v++){var h=c[v];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},t.prototype.getAnimationStyleProps=function(){return Mct},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(i){be(o,i);function o(s){var l=i.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return st(r.style)},o.prototype.getDefaultShape=function(){return st(r.shape)},o}(t);for(var a in r)typeof r[a]=="function"&&(n.prototype[a]=r[a]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Pn|Zp|kv}(),t}($a),Dct=dt({strokeFirst:!0,font:Ts,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},j1),td=function(e){be(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return nX(this.style)},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return wm(Dct,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=cct(this.style)),this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}($a);td.prototype.type="tspan";var Ect=dt({x:0,y:0},Of),Lct={style:dt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ew.style)};function Oct(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var mr=function(e){be(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return wm(Ect,r)},t.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var i=Oct(n.image)?n.image:this.__image;if(!i)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?i[r]:i[r]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Lct},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new vt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}($a);mr.prototype.type="image";function Rct(e,t){var r=t.x,n=t.y,a=t.width,i=t.height,o=t.r,s,l,u,f;a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>a&&(c=s+l,s*=a/c,l*=a/c),u+f>a&&(c=u+f,u*=a/c,f*=a/c),l+u>i&&(c=l+u,l*=i/c,u*=i/c),s+f>i&&(c=s+f,s*=i/c,f*=i/c),e.moveTo(r+s,n),e.lineTo(r+a-l,n),l!==0&&e.arc(r+a-l,n+l,l,-Math.PI/2,0),e.lineTo(r+a,n+i-u),u!==0&&e.arc(r+a-u,n+i-u,u,0,Math.PI/2),e.lineTo(r+f,n+i),f!==0&&e.arc(r+f,n+i-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5),e.closePath()}var ah=Math.round;function aw(e,t,r){if(t){var n=t.x1,a=t.x2,i=t.y1,o=t.y2;e.x1=n,e.x2=a,e.y1=i,e.y2=o;var s=r&&r.lineWidth;return s&&(ah(n*2)===ah(a*2)&&(e.x1=e.x2=na(n,s,!0)),ah(i*2)===ah(o*2)&&(e.y1=e.y2=na(i,s,!0))),e}}function oX(e,t,r){if(t){var n=t.x,a=t.y,i=t.width,o=t.height;e.x=n,e.y=a,e.width=i,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=na(n,s,!0),e.y=na(a,s,!0),e.width=Math.max(na(n+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(na(a+o,s,!1)-e.y,o===0?0:1)),e}}function na(e,t,r){if(!t)return e;var n=ah(e*2);return(n+ah(t))%2===0?n/2:(n+(r?1:-1))/2}var Ict=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Pct={},Et=function(e){be(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Ict},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=oX(Pct,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?Rct(r,n):r.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Rt);Et.prototype.type="rect";var J3={fill:"#000"},t5=2,Li={},Nct={style:dt({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},ew.style)},Ht=function(e){be(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=J3,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Bct(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new vt(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(r.copy(l),r.applyTransform(u),i=i||r.clone(),i.union(r)):(i=i||l.clone(),i.union(l))}this._rect=i||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||J3},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,i=r.rich||a&&{};return U(r,n),a&&i?(this._mergeRich(i,a),r.rich=i):i&&(r.rich=i),r},t.prototype._mergeRich=function(r,n){for(var a=kt(n),i=0;i<a.length;i++){var o=a[i];r[o]=r[o]||{},U(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return Nct},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Ts,a=r.padding,i=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||i.align||"left",u=r.verticalAlign||i.verticalAlign||"top";j3(Li,i.overflowRect,o,s,l,u),o=Li.baseX,s=Li.baseY;var f=s5(r),c=act(f,r,Li.outerWidth,Li.outerHeight),v=wC(r),h=!!r.backgroundColor,d=c.outerHeight,p=c.outerWidth,g=c.lines,y=c.lineHeight;this.isTruncated=!!c.isTruncated;var m=o,_=Lf(s,c.contentHeight,u);if(v||a){var S=Jh(o,p,l),b=Lf(s,d,u);v&&this._renderBackground(r,r,S,b,p,d)}_+=y/2,a&&(m=o5(o,l,a),u==="top"?_+=a[0]:u==="bottom"&&(_-=a[2]));for(var x=0,w=!1,T=!1,C=i5("fill"in r?r.fill:(T=!0,i.fill)),A=a5("stroke"in r?r.stroke:!h&&(!i.autoStroke||T)?(x=t5,w=!0,i.stroke):null),M=r.textShadowBlur>0,L=0;L<g.length;L++){var E=this._getOrCreateChild(td),R=E.createStyle();E.useStyle(R),R.text=g[L],R.x=m,R.y=_,R.textAlign=l,R.textBaseline="middle",R.opacity=r.opacity,R.strokeFirst=!0,M&&(R.shadowBlur=r.textShadowBlur||0,R.shadowColor=r.textShadowColor||"transparent",R.shadowOffsetX=r.textShadowOffsetX||0,R.shadowOffsetY=r.textShadowOffsetY||0),R.stroke=A,R.fill=C,A&&(R.lineWidth=r.lineWidth||x,R.lineDash=r.lineDash,R.lineDashOffset=r.lineDashOffset||0),R.font=n,r5(R,r),_+=y,E.setBoundingRect(UE(R,c.contentWidth,c.calculatedLineHeight,w?0:null))}},t.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,a=r.align||n.align,i=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;j3(Li,n.overflowRect,o,s,a,i),o=Li.baseX,s=Li.baseY;var l=s5(r),u=sct(l,r,Li.outerWidth,Li.outerHeight,a),f=u.width,c=u.outerWidth,v=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var d=Jh(o,c,a),p=Lf(s,v,i),g=d,y=p;h&&(g+=h[3],y+=h[0]);var m=g+f;wC(r)&&this._renderBackground(r,r,d,p,c,v);for(var _=!!r.backgroundColor,S=0;S<u.lines.length;S++){for(var b=u.lines[S],x=b.tokens,w=x.length,T=b.lineHeight,C=b.width,A=0,M=g,L=m,E=w-1,R=void 0;A<w&&(R=x[A],!R.align||R.align==="left");)this._placeToken(R,r,T,y,M,"left",_),C-=R.width,M+=R.width,A++;for(;E>=0&&(R=x[E],R.align==="right");)this._placeToken(R,r,T,y,L,"right",_),C-=R.width,L-=R.width,E--;for(M+=(f-(M-g)-(m-L)-C)/2;A<=E;)R=x[A],this._placeToken(R,r,T,y,M+R.width/2,"center",_),M+=R.width,A++;y+=T}},t.prototype._placeToken=function(r,n,a,i,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=i+a/2;f==="top"?c=i+r.height/2:f==="bottom"&&(c=i+a-r.height/2);var v=!r.isLineHolder&&wC(u);v&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,d=r.textPadding;d&&(o=o5(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var p=this._getOrCreateChild(td),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=!1,b=i5("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),x=a5("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!y.autoStroke||m)?(_=t5,S=!0,y.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=c,w&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||Ts,g.opacity=zn(u.opacity,n.opacity,1),r5(g,u),x&&(g.lineWidth=zn(u.lineWidth,n.lineWidth,_),g.lineDash=ot(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=x),b&&(g.fill=b),p.setBoundingRect(UE(g,r.contentWidth,r.contentHeight,S?0:null))},t.prototype._renderBackground=function(r,n,a,i,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,v=l&&!c,h=r.borderRadius,d=this,p,g;if(v||r.lineHeight||u&&f){p=this._getOrCreateChild(Et),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,p.dirtyShape()}if(v){var m=p.style;m.fill=l||null,m.fillOpacity=ot(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(mr),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=ot(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=zn(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return lX(r)&&(n=[r.fontStyle,r.fontWeight,sX(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&ea(n)||r.textFont||r.font},t}($a),kct={left:!0,right:1,center:1},zct={top:1,bottom:1,middle:1},e5=["fontStyle","fontWeight","fontSize","fontFamily"];function sX(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?vI+"px":e+"px"}function r5(e,t){for(var r=0;r<e5.length;r++){var n=e5[r],a=t[n];a!=null&&(e[n]=a)}}function lX(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Bct(e){return n5(e),D(e.rich,n5),e}function n5(e){if(e){e.font=Ht.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||kct[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||zct[r]?r:"top";var n=e.padding;n&&(e.padding=xm(e.padding))}}function a5(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function i5(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function o5(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function s5(e){var t=e.text;return t!=null&&(t+=""),t}function wC(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var yt=Tt(),jE=function(e,t,r,n){if(n){var a=yt(n);a.dataIndex=r,a.dataType=t,a.seriesIndex=e,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=yt(i);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},Rd="undefined",xo="series",uX=nt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),da="original",Lr="arrayRows",pa="objectRows",Si="keyedColumns",Vl="typedArray",fX="unknown",vi="column",Yc="row",cX="Roam",Vct=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],vX=function(){function e(t){D(Vct,function(r){this[r]=rt(t[r],t)},this)}return e}();function hX(e,t){return t.mainType===xo?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var l5=1,u5={},dX=Tt(),NI=Tt(),kI=0,Am=1,iw=2,Tn=["emphasis","blur","select"],my=["normal","emphasis","blur","select"],Id=10,Gct=9,Rf="highlight",bS="downplay",X1="select",XE="unselect",$1="toggleSelect",zI="selectchanged";function lv(e){return e!=null&&e!=="none"}function ow(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function pX(e){ow(e,"emphasis",iw)}function gX(e){e.hoverState===iw&&ow(e,"normal",kI)}function BI(e){ow(e,"blur",Am)}function yX(e){e.hoverState===Am&&ow(e,"normal",kI)}function Hct(e){e.selected=!0}function Uct(e){e.selected=!1}function f5(e,t,r){t(e,r)}function Hs(e,t,r){f5(e,t,r),e.isGroup&&e.traverse(function(n){f5(n,t,r)})}function W1(e,t){switch(t){case"emphasis":e.hoverState=iw;break;case"normal":e.hoverState=kI;break;case"blur":e.hoverState=Am;break;case"select":e.selected=!0}}function Fct(e,t,r,n){for(var a=e.style,i={},o=0;o<t.length;o++){var s=t[o],l=a[s];i[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function Yct(e,t,r,n){var a=r&&St(r,"select")>=0,i=!1;if(e instanceof Rt){var o=dX(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(lv(s)||lv(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=U({},n),u=U({},u),u.fill=s):!lv(u.fill)&&lv(s)?(i=!0,n=U({},n),u=U({},u),u.fill=B1(s)):!lv(u.stroke)&&lv(l)&&(i||(n=U({},n),u=U({},u)),u.stroke=B1(l)),n.style=u}}if(n&&n.z2==null){i||(n=U({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??Id)}return n}function jct(e,t,r){if(r&&r.z2==null){r=U({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??Gct)}return r}function Xct(e,t,r){var n=St(e.currentStates,t)>=0,a=e.style.opacity,i=n?null:Fct(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=U({},r),o=U({opacity:n?a:i.opacity*.1},o),r.style=o),r}function TC(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return Yct(this,e,t,r);if(e==="blur")return Xct(this,e,r);if(e==="select")return jct(this,e,r)}return r}function ic(e){e.stateProxy=TC;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=TC),r&&(r.stateProxy=TC)}function c5(e,t){!bX(e,t)&&!e.__highByOuter&&Hs(e,pX)}function v5(e,t){!bX(e,t)&&!e.__highByOuter&&Hs(e,gX)}function Ds(e,t){e.__highByOuter|=1<<(t||0),Hs(e,pX)}function Es(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Hs(e,gX)}function mX(e){Hs(e,BI)}function VI(e){Hs(e,yX)}function _X(e){Hs(e,Hct)}function SX(e){Hs(e,Uct)}function bX(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function xX(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(a,i){var o=NI(i),s=hX(e,i),l=a==="series";!l&&n.push(s),o.isBlured&&(s.group.traverse(function(u){yX(u)}),l&&r.push(i)),o.isBlured=!1}),D(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,t)})}function $E(e,t,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(u,f){for(var c=0;c<f.length;c++){var v=u.getItemGraphicEl(f[c]);v&&VI(v)}}if(e!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var v=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!v||t==="series"&&f)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||BI(g)}),Xr(t))i(u.getData(),t);else if(pt(t))for(var d=kt(t),p=0;p<d.length;p++)i(u.getData(d[p]),t[d[p]]);l.push(u),NI(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,a)}})}}function WE(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){NI(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){BI(i)})}}}function $ct(e,t,r){var n=e.seriesIndex,a=e.getData(t.dataType);if(a){var i=rc(a,t);i=(Y(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=yt(o);$E(n,u.focus,u.blurScope,r)}else{var f=e.get(["emphasis","focus"]),c=e.get(["emphasis","blurScope"]);f!=null&&$E(n,f,c,r)}}}function GI(e,t,r,n){var a={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return a;var i=n.getModel().getComponent(e,t);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(yt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Wct(e,t,r){var n=yt(e),a=GI(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers,o=a.focusSelf;i?(o&&WE(n.componentMainType,n.componentIndex,r),D(i,function(s){return c5(s,t)})):($E(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&WE(n.componentMainType,n.componentIndex,r),c5(e,t))}function Zct(e,t,r){xX(r);var n=yt(e),a=GI(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?D(a,function(i){return v5(i,t)}):v5(e,t)}function qct(e,t,r){if(qE(t)){var n=t.dataType,a=e.getData(n),i=rc(a,t);Y(i)||(i=[i]),e[t.type===$1?"toggleSelect":t.type===X1?"select":"unselect"](i,n)}}function h5(e){var t=e.getAllData();D(t,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(i,o){e.isSelected(o,a)?_X(i):SX(i)})})}function Kct(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();D(n,function(a){a.data;var i=a.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Gl(e,t,r){_f(e,!0),Hs(e,ic),ZE(e,t,r)}function Qct(e){_f(e,!1)}function Ae(e,t,r,n){n?Qct(e):Gl(e,t,r)}function ZE(e,t,r){var n=yt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var d5=["emphasis","blur","select"],Jct={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ar(e,t,r,n){r=r||"itemStyle";for(var a=0;a<d5.length;a++){var i=d5[a],o=t.getModel([i,r]),s=e.ensureState(i);s.style=n?n(o):o[Jct[r]]()}}function _f(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function _y(e){return!!(e&&e.__highDownDispatcher)}function tvt(e,t,r){var n=yt(e);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=r}function evt(e){var t=u5[e];return t==null&&l5<=32&&(t=u5[e]=l5++),t}function qE(e){var t=e.type;return t===X1||t===XE||t===$1}function p5(e){var t=e.type;return t===Rf||t===bS}function rvt(e){var t=dX(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var uv=bo.CMD,nvt=[[],[],[]],g5=Math.sqrt,avt=Math.atan2;function wX(e,t){if(t){var r=e.data,n=e.len(),a,i,o,s,l,u,f=uv.M,c=uv.C,v=uv.L,h=uv.R,d=uv.A,p=uv.Q;for(o=0,s=0;o<n;){switch(a=r[o++],s=o,i=0,a){case f:i=1;break;case v:i=1;break;case c:i=3;break;case p:i=2;break;case d:var g=t[4],y=t[5],m=g5(t[0]*t[0]+t[1]*t[1]),_=g5(t[2]*t[2]+t[3]*t[3]),S=avt(-t[1]/_,t[0]/m);r[o]*=m,r[o++]+=g,r[o]*=_,r[o++]+=y,r[o++]*=m,r[o++]*=_,r[o++]+=S,r[o++]+=S,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],Ne(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Ne(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<i;l++){var b=nvt[l];b[0]=r[o++],b[1]=r[o++],Ne(b,b,t),r[s++]=b[0],r[s++]=b[1]}}e.increaseVersion()}}var CC=Math.sqrt,L0=Math.sin,O0=Math.cos,dp=Math.PI;function y5(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function KE(e,t){return(e[0]*t[0]+e[1]*t[1])/(y5(e)*y5(t))}function m5(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(KE(e,t))}function _5(e,t,r,n,a,i,o,s,l,u,f){var c=l*(dp/180),v=O0(c)*(e-r)/2+L0(c)*(t-n)/2,h=-1*L0(c)*(e-r)/2+O0(c)*(t-n)/2,d=v*v/(o*o)+h*h/(s*s);d>1&&(o*=CC(d),s*=CC(d));var p=(a===i?-1:1)*CC((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,g=p*o*h/s,y=p*-s*v/o,m=(e+r)/2+O0(c)*g-L0(c)*y,_=(t+n)/2+L0(c)*g+O0(c)*y,S=m5([1,0],[(v-g)/o,(h-y)/s]),b=[(v-g)/o,(h-y)/s],x=[(-1*v-g)/o,(-1*h-y)/s],w=m5(b,x);if(KE(b,x)<=-1&&(w=dp),KE(b,x)>=1&&(w=0),w<0){var T=Math.round(w/dp*1e6)/1e6;w=dp*2+T%2*dp}f.addData(u,m,_,o,s,S,w,c,i)}var ivt=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,ovt=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function svt(e){var t=new bo;if(!e)return t;var r=0,n=0,a=r,i=n,o,s=bo.CMD,l=e.match(ivt);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),v=void 0,h=f.match(ovt)||[],d=h.length,p=0;p<d;p++)h[p]=parseFloat(h[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=r,C=n,A=void 0,M=void 0;switch(c){case"l":r+=h[g++],n+=h[g++],v=s.L,t.addData(v,r,n);break;case"L":r=h[g++],n=h[g++],v=s.L,t.addData(v,r,n);break;case"m":r+=h[g++],n+=h[g++],v=s.M,t.addData(v,r,n),a=r,i=n,c="l";break;case"M":r=h[g++],n=h[g++],v=s.M,t.addData(v,r,n),a=r,i=n,c="L";break;case"h":r+=h[g++],v=s.L,t.addData(v,r,n);break;case"H":r=h[g++],v=s.L,t.addData(v,r,n);break;case"v":n+=h[g++],v=s.L,t.addData(v,r,n);break;case"V":n=h[g++],v=s.L,t.addData(v,r,n);break;case"C":v=s.C,t.addData(v,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],n=h[g-1];break;case"c":v=s.C,t.addData(v,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n),r+=h[g-2],n+=h[g-1];break;case"S":y=r,m=n,A=t.len(),M=t.data,o===s.C&&(y+=r-M[A-4],m+=n-M[A-3]),v=s.C,T=h[g++],C=h[g++],r=h[g++],n=h[g++],t.addData(v,y,m,T,C,r,n);break;case"s":y=r,m=n,A=t.len(),M=t.data,o===s.C&&(y+=r-M[A-4],m+=n-M[A-3]),v=s.C,T=r+h[g++],C=n+h[g++],r+=h[g++],n+=h[g++],t.addData(v,y,m,T,C,r,n);break;case"Q":T=h[g++],C=h[g++],r=h[g++],n=h[g++],v=s.Q,t.addData(v,T,C,r,n);break;case"q":T=h[g++]+r,C=h[g++]+n,r+=h[g++],n+=h[g++],v=s.Q,t.addData(v,T,C,r,n);break;case"T":y=r,m=n,A=t.len(),M=t.data,o===s.Q&&(y+=r-M[A-4],m+=n-M[A-3]),r=h[g++],n=h[g++],v=s.Q,t.addData(v,y,m,r,n);break;case"t":y=r,m=n,A=t.len(),M=t.data,o===s.Q&&(y+=r-M[A-4],m+=n-M[A-3]),r+=h[g++],n+=h[g++],v=s.Q,t.addData(v,y,m,r,n);break;case"A":_=h[g++],S=h[g++],b=h[g++],x=h[g++],w=h[g++],T=r,C=n,r=h[g++],n=h[g++],v=s.A,_5(T,C,r,n,x,w,_,S,b,v,t);break;case"a":_=h[g++],S=h[g++],b=h[g++],x=h[g++],w=h[g++],T=r,C=n,r+=h[g++],n+=h[g++],v=s.A,_5(T,C,r,n,x,w,_,S,b,v,t);break}}(c==="z"||c==="Z")&&(v=s.Z,t.addData(v),r=a,n=i),o=v}return t.toStatic(),t}var TX=function(e){be(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(Rt);function CX(e){return e.setData!=null}function AX(e,t){var r=svt(e),n=U({},t);return n.buildPath=function(a){var i=CX(a);if(i&&a.canSave()){a.appendPath(r);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=i?a.getContext():a;o&&r.rebuildPath(o,1)}},n.applyTransform=function(a){wX(r,a),this.dirtyShape()},n}function MX(e,t){return new TX(AX(e,t))}function lvt(e,t){var r=AX(e,t),n=function(a){be(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return i}(TX);return n}function uvt(e,t){for(var r=[],n=e.length,a=0;a<n;a++){var i=e[a];r.push(i.getUpdatedPathProxy(!0))}var o=new Rt(t);return o.createPathProxy(),o.buildPath=function(s){if(CX(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function HI(e,t){t=t||{};var r=new Rt;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?wX(r.path,e.getComputedTransform()):t.toLocal?r.setLocalTransform(e.getComputedTransform()):r.copyTransform(e),r.buildPath=e.buildPath,r.applyTransform=r.applyTransform,r.z=e.z,r.z2=e.z2,r.zlevel=e.zlevel,r}var fvt=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Po=function(e){be(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new fvt},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(Rt);Po.prototype.type="circle";var cvt=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Mm=function(e){be(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new cvt},t.prototype.buildPath=function(r,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,f=l*a;r.moveTo(i-s,o),r.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),r.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),r.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),r.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),r.closePath()},t}(Rt);Mm.prototype.type="ellipse";var DX=Math.PI,AC=DX*2,zu=Math.sin,fv=Math.cos,vvt=Math.acos,Jr=Math.atan2,S5=Math.abs,Ig=Math.sqrt,Kp=Math.max,Oi=Math.min,ei=1e-4;function hvt(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,f=o-a,c=s-i,v=c*l-f*u;if(!(v*v<ei))return v=(f*(t-i)-c*(e-a))/v,[e+v*l,t+v*u]}function R0(e,t,r,n,a,i,o){var s=e-r,l=t-n,u=(o?i:-i)/Ig(s*s+l*l),f=u*l,c=-u*s,v=e+f,h=t+c,d=r+f,p=n+c,g=(v+d)/2,y=(h+p)/2,m=d-v,_=p-h,S=m*m+_*_,b=a-i,x=v*p-d*h,w=(_<0?-1:1)*Ig(Kp(0,b*b*S-x*x)),T=(x*_-m*w)/S,C=(-x*m-_*w)/S,A=(x*_+m*w)/S,M=(-x*m+_*w)/S,L=T-g,E=C-y,R=A-g,I=M-y;return L*L+E*E>R*R+I*I&&(T=A,C=M),{cx:T,cy:C,x0:-f,y0:-c,x1:T*(a/b-1),y1:C*(a/b-1)}}function dvt(e){var t;if(Y(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function pvt(e,t){var r,n=Kp(t.r,0),a=Kp(t.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,v=!!t.clockwise,h=S5(u-l),d=h>AC&&h%AC;if(d>ei&&(h=d),!(n>ei))e.moveTo(f,c);else if(h>AC-ei)e.moveTo(f+n*fv(l),c+n*zu(l)),e.arc(f,c,n,l,u,!v),a>ei&&(e.moveTo(f+a*fv(u),c+a*zu(u)),e.arc(f,c,a,u,l,v));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=void 0,C=void 0,A=void 0,M=void 0,L=void 0,E=void 0,R=void 0,I=n*fv(l),O=n*zu(l),N=a*fv(u),P=a*zu(u),z=h>ei;if(z){var B=t.cornerRadius;B&&(r=dvt(B),p=r[0],g=r[1],y=r[2],m=r[3]);var H=S5(n-a)/2;if(_=Oi(H,y),S=Oi(H,m),b=Oi(H,p),x=Oi(H,g),C=w=Kp(_,S),A=T=Kp(b,x),(w>ei||T>ei)&&(M=n*fv(u),L=n*zu(u),E=a*fv(l),R=a*zu(l),h<DX)){var F=hvt(I,O,E,R,M,L,N,P);if(F){var $=I-F[0],j=O-F[1],tt=M-F[0],mt=L-F[1],Nt=1/zu(vvt(($*tt+j*mt)/(Ig($*$+j*j)*Ig(tt*tt+mt*mt)))/2),Q=Ig(F[0]*F[0]+F[1]*F[1]);C=Oi(w,(n-Q)/(Nt+1)),A=Oi(T,(a-Q)/(Nt-1))}}}if(!z)e.moveTo(f+I,c+O);else if(C>ei){var q=Oi(y,C),ht=Oi(m,C),K=R0(E,R,I,O,n,q,v),at=R0(M,L,N,P,n,ht,v);e.moveTo(f+K.cx+K.x0,c+K.cy+K.y0),C<w&&q===ht?e.arc(f+K.cx,c+K.cy,C,Jr(K.y0,K.x0),Jr(at.y0,at.x0),!v):(q>0&&e.arc(f+K.cx,c+K.cy,q,Jr(K.y0,K.x0),Jr(K.y1,K.x1),!v),e.arc(f,c,n,Jr(K.cy+K.y1,K.cx+K.x1),Jr(at.cy+at.y1,at.cx+at.x1),!v),ht>0&&e.arc(f+at.cx,c+at.cy,ht,Jr(at.y1,at.x1),Jr(at.y0,at.x0),!v))}else e.moveTo(f+I,c+O),e.arc(f,c,n,l,u,!v);if(!(a>ei)||!z)e.lineTo(f+N,c+P);else if(A>ei){var q=Oi(p,A),ht=Oi(g,A),K=R0(N,P,M,L,a,-ht,v),at=R0(I,O,E,R,a,-q,v);e.lineTo(f+K.cx+K.x0,c+K.cy+K.y0),A<T&&q===ht?e.arc(f+K.cx,c+K.cy,A,Jr(K.y0,K.x0),Jr(at.y0,at.x0),!v):(ht>0&&e.arc(f+K.cx,c+K.cy,ht,Jr(K.y0,K.x0),Jr(K.y1,K.x1),!v),e.arc(f,c,a,Jr(K.cy+K.y1,K.cx+K.x1),Jr(at.cy+at.y1,at.cx+at.x1),v),q>0&&e.arc(f+at.cx,c+at.cy,q,Jr(at.y1,at.x1),Jr(at.y0,at.x0),!v))}else e.lineTo(f+N,c+P),e.arc(f,c,a,u,l,v)}e.closePath()}}}var gvt=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Wr=function(e){be(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new gvt},t.prototype.buildPath=function(r,n){pvt(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Rt);Wr.prototype.type="sector";var yvt=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Pd=function(e){be(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new yvt},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.PI*2;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,o,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,o,!0)},t}(Rt);Pd.prototype.type="ring";function mvt(e,t,r,n){var a=[],i=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var v=0,h=e.length;v<h;v++)Jo(f,f,e[v]),ts(c,c,e[v]);Jo(f,f,n[0]),ts(c,c,n[1])}for(var v=0,h=e.length;v<h;v++){var d=e[v];if(r)l=e[v?v-1:h-1],u=e[(v+1)%h];else if(v===0||v===h-1){a.push(oo(e[v]));continue}else l=e[v-1],u=e[v+1];_l(i,u,l),Ag(i,i,t);var p=R1(d,l),g=R1(d,u),y=p+g;y!==0&&(p/=y,g/=y),Ag(o,i,-p),Ag(s,i,g);var m=yE([],d,o),_=yE([],d,s);n&&(ts(m,m,f),Jo(m,m,c),ts(_,_,f),Jo(_,_,c)),a.push(m),a.push(_)}return r&&a.push(a.shift()),a}function EX(e,t,r){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var i=mvt(a,n,r,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=a[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,c=a.length;s<c;s++)e.lineTo(a[s][0],a[s][1])}r&&e.closePath()}}var _vt=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Zr=function(e){be(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new _vt},t.prototype.buildPath=function(r,n){EX(r,n,!0)},t}(Rt);Zr.prototype.type="polygon";var Svt=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Or=function(e){be(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Svt},t.prototype.buildPath=function(r,n){EX(r,n,!1)},t}(Rt);Or.prototype.type="polyline";var bvt={},xvt=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),je=function(e){be(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new xvt},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=aw(bvt,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(Rt);je.prototype.type="line";var Mn=[],wvt=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function b5(e,t,r){var n=e.cpx2,a=e.cpy2;return n!=null||a!=null?[(r?x3:fr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?x3:fr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?TE:wr)(e.x1,e.cpx1,e.x2,t),(r?TE:wr)(e.y1,e.cpy1,e.y2,t)]}var Nd=function(e){be(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new wvt},t.prototype.buildPath=function(r,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,v=n.percent;v!==0&&(r.moveTo(a,i),f==null||c==null?(v<1&&(fy(a,l,o,v,Mn),l=Mn[1],o=Mn[2],fy(i,u,s,v,Mn),u=Mn[1],s=Mn[2]),r.quadraticCurveTo(l,u,o,s)):(v<1&&(Jl(a,l,f,o,v,Mn),l=Mn[1],f=Mn[2],o=Mn[3],Jl(i,u,c,s,v,Mn),u=Mn[1],c=Mn[2],s=Mn[3]),r.bezierCurveTo(l,u,f,c,o,s)))},t.prototype.pointAt=function(r){return b5(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=b5(this.shape,r,!0);return Gc(n,n)},t}(Rt);Nd.prototype.type="bezier-curve";var Tvt=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Dm=function(e){be(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Tvt},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+a,c*o+i),r.arc(a,i,o,s,l,!u)},t}(Rt);Dm.prototype.type="arc";var Em=function(e){be(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(r,a[i].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Rt.prototype.getBoundingRect.call(this)},t}(Rt),LX=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}(),jc=function(e){be(t,e);function t(r,n,a,i,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t}(LX),UI=function(e){be(t,e);function t(r,n,a,i,o){var s=e.call(this,i)||this;return s.x=r??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return t}(LX),MC=Math.min,Cvt=Math.max,I0=Math.abs,Bu=[0,0],Vu=[0,0],Sr=uj(),P0=Sr.minTv,N0=Sr.maxTv,OX=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new gt;for(var n=0;n<2;n++)this._axes[n]=new gt;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,a=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),r)for(var u=0;u<4;u++)n[u].transform(r);gt.sub(a[0],n[1],n[0]),gt.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},e.prototype.intersect=function(t,r,n){var a=!0,i=!r;return r&&gt.set(r,0,0),Sr.reset(n,!i),!this._intersectCheckOneSide(this,t,i,1)&&(a=!1,i)||!this._intersectCheckOneSide(t,this,i,-1)&&(a=!1,i)||!i&&!Sr.negativeSize&&gt.copy(r,a?Sr.useDir?Sr.dirMinTv:P0:N0),a},e.prototype._intersectCheckOneSide=function(t,r,n,a){for(var i=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,Bu),t._getProjMinMaxOnAxis(o,r._corners,Vu),Sr.negativeSize||Bu[1]<Vu[0]||Bu[0]>Vu[1]){if(i=!1,Sr.negativeSize||n)return i;var l=I0(Vu[0]-Bu[1]),u=I0(Bu[0]-Vu[1]);MC(l,u)>N0.len()&&(l<u?gt.scale(N0,s,-l*a):gt.scale(N0,s,u*a))}else if(!n){var l=I0(Vu[0]-Bu[1]),u=I0(Bu[0]-Vu[1]);(Sr.useDir||MC(l,u)<P0.len())&&((l<u||!Sr.bidirectional)&&(gt.scale(P0,s,l*a),Sr.useDir&&Sr.calcDirMTV()),(l>=u||!Sr.bidirectional)&&(gt.scale(P0,s,-u*a),Sr.useDir&&Sr.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var a=this._axes[t],i=this._origin,o=r[0].dot(a)+i[t],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(a)+i[t];s=MC(f,s),l=Cvt(f,l)}n[0]=s+Sr.touchThreshold,n[1]=l-Sr.touchThreshold,Sr.negativeSize=n[1]<n[0]},e}(),RX=0,Avt=1,Mvt=2,Dvt=1,xS=0,Evt=[],IX=function(e){be(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=Avt,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new vt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(Evt)),r.union(i)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}($a),PX=Tt();function kd(e,t,r,n,a){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=ot(n.duration,200),f=ot(n.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(c=i.delay)),ut(c)&&(c=c(r,a)),ut(u)&&(u=u(r));var v={duration:u||0,delay:c,easing:f};return v}else return null}function FI(e,t,r,n,a,i,o){var s=!1,l;ut(a)?(o=i,i=a,a=null):pt(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var f=kd(e,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null);if(f&&f.duration>0){var c=f.duration,v=f.delay,h=f.easing,d={duration:c,delay:v||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),i&&i()}function jt(e,t,r,n,a,i){FI("update",e,t,r,n,a,i)}function ye(e,t,r,n,a,i){FI("enter",e,t,r,n,a,i)}function Th(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function eu(e,t,r,n,a,i){Th(e)||FI("leave",e,t,r,n,a,i)}function x5(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),eu(e,{style:{opacity:0}},t,r,n)}function us(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||x5(a,t,r,n)}):x5(e,t,r,n)}function Wa(e){PX(e).oldStyle=e.style}function Lvt(e){return PX(e).oldStyle}var QE={},_t=["x","y"],Ge=["width","height"],NX=0,kX=1,zd=2;function zX(e){return Rt.extend(e)}var Ovt=lvt;function BX(e,t){return Ovt(e,t)}function qa(e,t){QE[e]=t}function Sy(e){if(QE.hasOwnProperty(e))return QE[e]}function ed(e,t,r,n){var a=MX(e,t);return r&&(n==="center"&&(r=VX(r,a.getBoundingRect())),jI(a,r)),a}function YI(e,t,r){var n=new mr({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(r==="center"){var i={width:a.width,height:a.height};n.setStyle(VX(t,i))}}});return n}function VX(e,t){var r=t.width/t.height,n=e.height*r,a;n<=e.width?a=e.height:(n=e.width,a=n/r);var i=e.x+e.width/2,o=e.y+e.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var Jn=uvt;function jI(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function rd(e,t){return aw(e,e,{lineWidth:t}),e}function Rvt(e,t){return oX(e,e,t),e}var wS=na;function If(e,t){for(var r=Hc([]);e&&e!==t;)ua(r,e.getLocalTransform(),r),e=e.parent;return r}function hi(e,t,r){return t&&!Xr(t)&&(t=Ro.getLocalTransform(t)),r&&(t=ca([],t)),Ne([],e,t)}function sw(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Ie(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Ie(2*t[4]/t[2]),i=[e==="left"?-n:e==="right"?n:0,e==="top"?-a:e==="bottom"?a:0];return i=hi(i,t,r),Ie(i[0])>Ie(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function w5(e){return!e.isGroup}function Ivt(e){return e.shape!=null}function Lm(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){w5(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Ivt(o)&&(s.shape=st(o.shape)),s}var i=n(e);t.traverse(function(o){if(w5(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),jt(o,l,r,yt(o).dataIndex)}}})}function XI(e,t){return X(e,function(r){var n=r[0];n=Dt(n,t.x),n=te(n,t.x+t.width);var a=r[1];return a=Dt(a,t.y),a=te(a,t.y+t.height),[n,a]})}function GX(e,t){var r=Dt(e.x,t.x),n=te(e.x+e.width,t.x+t.width),a=Dt(e.y,t.y),i=te(e.y+e.height,t.y+t.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function Bd(e,t,r){var n=U({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),dt(a,r),new mr(n)):ed(e.replace("path://",""),n,r,"center")}function Qp(e,t,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(HX(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function HX(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,f=o-a,c=s-i,v=DC(f,c,l,u);if(Pvt(v))return!1;var h=e-a,d=t-i,p=DC(h,d,l,u)/v;if(p<0||p>1)return!1;var g=DC(h,d,f,c)/v;return!(g<0||g>1)}function DC(e,t,r,n){return e*n-r*t}function Pvt(e){return e<=1e-6&&e>=-1e-6}function oc(e,t,r,n,a){return t==null||(Ut(t)?De[0]=De[1]=De[2]=De[3]=t:(De[0]=t[0],De[1]=t[1],De[2]=t[2],De[3]=t[3]),n&&(De[0]=Dt(0,De[0]),De[1]=Dt(0,De[1]),De[2]=Dt(0,De[2]),De[3]=Dt(0,De[3])),r&&(De[0]=-De[0],De[1]=-De[1],De[2]=-De[2],De[3]=-De[3]),T5(e,De,"x","width",3,1,a&&a[0]||0),T5(e,De,"y","height",0,2,a&&a[1]||0)),e}var De=[0,0,0,0];function T5(e,t,r,n,a,i,o){var s=t[i]+t[a],l=e[n];e[n]+=s,o=Dt(0,te(o,l)),e[n]<o?(e[n]=o,e[r]+=t[a]>=0?-t[a]:t[i]>=0?l+t[i]:Ie(s)>1e-8?(l-o)*t[a]/s:0):e[r]-=t[a]}function Us(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,a=J(t)?{formatter:t}:t,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=e.formatterParamsExtra;l&&D(kt(l),function(f){it(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=yt(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:dt({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function JE(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function gu(e,t){if(e)if(Y(e))for(var r=0;r<e.length;r++)JE(e[r],t);else JE(e,t)}function $I(e){return!e||Ie(e[1])<k0&&Ie(e[2])<k0||Ie(e[0])<k0&&Ie(e[3])<k0}var k0=1e-5;function by(e,t){return e?vt.copy(e,t):t.clone()}function WI(e,t){return t?Ql(e||we(),t):void 0}function sc(e){return{z:e.get("z")||0,zlevel:e.get("zlevel")||0}}function UX(e){var t=-1/0,r=1/0;JE(e,function(i){n(i),n(i.getTextContent()),n(i.getTextGuideLine())});function n(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(i.states[o[s]]);a(i)}}function a(i){if(i){var o=i.z2;o>t&&(t=o),o<r&&(r=o)}}return r>t&&(r=t=0),{min:r,max:t}}function lw(e,t,r){FX(e,t,r,-1/0)}function FX(e,t,r,n){if(e.ignoreModelZ)return n;var a=e.getTextContent(),i=e.getTextGuideLine(),o=e.isGroup;if(o)for(var s=e.childrenRef(),l=0;l<s.length;l++)n=Dt(FX(s[l],t,r,n),n);else e.z=t,e.zlevel=r,n=Dt(e.z2||0,n);if(a&&(a.z=t,a.zlevel=r,isFinite(n)&&(a.z2=n+2)),i){var u=e.textGuideLineConfig;i.z=t,i.zlevel=r,isFinite(n)&&(i.z2=n+(u&&u.showAbove?1:-1))}return n}function ZI(e){return e.animation={duration:0},e}function uw(e,t){return t?Ql(Jp.transform,t):Hc(Jp.transform),Jp.decomposeTransform(),yo(e,Jp),e}var Jp=new Ro;Jp.transform=we();function tL(e){var t=e.getZr().painter;return t.getType()==="canvas"?t:null}qa("circle",Po);qa("ellipse",Mm);qa("sector",Wr);qa("ring",Pd);qa("polygon",Zr);qa("polyline",Or);qa("rect",Et);qa("line",je);qa("bezierCurve",Nd);qa("arc",Dm);const Xc=Object.freeze(Object.defineProperty({__proto__:null,Arc:Dm,BezierCurve:Nd,BoundingRect:vt,Circle:Po,CompoundPath:Em,Ellipse:Mm,Group:ct,HOVER_LAYER_FOR_INCREMENTAL:zd,HOVER_LAYER_FROM_THRESHOLD:kX,HOVER_LAYER_NO:NX,Image:mr,IncrementalDisplayable:IX,Line:je,LinearGradient:jc,OrientedBoundingRect:OX,Path:Rt,Point:gt,Polygon:Zr,Polyline:Or,RadialGradient:UI,Rect:Et,Ring:Pd,Sector:Wr,Text:Ht,WH:Ge,XY:_t,applyTransform:hi,calcZ2Range:UX,clipPointsByRect:XI,clipRectByRect:GX,createIcon:Bd,decomposeTransform:uw,ensureCopyRect:by,ensureCopyTransform:WI,expandOrShrinkRect:oc,extendPath:BX,extendShape:zX,getCurrentCanvasPainter:tL,getShapeClass:Sy,getTransform:If,groupTransition:Lm,initProps:ye,isBoundingRectAxisAligned:$I,isElementRemoved:Th,lineLineIntersect:HX,linePolygonIntersect:Qp,makeImage:YI,makePath:ed,mergePath:Jn,payloadDisableAnimation:ZI,registerShape:qa,removeElement:eu,removeElementWithFadeOut:us,resizePath:jI,retrieveZInfo:sc,setTooltipConfig:Us,subPixelOptimize:wS,subPixelOptimizeLine:rd,subPixelOptimizeRect:Rvt,transformDirection:sw,traverseElements:gu,traverseUpdateZ:lw,updateProps:jt},Symbol.toStringTag,{value:"Module"}));var fw={};function YX(e,t){for(var r=0;r<Tn.length;r++){var n=Tn[r],a=t[n],i=e.ensureState(n);i.style=i.style||{},i.style.text=a}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function eL(e,t,r){var n=e.labelFetcher,a=e.labelDataIndex,i=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=ut(e.defaultText)?e.defaultText(a,e,r):e.defaultText);for(var l={normal:s},u=0;u<Tn.length;u++){var f=Tn[u],c=t[f];l[f]=ot(n?n.getFormattedLabel(a,f,null,i,c&&c.get("formatter")):null,s)}return l}function yr(e,t,r,n){r=r||fw;for(var a=e instanceof Ht,i=!1,o=0;o<my.length;o++){var s=t[my[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?e:e.getTextContent();if(i){a||(l||(l=new Ht,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=eL(r,t),f=t.normal,c=!!f.getShallow("show"),v=se(f,n&&n.normal,r,!1,!a);v.text=u.normal,a||e.setTextConfig(Z1(f,r,!1));for(var o=0;o<Tn.length;o++){var h=Tn[o],s=t[h];if(s){var d=l.ensureState(h),p=!!ot(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=se(s,n&&n[h],r,!0,!a),d.style.text=u[h],!a){var g=e.ensureState(h);g.textConfig=Z1(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!c,l.useStyle(v),l.dirty(),r.enableTextSetter&&(Vd(l).setLabelText=function(y){var m=eL(r,t,y);YX(l,m)})}else l&&(l.ignore=!0);e.dirty()}function ir(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<Tn.length;n++){var a=Tn[n];r[a]=e.getModel([a,t])}return r}function se(e,t,r,n,a){var i={};return Nvt(i,e,r,n,a),t&&U(i,t),i}function Z1(e,t,r){t=t||{};var n={},a,i=e.getShallow("rotate"),o=ot(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return a=e.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(n.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(n.layoutRect=t.layoutRect),n}function Nvt(e,t,r,n,a){r=r||fw;var i=t.ecModel,o=i&&i.option.textStyle,s=kvt(t),l;if(s){l={};var u="richInheritPlainLabel",f=ot(t.get(u),i?i.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var v=t.getModel(["rich",c]);D5(l[c]={},v,o,t,f,r,n,a,!1,!0)}}l&&(e.rich=l);var h=t.get("overflow");h&&(e.overflow=h);var d=t.get("lineOverflow");d&&(e.lineOverflow=d);var p=e,g=t.get("minMargin");if(g!=null)g=Ut(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=ih.minMargin;else{var y=t.get("textMargin");y!=null&&(p.margin=xm(y),p.__marginType=ih.textMargin)}D5(e,t,o,null,null,r,n,a,!0,!1)}function kvt(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||fw).rich;if(r){t=t||{};for(var n=kt(r),a=0;a<n.length;a++){var i=n[a];t[i]=1}}e=e.parentModel}return t}var C5=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],A5=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],M5=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function D5(e,t,r,n,a,i,o,s,l,u){r=!o&&r||fw;var f=i&&i.inheritColor,c=t.getShallow("color"),v=t.getShallow("textBorderColor"),h=ot(t.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(v==="inherit"||v==="auto")&&(f?v=f:v=null),s||(c=c||r.color,v=v||r.textBorderColor),c!=null&&(e.fill=c),v!=null&&(e.stroke=v);var d=ot(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var p=ot(t.getShallow("textBorderType"),r.textBorderType);p!=null&&(e.lineDash=p);var g=ot(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&h==null&&!u&&(h=i&&i.defaultOpacity),h!=null&&(e.opacity=h),!o&&!s&&e.fill==null&&i.inheritColor&&(e.fill=i.inheritColor);for(var y=0;y<C5.length;y++){var m=C5[y],_=a!==!1&&n?zn(t.getShallow(m),n.getShallow(m),r[m]):ot(t.getShallow(m),r[m]);_!=null&&(e[m]=_)}for(var y=0;y<A5.length;y++){var m=A5[y],_=t.getShallow(m);_!=null&&(e[m]=_)}if(e.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(e.verticalAlign=S)}if(!l||!i.disableBox){for(var y=0;y<M5.length;y++){var m=M5[y],_=t.getShallow(m);_!=null&&(e[m]=_)}var b=t.getShallow("borderType");b!=null&&(e.borderDash=b),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&f&&(e.backgroundColor=f),(e.borderColor==="auto"||e.borderColor==="inherit")&&f&&(e.borderColor=f)}}function qI(e,t){var r=t&&t.getModel("textStyle");return ea([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var Vd=Tt();function jX(e,t,r,n){if(e){var a=Vd(e);a.prevValue=a.value,a.value=r;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}function XX(e,t,r,n,a){var i=Vd(e);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=ot(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var c=$j(r,i.precision,s,l,f);i.interpolatedValue=f===1?null:c;var v=eL({labelDataIndex:t,labelFetcher:a,defaultText:o?o(c):c+""},i.statesModels,c);YX(e,v)}e.percent=0,(i.prevValue==null?ye:jt)(e,{percent:1},n,t,null,u)}var ih={minMargin:1,textMargin:2},zvt=["textStyle","color"],EC=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],LC=new Ht,Bvt=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(zvt):null)},e.prototype.getFont=function(){return qI({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<EC.length;n++)r[EC[n]]=this.getShallow(EC[n]);return LC.useStyle(r),LC.update(),LC.getBoundingRect()},e}(),$X=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Vvt=ac($X),Gvt=function(){function e(){}return e.prototype.getLineStyle=function(t){return Vvt(this,t)},e}(),WX=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Hvt=ac(WX),Uvt=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return Hvt(this,t,r)},e}(),Ot=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){wt(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,a=n==null?n:n[t];if(a==null&&!r){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},e.prototype.getModel=function(t,r){var n=t!=null,a=n?this.parsePath(t):null,i=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new e(i,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(st(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!Vt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var a=0;a<t.length&&!(t[a]&&(n=n&&typeof n=="object"?n[t[a]]:null,n==null));a++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();RI(Ot);Zft(Ot);We(Ot,Gvt);We(Ot,Uvt);We(Ot,tct);We(Ot,Bvt);var Fvt=Math.round(Math.random()*10);function $c(e){return[e||"",Fvt++].join("_")}function Yvt(e){var t={};e.registerSubTypeDefaulter=function(r,n){var a=qi(r);t[a.main]=n},e.determineSubType=function(r,n){var a=n.type;if(!a){var i=qi(r).main;e.hasSubTypes(r)&&t[i]&&(a=t[i](n))}return a}}function jvt(e,t){e.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=r(o),f=u.graph,c=u.noEntryList,v={};for(D(i,function(m){v[m]=!0});c.length;){var h=c.pop(),d=f[h],p=!!v[h];p&&(s.call(l,h,d.originalDeps.slice()),delete v[h]),D(d.successor,p?y:g)}D(v,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&c.push(m)}function y(m){v[m]=!0,g(m)}};function r(i){var o={},s=[];return D(i,function(l){var u=n(o,l),f=u.originalDeps=t(l),c=a(f,i);u.entryCount=c.length,u.entryCount===0&&s.push(l),D(c,function(v){St(u.predecessor,v)<0&&u.predecessor.push(v);var h=n(o,v);St(h.successor,v)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return D(i,function(l){St(o,l)>=0&&s.push(l)}),s}}function yu(e,t){return wt(wt({},e,!0),t,!0)}const Xvt={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:". "}}}},$vt={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 q1="ZH",KI="EN",Ch=KI,TS={},QI={},ZX=Vt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ch).toUpperCase();return e.indexOf(q1)>-1?q1:Ch}():Ch;function JI(e,t){e=e.toUpperCase(),QI[e]=new Ot(t),TS[e]=t}function Wvt(e){if(J(e)){var t=TS[e.toUpperCase()]||{};return e===q1||e===KI?st(t):wt(st(t),st(TS[Ch]),!1)}else return wt(st(e),st(TS[Ch]),!1)}function rL(e){return QI[e]}function Zvt(){return QI[Ch]}JI(KI,Xvt);JI(q1,$vt);var nL=null;function qvt(e){nL||(nL=e)}function Xe(){return nL}function qX(e,t){var r=Xe(),n=t.breakOption,a=t.breakParsed;return!a&&r&&(a=r.parseAxisBreakOption(n,e)),a}function K1(e){var t=e.brk;return t?t.breaks:[]}function Q1(e){var t=e.brk;return t?t.hasBreaks():!1}var tP=1e3,eP=tP*60,Pg=eP*60,Na=Pg*24,E5=Na*365,Kvt={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},CS={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},Qvt="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",z0="{yyyy}-{MM}-{dd}",L5={year:"{yyyy}",month:"{yyyy}-{MM}",day:z0,hour:z0+" "+CS.hour,minute:z0+" "+CS.minute,second:z0+" "+CS.second,millisecond:Qvt},Yn=["year","month","day","hour","minute","second","millisecond"],Jvt=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function tht(e){return!J(e)&&!ut(e)?eht(e):e}function eht(e){e=e||{};var t={},r=!0;return D(Yn,function(n){r&&(r=e[n]==null)}),D(Yn,function(n,a){var i=e[n];t[n]={};for(var o=null,s=a;s>=0;s--){var l=Yn[s],u=pt(i)&&!Y(i)?i[l]:i,f=void 0;Y(u)?(f=u.slice(),o=f[0]||""):J(u)?(o=u,f=[o]):(o==null?o=CS[n]:Kvt[l].test(o)||(o=t[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),t[n][l]=f}}),t}function pn(e,t){return e+="","0000".substr(0,t-e.length)+e}function Ng(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 rht(e){return e===Ng(e)}function nht(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Om(e,t,r,n){var a=Io(e),i=a[KX(r)](),o=a[rP(r)]()+1,s=Math.floor((o-1)/3)+1,l=a[nP(r)](),u=a["get"+(r?"UTC":"")+"Day"](),f=a[aP(r)](),c=(f-1)%12+1,v=a[iP(r)](),h=a[oP(r)](),d=a[sP(r)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=n instanceof Ot?n:rL(n||ZX)||Zvt(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,pn(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,pn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,pn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,pn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,pn(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,pn(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,pn(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,pn(d,3)).replace(/{S}/g,d+"")}function aht(e,t,r,n,a){var i=null;if(J(r))i=r;else if(ut(r)){var o={time:e.time,level:e.time?e.time.level:0},s=Xe();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),i=r(e.value,t,o)}else{var l=e.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=Ah(e.value,a);i=r[f][f][0]}}return Om(new Date(e.value),i,a,n)}function Ah(e,t){var r=Io(e),n=r[rP(t)]()+1,a=r[nP(t)](),i=r[aP(t)](),o=r[iP(t)](),s=r[oP(t)](),l=r[sP(t)](),u=l===0,f=u&&s===0,c=f&&o===0,v=c&&i===0,h=v&&a===1,d=h&&n===1;return d?"year":h?"month":v?"day":c?"hour":f?"minute":u?"second":"millisecond"}function J1(e,t,r){switch(t){case"year":e[QX(r)](0);case"month":e[JX(r)](1);case"day":e[t$(r)](0);case"hour":e[e$(r)](0);case"minute":e[r$(r)](0);case"second":e[n$(r)](0)}return e}function KX(e){return e?"getUTCFullYear":"getFullYear"}function rP(e){return e?"getUTCMonth":"getMonth"}function nP(e){return e?"getUTCDate":"getDate"}function aP(e){return e?"getUTCHours":"getHours"}function iP(e){return e?"getUTCMinutes":"getMinutes"}function oP(e){return e?"getUTCSeconds":"getSeconds"}function sP(e){return e?"getUTCMilliseconds":"getMilliseconds"}function iht(e){return e?"setUTCFullYear":"setFullYear"}function QX(e){return e?"setUTCMonth":"setMonth"}function JX(e){return e?"setUTCDate":"setDate"}function t$(e){return e?"setUTCHours":"setHours"}function e$(e){return e?"setUTCMinutes":"setMinutes"}function r$(e){return e?"setUTCSeconds":"setSeconds"}function n$(e){return e?"setUTCMilliseconds":"setMilliseconds"}function oht(e,t,r,n,a,i,o,s){var l=new Ht({style:{text:e,font:t,align:r,verticalAlign:n,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function lP(e){if(!MI(e))return J(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function uP(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Gd=xm;function aL(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&ea(f)?f:"-"}function i(f){return Xa(f)}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Io(e):e;if(isNaN(+l)){if(s)return"-"}else return Om(l,n,r)}if(t==="ordinal")return L1(e)?a(e):Ut(e)&&i(e)?e+"":"-";var u=So(e);return i(u)?lP(u):L1(e)?a(e):typeof e=="boolean"?e+"":"-"}var O5=["a","b","c","d","e","f","g"],OC=function(e,t){return"{"+e+(t??"")+"}"};function fP(e,t,r){Y(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=O5[i];e=e.replace(OC(o),OC(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];e=e.replace(OC(O5[l],s),r?rn(u):u)}return e}function a$(e,t,r){return D(t,function(n,a){e=e.replace("{"+a+"}",n)}),e}function i$(e,t){var r=J(e)?{color:e,extraCssText:t}:e||{},n=r.color,a=r.type;t=r.extraCssText;var i=r.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+rn(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+rn(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function sht(e,t,r){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
161
+ yyyy`);var n=Io(t),a=r?"getUTC":"get",i=n[a+"FullYear"](),o=n[a+"Month"]()+1,s=n[a+"Date"](),l=n[a+"Hours"](),u=n[a+"Minutes"](),f=n[a+"Seconds"](),c=n[a+"Milliseconds"]();return e=e.replace("MM",pn(o,2)).replace("M",o).replace("yyyy",i).replace("yy",pn(i%100+"",2)).replace("dd",pn(s,2)).replace("d",s).replace("hh",pn(l,2)).replace("h",l).replace("mm",pn(u,2)).replace("m",u).replace("ss",pn(f,2)).replace("s",f).replace("SSS",pn(c,3)),e}function lht(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function lc(e,t){return t=t||"transparent",J(e)?e:pt(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function tb(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var AS={},RC={},Hd=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,r){this._nonSeriesBoxMasterList=n(AS),this._normalMasterList=n(RC);function n(a,i){var o=[];return D(a,function(s,l){var u=s.create(t,r);o=o.concat(u||[])}),o}},e.prototype.update=function(t,r){D(this._normalMasterList,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,r){if(t==="matrix"||t==="calendar"){AS[t]=r;return}RC[t]=r},e.get=function(t){return RC[t]||AS[t]},e}();function uht(e){return!!AS[e]}var fht=1,o$=2;function cht(e){s$.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var s$=nt();function l$(e){var t=e.getShallow("coord",!0),r=fht;if(t==null){var n=s$.get(e.type);n&&n.getCoord2&&(r=o$,t=n.getCoord2(e))}return{coord:t,from:r}}var Mh=0,MS=1,u$=2;function f$(e,t){var r=e.getShallow("coordinateSystem"),n=e.getShallow("coordinateSystemUsage",!0),a=Mh;if(r){var i=e.mainType==="series";n==null&&(n=i?"data":"box"),n==="data"?(a=MS,i||(a=Mh)):n==="box"&&(a=u$,!i&&!uht(r)&&(a=Mh))}return{coordSysType:r,kind:a}}function Rm(e){var t=e.targetModel,r=e.coordSysType,n=e.coordSysProvider,a=e.isDefaultDataCoordSys;e.allowNotFound;var i=f$(t),o=i.kind,s=i.coordSysType;if(a&&o!==MS&&(o=MS,s=r),o===Mh||s!==r)return Mh;var l=n(r,t);return l?(o===MS?t.coordinateSystem=l:t.boxCoordinateSystem=l,o):Mh}var c$=function(e,t){var r=t.getReferringComponents(e,ze).models[0];return r&&r.coordinateSystem},DS=D,v$=["left","right","top","bottom","width","height"],Sf=[["width","left","right"],["height","top","bottom"]];function cP(e,t,r,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),v=c&&c.getBoundingRect(),h,d;if(e==="horizontal"){var p=f.width+(v?-v.x+f.x:0);h=i+p,h>n||l.newline?(i=0,h=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>a||l.newline?(i+=s+r,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),e==="horizontal"?i=h+r:o=d+r)})}var Pf=cP;At(cP,"vertical");At(cP,"horizontal");function h$(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function vht(e,t){var r=sr(e,t,{enableLayoutOnlyByCenter:!0}),n=e.getBoxLayoutParams(),a,i;if(r.type===tg.point)i=r.refPoint,a=xe(n,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get("center"),s=Y(o)?o:[o,o];a=xe(n,r.refContainer),i=r.boxCoordFrom===o$?r.refPoint:[et(s[0],a.width)+a.x,et(s[1],a.height)+a.y]}return{viewRect:a,center:i}}function d$(e,t){var r=vht(e,t),n=r.viewRect,a=r.center,i=e.get("radius");Y(i)||(i=[0,i]);var o=et(n.width,t.getWidth()),s=et(n.height,t.getHeight()),l=Math.min(o,s),u=et(i[0],l/2),f=et(i[1],l/2);return{cx:a[0],cy:a[1],r0:u,r:f,viewRect:n}}function xe(e,t,r){r=Gd(r||0);var n=t.width,a=t.height,i=et(e.left,n),o=et(e.top,a),s=et(e.right,n),l=et(e.bottom,a),u=et(e.width,n),f=et(e.height,a),c=r[2]+r[0],v=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-v-i),isNaN(f)&&(f=a-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(i)&&(i=n-s-u-v),isNaN(o)&&(o=a-l-f-c),e.left||e.right){case"center":i=n/2-u/2-r[3];break;case"right":i=n-u-v;break}switch(e.top||e.bottom){case"middle":case"center":o=a/2-f/2-r[0];break;case"bottom":o=a-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=n-v-i-(s||0)),isNaN(f)&&(f=a-c-o-(l||0));var d=new vt((t.x||0)+i+r[3],(t.y||0)+o+r[0],u,f);return d.margin=r,d}function p$(e,t,r){var n=e.getShallow("preserveAspect",!0);if(!n)return t;var a=t.width/t.height;if(Math.abs(Math.atan(r)-Math.atan(a))<1e-9)return t;var i=e.getShallow("preserveAspectAlign",!0),o=e.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},l=n==="cover";return a>r&&!l||a<r&&l?(s.width=t.height*r,i==="left"?s.left=0:i==="right"?s.right=0:s.left="center"):(s.height=t.width/r,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),xe(s,t)}var tg={rect:1,point:2};function sr(e,t,r){var n,a,i,o=e.boxCoordinateSystem,s;if(o){var l=l$(e),u=l.coord,f=l.from;if(o.dataToLayout){i=tg.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=tg.point,s=f,a=o.dataToPoint(u))}return i==null&&(i=tg.rect),i===tg.rect&&(n||(n={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),a=[n.x+n.width/2,n.y+n.height/2]),{type:i,refContainer:n,refPoint:a,boxCoordFrom:s}}function cw(e,t,r,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||e,i.x=e.x,i.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new vt(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var f=e.getLocalTransform();u=u.clone(),u.applyTransform(f)}var c=xe(dt({width:u.width,height:u.height},t),r,n),v=o?c.x-u.x:0,h=s?c.y-u.y:0;return l==="raw"?(i.x=v,i.y=h):(i.x+=v,i.y+=h),i===e&&e.markRedraw(),!0}function hht(e,t){return e[Sf[t][0]]!=null||e[Sf[t][1]]!=null&&e[Sf[t][2]]!=null}function xy(e){var t=e.layoutMode||e.constructor.layoutMode;return pt(t)?t:t?{type:t}:null}function wo(e,t,r){var n=r&&r.ignoreSize;!Y(n)&&(n=[n,n]);var a=o(Sf[0],0),i=o(Sf[1],1);l(Sf[0],e,a),l(Sf[1],e,i);function o(u,f){var c={},v=0,h={},d=0,p=2;if(DS(u,function(m){h[m]=e[m]}),DS(u,function(m){it(t,m)&&(c[m]=h[m]=t[m]),s(c,m)&&v++,s(h,m)&&d++}),n[f])return s(t,u[1])?h[u[2]]=null:s(t,u[2])&&(h[u[1]]=null),h;if(d===p||!v)return h;if(v>=p)return c;for(var g=0;g<u.length;g++){var y=u[g];if(!it(c,y)&&it(e,y)){c[y]=e[y];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){DS(u,function(v){f[v]=c[v]})}}function Wc(e){return g$({},e)}function g$(e,t){return t&&e&&DS(v$,function(r){it(t,r)&&(e[r]=t[r])}),e}var dht=Tt(),Lt=function(e){G(t,e);function t(r,n,a){var i=e.call(this,r,n,a)||this;return i.uid=$c("ec_cpt_model"),i}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=xy(this),i=a?Wc(r):{},o=n.getTheme();wt(r,o.get(this.mainType)),wt(r,this.getDefaultOption()),a&&wo(r,i,a)},t.prototype.mergeOption=function(r,n){wt(this.option,r,!0);var a=xy(this);a&&wo(this.option,r,a)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!Xft(r))return r.defaultOption;var n=dht(this);if(!n.defaultOption){for(var a=[],i=r;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=wt(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return Ld(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){return h$(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Ot);Qj(Lt,Ot);Jx(Lt);Yvt(Lt);jvt(Lt,pht);function pht(e){var t=[];return D(Lt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=X(t,function(r){return qi(r).main}),e!=="dataset"&&St(t,"dataset")<=0&&t.unshift("dataset"),t}var V={color:{},darkColor:{},size:{}},Ue=V.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};U(Ue,{primary:Ue.neutral80,secondary:Ue.neutral70,tertiary:Ue.neutral60,quaternary:Ue.neutral50,disabled:Ue.neutral20,border:Ue.neutral30,borderTint:Ue.neutral20,borderShade:Ue.neutral40,background:Ue.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Ue.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Ue.neutral70,axisLineTint:Ue.neutral40,axisTick:Ue.neutral70,axisTickMinor:Ue.neutral60,axisLabel:Ue.neutral70,axisSplitLine:Ue.neutral15,axisMinorSplitLine:Ue.neutral05});for(var Gu in Ue)if(Ue.hasOwnProperty(Gu)){var R5=Ue[Gu];Gu==="theme"?V.darkColor.theme=Ue.theme.slice():Gu==="highlight"?V.darkColor.highlight="rgba(255,231,130,0.4)":Gu.indexOf("accent")===0?V.darkColor[Gu]=ls(R5,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):V.darkColor[Gu]=ls(R5,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}V.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var y$="";typeof navigator<"u"&&(y$=navigator.platform||"");var cv="rgba(0, 0, 0, 0.2)",m$=V.color.theme[0],ght=ls(m$,null,null,.9);const _$={darkMode:"auto",colorBy:"series",color:V.color.theme,gradientColor:[ght,m$],aria:{decal:{decals:[{color:cv,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:cv,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:cv,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:cv,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:cv,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:cv,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:y$.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 Rr={Must:1,Might:2,Not:3},S$=Tt();function yht(e){S$(e).datasetMap=nt()}function b$(e,t,r){var n={},a=hP(t);if(!a||!e)return n;var i=[],o=[],s=t.ecModel,l=S$(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,f,c;e=e.slice(),D(e,function(p,g){var y=pt(p)?p:e[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,c=d(y)),n[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});D(e,function(p,g){var y=p.name,m=d(p);if(f==null){var _=v.valueWayDim;h(n[y],_,m),h(o,_,m),v.valueWayDim+=m}else if(f===g)h(n[y],0,m),h(i,0,m);else{var _=v.categoryWayDim;h(n[y],_,m),h(o,_,m),v.categoryWayDim+=m}});function h(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function vP(e,t,r){var n={},a=hP(e);if(!a)return n;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===pa||i===Si)&&D(o,function(f,c){(pt(f)?f.name:f)==="name"&&(s=c)});var l=function(){for(var f={},c={},v=[],h=0,d=Math.min(5,r);h<d;h++){var p=w$(t.data,i,t.seriesLayoutBy,o,t.startIndex,h);v.push(p);var g=p===Rr.Not;if(g&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!g&&v[f.n]===Rr.Not)&&(f.n=h),y(f)&&v[f.n]!==Rr.Not)return f;g||(p===Rr.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(c)?c:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function hP(e){var t=e.get("data",!0);if(!t)return Ld(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},ze).models[0]}function mht(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Ld(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},ze).models}function x$(e,t){return w$(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function w$(e,t,r,n,a,i){var o,s=5;if(wn(e))return Rr.Not;var l,u;if(n){var f=n[i];pt(f)?(l=f.name,u=f.type):J(f)&&(l=f)}if(u!=null)return u==="ordinal"?Rr.Must:Rr.Not;if(t===Lr){var c=e;if(r===Yc){for(var v=c[i],h=0;h<(v||[]).length&&h<s;h++)if((o=S(v[a+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var d=c[a+h];if(d&&(o=S(d[i]))!=null)return o}}else if(t===pa){var p=e;if(!l)return Rr.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=S(g[l]))!=null)return o}}else if(t===Si){var y=e;if(!l)return Rr.Not;var v=y[l];if(!v||wn(v))return Rr.Not;for(var h=0;h<v.length&&h<s;h++)if((o=S(v[h]))!=null)return o}else if(t===da)for(var m=e,h=0;h<m.length&&h<s;h++){var g=m[h],_=Ed(g);if(!Y(_))return Rr.Not;if((o=S(_[i]))!=null)return o}function S(b){var x=J(b);if(b!=null&&isFinite(Number(b))&&b!=="")return x?Rr.Might:Rr.Not;if(x&&b!=="-")return Rr.Must}return Rr.Not}var iL=nt();function _ht(e,t){$r(iL.get(e)==null&&t),iL.set(e,t)}function Sht(e,t,r){var n=iL.get(t);if(!n)return r;var a=n(e);return a?r.concat(a):r}var I5=Tt(),bht=Tt(),dP=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var a=ue(this.get("color",!0)),i=this.get("colorLayer",!0);return T$(this,I5,a,i,t,r,n)},e.prototype.clearColorPalette=function(){wht(this,I5)},e}();function oL(e,t,r,n){var a=ue(e.get(["aria","decal","decals"]));return T$(e,bht,a,null,t,r,n)}function xht(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function T$(e,t,r,n,a,i,o){i=i||e;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?r:xht(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}function wht(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var B0,pp,P5,N5="\0_ec_inner",Tht=1,pP=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Ot(i),this._locale=new Ot(o),this._optionManager=s},t.prototype.setOption=function(r,n,a){var i=B5(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(r,n){return this._resetOption(r,B5(n))},t.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");!this.option||r==="recreate"?P5(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=i.getMediaOption(this);l.length&&D(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=nt(),u=n&&n.replaceMergeMainTypeMap;yht(this),D(r,function(c,v){c!=null&&(Lt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):a[v]=a[v]==null?st(c):wt(a[v],c,!0))}),u&&u.each(function(c,v){Lt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),Lt.topologicalTravel(s,Lt.getAllClassMainTypes(),f,this);function f(c){var v=Sht(this,c,ue(r[c])),h=i.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=Yj(h,v,d);Rft(p,c,Lt),a[c]=null,i.set(c,null),o.set(c,0);var g=[],y=[],m=0,_;D(p,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=c==="series",C=Lt.getClass(c,S.keyInfo.subType,!T);if(!C)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===C)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var A=U({componentIndex:b},S.keyInfo);x=new C(w,this,this,A),U(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),a[c]=g,i.set(c,y),o.set(c,m),c==="series"&&B0(this)}this._seriesIndices||B0(this)},t.prototype.getOption=function(){var r=st(this.option);return D(r,function(n,a){if(Lt.hasClass(a)){for(var i=ue(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!yy(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[N5],r},t.prototype.setTheme=function(r){this._theme=new Ot(r),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var a=r.index,i=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],D(ue(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=k5("id",i,s):o!=null?l=k5("name",o,s):l=qt(s,function(u){return!!u}),z5(l,r)},t.prototype.findComponents=function(r){var n=r.query,a=r.mainType,i=s(n),o=i?this.queryComponents(i):qt(this._componentsMap.get(a),function(u){return!!u});return l(z5(o,r));function s(u){var f=a+"Index",c=a+"Id",v=a+"Name";return u&&(u[f]!=null||u[c]!=null||u[v]!=null)?{mainType:a,index:u[f],id:u[c],name:u[v]}:null}function l(u){return r.filter?qt(u,r.filter):u}},t.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(ut(r)){var o=n,s=r;i.each(function(c,v){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=J(r)?i.get(r):pt(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(a,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=nr(r,null);return qt(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return qt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return qt(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){pp(this),D(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},t.prototype.eachRawSeries=function(r,n){D(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,a){pp(this),D(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&n.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(r,n,a){return D(this.getSeriesByType(r),n,a)},t.prototype.isSeriesFiltered=function(r){return pp(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){pp(this);var a=[];D(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=nt(a)},t.prototype.restoreData=function(r){B0(this);var n=this._componentsMap,a=[];n.each(function(i,o){Lt.hasClass(o)&&a.push(o)}),Lt.topologicalTravel(a,Lt.getAllClassMainTypes(),function(i){D(n.get(i),function(o){o&&(i!=="series"||!Cht(o,r))&&o.restoreData()})})},t.internalField=function(){B0=function(r){var n=r._seriesIndices=[];D(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=nt(n)},pp=function(r){},P5=function(r,n){r.option={},r.option[N5]=Tht,r._componentsMap=nt({series:[]}),r._componentsCount=nt();var a=n.aria;pt(a)&&a.enabled==null&&(a.enabled=!0),Aht(n,r._theme.option),wt(n,_$,!1),r._mergeOption(n,null)}}(),t}(Ot);function Cht(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,a=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||a!=null&&e.name!==a}}function Aht(e,t){var r=e.color&&!e.colorLayer;D(t,function(n,a){a==="colorLayer"&&r||a==="color"&&e.color||Lt.hasClass(a)||(typeof n=="object"?e[a]=e[a]?wt(e[a],n,!1):st(n):e[a]==null&&(e[a]=n))})}function k5(e,t,r){if(Y(t)){var n=nt();return D(t,function(i){if(i!=null){var o=nr(i,null);o!=null&&n.set(i,!0)}}),qt(r,function(i){return i&&n.get(i[e])})}else{var a=nr(t,null);return qt(r,function(i){return i&&a!=null&&i[e]===a})}}function z5(e,t){return t.hasOwnProperty("subType")?qt(e,function(r){return r&&r.subType===t.subType}):e}function B5(e){var t=nt();return e&&D(ue(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}We(pP,dP);var Mht=/^(min|max)?(.+)$/,Dht=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(D(ue(t.series),function(o){o&&o.data&&wn(o.data)&&ly(o.data)}),D(ue(t.dataset),function(o){o&&o.source&&wn(o.source)&&ly(o.source)})),t=st(t);var a=this._optionBackup,i=Eht(t,r,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],st(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(r=st(n[a.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)Lht(a[l].query,r,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!Rht(o,this._currentMediaIndices)&&(s=X(o,function(f){return st(f===-1?i.option:a[f].option)})),this._currentMediaIndices=o,s},e}();function Eht(e,t,r){var n=[],a,i,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,f=!!e.media,c=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((c||f)&&(e.options=e.media=null),i=e),f&&Y(u)&&D(u,function(h){h&&h.option&&(h.query?n.push(h):a||(a=h))}),v(i),D(l,function(h){return v(h)}),D(n,function(h){return v(h.option)});function v(h){D(t,function(d){d(h,r)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function Lht(e,t,r){var n={width:t,height:r,aspectratio:t/r},a=!0;return D(e,function(i,o){var s=o.match(Mht);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();Oht(n[u],i,l)||(a=!1)}}),a}function Oht(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function Rht(e,t){return e.join(",")===t.join(",")}var Ja=D,wy=pt,V5=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function IC(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=V5.length;r<n;r++){var a=V5[r],i=t.normal,o=t.emphasis;i&&i[a]&&(e[a]=e[a]||{},e[a].normal?wt(e[a].normal,i[a]):e[a].normal=i[a],i[a]=null),o&&o[a]&&(e[a]=e[a]||{},e[a].emphasis?wt(e[a].emphasis,o[a]):e[a].emphasis=o[a],o[a]=null)}}function en(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,a=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,dt(e[t],n)):e[t]=n),a&&(e.emphasis=e.emphasis||{},e.emphasis[t]=a,a.focus&&(e.emphasis.focus=a.focus),a.blurScope&&(e.emphasis.blurScope=a.blurScope))}}function eg(e){en(e,"itemStyle"),en(e,"lineStyle"),en(e,"areaStyle"),en(e,"label"),en(e,"labelLine"),en(e,"upperLabel"),en(e,"edgeLabel")}function Ze(e,t){var r=wy(e)&&e[t],n=wy(r)&&r.textStyle;if(n)for(var a=0,i=U3.length;a<i;a++){var o=U3[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}function wa(e){e&&(eg(e),Ze(e,"label"),e.emphasis&&Ze(e.emphasis,"label"))}function Iht(e){if(wy(e)){IC(e),eg(e),Ze(e,"label"),Ze(e,"upperLabel"),Ze(e,"edgeLabel"),e.emphasis&&(Ze(e.emphasis,"label"),Ze(e.emphasis,"upperLabel"),Ze(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(IC(t),wa(t));var r=e.markLine;r&&(IC(r),wa(r));var n=e.markArea;n&&wa(n);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var i=e.links||e.edges;if(i&&!wn(i))for(var o=0;o<i.length;o++)wa(i[o]);D(e.categories,function(u){eg(u)})}if(a&&!wn(a))for(var o=0;o<a.length;o++)wa(a[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)wa(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)Y(l[o])?(wa(l[o][0]),wa(l[o][1])):wa(l[o]);e.type==="gauge"?(Ze(e,"axisLabel"),Ze(e,"title"),Ze(e,"detail")):e.type==="treemap"?(en(e.breadcrumb,"itemStyle"),D(e.levels,function(u){eg(u)})):e.type==="tree"&&eg(e.leaves)}}function Go(e){return Y(e)?e:e?[e]:[]}function G5(e){return(Y(e)?e[0]:e)||{}}function Pht(e,t){Ja(Go(e.series),function(n){wy(n)&&Iht(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ja(r,function(n){Ja(Go(e[n]),function(a){a&&(Ze(a,"axisLabel"),Ze(a.axisPointer,"label"))})}),Ja(Go(e.parallel),function(n){var a=n&&n.parallelAxisDefault;Ze(a,"axisLabel"),Ze(a&&a.axisPointer,"label")}),Ja(Go(e.calendar),function(n){en(n,"itemStyle"),Ze(n,"dayLabel"),Ze(n,"monthLabel"),Ze(n,"yearLabel")}),Ja(Go(e.radar),function(n){Ze(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Ja(Go(e.geo),function(n){wy(n)&&(wa(n),Ja(Go(n.regions),function(a){wa(a)}))}),Ja(Go(e.timeline),function(n){wa(n),en(n,"label"),en(n,"itemStyle"),en(n,"controlStyle",!0);var a=n.data;Y(a)&&D(a,function(i){pt(i)&&(en(i,"label"),en(i,"itemStyle"))})}),Ja(Go(e.toolbox),function(n){en(n,"iconStyle"),Ja(n.feature,function(a){en(a,"iconStyle")})}),Ze(G5(e.axisPointer),"label"),Ze(G5(e.tooltip).axisPointer,"label")}function Nht(e,t){for(var r=t.split(","),n=e,a=0;a<r.length&&(n=n&&n[r[a]],n!=null);a++);return n}function kht(e,t,r,n){for(var a=t.split(","),i=e,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];i[a[s]]==null&&(i[a[s]]=r)}function H5(e){e&&D(zht,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var zht=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Bht=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],PC=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function gp(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<PC.length;r++){var n=PC[r][1],a=PC[r][0];t[n]!=null&&(t[a]=t[n])}}function U5(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function F5(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Vht(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function C$(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&C$(e[r].children,t)}function A$(e,t){Pht(e,t),e.series=ue(e.series),D(e.series,function(r){if(pt(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),U5(r.label);var a=r.data;if(a&&!wn(a))for(var i=0;i<a.length;i++)U5(a[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=Nht(r,"pointer.color");o!=null&&kht(r,"itemStyle.color",o)}else if(n==="bar"){gp(r),gp(r.backgroundStyle),gp(r.emphasis);var a=r.data;if(a&&!wn(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(gp(a[i]),gp(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),F5(r),C$(r.data,F5)}else n==="graph"||n==="sankey"?Vht(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&dt(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),H5(r)}}),e.dataRange&&(e.visualMap=e.dataRange),D(Bht,function(r){var n=e[r];n&&(Y(n)||(n=[n]),D(n,function(a){H5(a)}))})}var Ght=Cm(Hht);function Hht(e){var t=nt();e.eachSeries(function(r){var n=r.get("stack");if(n){var a=t.get(n)||t.set(n,[]),i=r.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:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.push(o)}}),t.each(function(r){if(r.length!==0){var n=r[0].seriesModel,a=n.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&r.reverse(),D(r,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),Uht(r)}})}function Uht(e){D(e,function(t,r){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,c){var v=o.get(t.stackedDimension,c);if(isNaN(v))return a;var h,d;s?d=o.getRawIndex(c):h=o.get(t.stackedByDimension,c);for(var p=NaN,g=r-1;g>=0;g--){var y=e[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=rf(v,m),p=m;break}}}return n[0]=v,n[1]=p,n})})}var vw=function(){function e(t){this.data=t.data||(t.sourceFormat===Si?{}:[]),this.sourceFormat=t.sourceFormat||fX,this.seriesLayoutBy=t.seriesLayoutBy||vi,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var a=r[n];a.type==null&&x$(this,n)===Rr.Must&&(a.type="ordinal")}}return e}();function gP(e){return e instanceof vw}function sL(e,t,r){r=r||M$(e);var n=t.seriesLayoutBy,a=Yht(e,r,n,t.sourceHeader,t.dimensions),i=new vw({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:st(t)});return i}function yP(e){return new vw({data:e,sourceFormat:wn(e)?Vl:da})}function Fht(e){return new vw({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:st(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function M$(e){var t=fX;if(wn(e))t=Vl;else if(Y(e)){e.length===0&&(t=Lr);for(var r=0,n=e.length;r<n;r++){var a=e[r];if(a!=null){if(Y(a)||wn(a)){t=Lr;break}else if(pt(a)){t=pa;break}}}}else if(pt(e)){for(var i in e)if(it(e,i)&&Xr(e[i])){t=Si;break}}return t}function Yht(e,t,r,n,a){var i,o;if(!e)return{dimensionsDefine:Y5(a),startIndex:o,dimensionsDetectedCount:i};if(t===Lr){var s=e;n==="auto"||n==null?j5(function(u){u!=null&&u!=="-"&&(J(u)?o==null&&(o=1):o=0)},r,s,10):o=Ut(n)?n:n?1:0,!a&&o===1&&(a=[],j5(function(u,f){a[f]=u!=null?u+"":""},r,s,1/0)),i=a?a.length:r===Yc?s.length:s[0]?s[0].length:null}else if(t===pa)a||(a=jht(e));else if(t===Si)a||(a=[],D(e,function(u,f){a.push(f)}));else if(t===da){var l=Ed(e[0]);i=Y(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Y5(a),dimensionsDetectedCount:i}}function jht(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return kt(r)}function Y5(e){if(e){var t=nt();return X(e,function(r,n){r=pt(r)?r:{name:r};var a={name:r.name,displayName:r.displayName,type:r.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function j5(e,t,r,n){if(t===Yc)for(var a=0;a<r.length&&a<n;a++)e(r[a]?r[a][0]:null,a);else for(var i=r[0]||[],a=0;a<i.length&&a<n;a++)e(i[a],a)}function D$(e){var t=e.sourceFormat;return t===pa||t===Si}var Hu,Uu,Fu,Yu,X5,$5,E$=function(){function e(t,r){var n=gP(t)?t:yP(t);this._source=n;var a=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===Vl&&(this._offset=0,this._dimSize=r,this._data=a),$5(this,a,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;$5=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,v=l.dimensionsDefine,h=X5[mP(u,f)];if(U(o,h),u===Vl)o.getItem=r,o.count=a,o.fillStorage=n;else{var d=L$(u,f);o.getItem=rt(d,null,s,c,v);var p=O$(u,f);o.count=rt(p,null,s,c,v)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,v=0;v<c;v++){for(var h=u[v],d=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,y=l[v],m=0;m<g;m++){var _=f[m*c+v];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}h[0]=d,h[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};X5=(t={},t[Lr+"_"+vi]={pure:!0,appendData:i},t[Lr+"_"+Yc]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[pa]={pure:!0,appendData:i},t[Si]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[da]={appendData:i},t[Vl]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),V0=function(e){Y(e)||Hj("series.data or dataset.source must be an array.")};Hu={},Hu[Lr+"_"+vi]=V0,Hu[Lr+"_"+Yc]=V0,Hu[pa]=V0,Hu[Si]=function(e,t){for(var r=0;r<t.length;r++){var n=t[r].name;n==null&&Hj("dimension name must not be null/undefined.")}},Hu[da]=V0;var W5=function(e,t,r,n){return e[n]},Xht=(Uu={},Uu[Lr+"_"+vi]=function(e,t,r,n){return e[n+t]},Uu[Lr+"_"+Yc]=function(e,t,r,n,a){n+=t;for(var i=a||[],o=e,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},Uu[pa]=W5,Uu[Si]=function(e,t,r,n,a){for(var i=a||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?e[s]:null;i[o]=l?l[n]:null}return i},Uu[da]=W5,Uu);function L$(e,t){var r=Xht[mP(e,t)];return r}var Z5=function(e,t,r){return e.length},$ht=(Fu={},Fu[Lr+"_"+vi]=function(e,t,r){return Math.max(0,e.length-t)},Fu[Lr+"_"+Yc]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},Fu[pa]=Z5,Fu[Si]=function(e,t,r){var n=r[0].name,a=n!=null?e[n]:null;return a?a.length:0},Fu[da]=Z5,Fu);function O$(e,t){var r=$ht[mP(e,t)];return r}var NC=function(e,t,r){return e[t]},Wht=(Yu={},Yu[Lr]=NC,Yu[pa]=function(e,t,r){return e[r]},Yu[Si]=NC,Yu[da]=function(e,t,r){var n=Ed(e);return n instanceof Array?n[t]:n},Yu[Vl]=NC,Yu);function R$(e){var t=Wht[e];return t}function mP(e,t){return e===Lr?e+"_"+t:e}function nd(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var a=e.getStore(),i=a.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=a.getDimensionProperty(o);return R$(i)(n,o,s)}else{var l=n;return i===da&&(l=Ed(n)),l}}}}var Zht=/\{@(.+?)\}/g,hw=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),a=this.getRawValue(t,r),i=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,v=c==="series",h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:i,data:s,dataType:r,value:a,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,a,i,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),a!=null&&Y(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ut(i))return l.status=r,l.dimensionIndex=a,i(l);if(J(i)){var f=fP(i,l);return f.replace(Zht,function(c,v){var h=v.length,d=v;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var p=nd(s,t,d);if(o&&Y(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return nd(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function q5(e){var t,r;return pt(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function kg(e){return new qht(e)}var qht=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(c||h<d)){var p=this._progress;if(Y(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,d,l,u);else this._doProgress(p,h,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,a,i){K5.reset(r,n,a,i),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:K5.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),Y(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),K5=function(){var e,t,r,n,a,i={reset:function(l,u,f,c){t=l,e=u,r=f,n=c,a=Math.ceil(n/r),i.next=r>1&&n>0?s:o}};return i;function o(){return t<e?t++:null}function s(){var l=t%a*r+Math.ceil(t/a),u=t>=e?null:l<n?l:t;return t++,u}}();function Hl(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!Ut(e)&&e!=null&&e!=="-"&&(e=+Io(e)),e==null||e===""?NaN:Number(e))}var Kht=nt({number:function(e){return parseFloat(e)},time:function(e){return+Io(e)},trim:function(e){return J(e)?ea(e):e}});function I$(e){return Kht.get(e)}var P$={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},Qht=function(){function e(t,r){if(!Ut(r)){var n="";Zt(n)}this._opFn=P$[t],this._rvalFloat=So(r)}return e.prototype.evaluate=function(t){return Ut(t)?this._opFn(t,this._rvalFloat):this._opFn(So(t),this._rvalFloat)},e}(),N$=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=Ut(t)?t:So(t),a=Ut(r)?r:So(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=J(t),l=J(r);s&&(n=l?t:0),l&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},e}(),Jht=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=So(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=So(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function tdt(e,t){return e==="eq"||e==="ne"?new Jht(e==="eq",t):it(P$,e)?new Qht(e,t):null}function k$(e){var t="",r=-1/0,n=-1/0,a=1/0,i=1/0;return e&&(e.g!=null&&(t+="G"+e.g,r=e.g),e.ge!=null&&(t+="GE"+e.ge,n=e.ge),e.l!=null&&(t+="L"+e.l,a=e.l),e.le!=null&&(t+="LE"+e.le,i=e.le)),{key:t,g:r,ge:n,l:a,le:i}}function z$(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var edt=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Hl(t,r)},e}();function rdt(e,t){var r=new edt,n=e.data,a=r.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==vi&&Zt(o);var s=[],l={},u=e.dimensionsDefine;if(u)D(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";it(l,y)&&Zt(_),l[y]=m}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var c=L$(a,vi);t.__isBuiltIn&&(r.getRawDataItem=function(p){return c(n,i,s,p)},r.getRawData=rt(ndt,null,e)),r.cloneRawData=rt(adt,null,e);var v=O$(a,vi);r.count=rt(v,null,n,i,s);var h=R$(a);r.retrieveValue=function(p,g){var y=c(n,i,s,p);return d(y,g)};var d=r.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return h(p,g,y.name)}};return r.getDimensionInfo=rt(idt,null,s,l),r.cloneAllDimensionInfo=rt(odt,null,s),r}function ndt(e){var t=e.sourceFormat;if(!_P(t)){var r="";Zt(r)}return e.data}function adt(e){var t=e.sourceFormat,r=e.data;if(!_P(t)){var n="";Zt(n)}if(t===Lr){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}else if(t===pa){for(var a=[],i=0,o=r.length;i<o;i++)a.push(U({},r[i]));return a}}function idt(e,t,r){if(r!=null){if(Ut(r)||!isNaN(r)&&!it(t,r))return e[r];if(it(t,r))return t[r]}}function odt(e){return st(e)}var B$=nt();function sdt(e){e=st(e);var t=e.type,r="";t||Zt(r);var n=t.split(":");n.length!==2&&Zt(r);var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),e.__isBuiltIn=a,B$.set(t,e)}function ldt(e,t,r){var n=ue(e),a=n.length,i="";a||Zt(i);for(var o=0,s=a;o<s;o++){var l=n[o];t=udt(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function udt(e,t,r,n){var a="";t.length||Zt(a),pt(e)||Zt(a);var i=e.type,o=B$.get(i);o||Zt(a);var s=X(t,function(u){return rdt(u,o)}),l=ue(o.transform({upstream:s[0],upstreamList:s,config:st(e.config)}));return X(l,function(u,f){var c="";pt(u)||Zt(c),u.data||Zt(c);var v=M$(u.data);_P(v)||Zt(c);var h,d=t[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:vi,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:vi,sourceHeader:0,dimensions:u.dimensions};return sL(u.data,h,null)})}function _P(e){return e===Lr||e===pa}var fdt=typeof Uint32Array===Rd?Array:Uint32Array,cdt=typeof Uint16Array===Rd?Array:Uint16Array,V$=typeof Int32Array===Rd?Array:Int32Array,Q5=typeof Float64Array===Rd?Array:Float64Array,G$={float:Q5,int:V$,ordinal:Array,number:Array,time:Q5},kC;function vv(e){return e>65535?fdt:cdt}function vdt(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function J5(e,t,r,n,a){var i=G$[r||"float"];if(a){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new i(n)}var lL=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=nt()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=kC[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],D$(a),this._dimensions=X(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(t);if(i!=null){if(a[i].type===r)return i}else i=a.length;return a[i]={type:r},n.set(t,i),this._chunks[i]=new G$[r||"float"](this._rawCount),this._rawExtent[i]=kr(),i},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],a=this._dimensions[t],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[t]=kr());for(var l=i[t],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<i;u++){var f=a[u];J5(n,u,f.type,l,!0)}for(var c=[],v=s;v<l;v++)for(var h=v-s,d=0;d<i;d++){var f=a[d],p=kC.arrayRows.call(this,t[h]||c,f.property,h,d);n[d][v]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=X(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=kr()),J5(i,f,c.type,r,n)}if(a.fillStorage)a.fillStorage(t,r,i,l);else for(var v=[],h=t;h<r;h++){v=a.getItem(h,v);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(v,u[d],h,d);p[h]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],a=[];if(r==null){r=t,t=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=t;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var a=0,i=this.count();a<i;a++){var o=this.get(t,a);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)}),Er(r);var n=this.count();return n===0?0:n%2===1?r[(n-1)/2]:(r[n/2]+r[n/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(r[o]<t)a=o+1;else if(r[o]>t)i=o-1;else return o}return-1},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i<a;i++)t[i]=r[i]}else t=new n(r.buffer,0,a)}else{var n=vv(this._rawCount);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=vv(n._rawCount),o=new i(a),s=[],l=t.length,u=0,f=t[0],c=n._chunks,v=0;v<a;v++){var h=void 0,d=n.getRawIndex(v);if(l===0)h=r(v);else if(l===1){var p=c[f][d];h=r(p,v)}else{for(var g=0;g<l;g++)s[g]=c[t[g]][d];s[g]=v,h=r.apply(null,s)}h&&(o[u++]=d)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var a=kt(t),i=a.length;if(!i)return this;var o=r.count(),s=vv(r._rawCount),l=new s(o),u=0,f=a[0],c=t[f][0],v=t[f][1],h=r._chunks,d=!1;if(!r._indices){var p=0;if(i===1){for(var g=h[a[0]],y=0;y<n;y++){var m=g[y];(m>=c&&m<=v||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=h[a[0]],_=h[a[1]],S=t[a[1]][0],b=t[a[1]][1],y=0;y<n;y++){var m=g[y],x=_[y];(m>=c&&m<=v||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y<o;y++){var w=r.getRawIndex(y),m=h[a[0]][w];(m>=c&&m<=v||isNaN(m))&&(l[u++]=w)}else for(var y=0;y<o;y++){for(var T=!0,w=r.getRawIndex(y),C=0;C<i;C++){var A=a[C],m=h[A][w];(m<t[A][0]||m>t[A][1])&&(T=!1)}T&&(l[u++]=r.getRawIndex(y))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var a=t._chunks,i=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<r.length;f++)u[r[f]]=kr();for(var c=0;c<s;c++){for(var v=t.getRawIndex(c),h=0;h<o;h++)l[h]=a[r[h]][v];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=r[f],g=d[f],y=u[p],m=a[p];m&&(m[v]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,v,h=new(vv(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var S=this.getRawIndex(_),b=i[S];isNaN(b)||(m+=b)}m/=g-p;var x=d,w=Math.min(d+l,o),T=d-1,C=i[u];f=-1,v=x;for(var A=-1,M=0,_=x;_<w;_++){var S=this.getRawIndex(_),b=i[S];if(isNaN(b)){M++,A<0&&(A=S);continue}c=Math.abs((T-y)*(b-C)-(T-_)*(m-C)),c>f&&(f=c,v=S)}M>0&&M<w-x&&(h[s++]=Math.min(A,v),v=Math.max(A,v)),h[s++]=v,u=v}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(t,r){for(var n=this.clone([t],!0),a=n._chunks,i=Math.floor(1/r),o=a[t],s=this.count(),l=new(vv(this._rawCount))(Math.ceil(s/i)*2),u=0,f=0;f<s;f+=i){var c=f,v=o[this.getRawIndex(c)],h=f,d=o[this.getRawIndex(h)],p=i;f+i>s&&(p=s-f);for(var g=0;g<p;g++){var y=this.getRawIndex(f+g),m=o[y];m<v&&(v=m,c=f+g),m>d&&(d=m,h=f+g)}var _=this.getRawIndex(c),S=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},e.prototype.downSample=function(t,r,n,a){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/r),u=o[t],f=this.count(),c=i._rawExtent[t]=kr(),v=new(vv(this._rawCount))(Math.ceil(f/l)),h=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=n(s),m=this.getRawIndex(Math.min(d+a(s,y)||0,f-1));u[m]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),v[h++]=m}return i._count=h,i._indices=v,i._updateGetRawIdx(),i},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:r(i);break;case 1:r(a[t[0]][s],i);break;case 2:r(a[t[0]][s],a[t[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[t[l]][s];u[l]=i,r.apply(null,u)}}},e.prototype.getDataExtent=function(t,r){var n=this._chunks[t],a=kr();if(!n)return a;var i=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[t].slice();var s=this._extent,l=s[t]||(s[t]={}),u=k$(r),f=u.key,c=l[f];if(c)return c.slice();for(var v=a[0],h=a[1],d=0;d<i;d++){var p=this.getRawIndex(d),g=n[p];(!r||z$(u,g))&&(g<v&&(v=g),g>h&&(h=g))}return l[f]=[v,h]},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][r]);return n},e.prototype.clone=function(t,r){var n=new e,a=this._chunks,i=t&&Ya(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?vdt(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=st(this._extent),t._rawExtent=st(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var a=0;a<n;a++)r[a]=this._indices[a]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,a,i){return Hl(r[i],this._dimensions[i])}kC={arrayRows:t,objectRows:function(r,n,a,i){return Hl(r[n],this._dimensions[i])},keyedColumns:t,original:function(r,n,a,i){var o=r&&(r.value==null?r:r.value);return Hl(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}}(),e}(),H$=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,a,i;if(G0(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=wn(s)?Vl:da,i=[];var c=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=ot(c.seriesLayoutBy,v.seriesLayoutBy)||null,d=ot(c.sourceHeader,v.sourceHeader),p=ot(c.dimensions,v.dimensions),g=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;a=g?[sL(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(n){var m=this._applyTransform(r);a=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);a=[sL(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&eV(i)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var f=u.getSource(a||0),c="";a!=null&&!f&&eV(c),s.push(f),l.push(u._getVersionSign())}),n?o=ldt(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[Fht(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];G0(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new lL,s.initData(new E$(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(G0(t)){var r=hP(t);return r?[r.getSourceManager()]:[]}else return X(mht(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,a;if(G0(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;r=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},e}();function tV(e){var t=e.option.transform;t&&ly(e.option.transform)}function G0(e){return e.mainType==="series"}function eV(e){throw new Error(e)}var hdt="line-height:1";function U$(e){var t=e.lineHeight;return t==null?hdt:"line-height:"+rn(t+"")+"px"}function F$(e,t){var r=e.color||V.color.tertiary,n=e.fontSize||12,a=e.fontWeight||"400",i=e.color||V.color.secondary,o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+rn(n+"")+"px;color:"+rn(r)+";font-weight:"+rn(a+""),valueStyle:"font-size:"+rn(o+"")+"px;color:"+rn(i)+";font-weight:"+rn(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var ddt=[0,10,20,30],pdt=["",`
162
+ `,`
163
+
164
+ `,`
165
+
166
+
167
+ `];function Ke(e,t){return t.type=e,t}function uL(e){return e.type==="section"}function Y$(e){return uL(e)?gdt:ydt}function j$(e){if(uL(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return D(e.blocks,function(a){var i=j$(a);i>=t&&(t=i+ +(n&&(!i||uL(a)&&!a.noHeader)))}),t}return 0}function gdt(e,t,r,n){var a=t.noHeader,i=mdt(j$(t)),o=[],s=t.blocks||[];$r(!s||Y(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(it(u,l)){var f=new N$(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,g){var y=t.valueFormatter,m=Y$(p)(y?U(U({},e),{valueFormatter:y}):e,p,g>0?i.html:0,n);m!=null&&o.push(m)});var c=e.renderMode==="richText"?o.join(i.richText):fL(n,o.join(""),a?r:i.html);if(a)return c;var v=aL(t.header,"ordinal",e.useUTC),h=F$(n,e.renderMode).nameStyle,d=U$(n);return e.renderMode==="richText"?X$(e,v,h)+i.richText+c:fL(n,'<div style="'+h+";"+d+';">'+rn(v)+"</div>"+c,r)}function ydt(e,t,r,n){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(S){return S=Y(S)?S:[S],X(S,function(b,x){return aL(b,Y(h)?h[x]:h,u)})};if(!(i&&o)){var c=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||V.color.secondary,a),v=i?"":aL(l,"ordinal",u),h=t.valueType,d=o?[]:f(t.value,t.rawDataIndex),p=!s||!i,g=!s&&i,y=F$(n,a),m=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":c)+(i?"":X$(e,v,m))+(o?"":bdt(e,d,p,g,_)):fL(n,(s?"":c)+(i?"":_dt(v,!s,m))+(o?"":Sdt(d,p,g,_)),r)}}function rV(e,t,r,n,a,i){if(e){var o=Y$(e),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function mdt(e){return{html:ddt[e],richText:pdt[e]}}function fL(e,t,r){var n='<div style="clear:both"></div>',a="margin: "+r+"px 0 0",i=U$(e);return'<div style="'+a+";"+i+';">'+t+n+"</div>"}function _dt(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+rn(e)+"</span>"}function Sdt(e,t,r,n){var a=r?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=Y(e)?e:[e],'<span style="'+i+";"+n+'">'+X(e,function(o){return rn(o)}).join("&nbsp;&nbsp;")+"</span>"}function X$(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function bdt(e,t,r,n,a){var i=[a],o=n?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Y(t)?t.join(" "):t,i)}function $$(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return lc(n)}function W$(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var zC=function(){function e(){this.richTextStyles={},this._nextStyleNameId=DI()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var a=n==="richText"?this._generateStyleName():null,i=i$({color:r,type:t,renderMode:n,markerId:a});return J(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};Y(r)?D(r,function(i){return U(n,i)}):U(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},e}();function Z$(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(r),l=Y(s),u=$$(t,r),f,c,v,h;if(o>1||l&&!o){var d=xdt(s,t,r,i,u);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);h=f=nd(a,r,i[0]),c=p.type}else h=f=l?s[0]:s;var g=EI(t),y=g&&t.name||"",m=a.getName(r),_=n?y:m;return Ke("section",{header:y,noHeader:n||!g,sortParam:h,blocks:[Ke("nameValue",{markerType:"item",markerColor:u,name:_,noName:!ea(_),value:f,valueType:c,rawDataIndex:a.getRawIndex(r)})].concat(v||[])})}function xdt(e,t,r,n,a){var i=t.getData(),o=Ya(e,function(c,v,h){var d=i.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?D(n,function(c){f(nd(i,r,c),c)}):D(e,f);function f(c,v){var h=i.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(Ke("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ks=Tt();function H0(e,t){return e.getName(t)||e.getId(t)}var ES="__universalTransitionEnabled",ne=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=kg({count:Tdt,reset:Cdt}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=Ks(this).sourceManager=new H$(this);i.prepareSource();var o=this.getInitialData(r,a);aV(o,this),this.dataTask.context.data=o,Ks(this).dataBeforeProcessed=o,nV(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=xy(this),i=a?Wc(r):{},o=this.subType;Lt.hasClass(o)&&(o+="Series"),wt(r,n.getTheme().get(this.subType)),wt(r,this.getDefaultOption()),ec(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&wo(r,i,a)},t.prototype.mergeOption=function(r,n){r=wt(this.option,r,!0),this.fillDataTextStyle(r.data);var a=xy(this);a&&wo(this.option,r,a);var i=Ks(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);aV(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ks(this).dataBeforeProcessed=o,nV(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!wn(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&ec(r[a],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=cL(this);if(n){var a=n.context.data;return r==null||!a.getLinkedData?a:a.getLinkedData(r)}else return Ks(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=cL(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}Ks(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return nt(r)},t.prototype.getSourceManager=function(){return Ks(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ks(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.indicesOfNearest=function(r,n,a,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(a);i==null&&(i=1/0);for(var f=[],c=1/0,v=-1,h=0,d=o.getDimensionIndex(n),p=o.getStore(),g=0,y=p.count();g<y;g++){var m=p.get(d,g),_=l.dataToCoord(m),S=u-_,b=Math.abs(S);b<=i&&((b<c||b===c&&S>=0&&v<0)&&(c=b,v=S,h=0),S===v&&(f[h++]=g))}return f.length=h,f},t.prototype.formatTooltip=function(r,n,a){return Z$({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Vt.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,o=dP.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=H0(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var a=[],i=0;i<r.length;i++)a[0]=r[i],this.isSelected(r[i],n)?this.unselect(a,n):this.select(a,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=kt(r),a=[],i=0;i<n.length;i++){var o=r[n[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[H0(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[ES])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){pt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],v=H0(r,c);u[v]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=n[l-1],v=H0(r,h);o.selectedMap=(a={},a[v]=!0,a),this._selectedDataIndicesMap=(i={},i[v]=r.getRawIndex(h),i)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var i=r.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return Lt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(Lt);We(ne,hw);We(ne,dP);Qj(ne,Lt);function nV(e){var t=e.name;EI(e)||(e.name=wdt(e)||t)}function wdt(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function Tdt(e){return e.model.getRawData().count()}function Cdt(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Adt}function Adt(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function aV(e,t){D(qh(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,At(Mdt,t))})}function Mdt(e,t){var r=cL(e);return r&&r.setOutputEnd((t||this).count()),t}function cL(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(e.uid))}return n}}var fe=function(){function e(){this.group=new ct,this.uid=$c("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){},e.prototype.updateLayout=function(t,r,n,a){},e.prototype.updateVisual=function(t,r,n,a){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();RI(fe);Jx(fe);function Zc(){var e=Tt();return function(t){var r=e(t),n=t.pipelineContext,a=!!r.large,i=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var q$=Tt(),Ddt=Zc(),ee=function(){function e(){this.group=new ct,this.uid=$c("viewChart"),this.renderTask=kg({plan:Edt,reset:Ldt}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.highlight=function(t,r,n,a){var i=t.getData(a&&a.dataType);i&&oV(i,a,"emphasis")},e.prototype.downplay=function(t,r,n,a){var i=t.getData(a&&a.dataType);i&&oV(i,a,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateVisual=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.eachRendered=function(t){gu(this.group,t)},e.markUpdateMethod=function(t,r){q$(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function iV(e,t,r){e&&_y(e)&&(t==="emphasis"?Ds:Es)(e,r)}function oV(e,t,r){var n=rc(e,t),a=t&&t.highlightKey!=null?evt(t.highlightKey):null;n!=null?D(ue(n),function(i){iV(e.getItemGraphicEl(i),r,a)}):e.eachItemGraphicEl(function(i){iV(i,r,a)})}RI(ee);Jx(ee);function Edt(e){return Ddt(e.model)}function Ldt(e){var t=e.model,r=e.ecModel,n=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&q$(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,a),Odt[l]}var Odt={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)}}},eb="\0__throttleOriginMethod",sV="\0__throttleRate",lV="\0__throttleType";function dw(e,t,r){var n,a=0,i=0,o=null,s,l,u,f;t=t||0;function c(){i=new Date().getTime(),o=null,e.apply(l,u||[])}var v=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=new Date().getTime(),l=this,u=h;var p=f||t,g=f||r;f=null,s=n-(g?a:i)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),a=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){f=h},v}function Ud(e,t,r,n){var a=e[t];if(a){var i=a[eb]||a,o=a[lV],s=a[sV];if(s!==r||o!==n){if(r==null||!n)return e[t]=i;a=e[t]=dw(i,r,n==="debounce"),a[eb]=i,a[lV]=n,a[sV]=r}return a}}function Ty(e,t){var r=e[t];r&&r[eb]&&(r.clear&&r.clear(),e[t]=r[eb])}var uV=Tt(),fV={itemStyle:ac(WX,!0),lineStyle:ac($X,!0)},Rdt={lineStyle:"stroke",itemStyle:"fill"};function K$(e,t){var r=e.visualStyleMapper||fV[t];return r||(console.warn("Unknown style type '"+t+"'."),fV.itemStyle)}function Q$(e,t){var r=e.visualDrawType||Rdt[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var Idt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=e.getModel(n),i=K$(e,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Q$(e,n),u=o[l],f=ut(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var v=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=v,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ut(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||ut(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=e.getDataParams(d),g=U({},o);g[l]=f(p),h.setItemVisual(d,"style",g)}}}},yp=new Ot,Pdt={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=K$(e,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){yp.option=l[n];var u=a(yp),f=o.ensureUniqueItemVisual(s,"style");U(f,u),yp.option.decal&&(o.setItemVisual(s,"decal",yp.option.decal),yp.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Ndt={performRawSeries:!0,overallReset:function(e){var t=nt();e.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.type+"-"+r.getColorBy();uV(r).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.getRawData(),a={},i=r.getData(),o=uV(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Q$(r,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var v=i.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",d=n.count();v[l]=r.getColorFromPalette(h,o,d)}})}})}},U0=Math.PI;function kdt(e,t){t=t||{},dt(t,{text:"loading",textColor:V.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:V.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new ct,n=new Et({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var a=new Ht({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new Et({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(i);var o;return t.showSpinner&&(o=new Dm({shape:{startAngle:-U0/2,endAngle:-U0/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:U0*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:U0*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var J$=function(){function e(t,r,n,a){this._stageTaskMap=nt(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),a=t.__preparePipelineContext?t.__preparePipelineContext(r,n):qj(t,r,n);t.pipelineContext=n.context=a},e.prototype.restorePipelines=function(t,r){var n=this,a=n._pipelineMap=nt();r.eachSeries(function(i){var o=t.painter.type==="canvas"&&i.getProgressive(),s=i.uid;a.set(s,{id:s,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;D(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";$r(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},e.prototype.prepareView=function(t,r,n,a){var i=t.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(r,i)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,a){a=a||{};var i=!1,o=this;D(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,v=f.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,n);var p=o.getPerformArgs(v,a.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(i=!0)}else c&&c.each(function(g,y){s(a,g)&&g.dirty();var m=o.getPerformArgs(g,a.block);m.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=nt(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(c){var v=c.uid,h=s.set(v,o&&o.get(v)||kg({plan:Hdt,reset:Udt,count:Ydt}));h.context={model:c,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,h)}},e.prototype._createOverallStageTask=function(t,r,n,a){var i=this,o=r.overallTask=r.overallTask||kg({reset:zdt});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=nt(),u=t.seriesType,f=t.getTargetSeries,c=t.dirtyOnOverallProgress,v=!1,h="";$r(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):D(n.getSeries(),d);function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(v=!0,kg({reset:Bdt,onDirty:Gdt})));y.context={model:p,dirtyOnOverallProgress:c},y.agent=o,y.__block=c,i._pipe(p,y)}v&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},e.wrapStageHandler=function(t,r){return ut(t)&&(t={overallReset:t,seriesType:jdt(t)}),t.uid=$c("stageHandler"),r&&(t.visualType=r),t},e}();function zdt(e){e.overallReset(e.ecModel,e.api,e.payload)}function Bdt(e){return e.dirtyOnOverallProgress&&Vdt}function Vdt(){this.agent.dirty(),this.getDownstream().dirty()}function Gdt(){this.agent&&this.agent.dirty()}function Hdt(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Udt(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ue(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?X(t,function(r,n){return tW(n)}):Fdt}var Fdt=tW(0);function tW(e){return function(t,r){var n=r.data,a=r.resetDefines[e];if(a&&a.dataEach)for(var i=t.start;i<t.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(t,n)}}function Ydt(e){return e.data.count()}function jdt(e){rb=null;try{e(Cy,eW)}catch{}return rb}var Cy={},eW={},rb;rW(Cy,pP);rW(eW,vX);Cy.eachSeriesByType=Cy.eachRawSeriesByType=function(e){rb=e};Cy.eachComponent=function(e){e.mainType==="series"&&e.subType&&(rb=e.subType)};function rW(e,t){for(var r in t.prototype)e[r]=Pe}var ft=V.darkColor,cV=ft.background,mp=function(){return{axisLine:{lineStyle:{color:ft.axisLine}},splitLine:{lineStyle:{color:ft.axisSplitLine}},splitArea:{areaStyle:{color:[ft.backgroundTint,ft.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:ft.axisMinorSplitLine}},axisLabel:{color:ft.axisLabel},axisName:{}}},vV={label:{color:ft.secondary},itemStyle:{borderColor:ft.borderTint},dividerLineStyle:{color:ft.border}},nW={darkMode:!0,color:ft.theme,backgroundColor:cV,axisPointer:{lineStyle:{color:ft.border},crossStyle:{color:ft.borderShade},label:{color:ft.tertiary}},legend:{textStyle:{color:ft.secondary},pageTextStyle:{color:ft.tertiary}},textStyle:{color:ft.secondary},title:{textStyle:{color:ft.primary},subtextStyle:{color:ft.quaternary}},toolbox:{iconStyle:{borderColor:ft.accent50},feature:{dataView:{backgroundColor:cV,textColor:ft.primary,textareaColor:ft.background,textareaBorderColor:ft.border,buttonColor:ft.accent50,buttonTextColor:ft.neutral00}}},tooltip:{backgroundColor:ft.neutral20,defaultBorderColor:ft.border,textStyle:{color:ft.tertiary}},dataZoom:{borderColor:ft.accent10,textStyle:{color:ft.tertiary},brushStyle:{color:ft.backgroundTint},handleStyle:{color:ft.neutral00,borderColor:ft.accent20},moveHandleStyle:{color:ft.accent40},emphasis:{handleStyle:{borderColor:ft.accent50}},dataBackground:{lineStyle:{color:ft.accent30},areaStyle:{color:ft.accent20}},selectedDataBackground:{lineStyle:{color:ft.accent50},areaStyle:{color:ft.accent30}}},visualMap:{textStyle:{color:ft.secondary},handleStyle:{borderColor:ft.neutral30}},timeline:{lineStyle:{color:ft.accent10},label:{color:ft.tertiary},controlStyle:{color:ft.accent30,borderColor:ft.accent30}},calendar:{itemStyle:{color:ft.neutral00,borderColor:ft.neutral20},dayLabel:{color:ft.tertiary},monthLabel:{color:ft.secondary},yearLabel:{color:ft.secondary}},matrix:{x:vV,y:vV,backgroundColor:{borderColor:ft.axisLine},body:{itemStyle:{borderColor:ft.borderTint}}},timeAxis:mp(),logAxis:mp(),valueAxis:mp(),categoryAxis:mp(),line:{symbol:"circle"},graph:{color:ft.theme},gauge:{title:{color:ft.secondary},axisLine:{lineStyle:{color:[[1,ft.neutral05]]}},axisLabel:{color:ft.axisLabel},detail:{color:ft.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:ft.background}},radar:function(){var e=mp();return e.axisName={color:ft.axisLabel},e.axisLine.lineStyle.color=ft.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:ft.neutral20,textStyle:{color:ft.secondary}},emphasis:{itemStyle:{color:ft.neutral30}}}},sunburst:{itemStyle:{borderColor:ft.background}},map:{itemStyle:{borderColor:ft.border,areaColor:ft.neutral10},label:{color:ft.tertiary},emphasis:{label:{color:ft.primary},itemStyle:{areaColor:ft.highlight}},select:{label:{color:ft.primary},itemStyle:{areaColor:ft.highlight}}},geo:{itemStyle:{borderColor:ft.border,areaColor:ft.neutral10},emphasis:{label:{color:ft.primary},itemStyle:{areaColor:ft.highlight}},select:{label:{color:ft.primary},itemStyle:{color:ft.highlight}}}};nW.categoryAxis.splitLine.show=!1;var Xdt=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},a={};if(J(t)){var i=qi(t);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};D(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var v=o[c],h=u.lastIndexOf(v);if(h>0&&h===u.length-v.length){var d=u.slice(0,h);d!=="data"&&(r.mainType=d,r[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,a,i));function f(c,v,h,d){return c[h]==null||v[d||h]===c[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),vL=["symbol","symbolSize","symbolRotate","symbolOffset"],hV=vL.concat(["symbolKeepAspect"]),$dt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<vL.length;o++){var s=vL[o],l=e.get(s);ut(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(U({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=kt(a);function f(c,v){for(var h=e.getRawValue(v),d=e.getDataParams(v),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(v,g,a[g](h,d))}}return{dataEach:i?f:null}}},Wdt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<hV.length;s++){var l=hV[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function SP(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function Im(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function aW(e,t,r,n){switch(r){case"color":var a=e.ensureUniqueItemVisual(t,"style");a[e.getVisual("drawType")]=n,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,r,n);break}}function iW(e,t){function r(n,a){var i=[];return n.eachComponent({mainType:"series",subType:e,query:a},function(o){i.push(o.seriesIndex)}),i}D([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(a,i,o){a=U({},a),o.dispatchAction(U(a,{type:n[1],seriesIndex:r(i,a)}))})})}function hv(e,t,r,n,a){var i=e+t;r.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),v=rc(c,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:Y(v)?c.getName(v[0]):c.getName(v),selected:J(l)?l:U({},l)})}})}function Zdt(e,t,r){e.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(hv("map","selectchanged",t,a,n),hv("pie","selectchanged",t,a,n)):n.fromAction==="select"?(hv("map","selected",t,a,n),hv("pie","selected",t,a,n)):n.fromAction==="unselect"&&(hv("map","unselected",t,a,n),hv("pie","unselected",t,a,n))})}function bf(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var ba=new Za,oW={};function qdt(e,t){oW[e]=t}function sW(e){return oW[e]}var lW={};function uW(e,t){lW[e]=t}function Kdt(e){return lW[e]}var pw=Tt();function Qdt(e){pw(e).prepare={}}function Jdt(e){pw(e).fullUpdate={}}function fW(e){return pw(e).prepare}function Fd(e){return pw(e).fullUpdate}var tpt=Math.round(Math.random()*9),ept=typeof Object.defineProperty=="function",rpt=function(){function e(){this._id="__ec_inner_"+tpt++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return ept?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}(),npt=Rt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n+i),e.lineTo(r-a,n+i),e.closePath()}}),apt=Rt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n),e.lineTo(r,n+i),e.lineTo(r-a,n),e.closePath()}}),ipt=Rt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),v=Math.cos(u),h=o*.6,d=o*.7;e.moveTo(r-f,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+f-c*h,l+s+v*h,r,n-d,r,n),e.bezierCurveTo(r,n-d,r-f+c*h,l+s+v*h,r-f,l+s),e.closePath()}}),opt=Rt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,a=t.x,i=t.y,o=n/3*2;e.moveTo(a,i),e.lineTo(a+o,i+r),e.lineTo(a,i+r/4*3),e.lineTo(a-o,i+r),e.lineTo(a,i),e.closePath()}}),spt={line:je,rect:Et,roundRect:Et,square:Et,circle:Po,diamond:apt,pin:ipt,arrow:opt,triangle:npt},lpt={line:function(e,t,r,n,a){a.x1=e,a.y1=t+n/2,a.x2=e+r,a.y2=t+n/2},rect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n},roundRect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(e,t,r,n,a){var i=Math.min(r,n);a.x=e,a.y=t,a.width=i,a.height=i},circle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.r=Math.min(r,n)/2},diamond:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n},pin:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},arrow:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},triangle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n}},nb={};D(spt,function(e,t){nb[t]=new e});var upt=Rt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=H1(e,t,r),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var a=nb[n];a||(n="rect",a=nb[n]),lpt[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,r)}}});function fpt(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||V.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function $e(e,t,r,n,a,i,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=YI(e.slice(8),new vt(t,r,n,a),o?"center":"cover"):e.indexOf("path://")===0?l=ed(e.slice(7),{},new vt(t,r,n,a),o?"center":"cover"):l=new upt({shape:{symbolType:e,x:t,y:r,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=fpt,i&&l.setColor(i),l}function Yd(e){return Y(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function qc(e,t){if(e!=null)return Y(e)||(e=[e,e]),[et(e[0],t[0])||0,et(ot(e[1],e[0]),t[1])||0]}function xf(e){return isFinite(e)}function cpt(e,t,r){var n=t.x==null?0:t.x,a=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,a=a*r.width+r.x,i=i*r.height+r.y,o=o*r.height+r.y),n=xf(n)?n:0,a=xf(a)?a:1,i=xf(i)?i:0,o=xf(o)?o:0;var s=e.createLinearGradient(n,i,a,o);return s}function vpt(e,t,r){var n=r.width,a=r.height,i=Math.min(n,a),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*a+r.y,l=l*i),o=xf(o)?o:.5,s=xf(s)?s:.5,l=l>=0&&xf(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function hL(e,t,r){for(var n=t.type==="radial"?vpt(e,t,r):cpt(e,t,r),a=t.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function hpt(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function F0(e){return parseInt(e,10)}function oh(e,t,r){var n=["width","height"][t],a=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[a]||F0(s[n])||F0(e.style[n]))-(F0(s[i])||0)-(F0(s[o])||0)||0}function dpt(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Ut(e)?[e]:Y(e)?e:null}function bP(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&dpt(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(r=X(r,function(i){return i/a}),n/=a)}return[r,n]}var ppt=new bo(!0);function ab(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function dV(e){return typeof e=="string"&&e!=="none"}function ib(e){var t=e.fill;return t!=null&&t!=="none"}function pV(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function gV(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function dL(e,t,r){var n=II(t.image,t.__image,r);if(tw(n)){var a=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Cg),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function gpt(e,t,r,n,a){var i,o=ab(r),s=ib(r),l=r.strokePercent,u=l<1,f=!t.path;(!t.silent||u)&&f&&t.createPathProxy();var c=t.path||ppt,v=t.__dirty;if(!n){var h=r.fill,d=r.stroke,p=s&&!!h.colorStops,g=o&&!!d.colorStops,y=s&&!!h.image,m=o&&!!d.image,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0;(p||g)&&(w=t.getBoundingRect()),p&&(_=v?hL(e,h,w):t.__canvasFillGradient,t.__canvasFillGradient=_),g&&(S=v?hL(e,d,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=S),y&&(b=v||!t.__canvasFillPattern?dL(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=b),m&&(x=v||!t.__canvasStrokePattern?dL(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),p?e.fillStyle=_:y&&(b?e.fillStyle=b:s=!1),g?e.strokeStyle=S:m&&(x?e.strokeStyle=x:o=!1)}var T=t.getGlobalScale();c.setScale(T[0],T[1],t.segmentIgnoreThreshold);var C,A;e.setLineDash&&r.lineDash&&(i=bP(t),C=i[0],A=i[1]);var M=!0;(f||v&kv)&&(c.setDPR(e.dpr),u?c.setContext(null):(c.setContext(e),M=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),M&&c.rebuildPath(e,u?l:1),C&&(e.setLineDash(C),e.lineDashOffset=A),n?(a.batchFill=s,a.batchStroke=o):r.strokeFirst?(o&&gV(e,r),s&&pV(e,r)):(s&&pV(e,r),o&&gV(e,r)),C&&e.setLineDash([])}function ypt(e,t,r){var n=t.__image=II(r.image,t.__image,t,t.onload);if(!(!n||!tw(n))){var a=r.x||0,i=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;e.drawImage(n,u,f,r.sWidth,r.sHeight,a,i,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,v=s-f;e.drawImage(n,u,f,c,v,a,i,o,s)}else e.drawImage(n,a,i,o,s)}}function mpt(e,t,r){var n,a=r.text;if(a!=null&&(a+=""),a){e.font=r.font||Ts,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var i=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=bP(t),i=n[0],o=n[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),r.strokeFirst?(ab(r)&&e.strokeText(a,r.x,r.y),ib(r)&&e.fillText(a,r.x,r.y)):(ib(r)&&e.fillText(a,r.x,r.y),ab(r)&&e.strokeText(a,r.x,r.y)),i&&e.setLineDash([])}}var yV=["shadowBlur","shadowOffsetX","shadowOffsetY"],mV=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function cW(e,t,r,n,a){var i=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){mn(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Of.opacity:o}(n||t.blend!==r.blend)&&(i||(mn(e,a),i=!0),e.globalCompositeOperation=t.blend||Of.blend);for(var s=0;s<yV.length;s++){var l=yV[s];(n||t[l]!==r[l])&&(i||(mn(e,a),i=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(i||(mn(e,a),i=!0),e.shadowColor=t.shadowColor||Of.shadowColor),i}function _V(e,t,r,n,a){var i=t.style,o=n?null:r&&r.style||{};if(i===o)return!1;var s=cW(e,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(mn(e,a),s=!0),dV(i.fill)&&(e.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(mn(e,a),s=!0),dV(i.stroke)&&(e.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(mn(e,a),s=!0),e.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(mn(e,a),s=!0),e.lineWidth=u)}for(var f=0;f<mV.length;f++){var c=mV[f],v=c[0];(n||i[v]!==o[v])&&(s||(mn(e,a),s=!0),e[v]=i[v]||c[1])}return s}function _pt(e,t,r,n,a){return cW(e,t.style,r&&r.style,n,a)}function vW(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function Spt(e,t,r){for(var n=!1,a=0;a<e.length;a++){var i=e[a];n=n||i.isZeroArea(),vW(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}r.allClipped=n}function bpt(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var SV=1,bV=2,xV=3,wV=4;function xpt(e){var t=ib(e),r=ab(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function mn(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function xP(e,t){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};wf(e,t,r),Dh(e,r)}function wf(e,t,r){var n=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Pn,t.__isRendered=!1;return}var a=t.__clipPaths,i=r.prevElClipPaths,o=t.style,s=!1,l=!1;if((!i||hpt(a,i))&&(i&&(mn(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(mn(e,r),e.save(),Spt(a,e,r),s=!0,r.prevElClipPaths=a)),r.allClipped){t.__dirty&=~Pn,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(r.beforeBrushParam),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=t instanceof Rt&&t.autoBatch&&xpt(o);s||bpt(n,u.transform)?(mn(e,r),vW(e,t)):f||mn(e,r),t instanceof Rt?(r.lastDrawType!==SV&&(l=!0,r.lastDrawType=SV),_V(e,t,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),gpt(e,t,o,f,r)):t instanceof td?(r.lastDrawType!==xV&&(l=!0,r.lastDrawType=xV),_V(e,t,u,l,r),mpt(e,t,o)):t instanceof mr?(r.lastDrawType!==bV&&(l=!0,r.lastDrawType=bV),_pt(e,t,u,l,r),ypt(e,t,o)):t.getTemporalDisplayables&&(r.lastDrawType!==wV&&(l=!0,r.lastDrawType=wV),wpt(e,t,r)),t.innerAfterBrush(),t.afterBrush&&(f&&mn(e,r),t.afterBrush()),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Dh(e,t){mn(e,t),t.prevElClipPaths&&e.restore()}function wpt(e,t,r){var n=t.getDisplayables(),a=t.getTemporalDisplayables();e.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),wf(e,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}Dh(e,i);for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),wf(e,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}Dh(e,i),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var BC=new rpt,TV=new Qh(100),CV=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ad(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";e.dirty&&BC.delete(e);var i=BC.get(e);if(i)return i;var o=dt(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/r,BC.set(e,s),e.dirty=!1,s;function l(u){for(var f=[r],c=!0,v=0;v<CV.length;++v){var h=o[CV[v]];if(h!=null&&!Y(h)&&!J(h)&&!Ut(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(a?"-svg":"");var p=TV.get(d);p&&(a?u.svgElement=p:u.image=p)}var g=dW(o.dashArrayX),y=Tpt(o.dashArrayY),m=hW(o.symbol),_=Cpt(g),S=pW(y),b=!a&&hr.createCanvas(),x=a&&{tag:"g",attrs:{},key:"dcl",children:[]},w=C(),T;b&&(b.width=w.width*r,b.height=w.height*r,T=b.getContext("2d")),A(),c&&TV.put(d,b||x),u.image=b,u.svgElement=x,u.svgWidth=w.width,u.svgHeight=w.height;function C(){for(var M=1,L=0,E=_.length;L<E;++L)M=G3(M,_[L]);for(var R=1,L=0,E=m.length;L<E;++L)R=G3(R,m[L].length);M*=R;var I=S*_.length*m.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(I,o.maxTileHeight))}}function A(){T&&(T.clearRect(0,0,b.width,b.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,b.width,b.height)));for(var M=0,L=0;L<y.length;++L)M+=y[L];if(M<=0)return;for(var E=-S,R=0,I=0,O=0;E<w.height;){if(R%2===0){for(var N=I/2%m.length,P=0,z=0,B=0;P<w.width*2;){for(var H=0,L=0;L<g[O].length;++L)H+=g[O][L];if(H<=0)break;if(z%2===0){var F=(1-o.symbolSize)*.5,$=P+g[O][z]*F,j=E+y[R]*F,tt=g[O][z]*o.symbolSize,mt=y[R]*o.symbolSize,Nt=B/2%m[N].length;Q($,j,tt,mt,m[N][Nt])}P+=g[O][z],++B,++z,z===g[O].length&&(z=0)}++O,O===g.length&&(O=0)}E+=y[R],++I,++R,R===y.length&&(R=0)}function Q(q,ht,K,at,bt){var Mt=a?1:r,zt=$e(bt,q*Mt,ht*Mt,K*Mt,at*Mt,o.color,o.symbolKeepAspect);if(a){var $t=n.painter.renderOneToVNode(zt);$t&&x.children.push($t)}else xP(T,zt)}}}}function hW(e){if(!e||e.length===0)return[["rect"]];if(J(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!J(e[r])){t=!1;break}if(t)return hW([e]);for(var n=[],r=0;r<e.length;++r)J(e[r])?n.push([e[r]]):n.push(e[r]);return n}function dW(e){if(!e||e.length===0)return[[0,0]];if(Ut(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!Ut(e[n])){r=!1;break}if(r)return dW([e]);for(var a=[],n=0;n<e.length;++n)if(Ut(e[n])){var t=Math.ceil(e[n]);a.push([t,t])}else{var t=X(e[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function Tpt(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Ut(e)){var t=Math.ceil(e);return[t,t]}var r=X(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function Cpt(e){return X(e,function(t){return pW(t)})}function pW(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}var Apt=Cm(Mpt);function Mpt(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=ad(s,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=ad(a,t)}}})}var Dpt="6.1.0",Ept={zrender:"6.1.0"},Lpt=1,Opt=800,Rpt=900,Ipt=920,Ppt=1e3,Npt=2e3,AV=5e3,gW=1e3,kpt=1100,wP=2e3,yW=3e3,zpt=4e3,gw=4500,Bpt=4600,Vpt=5e3,Gpt=6e3,mW=7e3,_W={PROCESSOR:{SERIES_FILTER:Opt,AXIS_STATISTICS:Ipt,FILTER:Ppt,STATISTIC:AV,STATISTICS:AV},VISUAL:{LAYOUT:gW,PROGRESSIVE_LAYOUT:kpt,GLOBAL:wP,CHART:yW,POST_CHART_LAYOUT:Bpt,COMPONENT:zpt,BRUSH:Vpt,CHART_ITEM:gw,ARIA:Gpt,DECAL:mW}},Qe="__flagInMainProcess",Y0="__mainProcessVersion",_r="__pendingUpdate",VC="__needsUpdateStatus",MV=/^[a-zA-Z0-9_]+$/,GC="__connectUpdateStatus",DV=0,Hpt=1,Upt=2;function SW(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return xW(this,e,t)}}function bW(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return xW(this,e,t)}}function xW(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Za.prototype[t].apply(e,r)}var wW=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Za),TW=wW.prototype;TW.on=bW("on");TW.off=bW("off");var ju,HC,j0,Ho,X0,UC,FC,dv,pv,EV,LV,YC,OV,$0,RV,CW,ya,IV,gv,ob=function(e){G(t,e);function t(r,n,a){var i=e.call(this,new Xdt)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},i.__v_skip=!0,i._dom=r;var o="canvas",s="auto",l=!1;i[Y0]=1,a.ssr&&Nj(function(v){var h=yt(v),d=h.dataIndex;if(d!=null){var p=nt();return p.set("series_index",h.seriesIndex),p.set("data_index",d),h.ssrType&&p.set("ssr_type",h.ssrType),p}});var u=i._zr=kE(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:ot(a.useDirtyRect,l),useCoarsePointer:ot(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=dw(rt(u.flush,u),17),i._updateTheme(n),i._locale=Wvt(a.locale||ZX),i._coordSysMgr=new Hd;var f=i._api=RV(i);function c(v,h){return v.__prio-h.__prio}return vS(lb,c),vS(yL,c),i._scheduler=new J$(i,f,yL,lb),i._messageCenter=new wW,i._initEvents(),i.resize=rt(i.resize,i),u.animation.on("frame",i._onframe,i),EV(u,i),LV(u,i),ly(i),i}return t.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,n=this._model,a=this._api;if(IV(this),this[_r]){var i=this[_r].silent;this[Qe]=!0,gv(this);try{ju(this),Ho.update.call(this,null,this[_r].updateParams)}catch(l){throw this[Qe]=!1,this[_r]=null,l}this._zr.flush(),this[Qe]=!1,this[_r]=null,dv.call(this,i),pv.call(this,i)}else if(r.unfinished){var o=Lpt;do{r.unfinished=!1;var s=hr.getTime();r.performSeriesTasks(n),r.performDataProcessorTasks(n),UC(this,n),r.performVisualTasks(n),$0(this,this._model,a,"remain",{}),o-=hr.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,a){if(!this[Qe]){if(this._disposed){this.id;return}var i,o,s;if(pt(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Qe]=!0,gv(this),!this._model||n){var l=new Dht(this._api),u=this._theme,f=this._model=new pP;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},mL);var c={seriesTransition:s,optionChanged:!0};if(a)this[_r]={silent:i,updateParams:c},this[Qe]=!1,this.getZr().wakeUp();else{try{ju(this),Ho.update.call(this,null,c)}catch(v){throw this[_r]=null,this[Qe]=!1,v}this._ssr||this._zr.flush(),this[_r]=null,this[Qe]=!1,dv.call(this,i),pv.call(this,i)}}},t.prototype.setTheme=function(r,n){if(!this[Qe]){if(this._disposed){this.id;return}var a=this._model;if(a){var i=n&&n.silent,o=null;this[_r]&&(i==null&&(i=this[_r].silent),o=this[_r].updateParams,this[_r]=null),this[Qe]=!0,gv(this);try{this._updateTheme(r),a.setTheme(this._theme),ju(this),Ho.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Qe]=!1,s}this[Qe]=!1,dv.call(this,i),pv.call(this,i)}}},t.prototype._updateTheme=function(r){J(r)&&(r=AW[r]),r&&(r=st(r),r&&A$(r,!0),this._theme=r)},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||Vt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return D(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],o=this;D(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return D(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(ub[a]){var l=s,u=s,f=-s,c=-s,v=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();D(Nf,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(st(r)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),c=o(x.bottom,c),v.push({dom:b,left:x.left,top:x.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,p=c-u,g=hr.createCanvas(),y=kE(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return D(v,function(_){var S=_.left-l,b=_.top-u;m+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new Et({shape:{x:0,y:0,width:d,height:p},style:{fill:r.connectedBackgroundColor}})),D(v,function(_){var S=new mr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n,a){return X0(this,"convertToPixel",r,n,a)},t.prototype.convertToLayout=function(r,n,a){return X0(this,"convertToLayout",r,n,a)},t.prototype.convertFromPixel=function(r,n,a){return X0(this,"convertFromPixel",r,n,a)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var a=this._model,i,o=wh(a,r);return D(o,function(s,l){l.indexOf("Models")>=0&&D(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(r,n){var a=this._model,i=wh(a,r,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?SP(s,l,n):Im(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;D(Fpt,function(a){var i=function(o){var s=r.getModel(),l=o.target,u,f=a==="globalout";if(f?u={}:l&&bf(l,function(p){var g=yt(p);if(g&&g.dataIndex!=null){var y=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=y&&y.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=U({},g.eventData),!0},!0),u){var c=u.componentType,v=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",v=u.seriesIndex);var h=c&&v!=null&&s.getComponent(c,v),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=a,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},r.trigger(a,u)}};i.zrEventfulCallAtLast=!0,r._zr.on(a,i,r)});var n=this._messageCenter;D(gL,function(a,i){n.on(i,function(o){r.trigger(i,o)})}),Zdt(n,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Xj(this.getDom(),CP,"");var n=this,a=n._api,i=n._model;D(n._componentsViews,function(o){o.dispose(i,a)}),D(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Nf[n.id]},t.prototype.resize=function(r){if(!this[Qe]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=r&&r.silent;this[_r]&&(i==null&&(i=this[_r].silent),a=!0,this[_r]=null),this[Qe]=!0,gv(this);try{a&&ju(this),Ho.update.call(this,{type:"resize",animation:U({duration:0},r&&r.animation)})}catch(o){throw this[Qe]=!1,o}this[Qe]=!1,dv.call(this,i),pv.call(this,i)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(pt(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!_L[r]){var a=_L[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=U({},r);return n.type=pL[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(pt(n)||(n={silent:!!n}),!!sb[r.type]&&this._model){if(this[Qe]){this._pendingActions.push(r);return}var a=n.silent;FC.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&Vt.browser.weChat&&this._throttledZrFlush(),dv.call(this,a),pv.call(this,a)}},t.prototype.updateLabelLayout=function(){ba.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){ju=function(c){Qdt(c._model);var v=c._scheduler;v.restorePipelines(c._zr,c._model),v.prepareStageTasks(),HC(c,!0),HC(c,!1),v.plan()},HC=function(c,v){for(var h=c._model,d=c._scheduler,p=v?c._componentsViews:c._chartsViews,g=v?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,_=0;_<p.length;_++)p[_].__alive=!1;v?h.eachComponent(function(x,w){x!=="series"&&S(w)}):h.eachSeries(S);function S(x){var w=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,C=!w&&g[T];if(!C){var A=qi(x.type),M=v?fe.getClass(A.main,A.sub):ee.getClass(A.sub);C=new M,C.init(h,m),g[T]=C,p.push(C),y.add(C.group)}x.__viewId=C.__id=T,C.__alive=!0,C.__model=x,C.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!v&&d.prepareView(C,x,h,m)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!v&&b.renderTask.dispose(),y.remove(b.group),b.dispose(h,m),p.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},j0=function(c,v,h,d,p){var g=c._model;if(g.setUpdatePayload(h),!d){D([].concat(c._componentsViews).concat(c._chartsViews),S);return}var y=OI(h,d,p),m=h.excludeSeriesId,_;m!=null&&(_=nt(),D(ue(m),function(b){var x=nr(b,null);x!=null&&_.set(x,!0)})),g&&g.eachComponent(y,function(b){var x=_&&_.get(b.id)!=null;if(!x)if(p5(h))if(b instanceof ne)h.type===Rf&&!h.notBlur&&!b.get(["emphasis","disabled"])&&$ct(b,h,c._api);else{var w=GI(b.mainType,b.componentIndex,h.name,c._api),T=w.focusSelf,C=w.dispatchers;h.type===Rf&&T&&!h.notBlur&&WE(b.mainType,b.componentIndex,c._api),C&&D(C,function(A){h.type===Rf?Ds(A):Es(A)})}else qE(h)&&b instanceof ne&&(qct(b,h,c._api),h5(b),ya(c))},c),g&&g.eachComponent(y,function(b){var x=_&&_.get(b.id)!=null;x||S(c[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},c);function S(b){b&&b.__alive&&b[v]&&b[v](b.__model,g,c._api,h)}},Ho={prepareAndUpdate:function(c){ju(this),Ho.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,v){var h=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(h){Jdt(h),h.setUpdatePayload(c),y.restoreData(h,c),y.performSeriesTasks(h),g.create(h,d),ba.trigger("coordsys:aftercreate",h,d),y.performDataProcessorTasks(h,c),UC(this,h),g.update(h,d),n(h),y.performVisualTasks(h,c);var m=h.get("backgroundColor")||"transparent";p.setBackgroundColor(m);var _=h.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),YC(this,h,d,c,v),ba.trigger("afterupdate",h,d)}},updateTransform:function(c){var v=this,h=v._model,d=v._api;if(h){h.setUpdatePayload(c);var p=[];h.eachComponent(function(y,m){if(y!==xo){var _=v.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,h,d,c);S&&S.update&&p.push(_)}else p.push(_)}});var g=nt();h.eachSeries(function(y){var m=v._chartsMap[y.__viewId],_=y.pipelineContext;if(m.updateTransform&&!_.progressiveRender){var S=m.updateTransform(y,h,d,c);S&&S.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),v._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:g}),$0(v,h,d,c,{},g),ba.trigger("afterupdate",h,d)}},updateView:function(c){var v=this._model;v&&(v.setUpdatePayload(c),ee.markUpdateMethod(c,"updateView"),n(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0}),YC(this,v,this._api,c,{}),ba.trigger("afterupdate",v,this._api))},updateVisual:function(c){var v=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),ee.markUpdateMethod(c,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,p){if(d!=="series"){var g=v.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,v._api,c)}}),h.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,h,v._api,c)}),ba.trigger("afterupdate",h,this._api))},updateLayout:function(c){Ho.update.call(this,c)}};function r(c,v,h,d,p){if(c._disposed){c.id;return}for(var g=c._model,y=c._coordSysMgr.getCoordinateSystems(),m,_=wh(g,h),S=0;S<y.length;S++){var b=y[S];if(b[v]&&(m=b[v](g,_,d,p))!=null)return m}}X0=r,UC=function(c,v){var h=c._chartsMap,d=c._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,h[p.__viewId])})},FC=function(c,v){var h=this,d=this.getModel(),p=c.type,g=c.escapeConnect,y=sb[p],m=(y.update||"update").split(":"),_=m.pop(),S=m[0]!=null&&qi(m[0]);this[Qe]=!0,gv(this);var b=[c],x=!1;c.batch&&(x=!0,b=X(c.batch,function(O){return O=dt(U({},O),c),O.batch=null,O}));var w=[],T,C=[],A=y.nonRefinedEventType,M=qE(c),L=p5(c);if(L&&xX(this._api),D(b,function(O){var N=y.action(O,d,h._api);if(y.refineEvent?C.push(N):T=N,T=T||U({},O),T.type=A,w.push(T),L){var P=LI(c),z=P.queryOptionMap,B=P.mainTypeSpecified,H=B?z.keys()[0]:"series";j0(h,_,O,H),ya(h)}else M?(j0(h,_,O,"series"),ya(h)):S&&j0(h,_,O,S.main,S.sub)}),_!=="none"&&!L&&!M&&!S)try{this[_r]?(ju(this),Ho.update.call(this,c),this[_r]=null):Ho[_].call(this,c)}catch(O){throw this[Qe]=!1,O}if(x?T={type:A,escapeConnect:g,batch:w}:T=w[0],this[Qe]=!1,!v){var E=void 0;if(y.refineEvent){var R=y.refineEvent(C,c,d,this._api).eventContent;$r(pt(R)),E=dt({type:y.refinedEventType},R),E.fromAction=c.type,E.fromActionPayload=c,E.escapeConnect=!0}var I=this._messageCenter;I.trigger(T.type,T),E&&I.trigger(E.type,E)}},dv=function(c){for(var v=this._pendingActions;v.length;){var h=v.shift();FC.call(this,h,c)}},pv=function(c){!c&&this.trigger("updated")},EV=function(c,v){c.on("rendered",function(h){v.trigger("rendered",h),c.animation.isFinished()&&!v[_r]&&!v._scheduler.unfinished&&!v._pendingActions.length?v.trigger("finished"):c.refresh()})},LV=function(c,v){c.on("mouseover",function(h){var d=h.target,p=bf(d,_y);p&&(Wct(p,h,v._api),ya(v))}).on("mouseout",function(h){var d=h.target,p=bf(d,_y);p&&(Zct(p,h,v._api),ya(v))}).on("click",function(h){var d=h.target,p=bf(d,function(m){return yt(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=yt(p);v._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(v){v.clearColorPalette()})}function a(c){var v=[],h=[],d=!1;if(c.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(m==="series"?h:v).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:x})}),d){var p=v.concat(h),g,y;vS(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),D(p,function(m){var _=c.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;g!=null&&(S=Math.max(g,S)),b?(S===g&&b!==y&&S++,y=b):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}YC=function(c,v,h,d,p){a(v),OV(c,v,h,d,p),D(c._chartsViews,function(g){g.__alive=!1}),$0(c,v,h,d,p),D(c._chartsViews,function(g){g.__alive||g.remove(v,h)})},OV=function(c,v,h,d,p,g){D(g||c._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,v,h,d),l(m,y),f(m,y)})},$0=function(c,v,h,d,p,g){var y=c._scheduler;p=U(p||{},{updatedSeries:v.getSeries()}),ba.trigger("series:beforeupdate",v,h,p);var m=!1;v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;y.updatePayload(b,d),u(_,S),g&&g.get(_.uid)&&b.dirty(),b.perform(y.getPerformArgs(b))&&(m=!0),S.group.silent=!!_.get("silent"),s(_,S),h5(_)}),y.unfinished=m||y.unfinished,ba.trigger("series:layoutlabels",v,h,p),ba.trigger("series:transition",v,h,p),v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(c,v),ba.trigger("series:afterupdate",v,h,p)},ya=function(c){c[VC]=!0,c.getZr().wakeUp()},gv=function(c){c[Y0]=(c[Y0]+1)%1e6},IV=function(c){c[VC]&&(c.getZr().storage.traverse(function(v){Th(v)||i(v)}),c[VC]=!1)};function i(c){for(var v=[],h=c.currentStates,d=0;d<h.length;d++){var p=h[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}c.selected&&c.states.select&&v.push("select"),c.hoverState===iw&&c.states.emphasis?v.push("emphasis"):c.hoverState===Am&&c.states.blur&&v.push("blur"),c.useStates(v)}function o(c,v){var h=c._zr;if(h.painter.type==="canvas"){var d=h.storage,p=0;d.traverse(function(y){y.isGroup||p++});var g=p>ot(v.get("hoverLayerThreshold"),_$.hoverLayerThreshold)&&!Vt.node&&!Vt.worker;(c._usingTHL||g)&&(v.eachSeries(function(y){if(!y.preventUsingHoverLayer){var m=c._chartsMap[y.__viewId];m.__alive&&m.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==zd&&(S.hoverLayer=g?kX:NX)})}}),c._usingTHL=g)}}function s(c,v){var h=c.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(c,v){if(!c.preventAutoZ){var h=sc(c);v.eachRendered(function(d){return lw(d,h.z,h.zlevel),!0})}}function u(c,v){v.eachRendered(function(h){if(!Th(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,v){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Th(y))return;if(y instanceof Rt&&rvt(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}RV=function(c){return new(function(v){G(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){Ds(d,p),ya(c)},h.prototype.leaveEmphasis=function(d,p){Es(d,p),ya(c)},h.prototype.enterBlur=function(d){mX(d),ya(c)},h.prototype.leaveBlur=function(d){VI(d),ya(c)},h.prototype.enterSelect=function(d){_X(d),ya(c)},h.prototype.leaveSelect=function(d){SX(d),ya(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getECUpdateCycleVersion=function(){return c[Y0]},h.prototype.usingTHL=function(){return c._usingTHL},h}(vX))(c)},CW=function(c){function v(h,d){for(var p=0;p<h.length;p++){var g=h[p];g[GC]=d}}D(pL,function(h,d){c._messageCenter.on(d,function(p){if(ub[c.group]&&c[GC]!==DV){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),y=[];D(Nf,function(m){m!==c&&m.group===c.group&&y.push(m)}),v(y,DV),D(y,function(m){m[GC]!==Hpt&&m.dispatchAction(g)}),v(y,Upt)}})})}}(),t}(Za),TP=ob.prototype;TP.on=SW("on");TP.off=SW("off");TP.one=function(e,t,r){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),n.off(e,a)}this.on.call(this,e,a,r)};var Fpt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var sb={},pL={},gL={},yL=[],mL=[],lb=[],AW={},_L={},Nf={},ub={},Ypt=+new Date-0,jpt=+new Date-0,CP="_echarts_instance_";function Xpt(e,t,r){var n=!(r&&r.ssr);if(n){var a=AP(e);if(a)return a}var i=new ob(e,t,r);return i.id="ec_"+Ypt++,Nf[i.id]=i,n&&Xj(e,CP,i.id),CW(i),ba.trigger("afterinit",i),i}function $pt(e){if(Y(e)){var t=e;e=null,D(t,function(r){r.group!=null&&(e=r.group)}),e=e||"g_"+jpt++,D(t,function(r){r.group=e})}return ub[e]=!0,e}function MW(e){ub[e]=!1}var Wpt=MW;function Zpt(e){J(e)?e=Nf[e]:e instanceof ob||(e=AP(e)),e instanceof ob&&!e.isDisposed()&&e.dispose()}function AP(e){return Nf[zft(e,CP)]}function qpt(e){return Nf[e]}function MP(e,t){AW[e]=t}function DP(e){St(mL,e)<0&&mL.push(e)}function EP(e,t){LP(yL,e,t,Npt)}function DW(e){yw("afterinit",e)}function EW(e){yw("afterupdate",e)}function yw(e,t){ba.on(e,t)}function bi(e,t,r){var n,a,i,o,s;ut(t)&&(r=t,t=""),pt(e)?(n=e.type,a=e.event,o=e.update,s=e.publishNonRefinedEvent,r||(r=e.action),i=e.refineEvent):(n=e,a=t);function l(f){return f.toLowerCase()}a=l(a||n);var u=i?l(n):a;sb[n]||($r(MV.test(n)&&MV.test(a)),i&&$r(a!==n),sb[n]={actionType:n,refinedEventType:a,nonRefinedEventType:u,update:o,action:r,refineEvent:i},gL[a]=1,i&&s&&(gL[u]=1),pL[u]=n)}function LW(e,t){Hd.register(e,t)}function Kpt(e){var t=Hd.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function Qpt(e,t){uW(e,t)}function OW(e,t){LP(lb,e,t,gW,"layout")}function mu(e,t){LP(lb,e,t,yW,"visual")}var PV=[];function LP(e,t,r,n,a,i){if((ut(t)||pt(t))&&(r=t,t=n),!(St(PV,r)>=0)){PV.push(r);var o=J$.wrapStageHandler(r,a);o.__prio=t,o.__raw=r,e.push(o)}}function OP(e,t){_L[e]=t}function Jpt(e){Z9({createCanvas:e})}function RW(e,t,r){var n=sW("registerMap");n&&n(e,t,r)}function tgt(e){var t=sW("getMap");return t&&t(e)}var IW=sdt;mu(wP,Idt);mu(gw,Pdt);mu(gw,Ndt);mu(wP,$dt);mu(gw,Wdt);mu(mW,Apt);DP(A$);EP(Rpt,Ght);OP("default",kdt);bi({type:Rf,event:Rf,update:Rf},Pe);bi({type:bS,event:bS,update:bS},Pe);bi({type:X1,event:zI,update:X1,action:Pe,refineEvent:RP,publishNonRefinedEvent:!0});bi({type:XE,event:zI,update:XE,action:Pe,refineEvent:RP,publishNonRefinedEvent:!0});bi({type:$1,event:zI,update:$1,action:Pe,refineEvent:RP,publishNonRefinedEvent:!0});function RP(e,t,r,n){return{eventContent:{selected:Kct(r),isFromClick:t.isFromClick||!1}}}MP("default",{});MP("dark",nW);var egt={},NV=[],rgt={registerPreprocessor:DP,registerProcessor:EP,registerPostInit:DW,registerPostUpdate:EW,registerUpdateLifecycle:yw,registerAction:bi,registerCoordinateSystem:LW,registerLayout:OW,registerVisual:mu,registerTransform:IW,registerLoading:OP,registerMap:RW,registerImpl:qdt,PRIORITY:_W,ComponentModel:Lt,ComponentView:fe,SeriesModel:ne,ChartView:ee,registerComponentModel:function(e){Lt.registerClass(e)},registerComponentView:function(e){fe.registerClass(e)},registerSeriesModel:function(e){ne.registerClass(e)},registerChartView:function(e){ee.registerClass(e)},registerCustomSeries:function(e,t){uW(e,t)},registerSubTypeDefaulter:function(e,t){Lt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Ij(e,t)}};function Ct(e){if(Y(e)){D(e,function(t){Ct(t)});return}St(NV,e)>=0||(NV.push(e),ut(e)&&(e={install:e}),e.install(rgt))}function _p(e){return e==null?0:e.length||1}function kV(e){return e}var Ls=function(){function e(t,r,n,a,i,o){this._old=t,this._new=r,this._oldKeyGetter=n||kV,this._newKeyGetter=a||kV,this.context=i,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},a=new Array(t.length),i=new Array(r.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],l=n[s],u=_p(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],f=a[l],c=_p(u),v=_p(f);if(c>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(c===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(c===1&&v===1)this._update&&this._update(f,u),a[l]=null;else if(c>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var a=t[n],i=r[a],o=_p(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);r[a]=null}},e.prototype._initIndexMap=function(t,r,n,a){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(i||(n[o]=s),!!r){var l=r[s],u=_p(l);u===0?(r[s]=o,i&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}(),ngt=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function agt(e,t){var r={},n=r.encode={},a=nt(),i=[],o=[],s={};D(e.dimensions,function(v){var h=e.getDimensionInfo(v),d=h.coordDim;if(d){var p=h.coordDimIndex;jC(n,d)[p]=v,h.isExtraCoord||(a.set(d,1),igt(h.type)&&(i[0]=v),jC(s,d)[p]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}uX.each(function(g,y){var m=jC(n,y),_=h.otherDims[y];_!=null&&_!==!1&&(m[_]=h.name)})});var l=[],u={};a.each(function(v,h){var d=n[h];u[h]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=X(l,function(v){return e.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(i=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,r.userOutput=new ngt(s,t),r}function jC(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function fb(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function igt(e){return!(e==="ordinal"||e==="time")}var LS=function(){function e(t){this.otherDims={},t!=null&&U(this,t)}return e}(),ogt=Tt(),sgt={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},PW=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=kW(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return ot(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=D$(this.source),n=!zW(t),a="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=r?v.name:null,u=v.type)}i.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=sgt[u]||"f",f&&(a+=f.uid),a+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:i,hash:d}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===r)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(r);o&&(a=o.name)}t.push(a)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function NW(e){return e instanceof PW}function IP(e){for(var t=nt(),r=0;r<(e||[]).length;r++){var n=e[r],a=pt(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,r)}return t}function kW(e){var t=ogt(e);return t.dimNameMap||(t.dimNameMap=IP(e.dimensionsDefine))}function zW(e){return e>30}var Sp=pt,Qs=X,lgt=typeof Int32Array>"u"?Array:Int32Array,ugt="e\0\0",zV=-1,fgt=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],cgt=["_approximateExtent"],BV,W0,bp,xp,XC,wp,$C,sn=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;NW(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],v=J(c)?new LS({name:c}):c instanceof LS?c:new LS(c),h=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=h,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(h),i[h]=v,u[h]!=null&&(l=!0),v.createInvertedIndices&&(s[h]=[]),a&&(v.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=v.storeDimIndex),d.itemId===0&&(this._idDimIdx=v.storeDimIndex)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=nt();D(o,function(g){p.set(i[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var a=this._schema.getSourceDimension(r);if(a)return a.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(Ut(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var a=n.encode[t];return a?a[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var a=this,i;if(t instanceof lL&&(i=t),!i){var o=this.dimensions,s=gP(t)||Xr(t)?new E$(t,o.length):t;i=new lL;var l=Qs(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=agt(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r&&r.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=r[l],o&&$C(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Vl&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===da;if(l&&!a.pure)for(var u=[],f=t;f<r;f++){var c=a.getItem(f,u);if(!this.hasItemOption&&Tft(c)&&(this.hasItemOption=!0),c){var v=c.name;i[f]==null&&v!=null&&(i[f]=nr(v,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=nr(h,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)$C(this,f);BV(this)}},e.prototype.getApproximateExtent=function(t,r){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t),r)},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Sp(t)?U(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=bp(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},e.prototype.getId=function(t){return W0(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t),null)},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,a=this._store;return Y(t)?a.getValues(Qs(t,function(i){return n._getStoreDimIndex(i)}),r):a.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],a=n&&n[r];return a==null||isNaN(a)?zV:a},e.prototype.each=function(t,r,n){ut(t)&&(n=r,r=t,t=[]);var a=n||this,i=Qs(xp(t),this._getStoreDimIndex,this);this._store.each(i,a?rt(r,a):r)},e.prototype.filterSelf=function(t,r,n){ut(t)&&(n=r,r=t,t=[]);var a=n||this,i=Qs(xp(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?rt(r,a):r),this},e.prototype.selectRange=function(t){var r=this,n={},a=kt(t);return D(a,function(i){var o=r._getStoreDimIndex(i);n[o]=t[i]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){ut(t)&&(n=r,r=t,t=[]),n=n||this;var a=[];return this.each(t,function(){a.push(r&&r.apply(this,arguments))},n),a},e.prototype.map=function(t,r,n,a){var i=n||a||this,o=Qs(xp(t),this._getStoreDimIndex,this),s=wp(this);return s._store=this._store.map(o,i?rt(r,i):r),s},e.prototype.modify=function(t,r,n,a){var i=n||a||this,o=Qs(xp(t),this._getStoreDimIndex,this);this._store.modify(o,i?rt(r,i):r)},e.prototype.downSample=function(t,r,n,a){var i=wp(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),r,n,a),i},e.prototype.minmaxDownSample=function(t,r){var n=wp(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),n},e.prototype.lttbDownSample=function(t,r){var n=wp(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new Ot(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new Ls(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return W0(t,n)},function(n){return W0(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Sp(t)?U(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],a=n&&n[r];return a??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[r];return i==null&&(i=this.getVisual(r),Y(i)?i=i.slice():Sp(i)&&(i=U({},i)),a[r]=i),i},e.prototype.setItemVisual=function(t,r,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Sp(r)?U(a,r):a[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Sp(t)?U(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?U(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;jE(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){D(this._graphicEls,function(n,a){n&&t&&t.call(r,n,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Qs(this.dimensions,this._getDimInfo,this),this.hostModel)),XC(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];ut(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(Fx(arguments)))})},e.internalField=function(){BV=function(t){var r=t._invertedIndicesMap;D(r,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=r[a]=new lgt(o.categories.length);for(var l=0;l<n.length;l++)n[l]=zV;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},bp=function(t,r,n){return nr(t._getCategory(r,n),null)},W0=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=bp(t,t._idDimIdx,r)),n==null&&(n=ugt+r),n},xp=function(t){return Y(t)||(t=t!=null?[t]:[]),t},wp=function(t){var r=new e(t._schema?t._schema:Qs(t.dimensions,t._getDimInfo,t),t.hostModel);return XC(r,t),r},XC=function(t,r){D(fgt.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,D(cgt,function(n){t[n]=st(r[n])}),t._calculationInfo=U({},r._calculationInfo)},$C=function(t,r){var n=t._nameList,a=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=a[r];if(s==null&&i!=null&&(n[r]=s=bp(t,i,r)),l==null&&o!=null&&(a[r]=l=bp(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),a[r]=l}}}(),e}();function vgt(e,t){return jd(e,t).dimensions}function jd(e,t){gP(e)||(e=yP(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],a=nt(),i=[],o=hgt(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&zW(o),l=n===e.dimensionsDefine,u=l?kW(e):IP(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var c=nt(f),v=new V$(o),h=0;h<v.length;h++)v[h]=-1;function d(C){var A=v[C];if(A<0){var M=n[C],L=pt(M)?M:{name:M},E=new LS,R=L.name;R!=null&&u.get(R)!=null&&(E.name=E.displayName=R),L.type!=null&&(E.type=L.type),L.displayName!=null&&(E.displayName=L.displayName);var I=i.length;return v[C]=I,E.storeDimIndex=C,i.push(E),E}return i[A]}if(!s)for(var h=0;h<o;h++)d(h);c.each(function(C,A){var M=ue(C).slice();if(M.length===1&&!J(M[0])&&M[0]<0){c.set(A,!1);return}var L=c.set(A,[]);D(M,function(E,R){var I=J(E)?u.get(E):E;I!=null&&I<o&&(L[R]=I,g(d(I),A,R))})});var p=0;D(r,function(C){var A,M,L,E;if(J(C))A=C,E={};else{E=C,A=E.name;var R=E.ordinalMeta;E.ordinalMeta=null,E=U({},E),E.ordinalMeta=R,M=E.dimsDef,L=E.otherDims,E.name=E.coordDim=E.coordDimIndex=E.dimsDef=E.otherDims=null}var I=c.get(A);if(I!==!1){if(I=ue(I),!I.length)for(var O=0;O<(M&&M.length||1);O++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&I.push(p++)}D(I,function(N,P){var z=d(N);if(l&&E.type!=null&&(z.type=E.type),g(dt(z,E),A,P),z.name==null&&M){var B=M[P];!pt(B)&&(B={name:B}),z.name=z.displayName=B.name,z.defaultTooltip=B.defaultTooltip}L&&dt(z.otherDims,L)})}});function g(C,A,M){uX.get(A)!=null?C.otherDims[A]=M:(C.coordDim=A,C.coordDimIndex=M,a.set(A,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function b(C){C.name==null&&(C.name=C.coordDim)}if(s)D(i,function(C){b(C)}),i.sort(function(C,A){return C.storeDimIndex-A.storeDimIndex});else for(var x=0;x<o;x++){var w=d(x),T=w.coordDim;T==null&&(w.coordDim=dgt(S,a,_),w.coordDimIndex=0,(!y||m<=0)&&(w.isExtraCoord=!0),m--),b(w),w.type==null&&(x$(e,x)===Rr.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return Qx(i,function(C){return C.name},function(C,A){A>0&&(C.name=C.name+(A-1))}),new PW({source:e,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function hgt(e,t,r,n){var a=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(i){var o;pt(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function dgt(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var pgt=function(){function e(t){this.coordSysDims=[],this.axisMap=nt(),this.categoryAxisMap=nt(),this.coordSysName=t}return e}();function ggt(e){var t=e.get("coordinateSystem"),r=new pgt(t),n=ygt[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var ygt={cartesian2d:function(e,t,r,n){var a=e.getReferringComponents("xAxis",ze).models[0],i=e.getReferringComponents("yAxis",ze).models[0];t.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),yv(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),yv(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var a=e.getReferringComponents("singleAxis",ze).models[0];t.coordSysDims=["single"],r.set("single",a),yv(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var a=e.getReferringComponents("polar",ze).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),yv(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),yv(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var a=e.ecModel,i=a.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();D(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];r.set(f,u),yv(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(e,t,r,n){var a=e.getReferringComponents("matrix",ze).models[0];t.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");r.set("x",i),r.set("y",o),n.set("x",i),n.set("y",o)}};function yv(e){return e.get("type")==="category"}function BW(e,t,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;mgt(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,f,c,v,h=!0;function d(S){return S.type!=="ordinal"&&S.type!=="time"}if(D(i,function(S,b){J(S)&&(i[b]=S={name:S}),d(S)||(h=!1)}),D(i,function(S,b){l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!f&&d(S)&&(!h||S.coordDim!=="x"&&S.coordDim!=="angle")&&(!a||a===S.coordDim)&&(f=S))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+e.id,v="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var p=f.coordDim,g=f.type,y=0;D(i,function(S){S.coordDim===p&&y++});var m={name:c,coordDim:p,coordDimIndex:y,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},_={name:v,coordDim:v,coordDimIndex:y+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(v,g),_.storeDimIndex=s.ensureCalculationDimension(c,g)),o.appendCalculationDimension(m),o.appendCalculationDimension(_)):(i.push(m),i.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:c}}function mgt(e){return!NW(e.schema)}function Os(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function PP(e,t){return Os(e,t)?e.getCalculationInfo("stackResultDimension"):t}function _gt(e,t){var r=e.get("coordinateSystem"),n=Hd.get(r),a;return t&&t.coordSysDims&&(a=X(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=fb(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function Sgt(e,t,r){var n,a;return r&&D(e,function(i,o){var s=i.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(e[n].otherDims.itemName=0),n}function No(e,t,r){r=r||{};var n=t.getSourceManager(),a,i=!1;e?(i=!0,a=yP(e)):(a=n.getSource(),i=a.sourceFormat===da);var o=ggt(t),s=_gt(t,o),l=r.useEncodeDefaulter,u=ut(l)?l:l?At(b$,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=jd(a,f),v=Sgt(c.dimensions,r.createInvertedIndices,o),h=i?null:n.getSharedDataStore(c),d=BW(t,{schema:c,store:h}),p=new sn(c,t);p.setCalculationInfo(d);var g=v!=null&&bgt(a)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:h,null,g),p}function bgt(e){if(e.sourceFormat===da){var t=xgt(e.data||[]);return!Y(Ed(t))}}function xgt(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var xi=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();Jx(xi);var wgt=0,Ay=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++wgt,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var r=t.option,n=r.data,a=n&&X(n,Tgt);return new e({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!J(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,this._onCollect&&this._onCollect(t,r),r;var a=this._getOrCreateMap();return r=a.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,a.set(t,r),this._onCollect&&this._onCollect(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=nt(this.categories))},e}();function Tgt(e){return pt(e)&&e.value!=null?e.value:e+""}var Nn=0,My=1,Cgt={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},VW=kt(Cgt),fs=2,GW=3;function NP(e,t,r){var n;e=e||{};var a=Xe();if(a){var i=a.createBreakScaleMapper(t,r);i.hasBreaks()&&(D(VW,function(o){i[o]&&(e[o]=rt(i[o],i))}),n=i)}return n==null&&SL(e,r),{brk:n,mapper:e}}function kP(e,t){D(VW,function(r){e[r]=t[r]})}function zP(e,t){e.freeze=Pe}function Dy(e){return e.getExtentUnsafe(Nn,fs)}function cb(e,t){return e.getExtentUnsafe(My,t)||e.getExtentUnsafe(Nn,t)}function Agt(e){var t=cb(e,GW);return t[1]-t[0]}function mw(e){var t=e.getExtentUnsafe(Nn,GW);return t[1]-t[0]}function SL(e,t){var r=e||{},n=[];return r._extents=n,n[Nn]=t?t.slice():kr(),U(r,Mgt),r}var Mgt={needTransform:function(){return!1},normalize:function(e){var t=this._extents[My]||this._extents[Nn];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[My]||this._extents[Nn];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=cb(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[Nn].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){VV(this._extents,Nn,e,t)},setExtent2:function(e,t,r){var n=this._extents;n[e]||(n[e]=n[Nn].slice()),VV(n,e,t,r)},freeze:function(){}};function VV(e,t,r,n){nc(r,n)&&(e[t][0]=r,e[t][1]=n)}function HW(e){return vb(e)||id(e)}function vb(e){return e.type==="interval"}function Pm(e){return e.type==="time"}function id(e){return e.type==="log"}function un(e){return e.type==="ordinal"}function Dgt(e){var t=qx(e),r=Fc(10,t),n=_o(e/r);return n?n===2?n=3:n===3?n=5:n*=2:n=1,Yt(n*r,-t)}function uc(e){return Zi(e)+2}function Z0(e,t){return Jf(e)/Jf(t)}function WC(e,t,r){var n=r&&r.lookup;if(n){for(var a=0;a<n.from.length;a++)if(e===n.from[a])return n.to[a]}return Fc(t,e)}function UW(e,t,r){var n=e.slice();if(n[0]===n[1]){var a=r&&r.ctnShp;if(n[0]!==0){var i=Ie(n[0]);t[1]||(n[1]+=i/2),n[0]-=i/2}else a&&(n[0]=-1),n[1]=1}return(!Ms(n[0])||!Ms(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function Egt(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function _w(e,t){return e=e||t,_o(Dt(e,1))}function FW(e,t,r){var n=Dy(e),a=n[0],i=e.count(),o=Math.max((t||0)+1,1);a!==0&&o>1&&i/o>2&&(a=Math.round(Math.ceil(a/o)*o)),a!==n[0]&&l(n[0],!0,!0);for(var s=a;s<=n[1];s+=o)l(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&l(n[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var Ey=function(e){G(t,e);function t(r){var n=e.call(this)||this;n.type="ordinal",n.parse=t.parse,kP(n,t.decoratedMethods);var a=r.ordinalMeta;a||(a=new Ay({})),Y(a)&&(a=new Ay({categories:X(a,function(o){return pt(o)?o.value:o})})),n._ordinalMeta=a;var i=NP(null,null,r.extent||[0,a.categories.length-1]);return n._mapper=i.mapper,zP(n),n}return t.parse=function(r){return r==null?r=NaN:J(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=_o(r),r},t.prototype.getTicks=function(){var r=[];return FW(this,0,function(n){r.push(n)}),r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=te(s,n.length);o<l;++o){var u=a[o]=n[o];i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;a[o]=f,i[f]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},t.prototype.count=function(){var r=Dy(this._mapper);return r[1]-r[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type="ordinal",t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(_o(this._mapper.scale(r)))},transformIn:function(r,n){return this._mapper.transformIn(this._getTickNumber(r),n)},transformOut:function(r,n){return this.getRawOrdinalNumber(this._mapper.transformOut(r,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,n){return this._mapper.getExtentUnsafe(r,n)},setExtent:function(r,n){return this._mapper.setExtent(r,n)},setExtent2:function(r,n,a){return this._mapper.setExtent2(r,n,a)}},t}(xi);xi.registerClass(Ey);function BP(e,t,r,n){for(var a=e.getTicks({expandToNicedExtent:!0}),i=[],o=e.getExtent(),s=1;s<a.length;s++){var l=a[s],u=a[s-1];if(!(u.break||l.break)){for(var f=0,c=[],v=l.value-u.value,h=v/t,d=uc(h);f<t-1;){var p=Yt(u.value+(f+1)*h,d);p>o[0]&&p<o[1]&&c.push(p),f++}var g=Xe();g&&g.pruneTicksByBreak("auto",c,r,function(y){return y},n,o),i.push(c)}}return i}var Ul=function(e){G(t,e);function t(r){var n=e.call(this)||this;n.type="interval",n.parse=t.parse,r=r||{};var a=qX(n,r),i=NP(n,a,null);return n.brk=i.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return t.parse=function(r){return r==null||r===""?NaN:Number(r)},t.prototype.getConfig=function(){return st(this._cfg)},t.prototype.setConfig=function(r){var n=Dy(this);this._cfg=r=st(r),r.niceExtent==null&&(r.niceExtent=n.slice()),r.intervalPrecision==null&&(r.intervalPrecision=uc(r.interval))},t.prototype.getTicks=function(r){r=r||{};var n=this._cfg,a=n.interval,i=Dy(this),o=n.niceExtent,s=n.intervalPrecision,l=Xe(),u=this.brk,f=l&&u,c=[];if(!a)return c;if(r.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,i),c;var v=3e3;i[0]<o[0]&&c.push({value:r.expandToNicedExtent?Yt(o[0]-a,s):i[0]});for(var h=function(_,S){return _o((S-_)/a)},d=n.intervalCount,p=o[0],g=0;;g++){if(d==null){if(p>o[1]||!isFinite(p)||!isFinite(o[1]))break}else{if(g>d)break;p=te(p,o[1]),g===d&&(p=o[1])}if(c.push({value:p}),p=Yt(p+a,s),u){var y=u.calcNiceTickMultiple(p,h);y>=0&&(p=Yt(p+y*a,s))}if(c.length>0&&p===c[c.length-1].value)break;if(c.length>v)return[]}var m=c.length?c[c.length-1].value:o[1];return i[1]>m&&c.push({value:r.expandToNicedExtent?Yt(m+a,s):i[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(_){return _.value},n.interval,i),f&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,i),c},t.prototype.getMinorTicks=function(r){return BP(this,r,K1(this),this._cfg.interval)},t.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=Zi(r.value)||0:a==="auto"&&(a=this._cfg.intervalPrecision);var i=Yt(r.value,a,!0);return lP(i)},t.type="interval",t}(xi);xi.registerClass(Ul);var Lgt=function(e,t,r,n){for(;r<n;){var a=r+n>>>1;e[a][1]<t?r=a+1:n=a}return r},YW=function(e){G(t,e);function t(r){var n=e.call(this)||this;n.type="time",n.parse=t.parse,n._locale=r.locale,n._useUTC=r.useUTC,n._interval=0;var a=qX(n,r),i=NP(n,a,null);return n.brk=i.brk,n}return t.prototype.getLabel=function(r){return Om(r.value,L5[nht(Ng(this._minLevelUnit))]||L5.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(r,n,a){return aht(r,n,a,this._locale,this._useUTC)},t.prototype.getTicks=function(r){r=r||{};var n=this._interval,a=Dy(this),i=Xe(),o=this.brk,s=i&&o,l=[];if(!n)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return Xe().addBreaksToTicks(l,o.breaks,a),l;l=zgt(this._minLevelUnit,this._approxInterval,u,a,mw(this),o);var f=Yn.length-1,c=0;return D(l,function(v){v.time&&(f=Math.min(f,St(Yn,v.time.upperTimeUnit)),c=Math.max(c,v.time.level))}),s&&Xe().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(v){return v.value},this._approxInterval,a),s&&r.breakTicks!=="none"&&Xe().addBreaksToTicks(l,o.breaks,a,function(v){for(var h=Math.max(St(Yn,Ah(v.vmin,u)),St(Yn,Ah(v.vmax,u))),d=0,p=0;p<Yn.length;p++)if(!jW(Yn[p],v.vmin,v.vmax,u)){d=p;break}var g=Math.min(d,f),y=Math.max(g,h);return{level:c,lowerTimeUnit:Yn[y],upperTimeUnit:Yn[g]}}),l},t.prototype.getMinorTicks=function(r){return BP(this,r,K1(this),this._interval)},t.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},t.parse=function(r){return Ut(r)?Math.round(r):+Io(r)},t.type="time",t}(xi),q0=[["second",tP],["minute",eP],["hour",Pg],["quarter-day",Pg*6],["half-day",Pg*12],["day",Na*1.2],["half-week",Na*3.5],["week",Na*7],["month",Na*31],["quarter",Na*95],["half-year",E5/2],["year",E5]];function jW(e,t,r,n){return J1(new Date(t),e,n).getTime()===J1(new Date(r),e,n).getTime()}function Ogt(e,t){return e/=Na,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Rgt(e){var t=30*Na;return e/=t,e>6?6:e>3?3:e>2?2:1}function Igt(e){return e/=Pg,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function GV(e,t){return e/=t?eP:tP,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Pgt(e){return Dt(Kx(e,!0),1)}function Ngt(e,t,r){var n=Math.max(0,St(Yn,t)-1);return J1(new Date(e),Yn[n],r).getTime()}function kgt(e,t){var r=new Date(0);r[e](1);var n=r.getTime();r[e](1+t);var a=r.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}function zgt(e,t,r,n,a,i){var o=3e3,s=Jvt,l=0;function u(O,N,P,z,B,H,F){for(var $=kgt(B,O),j=N,tt=new Date(j);j<P&&j<=n[1]&&(F.push({value:j}),!(l++>o));)if(tt[B](tt[z]()+O),j=tt.getTime(),i){var mt=i.calcNiceTickMultiple(j,$);mt>0&&(tt[B](tt[z]()+mt*O),j=tt.getTime())}F.push({value:j,notAdd:j>n[1]})}function f(O,N,P){var z=[],B=!N.length;if(!jW(Ng(O),n[0],n[1],r)){B&&(N=[{value:Ngt(n[0],O,r)},{value:n[1]}]);for(var H=0;H<N.length-1;H++){var F=N[H].value,$=N[H+1].value;if(F!==$){var j=void 0,tt=void 0,mt=void 0,Nt=!1;switch(O){case"year":j=Math.max(1,Math.round(t/Na/365)),tt=KX(r),mt=iht(r);break;case"half-year":case"quarter":case"month":j=Rgt(t),tt=rP(r),mt=QX(r);break;case"week":case"half-week":case"day":j=Ogt(t),tt=nP(r),mt=JX(r),Nt=!0;break;case"half-day":case"quarter-day":case"hour":j=Igt(t),tt=aP(r),mt=t$(r);break;case"minute":j=GV(t,!0),tt=iP(r),mt=e$(r);break;case"second":j=GV(t,!1),tt=oP(r),mt=r$(r);break;case"millisecond":j=Pgt(t),tt=sP(r),mt=n$(r);break}$>=n[0]&&F<=n[1]&&u(j,F,$,tt,mt,Nt,z),O==="year"&&P.length>1&&H===0&&P.unshift({value:P[0].value-j})}}for(var H=0;H<z.length;H++)P.push(z[H])}}for(var c=[],v=[],h=0,d=0,p=0;p<s.length;++p){var g=Ng(s[p]);if(rht(s[p])){f(s[p],c[c.length-1]||[],v);var y=s[p+1]?Ng(s[p+1]):null;if(g!==y){if(v.length){d=h,v.sort(function(O,N){return O.value-N.value});for(var m=[],_=0;_<v.length;++_){var S=v[_].value;(_===0||v[_-1].value!==S)&&(m.push(v[_]),S>=n[0]&&S<=n[1]&&h++)}var b=a/t;if(h>b*1.5&&d>b/1.5||(c.push(m),h>b||e===s[p]))break}v=[]}}}for(var x=qt(X(c,function(O){return qt(O,function(N){return N.value>=n[0]&&N.value<=n[1]&&!N.notAdd})}),function(O){return O.length>0}),w=x.length-1,T=[],p=0;p<x.length;++p)for(var C=x[p],A=0;A<C.length;++A){var M=Ah(C[A].value,r);T.push({value:C[A].value,time:{level:w-p,upperTimeUnit:M,lowerTimeUnit:M}})}Qx(T,Uft,null),T.sort(function(O,N){return O.value-N.value});var L=T[0],E=T[T.length-1],R=Ah(n[0],r),I=Ah(n[1],r);return(!L||L.value>n[0])&&T.unshift({value:n[0],time:{level:0,upperTimeUnit:R,lowerTimeUnit:R},notNice:!0}),(!E||E.value<n[1])&&T.push({value:n[1],time:{level:0,upperTimeUnit:I,lowerTimeUnit:I},notNice:!0}),T}var Bgt=function(e,t){var r=e.getExtent();if(r[0]===r[1]&&(r[0]-=Na,r[1]+=Na),r[1]===-1/0&&r[0]===1/0){var n=new Date;r[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),r[0]=r[1]-Na}e.setExtent(r[0],r[1]);var a=_w(t.splitNumber,10),i=mw(e)/a,o=t.minInterval,s=t.maxInterval;o!=null&&i<o&&(i=o),s!=null&&i>s&&(i=s);var l=q0.length,u=Math.min(Lgt(q0,i,0,l),l-1),f=q0[u][1],c=q0[Math.max(u-1,0)][0];e.setTimeInterval({approxInterval:i,interval:f,minLevelUnit:c})};xi.registerClass(YW);var K0=0,Q0=1,Vgt=2,XW=function(e){G(t,e);function t(r){var n=e.call(this)||this;n.type="log",n.parse=Ul.parse,n.base=r.logBase||10;var a=[],i=[],o=n._lookup={from:a,to:i};a[K0]=a[Q0]=i[K0]=i[Q0]=NaN,kP(n,t.mapperMethods);var s=Xe(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,n,{noNegative:!0},Vgt,u),n.powStub=new Ul({breakParsed:u.original}),n.intervalStub=new Ul({breakParsed:u.transformed}),zP(n,n.intervalStub),n}return t.prototype.getTicks=function(r){var n=this.base,a=this.powStub,i=Xe(),o=this.intervalStub,s=o.getExtent(),l=a.getExtent(),u={lookup:{from:s,to:l}};return X(o.getTicks(r||{}),function(f){var c=f.value,v=WC(c,n,u),h;if(i){var d=i.getTicksBreakOutwardTransform(this,f,K1(a),this._lookup);d&&(h=d.vBreak,v=d.tickVal)}return{value:v,break:h}},this)},t.prototype.getMinorTicks=function(r){return BP(this,r,K1(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(r,n){return this.intervalStub.getLabel(r,n)},t.type="log",t.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(Z0(r,this.base))},scale:function(r){return WC(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,n){return r=Z0(r,this.base),n&&n.depth===fs?r:this.intervalStub.transformIn(r,n)},transformOut:function(r,n){var a=n?n.depth:null;return HV.depth=a,UV.lookup=this._lookup,WC(a===fs?r:this.intervalStub.transformOut(r,HV),this.base,UV)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,n){this.setExtent2(Nn,r,n)},setExtent2:function(r,n,a){if(!(!nc(n,a)||n<=0||a<=0)){var i=FV,o=FV;if(r===Nn){var s=this._lookup;i=s.to,o=s.from}this.powStub.setExtent2(r,i[K0]=n,i[Q0]=a);var l=this.base;this.intervalStub.setExtent2(r,o[K0]=Z0(n,l),o[Q0]=Z0(a,l))}},getFilter:function(){return{g:0}},sanitize:function(r,n){return nc(n[0],n[1])&&Xa(r)&&r<=0&&(r=n[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,n){return n===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,n)}},t}(xi);xi.registerClass(XW);var HV={},UV={},FV=[],$W={value:1,category:1,time:1,log:1},WW=Tt();function Nm(e){var t=e.get("type");return(t==null||!it($W,t)&&!xi.getClass(t))&&(t="value"),t}function Xd(e,t,r){var n=Xe(),a;switch(n&&(a=ZW(e,t,r)),t){case"category":return new Ey({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:kr()});case"time":return new YW({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC"),breakOption:a});case"log":return new XW({logBase:e.get("logBase"),breakOption:a});case"value":return new Ul({breakOption:a});default:return new(xi.getClass(t)||Ul)({})}}function Ggt(e,t,r){var n=e.getExtentUnsafe(Nn,null),a=n[0],i=n[1];return nc(a,i)?a===t||i===t?Ugt:a<t&&i>t?Hgt:bL:bL}var Hgt=1,Ugt=2,bL=3;function Fgt(e){WW(e).noOnMyZero=!0}function Ygt(e){return WW(e).noOnMyZero}function km(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var r=tht(t);return function(a,i){return e.scale.getFormattedLabel(a,i,r)}}else{if(J(t))return function(a){var i=e.scale.getLabel(a),o=t.replace("{value}",i??"");return o};if(ut(t)){if(e.type==="category")return function(a,i){return t(hb(e,a),a.value-e.scale.getExtent()[0],null)};var n=Xe();return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),t(hb(e,a),i,o)}}else return function(a){return e.scale.getLabel(a)}}}function hb(e,t){var r=e.scale;return un(r)?r.getLabel(t):t.value}function VP(e){var t=e.get("interval");return t??"auto"}function jgt(e){return e.type==="category"&&VP(e.getLabelModel())===0}function Xgt(e,t){var r={};return D(e.mapDimensionsAll(t),function(n){r[PP(e,n)]=!0}),kt(r)}function od(e){return e==="middle"||e==="center"}function Ly(e){return e.getShallow("show")}function ZW(e,t,r){var n=e.get("breaks",!0);if(n!=null)return!Xe()||!r||!$gt(t)?void 0:n}function $gt(e){return e!=="category"}function qW(e,t,r,n,a,i){var o=id(e),s=o?e.intervalStub:e;if(s.setExtent(n[0],n[1]),o){var l=e.powStub,u={depth:fs},f=e.transformOut(n[0],u),c=e.transformOut(n[1],u),v=Egt(r,n);t[0]&&!v[0]&&(f=a[0]),t[1]&&!v[1]&&(c=a[1]),l.setExtent(f,c)}s.setConfig(i)}function $d(e,t){return un(e)?e.getRawOrdinalNumber(t.value):t.value}function zm(e,t){return un(e)&&!!t.get("boundaryGap")}var Wd=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),Wgt=Od(),db="|&",Zd=Tt(),KW=-2,Zgt=-1,qgt=Tt();function GP(e,t){var r=e.model,n=Zd(Fd(r.ecModel)).keyed,a=n&&n.get(t);return a&&a.get(r.uid)}function Kgt(e,t){return JW(GP(e,t))}function Qgt(e,t){var r=[];return QW(e.model.ecModel,function(n){for(var a=0;a<t.length;a++)t[a]&&n.serByIdx[t[a].seriesIndex]&&r.push(JW(n))}),r}function QW(e,t){var r=Zd(Fd(e)).keyed;r&&r.each(function(n,a){n.each(function(i,o){t(i,a,o)})})}function JW(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function Jgt(e,t){var r=e.model.ecModel,n=Zd(Fd(r)).axSer;n&&Sw(r,n.get(e.model.uid),t)}function fc(e,t,r){var n=GP(e,t);n&&Sw(e.model.ecModel,n.sers,r)}function Sw(e,t,r){if(t)for(var n=0;n<t.length;n++){var a=t[n];e.isSeriesFiltered(a)||r(a)}}function tyt(e,t){var r=GP(e,t);if(!r||!r.sers.length)return 0;var n=0;return Sw(e.model.ecModel,r.sers,function(){n++}),n}function HP(e,t,r){var n=Zd(Fd(e)).keyed,a=n&&n.get(t);a&&a.each(function(i){r(i.axis)})}function tZ(e,t){var r=e.model,n=Zd(Fd(r.ecModel)).keys;n&&D(n.get(r.uid),function(a){t(a)})}function eyt(e){var t=qgt(fW(e)),r=t.keyed||(t.keyed=nt());QW(e,function(n,a,i){var o=r.get(a)||r.set(a,nt()),s=o.get(i)||o.set(i,{});n.metrics.liPosMinGap&&eZ.liPosMinGap(e,n,s)})}function ryt(e,t){eZ[e]=t}var eZ={};function cc(e,t,r){if(e){var n=t.ecModel,a=Zd(Fd(n)),i=e.model.uid,o=a.axSer||(a.axSer=nt()),s=o.get(i)||o.set(i,[]);s.push(t);var l=t.subType,u=t.getBaseAxis()===e,f=wL.get(xL(l,u,r))||wL.get(xL(l,u,null));if(f){var c=a.keyed||(a.keyed=nt()),v=a.keys||(a.keys=nt()),h=f.key,d=c.get(h)||c.set(h,nt()),p=d.get(i);p||(p=d.set(i,{axis:e,sers:[],serByIdx:[]}),p.metrics=f.getMetrics(e),(v.get(i)||v.set(i,[])).push(h)),p.sers.push(t),p.serByIdx[t.seriesIndex]=t}}}function xL(e,t,r){return e+db+ot(t,!0)+db+(r||"")}function UP(e,t){var r=xL(t.seriesType,t.baseAxis,t.coordSysType);wL.set(r,t),Wgt(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:eyt})})}var wL=nt(),nyt=Tt(),sd=1,ayt=2,iyt=3,rZ=function(){function e(t,r,n,a,i){var o=un(t),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=n.slice();(vb(t)||id(t)||Pm(t))&&(Wj(f,Tp(t,r.get("dataMin",!0))),Zj(f,Tp(t,r.get("dataMax",!0)))),Gft(f)||(f[0]=f[1]=NaN);var c=[],v=[!1,!1],h=r.get("min",!0);h==="dataMin"?(c[0]=f[0],v[0]=!0):(c[0]=Tp(t,ut(h)?h({min:f[0],max:f[1]}):h),v[0]=c[0]!=null);var d=r.get("max",!0);d==="dataMax"?(c[1]=f[1],v[1]=!0):(c[1]=Tp(t,ut(d)?d({min:f[0],max:f[1]}):d),v[1]=c[1]!=null);var p=oyt(t,r),g=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-p[0]*g),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+p[1]*g),!Ms(c[0])&&(c[0]=NaN),!Ms(c[1])&&(c[1]=NaN);var y=l||Yr(c[0])||Yr(c[1])||o&&!s,m=vb(t),_=m&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!v[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!v[1]&&(c[1]=0));var S=!1;c[0]>c[1]&&(c.reverse(),S=!0);var b=Tp(t,r.get("startValue",!0)),x=b!=null;!Xa(b)&&a&&(b=t.getDefaultStartValue?t.getDefaultStartValue():0),Xa(b)&&(x||!m||_)&&(b<c[0]&&!v[0]?(c[0]=b,v[0]=!0):b>c[1]&&!v[1]&&(c[1]=b,v[1]=!0));var w=this._i={scale:t,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:v,zoomFixMM:[!1,!1],startValue:b,isBlank:y,incl0:_,tggAxInv:S,ctnShp:i};YV(w,c)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var t=this._i,r=t.zoomMM,n=t.noZoomEffMM,a=t.zoomFixMM,i=t.fixMM,o={fixMM:i,zoomFixMM:a,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:n.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],i[0]=a[0]=!0),r[1]!=null&&(s[1]=r[1],i[1]=a[1]=!0),YV(t,s),o},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(t,r){this._i.zoomMM[t]=r},e}();function YV(e,t){var r=e.scale,n=e.dataMM;r.sanitize&&(t[0]=r.sanitize(t[0],n),t[1]=r.sanitize(t[1],n),SS(t))}function Tp(e,t){return t==null?null:Yr(t)?NaN:e.parse(t)}function oyt(e,t){var r;if(un(e))r=[0,0];else{var n=t.get("boundaryGap");typeof n=="boolean"&&(n=null),r=Y(n)?n:[n,n]}return[jV(r[0]),jV(r[1])]}function jV(e){return mo(typeof e=="boolean"?0:e,1)||0}function nZ(e){var t=nyt(e.scale);return t.extent||(t.extent=kr()),t}function syt(e,t){nZ(e).dimIdxInCoord=t.get(e.dim)}function vc(e,t){var r=e.scale,n=e.model,a=e.dim;r.rawExtentInfo||lyt(r,e,a,n,t)}function lyt(e,t,r,n,a){var i=nZ(t),o=i.extent,s=!1;Jgt(t,function(f){if(f.boxCoordinateSystem){var c=l$(f).coord,v=i.dimIdxInCoord;if(v>=0){if(Y(c)){var h=c[v];h!=null&&!Y(h)&&GE(o,e.parse(h))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var p=e.getFilter?e.getFilter():null;D(Xgt(d,r),function(g){Vft(o,d.getApproximateExtent(g,p))})}f.__requireStartValue&&f.__requireStartValue(t)&&(s=!0)}});var l=fyt(e,t,n),u=new rZ(e,n,o,s,l);aZ(e,u,a),i.extent=null}function uyt(e,t){var r=e.scale;aZ(r,new rZ(r,e.model,t,!1,!1),iyt)}function aZ(e,t,r){e.rawExtentInfo=t,t.from=r}function bw(e,t){FP.set(e,t)}var FP=nt();function iZ(e,t,r,n,a){e.rawExtentInfo||uyt({scale:e,model:t},a||kr());var i=e.rawExtentInfo.makeFinal(),o=i.effMM;return e.setExtent(o[0],o[1]),e.setBlank(i.isBlank),n&&i.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),i}function fyt(e,t,r){var n=zm(e,r),a=r.get("containShape",!0);if(a==null&&!n&&(a=!0),!a)return!1;var i=!1;return tZ(t,function(o){i=!!FP.get(o)||i}),i}function cyt(e,t,r,n){if(r.ctnShp){var a;if(tZ(e,function(s){var l=FP.get(s);if(l){var u=l(e,n);u&&(a=a||[0,0],Wj(a,u[0]),Zj(a,u[1]),Fgt(e))}}),!!a){var i=t.getExtent();if(un(t))e.onBand||t.setExtent2(My,te(i[0],i[0]+a[0]),Dt(i[1],i[1]+a[1]));else{var o=i.slice();r.zoomFixMM[0]||(o[0]=te(o[0],t.transformOut(t.transformIn(o[0],null)+a[0],null))),r.zoomFixMM[1]||(o[1]=Dt(o[1],t.transformOut(t.transformIn(o[1],null)+a[1],null))),(o[0]<i[0]||o[1]>i[1])&&t.setExtent2(My,o[0],o[1])}}}}function XV(e,t){var r=id(e),n=r?e.intervalStub:e,a=t.fixMinMax||[],i=r?e.getExtent():null,o=n.getExtent(),s=UW(o,a,t.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var l=r?hyt(n,t):vyt(n,t),u=l.intervalPrecision,f=l.interval,c=t.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=uc(c)),a[0]||(s[0]=Yt(ja(s[0]/f)*f,u)),a[1]||(s[1]=Yt(Uc(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),qW(e,a,o,s,i,l)}function vyt(e,t){var r=_w(t.splitNumber,5),n=mw(e),a=t.minInterval,i=t.maxInterval,o=Kx(n/r,!0);a!=null&&o<a&&(o=a),i!=null&&o>i&&(o=i);var s=uc(o),l=e.getExtent(),u=[Yt(Uc(l[0]/o)*o,s),Yt(ja(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function hyt(e,t){var r=_w(t.splitNumber,10),n=e.getExtent(),a=mw(e),i=Dt(AI(a),1),o=r/a*i;o<=.5&&(i*=10);var s=uc(i),l=[Yt(Uc(n[0]/i)*i,s),Yt(ja(n[1]/i)*i,s)];return{intervalPrecision:s,interval:i,niceExtent:l}}function ld(e){var t=e.scale,r=e.model,n=r.axis,a=r.ecModel;oZ(t,r,n,a,null)}function oZ(e,t,r,n,a){var i=iZ(e,t,n,r,a),o=vb(e)||Pm(e);sZ(e,{splitNumber:t.get("splitNumber"),fixMinMax:i.fixMM,userInterval:t.get("interval"),minInterval:o?t.get("minInterval"):null,maxInterval:o?t.get("maxInterval"):null,rawExtentResult:i}),r&&n&&cyt(r,e,i,n)}function sZ(e,t){dyt[e.type](e,t)}var dyt={interval:XV,log:XV,time:Bgt,ordinal:Pe};function pyt(e){return No(null,e)}var gyt={isDimensionStacked:Os,enableDataStack:BW,getStackedDimension:PP};function yyt(e,t){var r=t;t instanceof Ot||(r=new Ot(t));var n=Nm(r),a=Xd(r,n,!1);return e[1]<e[0]&&(e=e.slice().reverse()),oZ(a,r,null,null,e),a}function myt(e){We(e,Wd)}function _yt(e,t){return t=t||{},se(e,null,null,t.state!=="normal")}const Syt=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:vgt,createList:pyt,createScale:yyt,createSymbol:$e,createTextStyle:_yt,dataStack:gyt,enableHoverEmphasis:Gl,getECData:yt,getLayoutRect:xe,mixinAxisModelCommonMethods:myt},Symbol.toStringTag,{value:"Module"}));var byt=1e-8;function $V(e,t){return Math.abs(e-t)<byt}function ff(e,t,r){var n=0,a=e[0];if(!a)return!1;for(var i=1;i<e.length;i++){var o=e[i];n+=jo(a[0],a[1],o[0],o[1],t,r),a=o}var s=e[0];return(!$V(a[0],s[0])||!$V(a[1],s[1]))&&(n+=jo(a[0],a[1],s[0],s[1],t,r)),n!==0}var xyt=[];function ZC(e,t){for(var r=0;r<e.length;r++)Ne(e[r],e[r],t)}function WV(e,t,r,n){for(var a=0;a<e.length;a++){var i=e[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Jo(t,t,i),ts(r,r,i))}}function wyt(e){for(var t=0,r=0,n=0,a=e.length,i=e[a-1][0],o=e[a-1][1],s=0;s<a;s++){var l=e[s][0],u=e[s][1],f=i*u-l*o;t+=f,r+=(i+l)*f,n+=(o+u)*f,i=l,o=u}return t?[r/t/3,n/t/3,t]:[e[0][0]||0,e[0][1]||0]}var lZ=function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e}(),ZV=function(){function e(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return e}(),qV=function(){function e(t){this.type="linestring",this.points=t}return e}(),uZ=function(e){G(t,e);function t(r,n,a){var i=e.call(this,r)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return t.prototype.calcCenter=function(){for(var r=this.geometries,n,a=0,i=0;i<r.length;i++){var o=r[i],s=o.exterior,l=s&&s.length;l>a&&(n=o,a=l)}if(n)return wyt(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return D(o,function(s){s.type==="polygon"?WV(s.exterior,a,i,r):D(s.points,function(l){WV(l,a,i,r)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new vt(a[0],a[1],i[0]-a[0],i[1]-a[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(r[0],r[1]))return!1;t:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(ff(l,r[0],r[1])){for(var f=0;f<(u?u.length:0);f++)if(ff(u[f],r[0],r[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new vt(r,n,a,i),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var v=f[c];v.type==="polygon"?(ZC(v.exterior,u),D(v.interiors,function(h){ZC(h,u)})):D(v.points,function(h){ZC(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new t(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(lZ),Tyt=function(e){G(t,e);function t(r,n){var a=e.call(this,r)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return t.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=Hc(xyt),o=r;o&&!o.isGeoSVGGraphicRoot;)ua(i,o.getLocalTransform(),i),o=o.parent;return ca(i,i),Ne(a,a,i),a},t}(lZ);function Cyt(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);var n=t.features;return D(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=fZ(s,o,r);break;case"Polygon":qC(s,o,r);break;case"MultiLineString":qC(s,o,r);break;case"MultiPolygon":D(s,function(l,u){return qC(l,o[u],r)})}}),t.UTF8Encoding=!1,t}function qC(e,t,r){for(var n=0;n<e.length;n++)e[n]=fZ(e[n],t[n],r)}function fZ(e,t,r){for(var n=[],a=t[0],i=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,n.push([s/r,l/r])}return n}function TL(e,t){return e=Cyt(e),X(qt(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,a=r.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new ZV(o[0],o.slice(1)));break;case"MultiPolygon":D(a.coordinates,function(l){l[0]&&i.push(new ZV(l[0],l.slice(1)))});break;case"LineString":i.push(new qV([a.coordinates]));break;case"MultiLineString":i.push(new qV(a.coordinates))}var s=new uZ(n[t||"name"],i,n.cp);return s.properties=n,s})}const Ayt=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:gy,asc:Er,getPercentWithPrecision:_ft,getPixelPrecision:mft,getPrecision:Zi,getPrecisionSafe:zj,isNumeric:MI,isRadianAroundZero:tc,linearMap:Xt,nice:Kx,numericToNumber:So,parseDate:Io,parsePercent:et,quantile:_S,quantity:AI,quantityExponent:qx,reformIntervals:BE,remRadian:CI,round:yft},Symbol.toStringTag,{value:"Module"})),Myt=Object.freeze(Object.defineProperty({__proto__:null,format:Om,parse:Io,roundTime:J1},Symbol.toStringTag,{value:"Module"})),Dyt=Object.freeze(Object.defineProperty({__proto__:null,Arc:Dm,BezierCurve:Nd,BoundingRect:vt,Circle:Po,CompoundPath:Em,Ellipse:Mm,Group:ct,Image:mr,IncrementalDisplayable:IX,Line:je,LinearGradient:jc,Polygon:Zr,Polyline:Or,RadialGradient:UI,Rect:Et,Ring:Pd,Sector:Wr,Text:Ht,clipPointsByRect:XI,clipRectByRect:GX,createIcon:Bd,extendPath:BX,extendShape:zX,getShapeClass:Sy,getTransform:If,initProps:ye,makeImage:YI,makePath:ed,mergePath:Jn,registerShape:qa,resizePath:jI,updateProps:jt},Symbol.toStringTag,{value:"Module"})),Eyt=Object.freeze(Object.defineProperty({__proto__:null,addCommas:lP,capitalFirst:lht,encodeHTML:rn,formatTime:sht,formatTpl:fP,getTextRect:oht,getTooltipMarker:i$,normalizeCssArray:Gd,toCamelCase:uP,truncateText:rct},Symbol.toStringTag,{value:"Module"})),Lyt=Object.freeze(Object.defineProperty({__proto__:null,bind:rt,clone:st,curry:At,defaults:dt,each:D,extend:U,filter:qt,indexOf:St,inherits:gI,isArray:Y,isFunction:ut,isObject:pt,isString:J,map:X,merge:wt,reduce:Ya},Symbol.toStringTag,{value:"Module"}));var Oyt=Tt(),zg=Tt(),yi={estimate:1,determine:2};function pb(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function Ryt(e,t){var r=e.getLabelModel().get("customValues");if(r){var n=e.scale;return{labels:X(cZ(r,n),function(a,i){return{formattedLabel:km(e)(a,i),rawLabel:n.getLabel(a),tick:a}})}}return e.type==="category"?Pyt(e,t):kyt(e)}function Iyt(e,t,r){var n=e.scale,a=e.getTickModel().get("customValues");return a?{ticks:cZ(a,n)}:e.type==="category"?Nyt(e,t):{ticks:n.getTicks(r)}}function cZ(e,t){var r=t.getExtent(),n=[];return D(e,function(a){a=t.parse(a),a>=r[0]&&a<=r[1]&&n.push(a)}),Qx(n,Fft,null),Er(n),X(n,function(a){return{value:a}})}function Pyt(e,t){var r=e.getLabelModel(),n=vZ(e,r,t);return!r.get("show")||e.scale.isBlank()?{labels:[]}:n}function vZ(e,t,r){var n=Byt(e),a=VP(t),i=r.kind===yi.estimate;if(!i){var o=dZ(n,a);if(o)return o}var s,l;ut(a)?s=gb(e,a,!1):(l=a==="auto"?Vyt(e,r):a,s=gb(e,l,!1));var u={labels:s,labelCategoryInterval:l};return i?r.out.noPxChangeTryDetermine.push(function(){return CL(n,a,u),!0}):CL(n,a,u),u}function Nyt(e,t){var r=zyt(e),n=VP(t),a=dZ(r,n);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),ut(n))i=gb(e,n,!0);else if(n==="auto"){var s=vZ(e,e.getLabelModel(),pb(yi.determine));o=s.labelCategoryInterval,i=X(s.labels,function(l){return l.tick})}else o=n,i=gb(e,o,!0);return CL(r,n,{ticks:i,tickCategoryInterval:o})}function kyt(e){var t=e.scale.getTicks(),r=km(e);return{labels:X(t,function(n,a){return{formattedLabel:r(n,a),rawLabel:e.scale.getLabel(n),tick:n}})}}var zyt=hZ("axisTick"),Byt=hZ("axisLabel");function hZ(e){return function(r){return zg(r)[e]||(zg(r)[e]={list:[]})}}function dZ(e,t){for(var r=0;r<e.list.length;r++)if(e.list[r].key===t)return e.list[r].value}function CL(e,t,r){return e.list.push({key:t,value:r}),r}function Vyt(e,t){if(t.kind===yi.estimate){var r=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return zg(e).autoInterval=r,!0}),r}var n=zg(e).autoInterval;return n??(zg(e).autoInterval=e.calculateCategoryInterval(t))}function Gyt(e,t){var r=t.kind,n=Uyt(e),a=km(e),i=(n.axisRotate-n.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],v=e.dataToCoord(c+1)-e.dataToCoord(c),h=Math.abs(v*Math.cos(i)),d=Math.abs(v*Math.sin(i)),p=0,g=0;c<=s[1];c+=u){var y=0,m=0,_=$x(a({value:c}),n.font,"center","top");y=_.width*1.3,m=_.height*1.3,p=Math.max(p,y,7),g=Math.max(g,m,7)}var S=p/h,b=g/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var x=Math.max(0,Math.floor(Math.min(S,b)));if(r===yi.estimate)return t.out.noPxChangeTryDetermine.push(rt(Hyt,null,e,x,l)),x;var w=pZ(e,x,l);return w??x}function Hyt(e,t,r){return pZ(e,t,r)==null}function pZ(e,t,r){var n=Oyt(e.model),a=e.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-t)<=1&&Math.abs(o-r)<=1&&i>t&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=r,n.lastAutoInterval=t,n.axisExtent0=a[0],n.axisExtent1=a[1]}function Uyt(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function gb(e,t,r){var n=km(e),a=e.scale,i=[],o=ut(t);return FW(a,o?0:t,function(s,l){var u=a.getLabel(s);if(o){var f=!!t(s.value,u);if(s.offInterval=!f,!f&&!l)return}i.push(r?s:{formattedLabel:n(s),rawLabel:u,tick:s})}),i}var Fyt=.8;function qr(e,t){t=t||{};var r={w:NaN,w2:NaN},n=e.scale,a=t.fromStat,i=t.min,o=Agt(n);Xa(o)||(o=NaN);var s=e.getExtent(),l=Ie(s[1]-s[0]);return un(n)?Yyt(r,e,o,l):a&&jyt(r,e,o,l,a),i!=null&&(r.w=Xa(r.w)?Dt(i,r.w):i),r}function Yyt(e,t,r,n){var a=t.onBand,i=r+(a?1:0);i===0&&(i=1),e.w=n/i,!a&&r&&n&&(e.w2=e.w*r/n)}function jyt(e,t,r,n,a){var i=!1,o=-1/0;D(a.key?[Kgt(t,a.key)]:Qgt(t,a.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),i=!1):l===KW&&(i=!0))}),Xa(r)&&r>0&&Xa(o)?(e.w=n/r*o,e.w2=o):i&&(e.w=n*Fyt,e.w2=e.w*r/n)}var KV=[0,1],Ka=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return t>=n&&t<=a},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this.scale;return t=n.normalize(n.parse(t)),Xt(t,KV,QV(this),r)},e.prototype.coordToData=function(t,r){var n=Xt(t,QV(this),KV,r);return this.scale.scale(n)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=Iyt(this,r,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),a=X(n.ticks,function(s){return{coord:this.dataToCoord($d(this.scale,s)),tick:s}},this),i=r.get("alignWithLabel"),o=Xyt(this,a,i);return X(a,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},e.prototype.getMinorTicksCoords=function(){if(un(this.scale))return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=X(n,function(i){return X(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(t){return t=t||pb(yi.determine),Ryt(this,t).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){return qr(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(t){return t=t||pb(yi.determine),Gyt(this,t)},e}();function QV(e){var t=e.getExtent();if(e.onBand){var r=t[1]-t[0],n=r/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function Xyt(e,t,r){var n=t.length;if(!e.onBand||r||!n)return!1;var a=qr(e).w;if(!a)return!1;D(t,function(s){s.coord-=a/2});var i=e.scale.getExtent(),o=t[n-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+a,tick:{value:i[1]+1}}),!0}function $yt(e){var t=Lt.extend(e);return Lt.registerClass(t),t}function Wyt(e){var t=fe.extend(e);return fe.registerClass(t),t}function Zyt(e){var t=ne.extend(e);return ne.registerClass(t),t}function qyt(e){var t=ee.extend(e);return ee.registerClass(t),t}var Cp=Math.PI*2,Xu=bo.CMD,Kyt=["top","right","bottom","left"];function Qyt(e,t,r,n,a){var i=r.width,o=r.height;switch(e){case"top":n.set(r.x+i/2,r.y-t),a.set(0,-1);break;case"bottom":n.set(r.x+i/2,r.y+o+t),a.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),a.set(-1,0);break;case"right":n.set(r.x+i+t,r.y+o/2),a.set(1,0);break}}function Jyt(e,t,r,n,a,i,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*r+e,c=s*r+t;if(Math.abs(n-a)%Cp<1e-4)return l[0]=f,l[1]=c,u-r;if(i){var v=n;n=ra(a),a=ra(v)}else n=ra(n),a=ra(a);n>a&&(a+=Cp);var h=Math.atan2(s,o);if(h<0&&(h+=Cp),h>=n&&h<=a||h+Cp>=n&&h+Cp<=a)return l[0]=f,l[1]=c,u-r;var d=r*Math.cos(n)+e,p=r*Math.sin(n)+t,g=r*Math.cos(a)+e,y=r*Math.sin(a)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function yb(e,t,r,n,a,i,o,s){var l=a-e,u=i-t,f=r-e,c=n-t,v=Math.sqrt(f*f+c*c);f/=v,c/=v;var h=l*f+u*c,d=h/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=e+d*f,g=o[1]=t+d*c;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function gZ(e,t,r,n,a,i,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(a,e),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var ai=[];function tmt(e,t,r){var n=gZ(t.x,t.y,t.width,t.height,e.x,e.y,ai);return r.set(ai[0],ai[1]),n}function emt(e,t,r){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=t.data,c=e.x,v=e.y,h=0;h<f.length;){var d=f[h++];h===1&&(n=f[h],a=f[h+1],i=n,o=a);var p=u;switch(d){case Xu.M:i=f[h++],o=f[h++],n=i,a=o;break;case Xu.L:p=yb(n,a,f[h],f[h+1],c,v,ai,!0),n=f[h++],a=f[h++];break;case Xu.C:p=yj(n,a,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],c,v,ai),n=f[h++],a=f[h++];break;case Xu.Q:p=_j(n,a,f[h++],f[h++],f[h],f[h+1],c,v,ai),n=f[h++],a=f[h++];break;case Xu.A:var g=f[h++],y=f[h++],m=f[h++],_=f[h++],S=f[h++],b=f[h++];h+=1;var x=!!(1-f[h++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,h<=1&&(i=s,o=l);var w=(c-g)*_/m+g;p=Jyt(g,y,_,S,S+b,x,w,v,ai),n=Math.cos(S+b)*m+g,a=Math.sin(S+b)*_+y;break;case Xu.R:i=n=f[h++],o=a=f[h++];var T=f[h++],C=f[h++];p=gZ(i,o,T,C,c,v,ai);break;case Xu.Z:p=yb(n,a,i,o,c,v,ai,!0),n=i,a=o;break}p<u&&(u=p,r.set(ai[0],ai[1]))}return u}var si=new gt,pe=new gt,Fe=new gt,Ki=new gt,Ui=new gt;function JV(e,t){if(e){var r=e.getTextGuideLine(),n=e.getTextContent();if(n&&r){var a=e.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||Kyt,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,f=e.getComputedTransform(),c=f&&ca([],f),v=t.get("length2")||0;u&&Fe.copy(u);for(var h=0;h<o.length;h++){var d=o[h];Qyt(d,0,s,si,Ki),gt.scaleAndAdd(pe,si,Ki,v),pe.transform(c);var p=e.getBoundingRect(),g=u?u.distance(pe):e instanceof Rt?emt(pe,e.path,Fe):tmt(pe,p,Fe);g<l&&(l=g,pe.transform(f),Fe.transform(f),Fe.toArray(i[0]),pe.toArray(i[1]),si.toArray(i[2]))}yZ(i,t.get("minTurnAngle")),r.setShape({points:i})}}}var mb=[],gn=new gt;function yZ(e,t){if(t<=180&&t>0){t=t/180*Math.PI,si.fromArray(e[0]),pe.fromArray(e[1]),Fe.fromArray(e[2]),gt.sub(Ki,si,pe),gt.sub(Ui,Fe,pe);var r=Ki.len(),n=Ui.len();if(!(r<.001||n<.001)){Ki.scale(1/r),Ui.scale(1/n);var a=Ki.dot(Ui),i=Math.cos(t);if(i<a){var o=yb(pe.x,pe.y,Fe.x,Fe.y,si.x,si.y,mb,!1);gn.fromArray(mb),gn.scaleAndAdd(Ui,o/Math.tan(Math.PI-t));var s=Fe.x!==pe.x?(gn.x-pe.x)/(Fe.x-pe.x):(gn.y-pe.y)/(Fe.y-pe.y);if(isNaN(s))return;s<0?gt.copy(gn,pe):s>1&&gt.copy(gn,Fe),gn.toArray(e[1])}}}}function rmt(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,si.fromArray(e[0]),pe.fromArray(e[1]),Fe.fromArray(e[2]),gt.sub(Ki,pe,si),gt.sub(Ui,Fe,pe);var n=Ki.len(),a=Ui.len();if(!(n<.001||a<.001)){Ki.scale(1/n),Ui.scale(1/a);var i=Ki.dot(t),o=Math.cos(r);if(i<o){var s=yb(pe.x,pe.y,Fe.x,Fe.y,si.x,si.y,mb,!1);gn.fromArray(mb);var l=Math.PI/2,u=Math.acos(Ui.dot(t)),f=l+u-r;if(f>=l)gt.copy(gn,Fe);else{gn.scaleAndAdd(Ui,s/Math.tan(Math.PI/2-f));var c=Fe.x!==pe.x?(gn.x-pe.x)/(Fe.x-pe.x):(gn.y-pe.y)/(Fe.y-pe.y);if(isNaN(c))return;c<0?gt.copy(gn,pe):c>1&&gt.copy(gn,Fe)}gn.toArray(e[1])}}}}function KC(e,t,r,n){var a=r==="normal",i=a?e:e.ensureState(r);i.ignore=t;var o=n.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,i.shape=i.shape||{},i.shape.smooth=o;var s=n.getModel("lineStyle").getLineStyle();a?e.useStyle(s):i.style=s}function nmt(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=Qo(n[0],n[1]),i=Qo(n[1],n[2]);if(!a||!i){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*r,s=Mg([],n[1],n[0],o/a),l=Mg([],n[1],n[2],o/i),u=Mg([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)e.lineTo(n[f][0],n[f][1])}function YP(e,t,r){var n=e.getTextGuideLine(),a=e.getTextContent();if(!a){n&&e.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=a.ignore,l=0;l<my.length;l++){var u=my[l],f=t[u],c=u==="normal";if(f){var v=f.get("show"),h=c?s:ot(a.states[u]&&a.states[u].ignore,s);if(h||!ot(v,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0),n&&KC(n,!0,u,f);continue}n||(n=new Or,e.setTextGuideLine(n),!c&&(s||!o)&&KC(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),KC(n,!1,u,f)}}if(n){dt(n.style,r),n.style.fill=null;var p=i.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=nmt}}function jP(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<Tn.length;n++){var a=Tn[n];r[a]=e.getModel([a,t])}return r}var t4=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],amt=1,_b=2,mZ=amt|_b;function Sb(e,t,r){r=r||mZ,t?e.dirty|=r:e.dirty&=~r}function _Z(e,t){return t=t||mZ,e.dirty==null||!!(e.dirty&t)}function To(e){if(e)return _Z(e)&&SZ(e,e.label,e),e}function SZ(e,t,r){var n=t.getComputedTransform();e.transform=WI(e.transform,n);var a=e.localRect=by(e.localRect,t.getBoundingRect()),i=t.style,o=i.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=i.__marginType;f==null&&u&&(o=u,f=ih.textMargin);for(var c=0;c<4;c++)QC[c]=f===ih.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===ih.textMargin&&oc(a,QC,!1,!1);var v=e.rect=by(e.rect,a);return n&&v.applyTransform(n),f===ih.minMargin&&oc(v,QC,!1,!1),e.axisAligned=$I(n),(e.label=e.label||{}).ignore=t.ignore,Sb(e,!1),Sb(e,!0,_b),e}var QC=[0,0,0,0];function imt(e,t,r){return e.transform=WI(e.transform,r),e.localRect=by(e.localRect,t),e.rect=by(e.rect,t),r&&e.rect.applyTransform(r),e.axisAligned=$I(r),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function AL(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var r=e.transform;r&&(r[4]+=t.x,r[5]+=t.y);var n=e.rect;n&&(n.x+=t.x,n.y+=t.y);var a=e.obb;a&&a.fromBoundingRect(e.localRect,r)}}function ML(e,t){for(var r=0;r<t4.length;r++){var n=t4[r];e[n]==null&&(e[n]=t[n])}return To(e)}function e4(e){var t=e.obb;return(!t||_Z(e,_b))&&(e.obb=t=t||new OX,t.fromBoundingRect(e.localRect,e.transform),Sb(e,!1,_b)),t}function DL(e,t,r,n,a){var i=e.length,o=_t[t],s=Ge[t];if(i<2)return!1;e.sort(function(w,T){return w.rect[o]-T.rect[o]});for(var l=0,u,f=!1,c=0;c<i;c++){var v=e[c],h=v.rect;u=h[o]-l,u<0&&(h[o]-=u,v.label[o]-=u,f=!0),l=h[o]+h[s]}var d=e[0],p=e[i-1],g,y;m(),g<0&&b(-g,.8),y<0&&b(y,.8),m(),_(g,y,1),_(y,g,-1),m(),g<0&&x(-g),y<0&&x(y);function m(){g=d.rect[o]-r,y=n-p.rect[o]-p.rect[s]}function _(w,T,C){if(w<0){var A=Math.min(T,-w);if(A>0){S(A*C,0,i);var M=A+w;M<0&&b(-M*C,1)}else b(-w*C,1)}}function S(w,T,C){w!==0&&(f=!0);for(var A=T;A<C;A++){var M=e[A],L=M.rect;L[o]+=w,M.label[o]+=w}}function b(w,T){for(var C=[],A=0,M=1;M<i;M++){var L=e[M-1].rect,E=Math.max(e[M].rect[o]-L[o]-L[s],0);C.push(E),A+=E}if(A){var R=Math.min(Math.abs(w)/A,T);if(w>0)for(var M=0;M<i-1;M++){var I=C[M]*R;S(I,0,M+1)}else for(var M=i-1;M>0;M--){var I=C[M-1]*R;S(-I,M,i)}}}function x(w){var T=w<0?-1:1;w=Math.abs(w);for(var C=Math.ceil(w/(i-1)),A=0;A<i-1;A++)if(T>0?S(C,0,A+1):S(-C,i-A-1,i),w-=C,w<=0)return}return f}function omt(e){for(var t=0;t<e.length;t++){var r=e[t],n=r.defaultAttr,a=r.labelLine;r.label.attr("ignore",n.ignore),a&&a.attr("ignore",n.labelGuideIgnore)}}function bZ(e){var t=[];e.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<e.length;n++){var a=To(e[n]);if(!a.label.ignore){for(var i=a.label,o=a.labelLine,s=!1,l=0;l<t.length;l++)if(xw(a,t[l],null,{touchThreshold:.05})){s=!0;break}s?(r(i),o&&r(o)):t.push(a)}}}function xw(e,t,r,n){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,r,n)?!1:e.axisAligned&&t.axisAligned?!0:e4(e).intersect(e4(t),r,n)}function smt(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function lmt(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:smt(n&&n.shape.points)}}var r4=["align","verticalAlign","width","height","fontSize"],vn=new Ro,JC=Tt(),umt=Tt();function J0(e,t,r){for(var n=0;n<r.length;n++){var a=r[n];t[a]!=null&&(e[a]=t[a])}}var t_=["x","y","rotation"],fmt=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),f=a.getBoundingRect().plain();vt.applyTransform(f,f,u),u?vn.setLocalTransform(u):(vn.x=vn.y=vn.rotation=vn.originX=vn.originY=0,vn.scaleX=vn.scaleY=1),vn.rotation=ra(vn.rotation);var c=a.__hostTarget,v;if(c){v=c.getBoundingRect().plain();var h=c.getComputedTransform();vt.applyTransform(v,v,h)}var d=v&&c.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:n,dataIndex:t,dataType:r,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:vn.x,y:vn.y,scaleX:vn.scaleX,scaleY:vn.scaleY,rotation:vn.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,a=n.get("labelLayout");(ut(a)||kt(a).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=yt(i);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,a)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function a(_,S){return function(){JV(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;ut(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(lmt(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var v=!1;if(f.x!=null?(s.x=et(f.x,r),s.setStyle("x",0),v=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=et(f.y,n),s.setStyle("y",0),v=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:f.labelLinePoints}),v=!1)}var d=JC(s);d.needsUpdateLabelLine=v,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<r4.length;p++){var g=r4[p];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",a(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),a=[];D(this._labelList,function(l){l.defaultAttr.ignore||a.push(ML({},l))});var i=qt(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=qt(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});DL(i,0,0,r),DL(o,1,0,n);var s=qt(a,function(l){return l.layoutOption.hideOverlap});omt(s),bZ(s)},e.prototype.processLabelsOverall=function(){var t=this;D(this._chartViewList,function(r){var n=r.__model,a=r.ignoreLabelLineUpdate,i=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=JC(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),i&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),a=yt(t),i=a.dataIndex;if(n&&i!=null){var o=r.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");YP(t,jP(s),l),JV(t,c)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),a=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Th(t))){var i=JC(n),o=i.oldLayout,s=yt(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=r.getData(s.dataType);if(o){n.attr(o);var v=t.prevStates;v&&(St(v,"select")>=0&&n.attr(i.oldLayoutSelect),St(v,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),jt(n,u,r,l)}else if(n.attr(u),!Vd(n).valueAnimation){var c=ot(n.style.opacity,1);n.style.opacity=0,ye(n,{style:{opacity:c}},r,l)}if(i.oldLayout=u,n.states.select){var h=i.oldLayoutSelect={};J0(h,u,t_),J0(h,n.states.select,t_)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};J0(d,u,t_),J0(d,n.states.emphasis,t_)}XX(n,l,f,r,r)}if(a&&!a.ignore&&!a.invisible){var i=umt(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),jt(a,{shape:p},r)):(a.setShape(p),a.style.strokePercent=0,ye(a,{style:{strokePercent:1}},r)),i.oldLayout=p}},e}(),tA=Tt();function cmt(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var a=tA(r).labelManager;a||(a=tA(r).labelManager=new fmt),a.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var a=tA(r).labelManager;D(n.updatedSeries,function(i){a.addLabelsOfSeries(r.getViewOfSeriesModel(i))}),a.updateLayoutConfig(r),a.layout(r),a.processLabelsOverall()})}var eA=Math.sin,rA=Math.cos,xZ=Math.PI,$u=Math.PI*2,vmt=180/xZ,wZ=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,a,i,o){this._add("C",t,r,n,a,i,o)},e.prototype.quadraticCurveTo=function(t,r,n,a){this._add("Q",t,r,n,a)},e.prototype.arc=function(t,r,n,a,i,o){this.ellipse(t,r,n,n,0,a,i,o)},e.prototype.ellipse=function(t,r,n,a,i,o,s,l){var u=s-o,f=!l,c=Math.abs(u),v=xl(c-$u)||(f?u>=$u:-u>=$u),h=u>0?u%$u:u%$u+$u,d=!1;v?d=!0:xl(c)?d=!1:d=h>=xZ==!!f;var p=t+n*rA(o),g=r+a*eA(o);this._start&&this._add("M",p,g);var y=Math.round(i*vmt);if(v){var m=1/this._p,_=(f?1:-1)*($u-m);this._add("A",n,a,y,1,+f,t+n*rA(o+_),r+a*eA(o+_)),m>.01&&this._add("A",n,a,y,0,+f,p,g)}else{var S=t+n*rA(s),b=r+a*eA(s);this._add("A",n,a,y,+d,+f,S,b)}},e.prototype.rect=function(t,r,n,a){this._add("M",t,r),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,a,i,o,s,l,u){for(var f=[],c=this._p,v=1;v<arguments.length;v++){var h=arguments[v];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*c)/c)}this._d.push(t+f.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),XP="none",hmt=Math.round;function dmt(e){var t=e.fill;return t!=null&&t!==XP}function pmt(e){var t=e.stroke;return t!=null&&t!==XP}var EL=["lineCap","miterLimit","lineJoin"],gmt=X(EL,function(e){return"stroke-"+e.toLowerCase()});function ymt(e,t,r,n){var a=t.opacity==null?1:t.opacity;if(r instanceof mr){e("opacity",a);return}if(dmt(t)){var i=dy(t.fill);e("fill",i.color);var o=t.fillOpacity!=null?t.fillOpacity*i.opacity*a:i.opacity*a;o<1&&e("fill-opacity",o)}else e("fill",XP);if(pmt(t)){var s=dy(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?r.getLineScale():1,u=l?(t.lineWidth||0)/l:0,f=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*a:s.opacity*a,c=t.strokeFirst;if(u!==1&&e("stroke-width",u),c&&e("paint-order",c?"stroke":"fill"),f<1&&e("stroke-opacity",f),t.lineDash){var v=bP(r),h=v[0],d=v[1];h&&(d=hmt(d||0),e("stroke-dasharray",h.join(",")),(d||n)&&e("stroke-dashoffset",d))}for(var p=0;p<EL.length;p++){var g=EL[p];if(t[g]!==j1[g]){var y=t[g]||j1[g];y&&e(gmt[p],y)}}}}var TZ="http://www.w3.org/2000/svg",CZ="http://www.w3.org/1999/xlink",mmt="http://www.w3.org/2000/xmlns/",_mt="http://www.w3.org/XML/1998/namespace",n4="ecmeta_";function AZ(e){return document.createElementNS(TZ,e)}function vr(e,t,r,n,a){return{tag:e,attrs:r||{},children:n,text:a,key:t}}function Smt(e,t){var r=[];if(t)for(var n in t){var a=t[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),r.push(i))}return"<"+e+" "+r.join(" ")+">"}function bmt(e){return"</"+e+">"}function $P(e,t){t=t||{};var r=t.newline?`
168
+ `:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return Smt(o,s)+(o!=="style"?rn(l):l||"")+(i?""+r+X(i,function(u){return n(u)}).join(r)+r:"")+bmt(o)}return n(e)}function xmt(e,t,r){r=r||{};var n=r.newline?`
169
+ `:"",a=" {"+n,i=n+"}",o=X(kt(e),function(l){return l+a+X(kt(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+i}).join(n),s=X(kt(t),function(l){return"@keyframes "+l+a+X(kt(t[l]),function(u){return u+a+X(kt(t[l][u]),function(f){var c=t[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function LL(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function a4(e,t,r,n){return vr("svg","root",{width:e,height:t,xmlns:TZ,"xmlns:xlink":CZ,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var wmt=0;function MZ(){return wmt++}var i4={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},nf="transform-origin";function Tmt(e,t,r){var n=U({},e.shape);U(n,t),e.buildPath(r,n);var a=new wZ;return a.reset(Aj(e)),r.rebuildPath(a,1),a.generateStr(),a.getStr()}function Cmt(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[nf]=r+"px "+n+"px")}var Amt={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function DZ(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function Mmt(e,t,r){var n=e.shape.paths,a={},i,o;if(D(n,function(l){var u=LL(r.zrId);u.animation=!0,ww(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,v=kt(f),h=v.length;if(h){o=v[h-1];var d=f[o];for(var p in d){var g=d[p];a[p]=a[p]||{d:""},a[p].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){t.d=!1;var s=DZ(a,r);return i.replace(o,s)}}function o4(e){return J(e)?i4[e]?"cubic-bezier("+i4[e]+")":SI(e)?e:"":""}function ww(e,t,r,n){var a=e.animators,i=a.length,o=[];if(e instanceof Em){var s=Mmt(e,t,r);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=a[u],c=[f.getMaxTime()/1e3+"s"],v=o4(f.getClip().easing),h=f.getDelay();v?c.push(v):c.push("linear"),h&&c.push(h/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(m){var _=m[1],S=_.length,b={},x={},w={},T="animation-timing-function";function C(Q,q,ht){for(var K=Q.getTracks(),at=Q.getMaxTime(),bt=0;bt<K.length;bt++){var Mt=K[bt];if(Mt.needsAnimate()){var zt=Mt.keyframes,$t=Mt.propName;if(ht&&($t=ht($t)),$t)for(var me=0;me<zt.length;me++){var lr=zt[me],Kr=Math.round(lr.time/at*100)+"%",ko=o4(lr.easing),Ys=lr.rawValue;(J(Ys)||Ut(Ys))&&(q[Kr]=q[Kr]||{},q[Kr][$t]=lr.rawValue,ko&&(q[Kr][T]=ko))}}}}for(var A=0;A<S;A++){var M=_[A],L=M.targetName;L?L==="shape"&&C(M,x):!n&&C(M,b)}for(var E in b){var R={};yo(R,e),U(R,b[E]);var I=Mj(R),O=b[E][T];w[E]=I?{transform:I}:{},Cmt(w[E],R),O&&(w[E][T]=O)}var N,P=!0;for(var E in x){w[E]=w[E]||{};var z=!N,O=x[E][T];z&&(N=new bo);var B=N.len();N.reset(),w[E].d=Tmt(e,x[E],N);var H=N.len();if(!z&&B!==H){P=!1;break}O&&(w[E][T]=O)}if(!P)for(var E in w)delete w[E].d;if(!n)for(var A=0;A<S;A++){var M=_[A],L=M.targetName;L==="style"&&C(M,w,function(K){return Amt[K]})}for(var F=kt(w),$=!0,j,A=1;A<F.length;A++){var tt=F[A-1],mt=F[A];if(w[tt][nf]!==w[mt][nf]){$=!1;break}j=w[tt][nf]}if($&&j){for(var E in w)w[E][nf]&&delete w[E][nf];t[nf]=j}if(qt(F,function(Q){return kt(w[Q]).length>0}).length){var Nt=DZ(w,r);return Nt+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=r.zrId+"-cls-"+MZ();r.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function Dmt(e,t,r){if(!e.ignore)if(e.isSilent()){var n={"pointer-events":"none"};s4(n,t,r)}else{var a=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},i=a.fill;if(!i){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(i=B1(l))}var u=a.lineWidth;if(u){var f=!a.strokeNoScale&&e.transform?e.transform[0]:1;u=u/f}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),u&&(n["stroke-width"]=u),s4(n,t,r)}}function s4(e,t,r,n){var a=JSON.stringify(e),i=r.cssStyleCache[a];i||(i=r.zrId+"-cls-"+MZ(),r.cssStyleCache[a]=i,r.cssNodes["."+i+":hover"]=e),t.class=t.class?t.class+" "+i:i}var Oy=Math.round;function EZ(e){return e&&J(e.src)}function LZ(e){return e&&ut(e.toDataURL)}function WP(e,t,r,n){ymt(function(a,i){var o=a==="fill"||a==="stroke";o&&Cj(i)?RZ(t,e,a,n):o&&xI(i)?IZ(r,e,a,n):e[a]=i,o&&n.ssr&&i==="none"&&(e["pointer-events"]="visible")},t,r,!1),Nmt(r,e,n)}function ZP(e,t){var r=Pj(t);r&&(r.each(function(n,a){n!=null&&(e[(n4+a).toLowerCase()]=n+"")}),t.isSilent()&&(e[n4+"silent"]="true"))}function l4(e){return xl(e[0]-1)&&xl(e[1])&&xl(e[2])&&xl(e[3]-1)}function Emt(e){return xl(e[4])&&xl(e[5])}function qP(e,t,r){if(t&&!(Emt(t)&&l4(t))){var n=1e4;e.transform=l4(t)?"translate("+Oy(t[4]*n)/n+" "+Oy(t[5]*n)/n+")":Lut(t)}}function u4(e,t,r){for(var n=e.points,a=[],i=0;i<n.length;i++)a.push(Oy(n[i][0]*r)/r),a.push(Oy(n[i][1]*r)/r);t.points=a.join(" ")}function f4(e){return!e.smooth}function Lmt(e){var t=X(e,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,a){for(var i=0;i<t.length;i++){var o=t[i],s=r[o[0]];s!=null&&(n[o[1]]=Oy(s*a)/a)}}}var Omt={circle:[Lmt(["cx","cy","r"])],polyline:[u4,f4],polygon:[u4,f4]};function Rmt(e){for(var t=e.animators,r=0;r<t.length;r++)if(t[r].targetName==="shape")return!0;return!1}function OZ(e,t){var r=e.style,n=e.shape,a=Omt[e.type],i={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&Aj(e)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&Rmt(e))&&!(l<1)){s=e.type;var f=Math.pow(10,u);a[0](n,i,f)}else{var c=!e.path||e.shapeChanged();e.path||e.createPathProxy();var v=e.path;c&&(v.beginPath(),e.buildPath(v,e.shape),e.pathUpdated());var h=v.getVersion(),d=e,p=d.__svgPathBuilder;(d.__svgPathVersion!==h||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new wZ),p.reset(u),v.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),i.d=p.getStr()}return qP(i,e.transform),WP(i,r,e,t),ZP(i,e),t.animation&&ww(e,i,t),t.emphasis&&Dmt(e,i,t),vr(s,e.id+"",i)}function Imt(e,t){var r=e.style,n=r.image;if(n&&!J(n)&&(EZ(n)?n=n.src:LZ(n)&&(n=n.toDataURL())),!!n){var a=r.x||0,i=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),qP(l,e.transform),WP(l,r,e,t),ZP(l,e),t.animation&&ww(e,l,t),vr("image",e.id+"",l)}}function Pmt(e,t){var r=e.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var a=r.font||Ts,i=r.x||0,o=Rut(r.y||0,Tm(a),r.textBaseline),s=Out[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(lX(r)){var u="",f=r.fontStyle,c=sX(r.fontSize);if(!parseFloat(c))return;var v=r.fontFamily||W9,h=r.fontWeight;u+="font-size:"+c+";font-family:"+v+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+a;return n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),qP(l,e.transform),WP(l,r,e,t),ZP(l,e),t.animation&&ww(e,l,t),vr("text",e.id+"",l,void 0,n)}}function c4(e,t){if(e instanceof Rt)return OZ(e,t);if(e instanceof mr)return Imt(e,t);if(e instanceof td)return Pmt(e,t)}function Nmt(e,t,r){var n=e.style;if(Iut(n)){var a=Put(e),i=r.shadowCache,o=i[a];if(!o){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,c=n.shadowOffsetY||0,v=n.shadowBlur,h=dy(n.shadowColor),d=h.opacity,p=h.color,g=v/2/l,y=v/2/u,m=g+" "+y;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=vr("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[vr("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:m,"flood-color":p,"flood-opacity":d})]),i[a]=o}t.filter=Xx(o)}}function RZ(e,t,r,n){var a=e[r],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(wj(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(Tj(a))i="radialGradient",o.cx=ot(a.x,.5),o.cy=ot(a.y,.5),o.r=ot(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=ME(s[u].offset)*100+"%",v=s[u].color,h=dy(v),d=h.color,p=h.opacity,g={offset:c};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(vr("stop",u+"",g))}var y=vr(i,"",o,l),m=$P(y),_=n.gradientCache,S=_[m];S||(S=n.zrId+"-g"+n.gradientIdx++,_[m]=S,o.id=S,n.defs[S]=vr(i,S,o,l)),t[r]=Xx(S)}function IZ(e,t,r,n){var a=e.style[r],i=e.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(xj(a)){var v=a.imageWidth,h=a.imageHeight,d=void 0,p=a.image;if(J(p)?d=p:EZ(p)?d=p.src:LZ(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";$r(v,g),$r(h,g)}else if(v==null||h==null){var y=function(A,M){if(A){var L=A.elm,E=v||M.width,R=h||M.height;A.tag==="pattern"&&(u?(R=1,E/=i.width):f&&(E=1,R/=i.height)),A.attrs.width=E,A.attrs.height=R,L&&(L.setAttribute("width",E),L.setAttribute("height",R))}},m=II(d,null,e,function(A){l||y(x,A),y(c,A)});m&&m.width&&m.height&&(v=v||m.width,h=h||m.height)}c=vr("image","img",{href:d,width:v,height:h}),o.width=v,o.height=h}else a.svgElement&&(c=st(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(c){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var b=Mj(a);b&&(o.patternTransform=b);var x=vr("pattern","",o,[c]),w=$P(x),T=n.patternCache,C=T[w];C||(C=n.zrId+"-p"+n.patternIdx++,T[w]=C,o.id=C,x=n.defs[C]=vr("pattern",C,o,[c])),t[r]=Xx(C)}}function kmt(e,t,r){var n=r.clipPathCache,a=r.defs,i=n[e.id];if(!i){i=r.zrId+"-c"+r.clipPathIdx++;var o={id:i};n[e.id]=i,a[i]=vr("clipPath",i,o,[OZ(e,r)])}t["clip-path"]=Xx(i)}function v4(e){return document.createTextNode(e)}function cf(e,t,r){e.insertBefore(t,r)}function h4(e,t){e.removeChild(t)}function d4(e,t){e.appendChild(t)}function PZ(e){return e.parentNode}function NZ(e){return e.nextSibling}function nA(e,t){e.textContent=t}var p4=58,zmt=120,Bmt=vr("","");function OL(e){return e===void 0}function zi(e){return e!==void 0}function Vmt(e,t,r){for(var n={},a=t;a<=r;++a){var i=e[a].key;i!==void 0&&(n[i]=a)}return n}function rg(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Ry(e){var t,r=e.children,n=e.tag;if(zi(n)){var a=e.elm=AZ(n);if(KP(Bmt,e),Y(r))for(t=0;t<r.length;++t){var i=r[t];i!=null&&d4(a,Ry(i))}else zi(e.text)&&!pt(e.text)&&d4(a,v4(e.text))}else e.elm=v4(e.text);return e.elm}function kZ(e,t,r,n,a){for(;n<=a;++n){var i=r[n];i!=null&&cf(e,Ry(i),t)}}function bb(e,t,r,n){for(;r<=n;++r){var a=t[r];if(a!=null)if(zi(a.tag)){var i=PZ(a.elm);h4(i,a.elm)}else h4(e,a.elm)}}function KP(e,t){var r,n=t.elm,a=e&&e.attrs||{},i=t.attrs||{};if(a!==i){for(r in i){var o=i[r],s=a[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==zmt?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(mmt,r,o):r.charCodeAt(3)===p4?n.setAttributeNS(_mt,r,o):r.charCodeAt(5)===p4?n.setAttributeNS(CZ,r,o):n.setAttribute(r,o))}for(r in a)r in i||n.removeAttribute(r)}}function Gmt(e,t,r){for(var n=0,a=0,i=t.length-1,o=t[0],s=t[i],l=r.length-1,u=r[0],f=r[l],c,v,h,d;n<=i&&a<=l;)o==null?o=t[++n]:s==null?s=t[--i]:u==null?u=r[++a]:f==null?f=r[--l]:rg(o,u)?(zv(o,u),o=t[++n],u=r[++a]):rg(s,f)?(zv(s,f),s=t[--i],f=r[--l]):rg(o,f)?(zv(o,f),cf(e,o.elm,NZ(s.elm)),o=t[++n],f=r[--l]):rg(s,u)?(zv(s,u),cf(e,s.elm,o.elm),s=t[--i],u=r[++a]):(OL(c)&&(c=Vmt(t,n,i)),v=c[u.key],OL(v)?cf(e,Ry(u),o.elm):(h=t[v],h.tag!==u.tag?cf(e,Ry(u),o.elm):(zv(h,u),t[v]=void 0,cf(e,h.elm,o.elm))),u=r[++a]);(n<=i||a<=l)&&(n>i?(d=r[l+1]==null?null:r[l+1].elm,kZ(e,d,r,a,l)):bb(e,t,n,i))}function zv(e,t){var r=t.elm=e.elm,n=e.children,a=t.children;e!==t&&(KP(e,t),OL(t.text)?zi(n)&&zi(a)?n!==a&&Gmt(r,n,a):zi(a)?(zi(e.text)&&nA(r,""),kZ(r,null,a,0,a.length-1)):zi(n)?bb(r,n,0,n.length-1):zi(e.text)&&nA(r,""):e.text!==t.text&&(zi(n)&&bb(r,n,0,n.length-1),nA(r,t.text)))}function Hmt(e,t){if(rg(e,t))zv(e,t);else{var r=e.elm,n=PZ(r);Ry(t),n!==null&&(cf(n,t.elm,NZ(r)),bb(n,[e],0,0))}return t}var Umt=0,Fmt=function(){function e(t,r,n){if(this.type="svg",this.configLayer=Ymt(),this.storage=r,this._opts=n=U({},n),this.root=t,this._id="zr"+Umt++,this._oldVNode=a4(n.width,n.height),t&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=AZ("svg");KP(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",Hmt(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return c4(t,LL(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=LL(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=jmt(n,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=vr("g","main",{},[]);this._paintList(r,i,l?l.children:o),l&&o.push(l);var u=X(kt(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(vr("defs","defs",{},u)),t.animation){var f=xmt(i.cssNodes,i.cssAnims,{newline:!0});if(f){var c=vr("style","stl",{},[],f);o.push(c)}}return a4(n,a,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},$P(this.renderToVNode({animation:ot(t.cssAnimation,!0),emphasis:ot(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:ot(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var a=t.length,i=[],o=0,s,l,u=0,f=0;f<a;f++){var c=t[f];if(!c.invisible){var v=c.__clipPaths,h=v&&v.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(h-1,d-1);p>=0&&!(v&&l&&v[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var y=p+1;y<h;y++){var m={};kmt(v[y],m,r);var _=vr("g","clip-g-"+u++,m,[]);(s?s.children:n).push(_),i[o++]=_,s=_}l=v;var S=c4(c,r);S&&(s?s.children:n).push(S)}}},e.prototype.resize=function(t,r){var n=this._opts,a=this.root,i=this._viewport;if(t!=null&&(n.width=t),r!=null&&(n.height=r),a&&i&&(i.style.display="none",t=oh(a,0,n),r=oh(a,1,n),i.style.display=""),this._width!==t||this._height!==r){if(this._width=t,this._height=r,i){var o=i.style;o.width=t+"px",o.height=r+"px"}if(xI(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",r))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(t){var r=this.renderToString(),n="data:image/svg+xml;";return t?(r=kut(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},e}();function Ymt(e){return function(){}}function jmt(e,t,r,n){var a;if(r&&r!=="none")if(a=vr("rect","bg",{width:e,height:t,x:"0",y:"0"}),Cj(r))RZ({fill:r},a.attrs,"fill",n);else if(xI(r))IZ({style:{fill:r},dirty:Pe,getBoundingRect:function(){return{width:e,height:t}}},a.attrs,"fill",n);else{var i=dy(r),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}function Xmt(e){e.registerPainter("svg",Fmt)}function g4(e,t,r){var n=hr.createCanvas(),a=t.getWidth(),i=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",e)),n.width=a*r,n.height=i*r,n}function aA(e){return!e.__cursors.get(RX)}function y4(e){var t=e.__cursors.get(RX);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var zZ=function(e){be(t,e);function t(r,n,a){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=xS,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var o;a=a||G1,typeof r=="string"?o=g4(r,n,a):pt(r)&&(o=r,r=o.id),i.id=r,i.dom=o;var s=o.style;return s&&(yI(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return t.prototype.afterBrush=function(){this.__prevIdx=y4(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=g4("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new vt(0,0,0,0);function f(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var b=new vt(0,0,0,0);b.copy(S),o.push(b)}else{for(var x=!1,w=1/0,T=0,C=0;C<o.length;++C){var A=o[C];if(A.intersect(S)){var M=new vt(0,0,0,0);M.copy(A),M.union(S),o[C]=M,x=!0;break}else if(l){u.copy(S),u.union(A);var L=S.width*S.height,E=A.width*A.height,R=u.width*u.height,I=R-L-E;I<w&&(w=I,T=C)}}if(l&&(o[T].union(S),x=!0),!x){var b=new vt(0,0,0,0);b.copy(S),o.push(b)}l||(l=o.length>=s)}}for(var c=y4(this),v=c.startIdx;v<c.endIdx;++v){var h=r[v];if(h){var d=h.shouldBePainted(a,i,!0,!0),p=h.__isRendered&&(h.__dirty&Pn||!d)?h.getPrevPaintRect():null;p&&f(p);var g=d&&(h.__dirty&Pn||!h.__isRendered)?h.getPaintRect():null;g&&f(g)}}for(var y=this.__prevIdx,v=y.startIdx;v<y.endIdx;++v){var h=n[v],d=h&&h.shouldBePainted(a,i,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var p=h.getPrevPaintRect();p&&f(p)}}var m;do{m=!1;for(var v=0;v<o.length;){if(o[v].isZero()){o.splice(v,1);continue}for(var _=v+1;_<o.length;)o[v].intersect(o[_])?(m=!0,o[v].union(o[_]),o.splice(_,1)):_++;v++}}while(m);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),i.width=r*a,i.height=n*a,s&&(s.width=r*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(r,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/c,l/c));var h=this.domBack;function d(p,g,y,m){if(o.clearRect(p,g,y,m),n&&n!=="transparent"){var _=void 0;if(bm(n)){var S=n.global||n.__width===y&&n.__height===m;_=S&&n.__canvasGradient||hL(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else J9(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=dL(o,n,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,p,g,y,m),o.restore())}!a||u?d(0,0,s,l):a.length&&D(a,function(p){d(p.x*c,p.y*c,p.width*c,p.height*c)})},t}(Za),m4=1e5,Wu=314159,iA=void 0,$mt=1,oA=2;function Wmt(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function Zmt(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}function _4(e,t,r,n){var a=new zZ(e,t,t.dpr);return a.zlevel=r,a.zlevel2=n,a.__builtin__=!0,BZ(a),a}function BZ(e){e.__cursorStack=[],e.__cursors=nt()}function qmt(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function Kmt(e,t){var r=e.__cursors,n=+t;return r.get(n)||(e.__cursorStack.push(n),r.set(n,qmt({key:n})))}function e_(e,t){for(var r=e.__cursorStack,n=0;n<r.length;n++)t(e.__cursors.get(r[n]))}function sA(e,t){var r=e.layers;return r[t]||(r[t]=new Array(3))}function tn(e,t,r){for(var n=e.layerStack,a=0;a<n.length;a++){var i=n[a].zl,o=n[a].zl2,s=e.layers[i][o];(!r||(!(r&Bg)||s.__builtin__)&&(!(r&RL)||!s.__builtin__)&&(!(r&VZ)||s!==e.hoverlayer))&&t(s,i,o,a)}}var Bg=1,RL=2,VZ=4,r_=Bg|VZ,Qmt=function(){function e(t,r,n,a){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=U({},n||{}),this.dpr=n.devicePixelRatio||G1,this._singleCanvas=i,this.root=t;var o=t.style;if(o&&(yI(t),t.innerHTML=""),this.storage=r,this._prevDisplayList=[],i){var l=t,u=l.width,f=l.height;n.width!=null&&(u=n.width),n.height!=null&&(f=n.height),this.dpr=n.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var c=_4(l,this,Wu,xS);c.initContext(),this._insertLayer(c,Wu,xS,!0),this._domRoot=t}else{this._width=oh(t,0,n),this._height=oh(t,1,n);var s=this._domRoot=Zmt(this._width,this._height);t.appendChild(s)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r;t&&!pt(t)?r={paintAll:!!t}:r=t||{};var n=ot(r.refresh,!0),a=ot(r.refreshHover,!1);if(a&&(this._hoverLayerDirty=oA),!n)return a&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,r.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(i,o,this._redrawId);var s=this._backgroundColor;return tn(this._i,function(l,u,f,c){l.refresh&&l.refresh(c===0?s:null)},RL),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(t){var r=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=iA,n!==iA&&(!r&&n===oA&&(r=this._i.hoverlayer=this._ensureLayer(m4)),!!r)){r.clear();for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,o=0,s=t.length;o<s;o++){var l=t[o];if(l.__inHover){i||(i=r.ctx,i.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),wf(i,l,a),u&&(l.style=f)}}i&&(Dh(i,a),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(m4)},e.prototype.paintOne=function(t,r){xP(t,r)},e.prototype._paintList=function(t,r,n){if(this._redrawId===n){var a=this._doPaintList(t,r);if(this._needsManuallyCompositing&&this._compositeManually(),a)tn(this._i,function(o){o.afterBrush&&o.afterBrush()},r_),this._paintHoverList(t);else{var i=this;P1(function(){i._paintList(t,r,n)})}}},e.prototype._compositeManually=function(){var t=this._ensureLayer(Wu).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),tn(this._i,function(a){a.virtual&&t.drawImage(a.dom,0,0,r,n)},Bg)},e.prototype._doPaintList=function(t,r){var n=this,a=!0;return tn(this._i,function(i){var o=!1;if(e_(i,function(c){(c.drawIdx<c.endIdx||c.notClearIdx>=0)&&(o=!0)}),!(!o&&!i.__dirty)){var s=n._opts.useDirtyRect&&!aA(i)?i.createRepaintRects(t,r,n._width,n._height):null,l=n._i.layerStack[0],u=!0;if(i.__dirty){u=!1,i.__dirty=!1;var f=i.zlevel===l.zl&&i.zlevel2===l.zl2?n._backgroundColor:null;i.clear(!1,f,s)}e_(i,function(c){var v=n._paintPerCursor(i,c,t,s,u);a=a&&v})}},r_),Vt.wxa&&tn(this._i,function(i){i&&i.ctx&&i.ctx.draw&&i.ctx.draw()}),a},e.prototype._paintPerCursor=function(t,r,n,a,i){var o=t.ctx;if(a)if(!a.length)r.drawIdx=r.endIdx;else for(var s=this.dpr,l=0;l<a.length;++l){var u=a[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(t,r,n,u,i),o.restore()}else o.save(),this._paintPerCursorInRect(t,r,n,null,i),o.restore();return r.drawIdx>=r.endIdx},e.prototype._paintPerCursorInRect=function(t,r,n,a,i){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},s=t.ctx,l=aA(t),u=l&&hr.getTime(),f=r.drawIdx,c=r.notClearIdx,v=c>=0?Math.min(c,f):f;v<r.endIdx;v++){var h=n[v];if(!(v<f&&!h.notClear)){if(h.__inHover&&(this._hoverLayerDirty=oA),a!=null){var d=h.getPaintRect();d&&d.intersect(a)&&(wf(s,h,o),h.setPrevPaintRect(d))}else wf(s,h,o);if(l){var p=hr.getTime()-u;if(p>15){v++;break}}}}Dh(s,o),r.drawIdx=Math.max(v,f)},e.prototype.getLayer=function(t,r){return this._ensureLayer(t,0,r)},e.prototype._ensureLayer=function(t,r,n){r=r||0;var a=this._singleCanvas;a&&!this._needsManuallyCompositing&&(t=Wu,r=0);var i=sA(this._i,t)[r];return i||(i=_4("zr_"+t+"."+r,this,t,r),this._layerConfig[t]&&wt(i,this._layerConfig[t],!0),(n||a&&t!==Wu)&&(i.virtual=!0),this._insertLayer(i,t,r,!1),i.initContext()),i},e.prototype.insertLayer=function(t,r){this._insertLayer(r,t,0,!1)},e.prototype._insertLayer=function(t,r,n,a){var i=this._i,o=i.layers,s=i.layerStack,l=this._domRoot,u=null;if(!(o[r]&&o[r][n])&&Wmt(t)){for(var f=s.length,c=0;c<f&&(s[c].zl<r||s[c].zl===r&&s[c].zl2<n);)c++;if(c>0&&(u=sA(i,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:r,zl2:n}),sA(i,r)[n]=t,!a&&!t.virtual)if(u){var v=u.dom;v.nextSibling?l.insertBefore(t.dom,v.nextSibling):l.appendChild(t.dom)}else l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom);t.painter||(t.painter=this)}},e.prototype.eachLayer=function(t,r){return tn(this._i,function(n,a){t.call(r,n,a)})},e.prototype.eachBuiltinLayer=function(t,r){return tn(this._i,function(n,a){t.call(r,n,a)},Bg)},e.prototype.eachOtherLayer=function(t,r){return tn(this._i,function(n,a){t.call(r,n,a)},RL)},e.prototype.getLayers=function(){var t={};return tn(this._i,function(r,n,a){t[r.id]=r}),t},e.prototype._updateLayerStatus=function(t,r){var n=this;if(n._singleCanvas)for(var a=1;a<t.length;a++){var i=t[a];if(i.zlevel!==t[a-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}tn(n._i,function(g){g.__dirty=!1,e_(g,function(y){y.used=!1,y.endIdxNew=0,y.notClearIdx=-1})},r_);for(var o,s=null,l=null,u=!1,f=0,c=t.length;f<c;f++){var i=t[f],v=i.zlevel,h=i.incremental,d=void 0;if(o!==v&&(o=v,u=!1),h?(u=!0,d=Dvt):d=u?Mvt:xS,(!s||v!==s.zlevel||d!==s.zlevel2)&&(s=n._ensureLayer(v,d),l=null,!s.__builtin__)){Hx("ZLevel "+v+" has been used by unknown layer "+s.id);continue}if((!l||h!==l.key)&&(l=Kmt(s,h),!l.used))if(l.used=!0,!r&&l.first===i.id){var p=f-l.startIdx;l.startIdx=f,l.drawIdx+=p,l.endIdx+=p}else s.__dirty=!0,l.first=i.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,i.__dirty&Pn&&!i.__inHover&&((!h||!i.notClear&&f<l.drawIdx)&&(s.__dirty=!0),h&&i.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}tn(n._i,function(g){for(var y=g.__cursorStack,m=g.__cursors,_=y.length-1;_>=0;_--){var S=m.get(y[_]);if(!S.used)g.__dirty=!0,m.removeKey(y[_]),y.splice(_,1);else{var b=S.endIdxNew;(aA(g)?b<S.drawIdx:b!==S.endIdx||!b||t[b-1].id!==S.last)&&(g.__dirty=!0),S.endIdx=S.endIdxNew,S.last=b?t[b-1].id:NaN}}g.__dirty&&(e_(g,function(x){x.drawIdx=x.startIdx}),n._hoverLayerDirty===iA&&(n._hoverLayerDirty=$mt))},r_)},e.prototype.clear=function(){return tn(this._i,function(t){t.clear(),BZ(t)},Bg),this},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,tn(this._i,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?wt(n[t],r,!0):n[t]=r,tn(this._i,function(a,i){wt(a,n[i],!0)})}},e.prototype.delLayer=function(t){for(var r=this._i.layerStack,n=this._i.layers,a=r.length-1;a>=0;a--){var i=r[a];if(i.zl===t){var o=n[t][i.zl2];if(o.__builtin__)continue;if(r.splice(a,1),n[t][i.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;t!=null&&(a.width=t),r!=null&&(a.height=r),t=oh(i,0,a),r=oh(i,1,a),n.style.display="",(this._width!==t||r!==this._height)&&(n.style.width=t+"px",n.style.height=r+"px",tn(this._i,function(o){o.resize(t,r)}),this.refresh({paintAll:!0})),this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this._ensureLayer(Wu).resize(t,r)}return this},e.prototype.clearLayer=function(t){D(this._i.layers[t],function(r){r&&!r.__builtin__&&r.clear()})},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[Wu][0].dom;var r=new zZ("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var a=r.dom.width,i=r.dom.height;tn(this._i,function(c){c.__builtin__?n.drawImage(c.dom,0,0,a,i):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];wf(n,f,o)}Dh(n,o)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function Jmt(e){e.registerPainter("canvas",Qmt)}var t0t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){return No(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new ct,a=$e("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(a),a.setStyle(r.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=r.itemHeight*.8,u=$e(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=V.color.neutral00,u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},t}(ne);function ud(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=nd(e,t,r[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<r.length;o++)i.push(nd(e,t,r[o]));return i.join(" ")}}function GZ(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!Y(t))return t+"";for(var n=[],a=0;a<r.length;a++){var i=e.getDimensionIndex(r[a]);i>=0&&n.push(t[i])}return n.join(" ")}var Bm=function(e){G(t,e);function t(r,n,a,i){var o=e.call(this)||this;return o.updateData(r,n,a,i),o}return t.prototype._createSymbol=function(r,n,a,i,o,s){this.removeAll();var l=$e(r,-1,-1,2,2,null,s);l.attr({z2:ot(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=e0t,this._symbolType=r,this.add(l)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ds(this.childAt(0))},t.prototype.downplay=function(){Es(this.childAt(0))},t.prototype.setZ=function(r,n){var a=this.childAt(0);a.zlevel=r,a.z=n},t.prototype.setDraggable=function(r,n){var a=this.childAt(0);a.draggable=r,a.cursor=!n&&r?"move":a.cursor},t.prototype.updateData=function(r,n,a,i){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=t.getSymbolZ2(r,n),f=o!==this._symbolType,c=i&&i.disableAnimation;if(f){var v=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,v)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):jt(h,d,s,n),Wa(h)}if(this._updateCommon(r,n,l,a,i),f){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,ye(h,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,a,i,o){var s=this.childAt(0),l=r.hostModel,u,f,c,v,h,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,v=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||r.hasItemOption){var m=i&&i.itemModel?i.itemModel:r.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=ir(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=qc(r.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=r.getItemVisual(n,"style"),w=x.fill;if(s instanceof mr){var T=s.style;s.useStyle(U({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(U({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=r.getItemVisual(n,"liftZ"),A=this._z2;C!=null?A==null&&(this._z2=s.z2,s.z2+=C):A!=null&&(s.z2=A,this._z2=null);var M=o&&o.useNameLabel;yr(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:w,defaultOpacity:x.opacity});function L(I){return M?r.getName(I):ud(r,I)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var E=s.ensureState("emphasis");E.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var R=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;E.scaleX=this._sizeX*R,E.scaleY=this._sizeY*R,this.setSymbolScale(1),Ae(this,v,h,d)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,a){var i=this.childAt(0),o=yt(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&eu(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();eu(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return Yd(r.getItemVisual(n,"symbolSize"))},t.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},t}(ct);function e0t(e,t){this.parent.drift(e,t)}function n_(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n&&n.isIgnore&&n.isIgnore(r))&&!(n&&n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function S4(e){return e!=null&&!pt(e)&&(e={isIgnore:e}),e||{}}function b4(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:ir(t),cursorStyle:t.get("cursor")}}function x4(e,t,r,n,a,i,o){var s=new e(t,r,n,a);return s.setPosition(i),t.setItemGraphicEl(r,s),o.add(s),s}var Vm=function(){function e(t){this.group=new ct,this._SymbolCtor=t||Bm}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=S4(r);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=b4(t),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return t.getItemLayout(c)};i||n.removeAll(),t.diff(i).add(function(c){var v=f(c);n_(t,v,c,r)&&x4(o,t,c,l,u,v,n)}).update(function(c,v){var h=i.getItemGraphicEl(v),d=f(c);if(!n_(t,d,c,r)){n.remove(h);return}var p=t.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)n.remove(h),h=new o(t,c,l,u),h.setPosition(d);else{h.updateData(t,c,l,u);var y={x:d[0],y:d[1]};s?h.attr(y):jt(h,y,a)}n.add(h),t.setItemGraphicEl(c,h)}).remove(function(c){var v=i.getItemGraphicEl(c);v&&v.fadeOut(function(){n.remove(v)},a)}).execute(),this._getSymbolPoint=f,this._data=t},e.prototype.updateLayout=function(t){var r=this._data;if(r)for(var n=this,a=r.getStore(),i=0,o=a.count();i<o;i++){var s=r.getItemGraphicEl(i),l=n._getSymbolPoint(i);n_(r,l,i,t)?(s=s||x4(n._SymbolCtor,r,i,n._seriesScope,{disableAnimation:!0},l,n.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(n.group.remove(s),r.setItemGraphicEl(i,null))}},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=b4(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n,a){this._progressiveEls=[],a=S4(a);function i(u){u.isGroup||(u.incremental=n,u.ensureState("emphasis").hoverLayer=zd)}for(var o=t.start;o<t.end;o++){var s=r.getItemLayout(o);if(n_(r,s,o,a)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(i),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},e.prototype.eachRendered=function(t){gu(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(a){a.fadeOut(function(){r.remove(a)},n.hostModel)}):r.removeAll()},e}();function HZ(e,t,r){var n=e.getBaseAxis(),a=e.getOtherAxis(n),i=r0t(a,r),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=X(e.dimensions,function(d){return t.mapDimension(d)}),v=!1,h=t.getCalculationInfo("stackResultDimension");return Os(t,c[0])&&(v=!0,c[0]=h),Os(t,c[1])&&(v=!0,c[1]=h),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function r0t(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:Ut(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function UZ(e,t,r,n){var a=NaN;e.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=e.valueStart);var i=e.baseDataOffset,o=[];return o[i]=r.get(e.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function Ha(e,t){return!isFinite(e)||!isFinite(t)}var n0t=typeof Float32Array!==Rd?Float32Array:void 0,a0t=typeof Float64Array!==Rd?Float64Array:void 0;function Qi(e){return QP({ctor:n0t},e).arr}function QP(e,t){var r=e.arr,n=e.ctor;if(t>gy&&(t=gy),!r||e.typed&&r.length<t){var a=void 0;if(n)try{a=new n(t),e.typed=!0,r&&a.set(r)}catch{}if(!a&&(a=[],e.typed=!1,r))for(var i=0,o=r.length;i<o;i++)a[i]=r[i];e.arr=a}return e}function i0t(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,a){r.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function o0t(e,t,r,n,a,i,o,s){for(var l=i0t(e,t),u=[],f=[],c=[],v=[],h=[],d=[],p=[],g=HZ(a,t,o),y=e.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,x=void 0,w=void 0;switch(S.cmd){case"=":x=S.idx*2,w=S.idx1*2;var T=y[x],C=y[x+1],A=m[w],M=m[w+1];(isNaN(T)||isNaN(C))&&(T=A,C=M),u.push(T,C),f.push(A,M),c.push(r[x],r[x+1]),v.push(n[w],n[w+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var L=S.idx,E=g.dataDimsForPoint,R=a.dataToPoint([t.get(E[0],L),t.get(E[1],L)]);w=L*2,u.push(R[0],R[1]),f.push(m[w],m[w+1]);var I=UZ(g,a,t,L);c.push(I[0],I[1]),v.push(n[w],n[w+1]),p.push(t.getRawIndex(L));break;case"-":b=!1}b&&(h.push(S),d.push(d.length))}d.sort(function(tt,mt){return p[tt]-p[mt]});for(var O=u.length,N=Qi(O),P=Qi(O),z=Qi(O),B=Qi(O),H=[],_=0;_<d.length;_++){var F=d[_],$=_*2,j=F*2;N[$]=u[j],N[$+1]=u[j+1],P[$]=f[j],P[$+1]=f[j+1],z[$]=c[j],z[$+1]=c[j+1],B[$]=v[j],B[$+1]=v[j+1],H[_]=h[F]}return{current:N,next:P,stackedOnCurrent:z,stackedOnNext:B,status:H}}var Js=Math.min,tl=Math.max;function IL(e,t,r,n,a,i,o,s,l){for(var u,f,c,v,h,d,p=r,g=0;g<n;g++){var y=t[p*2],m=t[p*2+1];if(p>=a||p<0)break;if(Ha(y,m)){if(l){p+=i;continue}break}if(p===r)e[i>0?"moveTo":"lineTo"](y,m),c=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],w=t[b*2+1];x===y&&w===m&&g<n;)g++,b+=i,p+=i,x=t[b*2],w=t[b*2+1],y=t[p*2],m=t[p*2+1],_=y-u,S=m-f;var T=g+1;if(l)for(;Ha(x,w)&&T<n;)T++,b+=i,x=t[b*2],w=t[b*2+1];var C=.5,A=0,M=0,L=void 0,E=void 0;if(T>=n||Ha(x,w))h=y,d=m;else{A=x-u,M=w-f;var R=y-u,I=x-y,O=m-f,N=w-m,P=void 0,z=void 0;if(s==="x"){P=Math.abs(R),z=Math.abs(I);var B=A>0?1:-1;h=y-B*P*o,d=m,L=y+B*z*o,E=m}else if(s==="y"){P=Math.abs(O),z=Math.abs(N);var H=M>0?1:-1;h=y,d=m-H*P*o,L=y,E=m+H*z*o}else P=Math.sqrt(R*R+O*O),z=Math.sqrt(I*I+N*N),C=z/(z+P),h=y-A*o*(1-C),d=m-M*o*(1-C),L=y+A*o*C,E=m+M*o*C,L=Js(L,tl(x,y)),E=Js(E,tl(w,m)),L=tl(L,Js(x,y)),E=tl(E,Js(w,m)),A=L-y,M=E-m,h=y-A*P/z,d=m-M*P/z,h=Js(h,tl(u,y)),d=Js(d,tl(f,m)),h=tl(h,Js(u,y)),d=tl(d,Js(f,m)),A=y-h,M=m-d,L=y+A*z/P,E=m+M*z/P}e.bezierCurveTo(c,v,h,d,y,m),c=L,v=E}else e.lineTo(y,m)}u=y,f=m,p+=i}return g}var FZ=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),s0t=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:V.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new FZ},t.prototype.buildPath=function(r,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Ha(a[o*2-2],a[o*2-1]);o--);for(;i<o&&Ha(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=IL(r,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=bo.CMD,s,l,u=n==="x",f=[],c=0;c<i.length;){var v=i[c++],h=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(v){case o.M:s=i[c++],l=i[c++];break;case o.L:if(h=i[c++],d=i[c++],_=u?(r-s)/(h-s):(r-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(h-s)*_+s;return u?[r,S]:[S,r]}s=h,l=d;break;case o.C:h=i[c++],d=i[c++],p=i[c++],g=i[c++],y=i[c++],m=i[c++];var b=u?k1(s,h,p,y,r,f):k1(l,d,g,m,r,f);if(b>0)for(var x=0;x<b;x++){var w=f[x];if(w<=1&&w>=0){var S=u?fr(l,d,g,m,w):fr(s,h,p,y,w);return u?[r,S]:[S,r]}}s=y,l=m;break}}},t}(Rt),l0t=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(FZ),YZ=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new l0t},t.prototype.buildPath=function(r,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Ha(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Ha(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=IL(r,a,o,s,s,1,n.smooth,l,n.connectNulls);IL(r,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(Rt);function jZ(e,t,r,n,a){var i=e.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new Et({shape:{x:o,y:s,width:l,height:u}});if(t){var v=e.getBaseAxis(),h=v.isHorizontal(),d=v.inverse;h?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=ut(a)?function(g){a(g,c)}:null;ye(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return c}function XZ(e,t,r){var n=e.getArea(),a=Yt(n.r0,1),i=Yt(n.r,1),o=new Wr({shape:{cx:Yt(e.cx,1),cy:Yt(e.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,ye(o,{shape:{endAngle:n.endAngle,r:i}},r)}return o}function hc(e,t,r,n,a){if(e){if(e.type==="polar")return XZ(e,t,r);if(e.type==="cartesian2d")return jZ(e,t,r,n,a)}else return null;return null}var Iy=0,Py=1,Ny=2;function sh(e,t,r){e?t.setClipPath(r):t.removeClipPath()}function $Z(e){var t=e.coordinateSystem;if(e.get("clip",!0)&&t&&(!t.shouldClip||t.shouldClip()))return t.getArea&&t.getArea(.1)}function dc(e,t){return e.type===t}function w4(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"&&!!e.getViewRect}function WZ(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||it(e,"text")))}function ZZ(e,t,r){var n=e,a,i,o;if(t==="text")o=n;else{o={},it(n,"text")&&(o.text=n.text),it(n,"rich")&&(o.rich=n.rich),it(n,"textFill")&&(o.fill=n.textFill),it(n,"textStroke")&&(o.stroke=n.textStroke),it(n,"fontFamily")&&(o.fontFamily=n.fontFamily),it(n,"fontSize")&&(o.fontSize=n.fontSize),it(n,"fontStyle")&&(o.fontStyle=n.fontStyle),it(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=it(n,"textPosition");r?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),it(n,"textPosition")&&(a.position=n.textPosition),it(n,"textOffset")&&(a.offset=n.textOffset),it(n,"textRotation")&&(a.rotation=n.textRotation),it(n,"textDistance")&&(a.distance=n.textDistance)}return T4(o,e),D(o.rich,function(l){T4(l,l)}),{textConfig:a,textContent:i}}function T4(e,t){t&&(t.font=t.textFont||t.font,it(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),it(t,"textAlign")&&(e.align=t.textAlign),it(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),it(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),it(t,"textWidth")&&(e.width=t.textWidth),it(t,"textHeight")&&(e.height=t.textHeight),it(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),it(t,"textPadding")&&(e.padding=t.textPadding),it(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),it(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),it(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),it(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),it(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),it(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),it(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function C4(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var a=n.textPosition.indexOf("inside")>=0,i=e.fill||V.color.neutral99;A4(n,t);var o=n.textFill==null;return a?o&&(n.textFill=r.insideFill||V.color.neutral00,!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||V.color.neutral00),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,D(t.rich,function(s){A4(s,s)}),n}function A4(e,t){t&&(it(t,"fill")&&(e.textFill=t.fill),it(t,"stroke")&&(e.textStroke=t.fill),it(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),it(t,"font")&&(e.font=t.font),it(t,"fontStyle")&&(e.fontStyle=t.fontStyle),it(t,"fontWeight")&&(e.fontWeight=t.fontWeight),it(t,"fontSize")&&(e.fontSize=t.fontSize),it(t,"fontFamily")&&(e.fontFamily=t.fontFamily),it(t,"align")&&(e.textAlign=t.align),it(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),it(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),it(t,"width")&&(e.textWidth=t.width),it(t,"height")&&(e.textHeight=t.height),it(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),it(t,"padding")&&(e.textPadding=t.padding),it(t,"borderColor")&&(e.textBorderColor=t.borderColor),it(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),it(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),it(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),it(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),it(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),it(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),it(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),it(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),it(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),it(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}function M4(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function D4(e){for(var t=kr(),r=kr(),n=0;n<e.length;){var a=e[n++],i=e[n++];Ha(a,i)||(GE(t,a),GE(r,i))}return[t,r]}function E4(e,t){var r=D4(e),n=r[0],a=r[1],i=D4(t),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(a[0]-s[0]),Math.abs(n[1]-o[1]),Math.abs(a[1]-s[1]))}function L4(e){return Ut(e)?e:e?.5:0}function u0t(e,t,r){if(r.valueDim==null)return[];for(var n=t.count(),a=Qi(n*2),i=0;i<n;i++){var o=UZ(r,e,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function el(e,t,r,n,a){var i=r.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],v=[];if(a){for(l=0;l<e.length;l+=2){var h=t||e;Ha(h[l],h[l+1])||v.push(e[l],e[l+1])}e=v}for(l=0;l<e.length-2;l+=2)switch(c[0]=e[l+2],c[1]=e[l+3],f[0]=e[l],f[1]=e[l+1],s.push(f[0],f[1]),n){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=c[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(e[l++],e[l++]),s}function f0t(e,t){var r=[],n=e.length,a,i;function o(f,c,v){var h=f.coord,d=(v-h)/(c.coord-h),p=bI(d,[f.color,c.color]);return{coord:v,color:p}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)a=l;else if(u>t){i?r.push(o(i,l,t)):a&&r.push(o(a,l,0),o(a,l,t));break}else a&&(r.push(o(a,l,0)),a=null),r.push(l),i=l}return r}function c0t(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=X(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var v=f0t(u,a==="x"?r.getWidth():r.getHeight()),h=v.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[h-1].coord+d,y=g-p;if(y<.001)return"transparent";D(v,function(_){_.offset=(_.coord-p)/y}),v.push({offset:h?v[h-1].offset:.5,color:c[1]||"transparent"}),v.unshift({offset:h?v[0].offset:.5,color:c[0]||"transparent"});var m=new jc(0,0,0,0,v,!0);return m[a]=p,m[a+"2"]=g,m}}}function v0t(e,t,r){var n=e.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=r.getAxesByScale("ordinal")[0];if(i&&!(a&&h0t(i,t))){var o=t.mapDimension(i.dim),s={};return D(i.getViewLabels(),function(l){l.tick.offInterval||(s[$d(i.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function h0t(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(Bm.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function d0t(e){for(var t=e.length/2;t>0&&Ha(e[t*2-2],e[t*2-1]);t--);return t-1}function O4(e,t){return[e[t*2],e[t*2+1]]}function p0t(e,t,r){for(var n=e.length/2,a=r==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+a],!Ha(o,e[u*2+1-a])){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function qZ(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Tn.length;t++)if(e.get([Tn[t],"endLabel","show"]))return!0;return!1}function lA(e,t,r,n){if(dc(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=qZ(n)?function(h,d){e._endLabelOnDuring(h,d,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),f=jZ(t,r,n,function(){var h=e._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,v=Math.max(c.width,c.height);u?(c.y-=v,c.height+=v*2):(c.x-=v,c.width+=v*2)}return l&&l(1,f),f}else return XZ(t,r,n)}function g0t(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),a=r.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:e.get("align")||i,verticalAlign:e.get("verticalAlign")||o}}}var y0t=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new ct,n=new Vm;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=rt(this._changePolyState,this)},t.prototype.render=function(r,n,a){var i=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],c=i.type==="polar",v=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,y=!n.ssr&&r.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=HZ(i,s,_),b=m&&u0t(i,s,S),x=r.get("showSymbol"),w=r.get("connectNulls"),T=x&&!c&&v0t(r,s,i),C=this._data;C&&C.eachItemGraphicEl(function(q,ht){q.__temp&&(o.remove(q),C.setItemGraphicEl(ht,null))}),x||h.remove(),o.add(g);var A=c?!1:r.get("step"),M;i&&i.getArea&&r.get("clip",!0)&&(M=i.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var L=c0t(s,i,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&v.type===i.type&&A===this._step))x&&h.updateData(s,{isIgnore:T,clipShape:M,disableAnimation:!0,getSymbolPoint:function(q){return[f[q*2],f[q*2+1]]}}),y&&this._initSymbolLabelAnimation(s,i,M),A&&(b&&(b=el(b,f,i,A,w)),f=el(f,null,i,A,w)),d=this._newPolyline(f),m?p=this._newPolygon(f,b):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(r,i,lc(L)),g.setClipPath(lA(this,i,!0,r));else{m&&!p?p=this._newPolygon(f,b):p&&!m&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(r,i,lc(L));var E=g.getClipPath();if(E){var R=lA(this,i,!1,r);ye(E,{shape:R.shape},r)}else g.setClipPath(lA(this,i,!0,r));x&&h.updateData(s,{isIgnore:T,clipShape:M,disableAnimation:!0,getSymbolPoint:function(q){return[f[q*2],f[q*2+1]]}}),(!M4(this._stackedOnPoints,b)||!M4(this._points,f))&&(y?this._doUpdateAnimation(s,b,i,a,A,_,w):(A&&(b&&(b=el(b,f,i,A,w)),f=el(f,null,i,A,w)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:b})))}var I=r.getModel("emphasis"),O=I.get("focus"),N=I.get("blurScope"),P=I.get("disabled");if(d.useStyle(dt(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),ar(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var z=d.getState("emphasis").style;z.lineWidth=+d.style.lineWidth+1}yt(d).seriesIndex=r.seriesIndex,Ae(d,O,N,P);var B=L4(r.get("smooth")),H=r.get("smoothMonotone");if(d.setShape({smooth:B,smoothMonotone:H,connectNulls:w}),p){var F=s.getCalculationInfo("stackedOnSeries"),$=0;p.useStyle(dt(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),F&&($=L4(F.get("smooth"))),p.setShape({smooth:B,stackedOnSmooth:$,smoothMonotone:H,connectNulls:w}),ar(p,r,"areaStyle"),yt(p).seriesIndex=r.seriesIndex,Ae(p,O,N,P)}var j=this._changePolyState;s.eachItemGraphicEl(function(q){q&&(q.onHoverStateChange=j)}),this._polyline.onHoverStateChange=j,this._data=s,this._coordSys=i,this._stackedOnPoints=b,this._points=f,this._step=A,this._valueOrigin=_;var tt=r.get("triggerEvent"),mt=r.get("triggerLineEvent"),Nt=mt===!0||tt===!0||tt==="line",Q=mt===!0||tt===!0||tt==="area";this.packEventData(r,d,Nt),p&&this.packEventData(r,p,Q)},t.prototype.packEventData=function(r,n,a){yt(n).eventData=a?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:n===this._polygon?"area":"line"}:null},t.prototype.highlight=function(r,n,a,i){var o=r.getData(),s=rc(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(Ha(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var v=r.get("zlevel")||0,h=r.get("z")||0;u=new Bm(o,s),u.x=f,u.y=c,u.setZ(v,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ee.prototype.highlight.call(this,r,n,a,i)},t.prototype.downplay=function(r,n,a,i){var o=r.getData(),s=rc(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ee.prototype.downplay.call(this,r,n,a,i)},t.prototype._changePolyState=function(r){var n=this._polygon;W1(this._polyline,r),n&&W1(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new s0t({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new YZ({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(r,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");ut(f)&&(f=f(null));var c=u.get("animationDelay")||0,v=ut(c)?c(null):c;r.eachItemGraphicEl(function(h,d){var p=h;if(p){var g=[h.x,h.y],y=void 0,m=void 0,_=void 0;if(a)if(o){var S=a,b=n.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=a;i?(y=x.x,m=x.x+x.width,_=h.x):(y=x.y+x.height,m=x.y,_=h.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=ut(c)?c(d):f*w+v,C=p.getSymbolPath(),A=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,a){var i=r.getModel("endLabel");if(qZ(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ht({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=d0t(l);f>=0&&(yr(s,ir(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:f,defaultText:function(c,v,h){return h!=null?GZ(o,h):ud(o,c)},enableTextSetter:!0},g0t(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=a.getLayout("points"),v=a.hostModel,h=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?p:0)*(m?-1:1),x=(y?0:-p)*(m?-1:1),w=y?"x":"y",T=p0t(c,S,w),C=T.range,A=C[1]-C[0],M=void 0;if(A>=1){if(A>1&&!h){var L=O4(c,C[0]);u.attr({x:L[0]+b,y:L[1]+x}),o&&(M=v.getRawValue(C[0]))}else{var L=f.getPointOn(S,w);L&&u.attr({x:L[0]+b,y:L[1]+x});var E=v.getRawValue(C[0]),R=v.getRawValue(C[1]);o&&(M=$j(a,d,E,R,T.t))}i.lastFrameIndex=C[0]}else{var I=r===1||i.lastFrameIndex>0?C[0]:0,L=O4(c,I);o&&(M=v.getRawValue(I)),u.attr({x:L[0]+b,y:L[1]+x})}if(o){var O=Vd(u);typeof O.setLabelText=="function"&&O.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(r,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,v=o0t(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(d=el(v.stackedOnCurrent,v.current,a,o,l),h=el(v.current,null,a,o,l),g=el(v.stackedOnNext,v.next,a,o,l),p=el(v.next,null,a,o,l)),E4(h,p)>3e3||f&&E4(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=h;var y={shape:{points:p}};v.current!==h&&(y.shape.__points=v.next),u.stopAnimation(),jt(u,y,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),jt(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=r.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,T=0;T<m.length;T++){var C=m[T].el,A=m[T].ptIdx*2;C.x=w[A],C.y=w[A+1],C.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(ee);function Gm(e,t){return{seriesType:e,plan:Zc(),reset:function(r){var n=r.getData(),a=r.coordinateSystem,i=r.pipelineContext,o=t||i.large;if(a){var s=X(a.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Os(n,s[0])&&(s[0]=u),Os(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),v=n.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var p=h.end-h.start,g=o&&Qi(p*l),y=[],m=[],_=h.start,S=0;_<h.end;_++){var b=void 0;if(l===1){var x=f.get(c,_);b=a.dataToPoint(x,null,m)}else y[0]=f.get(c,_),y[1]=f.get(v,_),b=a.dataToPoint(y,null,m);o?(g[S++]=b[0],g[S++]=b[1]):d.setItemLayout(_,b.slice())}o&&(d.setLayout("points",g),d.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var m0t={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},_0t=function(e){return Math.round(e.length/2)};function KZ(e){return{seriesType:e,reset:function(t,r,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/v);if(isFinite(h)&&h>1){i==="lttb"?t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h)):i==="minmax"&&t.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/h));var d=void 0;J(i)?d=m0t[i]:ut(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/h,d,_0t))}}}}}function S0t(e){e.registerChartView(y0t),e.registerSeriesModel(t0t),e.registerLayout(Gm("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,KZ("line"))}var QZ=function(e){G(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(Ka),PL=null;function b0t(e){PL||(PL=e)}function Hm(){return PL}var Tw="expandAxisBreak",JZ="collapseAxisBreak",tq="toggleAxisBreak",JP="axisbreakchanged",x0t={type:Tw,event:JP,update:"update",refineEvent:tN},w0t={type:JZ,event:JP,update:"update",refineEvent:tN},T0t={type:tq,event:JP,update:"update",refineEvent:tN};function tN(e,t,r,n){var a=[];return D(e,function(i){a=a.concat(i.eventBreaks)}),{eventContent:{breaks:a}}}function C0t(e){e.registerAction(x0t,t),e.registerAction(w0t,t),e.registerAction(T0t,t);function t(r,n){var a=[],i=wh(n,r);function o(s,l){D(i[s],function(u){var f=u.updateAxisBreaks(r);D(f.breaks,function(c){var v;a.push(dt((v={},v[l]=u.componentIndex,v),c))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:a}}}var wl=Math.PI,A0t=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],M0t=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],pc=Tt(),eq=Tt(),rq=function(){function e(t){this.recordMap={},this.resolveAxisNameOverlap=t}return e.prototype.ensureRecord=function(t){var r=t.axis.dim,n=t.componentIndex,a=this.recordMap,i=a[r]||(a[r]=[]);return i[n]||(i[n]={ready:{}})},e}();function D0t(e,t,r,n){var a=r.axis,i=t.ensureRecord(r),o=[],s,l=eN(e.axisName)&&od(e.nameLocation);D(n,function(d){var p=To(d);if(!(!p||p.label.ignore)){o.push(p);var g=i.transGroup;l&&(g.transform?ca(Ap,g.transform):Hc(Ap),p.transform&&ua(Ap,Ap,p.transform),vt.copy(a_,p.localRect),a_.applyTransform(Ap),s?s.union(a_):vt.copy(s=new vt(0,0,0,0),a_))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var c=a.getExtent(),v=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-v;s.union(new vt(v,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var Ap=we(),a_=new vt(0,0,0,0),nq=function(e,t,r,n,a,i){if(od(e.nameLocation)){var o=i.stOccupiedRect;o&&aq(imt({},o,i.transGroup.transform),n,a)}else iq(i.labelInfoList,i.dirVec,n,a)};function aq(e,t,r){var n=new gt;xw(e,t,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&AL(t,n)}function iq(e,t,r,n){for(var a=gt.dot(n,t)>=0,i=0,o=e.length;i<o;i++){var s=e[a?i:o-1-i];s.label.ignore||aq(s,r,n)}}var bn=function(){function e(t,r,n,a){this.group=new ct,this._axisModel=t,this._api=r,this._local={},this._shared=a||new rq(nq),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(t){var r=this._cfg.raw;r.position=t.position,r.labelOffset=t.labelOffset,this._resetCfgDetermined(r)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(t){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},a=ot(t.axisName,r.get("name")),i=r.get("nameMoveOverlap");(i==null||i==="auto")&&(i=ot(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:ot(t.nameDirection,1),tickDirection:ot(t.tickDirection,1),labelDirection:ot(t.labelDirection,1),labelOffset:ot(t.labelOffset,0),silent:ot(t.silent,!0),axisName:a,nameLocation:zn(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:eN(a)&&i,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new ct({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new gt(Math.cos(-o.rotation),Math.sin(-o.rotation))},e.prototype.build=function(t,r){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),D(E0t,function(a){t[a]&&L0t[a](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},e.innerTextLayout=function(t,r,n){var a=CI(r-t),i,o;return tc(a)?(o=n>0?"top":"bottom",i="center"):tc(a-wl)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<wl?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),E0t=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],L0t={axisLine:function(e,t,r,n,a,i,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=i.transform,f=[l[0],0],c=[l[1],0],v=f[0]>c[0];u&&(Ne(f,f,u),Ne(c,c,u));var h=U({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(n.get(["axisLine","breakLine"])&&Q1(n.axis.scale))Hm().buildAxisBreakLine(n,a,i,d);else{var p=new je(U({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));rd(p.shape,p.style.lineWidth),p.anid="line",a.add(p)}var g=n.get(["axisLine","symbol"]);if(g!=null){var y=n.get(["axisLine","symbolSize"]);J(g)&&(g=[g,g]),(J(y)||Ut(y))&&(y=[y,y]);var m=qc(n.get(["axisLine","symbolOffset"])||0,y),_=y[0],S=y[1];D([{rotate:e.rotation+Math.PI/2,offset:m[0],r:0},{rotate:e.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(b,x){if(g[x]!=="none"&&g[x]!=null){var w=$e(g[x],-_/2,-S/2,_,S,h.stroke,!0),T=b.r+b.offset,C=v?c:f;w.attr({rotation:b.rotate,x:C[0]+T*Math.cos(e.rotation),y:C[1]-T*Math.sin(e.rotation),silent:!0,z2:11}),a.add(w)}})}}},axisTickLabelEstimate:function(e,t,r,n,a,i,o,s){var l=I4(t,a,s);l&&R4(e,t,r,n,a,i,o,yi.estimate)},axisTickLabelDetermine:function(e,t,r,n,a,i,o,s){var l=I4(t,a,s);l&&R4(e,t,r,n,a,i,o,yi.determine);var u=P0t(e,a,i,n);I0t(e,t.labelLayoutList,u),N0t(e,a,i,n,e.tickDirection)},axisName:function(e,t,r,n,a,i,o,s){var l=r.ensureRecord(n);t.nameEl&&(a.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=e.axisName;if(eN(u)){var f=e.nameLocation,c=e.nameDirection,v=n.getModel("nameTextStyle"),h=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new gt(0,0),y=new gt(0,0);f==="start"?(g.x=d[0]-p*h,y.x=-p):f==="end"?(g.x=d[1]+p*h,y.x=p):(g.x=(d[0]+d[1])/2,g.y=e.labelOffset+c*h,y.y=c);var m=we();y.transform(Gs(m,m,e.rotation));var _=n.get("nameRotate");_!=null&&(_=_*wl/180);var S,b;od(f)?S=bn.innerTextLayout(e.rotation,_??e.rotation,c):(S=O0t(e.rotation,f,_||0,d),b=e.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var x=v.getFont(),w=n.get("nameTruncate",!0)||{},T=w.ellipsis,C=nn(e.raw.nameTruncateMaxWidth,w.maxWidth,b),A=s.nameMarginLevel||0,M=new Ht({x:g.x,y:g.y,rotation:S.rotation,silent:bn.isLabelSilent(n),style:se(v,{text:u,font:x,overflow:"truncate",width:C,ellipsis:T,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||S.textAlign,verticalAlign:v.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Us({el:M,componentModel:n,itemName:u}),M.__fullText=u,M.anid="name",n.get("triggerEvent")){var L=bn.makeAxisEventDataBase(n);L.targetType="axisName",L.name=u,yt(M).eventData=L}i.add(M),M.updateTransform(),t.nameEl=M;var E=l.nameLayout=To({label:M,priority:M.z2,defaultAttr:{ignore:M.ignore},marginDefault:od(f)?A0t[A]:M0t[A]});if(l.nameLocation=f,a.add(M),M.decomposeTransform(),e.shouldNameMoveOverlap&&E){var R=r.ensureRecord(n);r.resolveAxisNameOverlap(e,r,n,E,y,R)}}}};function R4(e,t,r,n,a,i,o,s){sq(t)||k0t(e,t,a,s,n,o);var l=t.labelLayoutList;z0t(e,n,l,i),G0t(n,e.rotation,l);var u=e.optionHideOverlap;R0t(n,l,u),u&&bZ(qt(l,function(f){return f&&!f.label.ignore})),D0t(e,r,n,l)}function O0t(e,t,r,n){var a=CI(r-e),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return tc(a-wl/2)?(o=l?"bottom":"top",i="center"):tc(a-wl*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<wl*1.5&&a>wl/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function R0t(e,t,r){var n=e.axis,a=e.get(["axisLabel","customValues"]);if(jgt(n))return;function i(u,f,c){var v=To(t[f]),h=To(t[c]),d=n.scale;if(!(!v||!h)){if(u==null){if(!r&&a)return;var p=pc(v.label).labelInfo.tick;if(Pm(d)&&p.notNice||un(d)&&p.offInterval){Bv(v.label);return}}if(u===!1||v.suggestIgnore){Bv(v.label);return}if(h.suggestIgnore){Bv(h.label);return}var g=.1;if(!r){var y=[0,0,0,0];v=ML({marginForce:y},v),h=ML({marginForce:y},h)}xw(v,h,null,{touchThreshold:g})&&Bv(u?h.label:v.label)}}var o=e.get(["axisLabel","showMinLabel"]),s=e.get(["axisLabel","showMaxLabel"]),l=t.length;i(o,0,1),i(s,l-1,l-2)}function I0t(e,t,r){e.showMinorTicks||D(t,function(n){if(n&&n.label.ignore)for(var a=0;a<r.length;a++){var i=r[a],o=eq(i),s=pc(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Bv(i);return}}})}function Bv(e){e&&(e.ignore=!0)}function oq(e,t,r,n,a){for(var i=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(Ne(o,o,t),Ne(s,s,t));var f=new je({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});rd(f.shape,f.style.lineWidth),f.anid=a+"_"+e[l].tickValue,i.push(f);var c=eq(f);c.onBand=!!e[l].onBand,c.tickValue=e[l].tickValue}return i}function P0t(e,t,r,n){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=e.tickDirection*i.get("length"),u=a.getTicksCoords(),f=oq(u,r.transform,l,dt(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)t.add(f[c]);return f}function N0t(e,t,r,n,a){var i=n.axis,o=n.getModel("minorTick");if(!(!e.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=a*o.get("length"),f=dt(l.getLineStyle(),dt(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var v=oq(s[c],r.transform,u,f,"minorticks_"+c),h=0;h<v.length;h++)t.add(v[h])}}function I4(e,t,r){if(sq(e)){var n=e.axisLabelsCreationContext,a=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var i=!0,o=0;o<a.length;o++)i=i&&a[o]();if(i)return!1}a.length&&(t.remove(e.labelGroup),NL(e,null,null,null))}return!0}function k0t(e,t,r,n,a,i){var o=a.axis,s=nn(e.raw.axisLabelShow,a.get(["axisLabel","show"])),l=new ct;r.add(l);var u=pb(n);if(!s||o.scale.isBlank()){NL(t,[],l,u);return}var f=a.getModel("axisLabel"),c=o.getViewLabels(u),v=(nn(e.raw.labelRotate,f.get("rotate"))||0)*wl/180,h=bn.innerTextLayout(e.rotation,v,e.labelDirection),d=a.getCategories&&a.getCategories(!0),p=[],g=a.get("triggerEvent"),y=1/0,m=-1/0;D(c,function(S,b){var x,w=S.tick,T=S.formattedLabel,C=S.rawLabel,A=f,M=$d(o.scale,w);if(d&&d[M]){var L=d[M];pt(L)&&L.textStyle&&(A=new Ot(L.textStyle,f,a.ecModel))}var E=A.getTextColor()||a.get(["axisLine","lineStyle","color"]),R=A.getShallow("align",!0)||h.textAlign,I=ot(A.getShallow("alignMinLabel",!0),R),O=ot(A.getShallow("alignMaxLabel",!0),R),N=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||h.textVerticalAlign,P=ot(A.getShallow("verticalAlignMinLabel",!0),N),z=ot(A.getShallow("verticalAlignMaxLabel",!0),N),B=10+(((x=w.time)===null||x===void 0?void 0:x.level)||0);y=Math.min(y,B),m=Math.max(m,B);var H=new Ht({x:0,y:0,rotation:0,silent:bn.isLabelSilent(a),z2:B,style:se(A,{text:T,align:b===0?I:b===c.length-1?O:R,verticalAlign:b===0?P:b===c.length-1?z:N,fill:ut(E)?E(o.type==="category"?C:o.type==="value"?M+"":M,b):E})});H.anid="label_"+M;var F=pc(H);if(F.labelInfo=S,F.layoutRotation=h.rotation,Us({el:H,componentModel:a,itemName:T,formatterParamsExtra:{isTruncated:function(){return H.isTruncated},value:C,tickIndex:b}}),g){var $=bn.makeAxisEventDataBase(a);$.targetType="axisLabel",$.value=C,$.tickIndex=b;var j=S.tick.break;if(j){var tt=j.parsedBreak;$.break={start:tt.vmin,end:tt.vmax}}o.type==="category"&&($.dataIndex=M),yt(H).eventData=$,j&&V0t(a,i,H,j)}p.push(H),l.add(H)});var _=X(p,function(S){return{label:S,priority:pc(S).labelInfo.tick.break?S.z2+(m-y+1):S.z2,defaultAttr:{ignore:S.ignore}}});NL(t,_,l,u)}function sq(e){return!!e.labelLayoutList}function NL(e,t,r,n){e.labelLayoutList=t,e.labelGroup=r,e.axisLabelsCreationContext=n}function z0t(e,t,r,n){var a=t.get(["axisLabel","margin"]);D(r,function(i,o){var s=To(i);if(s){var l=s.label,u=pc(l);s.suggestIgnore=l.ignore,l.ignore=!1,yo(Uo,B0t);var f=t.axis;Uo.x=f.dataToCoord($d(f.scale,u.labelInfo.tick)),Uo.y=e.labelOffset+e.labelDirection*a,Uo.rotation=u.layoutRotation,n.add(Uo),Uo.updateTransform(),n.remove(Uo),Uo.decomposeTransform(),yo(l,Uo),l.markRedraw(),Sb(s,!0),To(s)}})}var Uo=new Et,B0t=new Et;function eN(e){return!!e}function V0t(e,t,r,n){r.on("click",function(a){var i={type:Tw,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};i[e.axis.dim+"AxisIndex"]=e.componentIndex,t.dispatchAction(i)})}function G0t(e,t,r){var n=Xe();if(n){var a=n.retrieveAxisBreakPairs(r,function(o){return o&&pc(o.label).labelInfo.tick.break},!0),i=e.get(["breakLabelLayout","moveOverlap"],!0);(i===!0||i==="auto")&&D(a,function(o){Hm().adjustBreakLabelPair(e.axis.inverse,t,[To(r[o[0]]),To(r[o[1]])])})}}function xb(e,t,r){r=r||{};var n=t.axis,a={},i=n.getAxesOnZeroOf()[0],o=n.position,s=i?"onZero":o,l=n.dim,u=[e.x,e.x+e.width,e.y,e.y+e.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,v=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(i){var h=i.toGlobalCoord(i.dataToCoord(0));v[f.onZero]=Math.max(Math.min(h,v[1]),v[0])}a.position=[l==="y"?v[f[s]]:u[0],l==="x"?v[f[s]]:u[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=d[o],a.labelOffset=i?v[f[o]]-v[f.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),nn(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var p=t.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-p:p,a.z2=1,a}function H0t(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function U0t(e){var t={xAxisModel:null,yAxisModel:null};return D(t,function(r,n){var a=n.replace(/Model$/,""),i=e.getReferringComponents(a,ze).models[0];t[n]=i}),t}function F0t(e,t,r,n,a,i){for(var o=xb(e,r),s=!1,l=!1,u=0;u<t.length;u++)HW(t[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new bn(r,n,o,a)}function Y0t(e,t,r){var n=xb(t,r);e.updateCfg(n)}function j0t(e){return e.dim+"_"+e.index}function X0t(){ryt("liPosMinGap",$0t)}function $0t(e,t,r){var n=nt(),a=r.serUids,i=r.liPosMinGap,o,s=t.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=k$(f);function v(_){Sw(e,t.sers,function(S){var b=S.getRawData(),x=b.getDimensionIndex(b.mapDimension(s.dim));x>=0&&_(x,S,b.getStore())})}var h=0;if(v(function(_,S,b){n.set(S.uid,1),(!a||!a.hasKey(S.uid))&&(o=!0),h+=b.count()}),(!a||a.keys().length!==n.keys().length)&&(o=!0),!o&&i!=null){t.liPosMinGap=i;return}QP(Zu,h);var d=0;v(function(_,S,b){for(var x=0,w=b.count();x<w;++x){var T=b.get(_,x);isFinite(T)&&(!f||z$(c,T))&&(u&&(T=l.transformIn(T,null)),Zu.arr[d++]=T)}});var p=Zu.typed?Zu.arr.subarray(0,d):(Zu.arr.length=d,Zu.arr);Zu.typed?p.sort():Er(p);for(var g=1/0,y=1;y<d;++y){var m=p[y]-p[y-1];m>0&&m<g&&(g=m)}r.liPosMinGap=t.liPosMinGap=Xa(g)?g:d>0?KW:Zgt,r.serUids=n}var Zu=QP({ctor:a0t},50);function Cw(e){return function(t,r){var n=qr(t,{fromStat:{key:e}});if(Xa(n.w2))return[-n.w2/2,n.w2/2]}}function kf(e){return e+db}function Kc(e,t){return e+db+t}function rN(e){return X0t(),{liPosMinGap:!un(e.scale)}}var fo="bar",ky="pictorialBar";function lq(e,t,r,n){UP(e,{key:t,seriesType:r,coordSysType:n,getMetrics:rN})}function uq(e){var t=e.scale.rawExtentInfo.makeRenderInfo().startValue;return t}var fq={left:0,right:0,top:0,bottom:0},wb=["25%","25%"],di="cartesian2d",W0t=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(r,n){var a=Wc(r.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&r.outerBounds&&wo(r.outerBounds,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&wo(this.option.outerBounds,r.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:fq,outerBoundsContain:"all",outerBoundsClampWidth:wb[0],outerBoundsClampHeight:wb[1],backgroundColor:V.color.transparent,borderWidth:1,borderColor:V.color.neutral30},t}(Lt),Z0t=Od(),kL="__ec_stack_";function cq(e){return e.get("stack")||kL+e.seriesIndex}function q0t(e){if(un(e.axis.scale)){for(var t=qr(e.axis),r=[],n=0;n<e.count;n++)r.push(dt({stackId:kL+n},e));for(var a=vq({bandWidthResult:t,seriesInfo:r}),i=[],n=0;n<e.count;n++){var o=a[kL+n];o.offsetCenter=o.offset+o.width/2,i.push(o)}return i}}function K0t(e,t){var r=Q0t(e,t);return r.columnMap=vq(r),r}function Q0t(e,t){var r=Kc(t,di),n=[],a=qr(e,{fromStat:{key:r},min:1});return fc(e,r,function(i){n.push({barWidth:et(i.get("barWidth"),a.w),barMaxWidth:et(i.get("barMaxWidth"),a.w),barMinWidth:et(i.get("barMinWidth")||(pq(i)?.5:1),a.w),barGap:i.get("barGap"),barCategoryGap:i.get("barCategoryGap"),defaultBarGap:i.get("defaultBarGap"),stackId:cq(i)})}),{bandWidthResult:a,seriesInfo:n}}function vq(e){var t=e.bandWidthResult.w,r=t,n=0,a,i,o=[],s={};D(e.seriesInfo,function(p,g){g||(i=p.defaultBarGap||0);var y=p.stackId;it(s,y)||n++;var m=s[y];m||(m=s[y]={width:0,maxWidth:0},o.push(y));var _=p.barWidth;_&&!m.width&&(m.width=_,_=te(r,_),r-=_);var S=p.barMaxWidth;S&&(m.maxWidth=S);var b=p.barMinWidth;b&&(m.minWidth=b);var x=p.barGap;x!=null&&(i=x);var w=p.barCategoryGap;w!=null&&(a=w)}),a==null&&(a=Dt(35-o.length*4,15)+"%");var l=et(a,t),u=et(i,1),f=(r-l)/(n+(n-1)*u);f=Dt(f,0),D(o,function(p){var g=s[p],y=g.maxWidth,m=g.minWidth;if(g.width){var _=g.width;y&&(_=te(_,y)),m&&(_=Dt(_,m)),g.width=_,r-=_+u*_,n--}else{var _=f;y&&y<_&&(_=te(y,r)),m&&m>_&&(_=m),_!==f&&(g.width=_,r-=_+u*_,n--)}}),f=(r-l)/(n+(n-1)*u),f=Dt(f,0);var c=0,v;D(o,function(p){var g=s[p];g.width||(g.width=f),v=g,c+=g.width*(1+u)}),v&&(c-=v.width*u);var h={},d=-c/2;return D(o,function(p){var g=s[p];h[p]=h[p]||{bandWidth:t,offset:d,width:g.width},d+=g.width*(1+u)}),h}function hq(e){return{seriesType:e,overallReset:function(t){var r=Kc(e,di);HP(t,r,function(n){var a=K0t(n,e);fc(n,r,function(i){var o=a.columnMap[cq(i)];i.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function dq(e){return{seriesType:e,plan:Zc(),reset:function(t){if(H0t(t)){var r=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=t.get("showBackground",!0),u=r.mapDimension(i.dim),f=r.getCalculationInfo("stackResultDimension"),c=Os(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),h=i.toGlobalCoord(i.dataToCoord(uq(i))),d=pq(t),p=t.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),y=r.getLayout("size"),m=r.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&Qi(b*3),w=d&&l&&Qi(b*3),T=d&&Qi(b),C=n.master.getRect(),A=v?C.width:C.height,M,L=S.getStore(),E=0;(M=_.next())!=null;){var R=L.get(c?g:o,M),I=L.get(s,M),O=h,N=void 0;c&&(N=+R-L.get(o,M));var P=void 0,z=void 0,B=void 0,H=void 0;if(v){var F=n.dataToPoint([R,I]);c&&(O=n.dataToPoint([N,I])[0]),P=O,z=F[1]+m,B=F[0]-O,H=y,Ie(B)<p&&(B=(B<0?-1:1)*p)}else{var F=n.dataToPoint([I,R]);c&&(O=n.dataToPoint([I,N])[1]),P=F[0]+m,z=O,B=y,H=F[1]-O,Ie(H)<p&&(H=(H<=0?-1:1)*p)}d?(x[E]=P,x[E+1]=z,x[E+2]=v?B:H,w&&(w[E]=v?C.x:P,w[E+1]=v?z:C.y,w[E+2]=A),T[M]=M):S.setItemLayout(M,{x:P,y:z,width:B,height:H}),E+=3}d&&S.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:w,valueAxisHorizontal:v})}}}}}}function pq(e){return e.pipelineContext&&e.pipelineContext.large}function J0t(e){return Cw(Kc(e,di))}function gq(e){Z0t(e,function(){function t(r){var n=Kc(r,di);lq(e,n,r,di),bw(n,J0t(r))}t("bar"),t("pictorialBar")})}var zy=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return No(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(r),s=i.dataToPoint(o);if(a)D(i.getAxes(),function(v,h){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),p=v.getTickModel().get("alignWithLabel"),g=o[h],y=n[h]==="x1"||n[h]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[h]=v.toGlobalCoord(v.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;b<d.length;b++){var x=d[b].coord,w=b===d.length-1?d[b-1].tickValue+S:d[b].tickValue;if(w===g){_=x;break}else if(w<g)m=x;else if(m!=null&&w>g){_=(x+m)/2;break}b===1&&(S=w-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},t.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t}(ne);ne.registerClass(zy);var t_t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return No(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.__preparePipelineContext=function(r,n){var a=qj(this,r,n);return a.progressiveRender&&(a.large=!0),a},t.prototype.brushSelector=function(r,n,a){return a.rect(n.getItemLayout(r))},t.type="series."+fo,t.dependencies=["grid","polar"],t.defaultOption=yu(zy.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:V.color.primary,borderWidth:2}},realtimeSort:!1}),t}(zy),e_t=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Tb=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new e_t},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,v=n.clockwise,h=Math.PI*2,d=v?c-f<h:f-c<h;d||(f=c-(v?h:-h));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(c),m=Math.sin(c);d?(r.moveTo(p*o+a,g*o+i),r.arc(p*u+a,g*u+i,l,-Math.PI+f,f,!v)):r.moveTo(p*s+a,g*s+i),r.arc(a,i,s,f,c,!v),r.arc(y*u+a,m*u+i,l,c-Math.PI*2,c-Math.PI,!v),o!==0&&r.arc(a,i,o,c,f,v)},t}(Rt);function r_t(e,t){t=t||{};var r=t.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return H1(n,a,i);var s=e(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,c=u.cy,v=u.r,h=u.r0,d=(v+h)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=r?Math.abs(v-h)/2:0,_=Math.cos,S=Math.sin,b=f+v*_(p),x=c+v*S(p),w="left",T="top";switch(s){case"startArc":b=f+(h-l)*_(y),x=c+(h-l)*S(y),w="center",T="top";break;case"insideStartArc":b=f+(h+l)*_(y),x=c+(h+l)*S(y),w="center",T="bottom";break;case"startAngle":b=f+d*_(p)+i_(p,l+m,!1),x=c+d*S(p)+o_(p,l+m,!1),w="right",T="middle";break;case"insideStartAngle":b=f+d*_(p)+i_(p,-l+m,!1),x=c+d*S(p)+o_(p,-l+m,!1),w="left",T="middle";break;case"middle":b=f+d*_(y),x=c+d*S(y),w="center",T="middle";break;case"endArc":b=f+(v+l)*_(y),x=c+(v+l)*S(y),w="center",T="bottom";break;case"insideEndArc":b=f+(v-l)*_(y),x=c+(v-l)*S(y),w="center",T="top";break;case"endAngle":b=f+d*_(g)+i_(g,l+m,!0),x=c+d*S(g)+o_(g,l+m,!0),w="left",T="middle";break;case"insideEndAngle":b=f+d*_(g)+i_(g,-l+m,!0),x=c+d*S(g)+o_(g,-l+m,!0),w="right",T="middle";break;default:return H1(n,a,i)}return n=n||{},n.x=b,n.y=x,n.align=w,n.verticalAlign=T,n}}function n_t(e,t,r,n){if(Ut(n)){e.setTextConfig({rotation:n});return}else if(Y(t)){e.setTextConfig({rotation:0});return}var a=e.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),e.setTextConfig({rotation:f})}function i_(e,t,r){return t*Math.sin(e)*(r?-1:1)}function o_(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Ji(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;Y(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:X(n,function(i){return mo(i,a)})}}var uA=Math.max,fA=Math.min,a_t=function(e){G(t,e);function t(){var r=e.call(this)||this;return r.type=fo,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,a,i){this._model=r,this._removeOnRenderedListener(a),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,a):this._renderNormal(r,n,a,i))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){gu(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,a,i){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var v=r.isAnimationEnabled()?r:null,h=i_t(r,u);h&&this._enableRealtimeSort(h,s,a);var d=r.get("clip",!0)||h,p=u.getArea();o.removeClipPath();var g=r.get("roundCap",!0),y=r.get("showBackground",!0),m=r.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],b=this._backgroundEls,x=i&&i.isInitSort,w=i&&i.type==="changeAxisOrder";function T(M){var L=s_[u.type](s,M);if(!L)return null;var E=v_t(u,c,L);return E.useStyle(m.getItemStyle()),u.type==="cartesian2d"?E.setShape("r",_):E.setShape("cornerRadius",_),S[M]=E,E}s.diff(l).add(function(M){var L=s.getItemModel(M),E=s_[u.type](s,M,L);if(E&&(y&&T(M),!(!s.hasValue(M)||!B4[u.type](E)))){var R=!1;d&&(R=P4[u.type](p,E));var I=N4[u.type](r,s,M,E,c,v,f.model,!1,g);h&&(I.forceLabelAnimation=!0),V4(I,s,M,L,E,r,c,u.type==="polar"),x?I.attr({shape:E}):h?k4(h,v,I,E,M,c,!1,!1):ye(I,{shape:E},r,M),s.setItemGraphicEl(M,I),o.add(I),I.ignore=R}}).update(function(M,L){var E=s.getItemModel(M),R=s_[u.type](s,M,E);if(R){if(y){var I=void 0;b.length===0?I=T(L):(I=b[L],I.useStyle(m.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[M]=I);var O=s_[u.type](s,M),N=mq(c,O,u);jt(I,{shape:N},v,M)}var P=l.getItemGraphicEl(L);if(!s.hasValue(M)||!B4[u.type](R)){o.remove(P);return}var z=!1;d&&(z=P4[u.type](p,R),z&&o.remove(P));var B=P&&(P.type==="sector"&&g||P.type==="sausage"&&!g);if(B&&(P&&us(P,r,L),P=null),P?Wa(P):P=N4[u.type](r,s,M,R,c,v,f.model,!0,g),h&&(P.forceLabelAnimation=!0),w){var H=P.getTextContent();if(H){var F=Vd(H);F.prevValue!=null&&(F.prevValue=F.value)}}else V4(P,s,M,E,R,r,c,u.type==="polar");x?P.attr({shape:R}):h?k4(h,v,P,R,M,c,!0,w):jt(P,{shape:R},r,M,null),s.setItemGraphicEl(M,P),P.ignore=z,o.add(P)}}).remove(function(M){var L=l.getItemGraphicEl(M);L&&us(L,r,M)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new ct);C.removeAll();for(var A=0;A<S.length;++A)C.add(S[A]);o.add(C),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(r,n,a){this._clear(),H4(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),H4(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&hc(r.coordinateSystem,!1,r),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,a){var i=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,a){var i=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:X(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,a){for(var i=a.scale,o=r.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,i.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,a,i){if(this._isOrderChangedWithinSameData(r,n,a)){var o=this._dataSort(r,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,a){var i=n.baseAxis,o=this._dataSort(r,i,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){us(i,r,yt(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=fo,t}(ee),P4={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=e.x+e.width,i=e.y+e.height,o=uA(t.x,e.x),s=fA(t.x+t.width,a),l=uA(t.y,e.y),u=fA(t.y+t.height,i),f=s<o,c=u<l;return t.x=f&&o>a?s:o,t.y=c&&l>i?u:l,t.width=f?0:s-o,t.height=c?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var a=fA(t.r,e.r),i=uA(t.r0,e.r0);t.r=a,t.r0=i;var o=a-i<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},N4={cartesian2d:function(e,t,r,n,a,i,o,s,l){var u=new Et({shape:U({},n),z2:1});if(u.__dataIndex=r,u.name="item",i){var f=u.shape,c=a?"height":"width";f[c]=0}return u},polar:function(e,t,r,n,a,i,o,s,l){var u=!a&&l?Tb:Wr,f=new u({shape:n,z2:1});f.name="item";var c=yq(a);if(f.calculateTextPosition=r_t(c,{isRoundCap:u===Tb}),i){var v=f.shape,h=a?"r":"endAngle",d={};v[h]=a?n.r0:n.startAngle,d[h]=n[h],(s?jt:ye)(f,{shape:d},i)}return f}};function i_t(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function k4(e,t,r,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?jt:ye)(r,{shape:l},t,a,null);var f=t?e.baseAxis.model:null;(o?jt:ye)(r,{shape:u},f,a)}function z4(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var o_t=["x","y","width","height"],s_t=["cx","cy","r","startAngle","endAngle"],B4={cartesian2d:function(e){return!z4(e,o_t)},polar:function(e){return!z4(e,s_t)}},s_={cartesian2d:function(e,t,r){var n=e.getItemLayout(t);if(!n)return null;var a=r?u_t(r,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function l_t(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function yq(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function V4(e,t,r,n,a,i,o,s){var l=t.getItemVisual(r,"style");if(s){if(!i.get("roundCap")){var f=e.shape,c=Ji(n.getModel("itemStyle"),f,!0);U(f,c),e.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var v=n.getShallow("cursor");v&&e.attr("cursor",v);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?h_t(a,i.coordinateSystem):d_t(a,i.coordinateSystem),d=ir(n);yr(e,d,{labelFetcher:i,labelDataIndex:r,defaultText:ud(i.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=e.getTextContent();if(s&&p){var g=n.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,n_t(e,g==="outside"?h:g,yq(o),n.get(["label","rotate"]))}jX(p,d,i.getRawValue(r),function(m){return GZ(t,m)});var y=n.getModel(["emphasis"]);Ae(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),ar(e,n),l_t(a)&&(e.style.fill="none",e.style.stroke="none",D(e.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function u_t(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var f_t=function(){function e(){}return e}(),G4=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new f_t},t.prototype.buildPath=function(r,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[i]=u,l[o]=a[f+2],s[i]=a[f+i],s[o]=a[f+o],r.rect(s[0],s[1],l[0],l[1])},t}(Rt);function H4(e,t,r,n){var a=e.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=e.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints"),f=n?uo(e):0;if(u){var c=new G4({shape:{points:u},incremental:f,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),r&&r.push(c)}var v=new G4({shape:{points:a.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});v.baseDimIdx=i,v.largeDataIndices=o,v.barWidth=s,t.add(v),v.useStyle(a.getVisual("style")),v.style.stroke=null,yt(v).seriesIndex=e.seriesIndex,e.get("silent")||(v.on("mousedown",U4),v.on("mousemove",U4)),r&&r.push(v)}var U4=dw(function(e){var t=this,r=c_t(t,e.offsetX,e.offsetY);yt(t).dataIndex=r>=0?r:null},30,!1);function c_t(e,t,r){for(var n=e.baseDimIdx,a=1-n,i=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,f=0,c=i.length/3;f<c;f++){var v=f*3;if(l[n]=u,l[a]=i[v+2],s[n]=i[v+n],s[a]=i[v+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function mq(e,t,r){if(dc(r,"cartesian2d")){var n=t,a=r.getArea();return{x:e?n.x:a.x,y:e?a.y:n.y,width:e?n.width:a.width,height:e?a.height:n.height}}else{var a=r.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:i.r0,r:e?a.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:Math.PI*2}}}function v_t(e,t,r){var n=e.type==="polar"?Wr:Et;return new n({shape:mq(t,r,e),silent:!0,z2:0})}function h_t(e,t){if(e.height===0){var r=t.getOtherAxis(t.getBaseAxis());return r.inverse?"bottom":"top"}return e.height>0?"bottom":"top"}function d_t(e,t){if(e.width===0){var r=t.getOtherAxis(t.getBaseAxis());return r.inverse?"left":"right"}return e.width>=0?"right":"left"}function p_t(e){e.registerChartView(a_t),e.registerSeriesModel(t_t),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,hq(fo)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,dq(fo)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,KZ(fo)),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})}),gq(e)}function Um(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=t.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}function qd(e,t,r){t=Y(t)&&{coordDimensions:t}||U({encodeDefine:e.getEncode()},t);var n=e.getSource(),a=jd(n,t).dimensions,i=new sn(a,e);return i.initData(n,r),i}var Kd=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}(),Fl="pie",g_t=Tt(),_q=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Kd(rt(this.getData,this),rt(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return qd(this,{coordDimensions:["value"],encodeDefaulter:At(vP,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),a=g_t(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Bj(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=i[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){ec(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},t.type="series."+Fl,t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(ne);cht({fullType:_q.type,getCoord2:function(e){return e.getShallow("center")}});var y_t=Math.PI/180;function F4(e,t,r,n,a,i,o,s,l,u){if(e.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-r),b=n+_.len,x=b*b,w=Math.sqrt(Math.abs((1-S*S/y)*x)),T=t+(w+_.len2)*a,C=T-_.label.x,A=_.targetTextWidth-C*a;Sq(_,A,!0),_.label.x=T}}function c(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>r?y:g,b=Math.abs(_.label.y-r);if(b>=S.maxY){var x=_.label.x-t-_.len2*a,w=n+_.len,T=Math.abs(x)<w?Math.sqrt(b*b/(1-x*x/w/w)):w;S.rB=T,S.maxY=b}S.list.push(_)}f(g),f(y)}for(var v=e.length,h=0;h<v;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var d=e[h].label.x-u;e[h].linePoints[1][0]+=d,e[h].label.x=u}DL(e,1,l,l+o)&&c(e)}function m_t(e,t,r,n,a,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,v=0;v<e.length;v++){var h=e[v].label;cA(e[v])||(h.x<t?(f=Math.min(f,h.x),l.push(e[v])):(c=Math.max(c,h.x),u.push(e[v])))}for(var v=0;v<e.length;v++){var d=e[v];if(!cA(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?h.x<t?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+a-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<t?g=f-o-d.bleedMargin:g=o+a-c-d.bleedMargin:h.x<t?g=h.x-o-d.bleedMargin:g=o+a-h.x-d.bleedMargin,d.targetTextWidth=g,Sq(d,g,!1)}}F4(u,t,r,n,1,a,i,o,s,c),F4(l,t,r,n,-1,a,i,o,s,f);for(var v=0;v<e.length;v++){var d=e[v];if(!cA(d)&&d.linePoints){var h=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=h.style.padding,_=m?m[1]+m[3]:0,S=h.style.backgroundColor?0:_,b=d.rect.width+S,x=p[1][0]-p[2][0];y?h.x<t?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+a-d.edgeDistance-b-d.labelDistance:(h.x<t?p[2][0]=h.x+d.labelDistance:p[2][0]=h.x-d.labelDistance,p[1][0]=p[2][0]+x),p[1][1]=p[2][1]=h.y}}}function Sq(e,t,r){if(e.labelStyleWidth==null){var n=e.label,a=n.style,i=e.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=i.width+(o?0:l);if(t<f||r){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var v=t-l,h=t<f?v:r?v>e.unconstrainedWidth?null:v:null;n.setStyle("width",h)}bq(i,n)}}}function bq(e,t){Y4.rect=e,SZ(Y4,t,__t)}var __t={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Y4={};function cA(e){return e.position==="center"}function S_t(e){var t=e.getData(),r=[],n,a,i=!1,o=(e.get("minShowLabelAngle")||0)*y_t,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,v=s.height;function h(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}t.each(function(x){var w=t.getItemGraphicEl(x),T=w.shape,C=w.getTextContent(),A=w.getTextGuideLine(),M=t.getItemModel(x),L=M.getModel("label"),E=L.get("position")||M.get(["emphasis","label","position"]),R=L.get("distanceToLabelLine"),I=L.get("alignTo"),O=et(L.get("edgeDistance"),u),N=L.get("bleedMargin");N==null&&(N=Math.min(u,v)>200?10:2);var P=M.getModel("labelLine"),z=P.get("length");z=et(z,u);var B=P.get("length2");if(B=et(B,u),Math.abs(T.endAngle-T.startAngle)<o){D(C.states,h),C.ignore=!0,A&&(D(A.states,h),A.ignore=!0);return}if(d(C)){var H=(T.startAngle+T.endAngle)/2,F=Math.cos(H),$=Math.sin(H),j,tt,mt,Nt;n=T.cx,a=T.cy;var Q=E==="inside"||E==="inner";if(E==="center")j=T.cx,tt=T.cy,Nt="center";else{var q=(Q?(T.r+T.r0)/2*F:T.r*F)+n,ht=(Q?(T.r+T.r0)/2*$:T.r*$)+a;if(j=q+F*3,tt=ht+$*3,!Q){var K=q+F*(z+l-T.r),at=ht+$*(z+l-T.r),bt=K+(F<0?-1:1)*B,Mt=at;I==="edge"?j=F<0?f+O:f+u-O:j=bt+(F<0?-R:R),tt=Mt,mt=[[q,ht],[K,at],[bt,Mt]]}Nt=Q?"center":I==="edge"?F>0?"right":"left":F>0?"left":"right"}var zt=Math.PI,$t=0,me=L.get("rotate");if(Ut(me))$t=me*(zt/180);else if(E==="center")$t=0;else if(me==="radial"||me===!0){var lr=F<0?-H+zt:-H;$t=lr}else if(me==="tangential"||me==="tangential-noflip"&&E!=="outside"&&E!=="outer"){var Kr=Math.atan2(F,$);Kr<0&&(Kr=zt*2+Kr);var ko=$>0;ko&&me!=="tangential-noflip"&&(Kr=zt+Kr),$t=Kr-zt}if(i=!!$t,C.x=j,C.y=tt,C.rotation=$t,C.setStyle({verticalAlign:"middle"}),Q){C.setStyle({align:Nt});var js=C.states.select;js&&(js.x+=C.x,js.y+=C.y)}else{var Ys=new vt(0,0,0,0);bq(Ys,C),r.push({label:C,labelLine:A,position:E,len:z,len2:B,minTurnAngle:P.get("minTurnAngle"),maxSurfaceAngle:P.get("maxSurfaceAngle"),surfaceNormal:new gt(F,$),linePoints:mt,textAlign:Nt,labelDistance:R,labelAlignTo:I,edgeDistance:O,bleedMargin:N,rect:Ys,unconstrainedWidth:Ys.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:Q})}}),!i&&e.get("avoidLabelOverlap")&&m_t(r,n,a,l,u,v,f,c);for(var p=0;p<r.length;p++){var g=r[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(D(y.states,h),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var b=g.linePoints;_||!b?(D(m.states,h),m.ignore=!0):(yZ(b,g.minTurnAngle),rmt(b,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new gt(b[0][0],b[0][1])})}}}var j4=Math.PI*2,l_=Math.PI/180,b_t=or(Fl,x_t);function x_t(e,t){e.eachSeriesByType(Fl,function(r){var n=r.getData(),a=n.mapDimension("value"),i=d$(r,t),o=i.cx,s=i.cy,l=i.r,u=i.r0,f=i.viewRect,c=-r.get("startAngle")*l_,v=r.get("endAngle"),h=r.get("padAngle")*l_;v=v==="auto"?c-j4:-v*l_;var d=r.get("minAngle")*l_,p=d+h,g=0;n.each(a,function(O){!isNaN(O)&&g++});var y=n.getSum(a),m=Math.PI/(y||g)*2,_=r.get("clockwise"),S=r.get("roseType"),b=r.get("stillShowZeroSum"),x=n.getDataExtent(a);x[0]=0;var w=_?1:-1,T=[c,v],C=w*h/2;nw(T,!_),c=T[0],v=T[1];var A=xq(r);A.startAngle=c,A.endAngle=v,A.clockwise=_,A.cx=o,A.cy=s,A.r=l,A.r0=u;var M=Math.abs(v-c),L=M,E=0,R=c;if(n.setLayout({viewRect:f,r:l}),n.each(a,function(O,N){var P;if(isNaN(O)){n.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:S?NaN:l});return}S!=="area"?P=y===0&&b?m:O*m:P=M/g,P<p?(P=p,L-=p):E+=O;var z=R+w*P,B=0,H=0;h>P?(B=R+w*P/2,H=B):(B=R+C,H=z-C),n.setItemLayout(N,{angle:P,startAngle:B,endAngle:H,clockwise:_,cx:o,cy:s,r0:u,r:S?Xt(O,x,[u,l]):l}),R=z}),L<j4&&g)if(L<=.001){var I=M/g;n.each(a,function(O,N){if(!isNaN(O)){var P=n.getItemLayout(N);P.angle=I;var z=0,B=0;I<h?(z=c+w*(N+1/2)*I,B=z):(z=c+w*N*I+C,B=c+w*(N+1)*I-C),P.startAngle=z,P.endAngle=B}})}else m=L/E,R=c,n.each(a,function(O,N){if(!isNaN(O)){var P=n.getItemLayout(N),z=P.angle===p?p:O*m,B=0,H=0;z<h?(B=R+w*z/2,H=B):(B=R+C,H=R+w*z-C),P.startAngle=B,P.endAngle=H,R+=w*z}})})}var xq=Tt(),w_t=function(e){G(t,e);function t(r,n,a){var i=e.call(this)||this;i.z2=2;var o=new Ht;return i.setTextContent(o),i.updateData(r,n,a,!0),i}return t.prototype.updateData=function(r,n,a,i){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),c=U(Ji(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(i){o.setShape(c);var v=s.getShallow("animationType");s.ecModel.ssr?(ye(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):v==="scale"?(o.shape.r=f.r0,ye(o,{shape:{r:f.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),ye(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,jt(o,{shape:{endAngle:f.endAngle}},s,n))}else Wa(o),jt(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),ar(o,l);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(h)*d,g=Math.sin(h)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=U({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Ji(u.getModel("itemStyle"),f)),U(o.ensureState("select"),{x:p,y:g,shape:Ji(l.getModel(["select","itemStyle"]),f)}),U(o.ensureState("blur"),{shape:Ji(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&U(m.ensureState("select"),{x:p,y:g}),U(_.ensureState("select"),{x:p,y:g}),Ae(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;yr(i,ir(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(a,"normal")||n.getName(a)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var v=o.get(["label","position"]);if(v!=="outside"&&v!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Or,this.setTextGuideLine(h)),YP(this,jP(o),{stroke:u,opacity:zn(s.get(["lineStyle","opacity"]),f,1)})}},t}(Wr),T_t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Fl,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a,i){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var v=xq(r),h=new Wr({shape:st(v)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var p=new w_t(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);us(p,r,d)}).execute(),S_t(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type=Fl,t}(ee);function C_t(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(Ut(o)&&!isNaN(o)&&o<0)})}}}function A_t(e){e.registerChartView(T_t),e.registerSeriesModel(_q),iW(Fl,e.registerAction),e.registerLayout(b_t),e.registerProcessor(Um(Fl)),e.registerProcessor(C_t(Fl))}var M_t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return No(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,a){return a.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:V.color.primary}},universalTransition:{divideShape:"clone"}},t}(ne),wq=4,D_t=function(){function e(){}return e}(),E_t=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new D_t},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(r){r&&!r.contentRetained&&this.reset()},t.prototype.buildPath=function(r,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&i[0]<wq,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<a.length;){var v=a[c++],h=a[c++];isNaN(v)||isNaN(h)||f&&!f.contain(v,h)||(s.x=v-i[0]/2,s.y=h-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},t.prototype.afterBrush=function(){var r=this.shape,n=r.points,a=r.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(r,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var f=u*2,c=i[f]-s/2,v=i[f+1]-l/2;if(r>=c&&n>=v&&r<=c+s&&n<=v+l)return u}return-1},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(r=a[0],n=a[1],i.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,c=-1/0,v=0;v<a.length;){var h=a[v++],d=a[v++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(d,u),c=Math.max(d,c)}r=this._rect=new vt(l-o/2,u-s/2,f-l+o,c-u+s)}return r},t}(Rt),L_t=function(){function e(){this.group=new ct}return e.prototype.updateData=function(t,r){this._clear(),this._data=t;var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,r)},e.prototype.updateLayout=function(t){var r=this._data;if(r){var n=r.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var i=(a.endIndex-a.startIndex)*2,o=a.startIndex*4*2;n=new Float32Array(n.buffer,o,i)}a.setShape("points",n),a.reset(),a.stopAnimation()})}},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,r,n,a){var i=this._newAdded[0],o=r.getLayout("points"),s=i&&i.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),i.endIndex=t.end,i.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=t.start,f.endIndex=t.end,f.incremental=n,f.setShape({points:o}),this._setCommon(f,r,a)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new E_t({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,r,n){var a=r.hostModel;n=n||{};var i=r.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=$e(r.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<wq;t.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=yt(t);u.seriesIndex=a.seriesIndex,t.on("mousemove",function(f){u.dataIndex=null;var c=t.hoverDataIdx;c>=0&&(u.dataIndex=c+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),O_t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.updateData(i,vA(r)),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,a){this._symbolDraw.incrementalUpdate(r,n.getData(),uo(n),vA(n)),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,a){var i=r.getData();if(this.group.dirty(),this._finished){var o=Gm("").reset(r,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(vA(r))}else return{update:!0}},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._updateSymbolDraw=function(r,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new L_t:new Vm,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(ee);function vA(e){return{clipShape:$Z(e)}}var zL=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ze).models[0]},t.type="cartesian2dAxis",t}(Lt);We(zL,Wd);var Tq={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:"auto",onZeroAxisIndex:null,lineStyle:{color:V.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:V.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:V.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[V.color.backgroundTint,V.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:V.color.neutral00,borderColor:V.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},R_t=wt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Tq),nN=wt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:V.color.axisMinorSplitLine,width:1}}},Tq),I_t=wt({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},nN),P_t=dt({logBase:10},nN);const Cq={category:R_t,value:nN,time:I_t,log:P_t};function fd(e,t,r,n){D($W,function(a,i){var o=wt(wt({},Cq[i],!0),n,!0),s=function(l){G(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var v=xy(this),h=v?Wc(f):{},d=c.getTheme();wt(f,d.get(i+"Axis")),wt(f,this.getDefaultOption()),f.type=X4(f),v&&wo(f,h,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Ay.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=Hm();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=t+"Axis."+i,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",X4)}function X4(e){return e.type||(e.data?"category":"value")}var N_t=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return X(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),qt(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}(),OS=["x","y"];function $4(e){return(e.type==="interval"||e.type==="time")&&!Q1(e)}var k_t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=di,r.dimensions=OS,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!$4(r)||!$4(n))){var a=cb(r,null),i=cb(n,null),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,v=o[0]-a[0]*f,h=o[1]-i[0]*c,d=this._transform=[f,0,0,c,v,h];this._invTransform=ca([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&a.contain(a.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var a=this.dataToPoint(r),i=this.dataToPoint(n),o=this.getArea(),s=new vt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,a){a=a||[];var i=r[0],o=r[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Ne(a,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(r,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(r[0]),u=i.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n,a){if(a=a||[],this._invTransform)return Ne(a,r,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(r[0]),n),a[1]=o.coordToData(o.toLocalCoord(r[1]),n),a},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-r,o=Math.min(a[0],a[1])-r,s=Math.max(n[0],n[1])-i+r,l=Math.max(a[0],a[1])-o+r;return new vt(i,o,s,l)},t}(N_t);function Aq(e,t){var r=e.scale,n=e.model,a=iZ(r,n,n.ecModel,e,null),i=id(r),o=id(t)?t.intervalStub:t,s=i?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,v,h,d;if(c===1)v=h=0,d=1;else if(c===2){var p=Ie(u[0].value-u[1].value),g=Ie(u[1].value-u[2].value);v=h=0,p===g?d=2:(d=1,p<g?v=p/g:h=g/p)}else{var y=o.getConfig().interval;v=(1-(u[0].value-f[0].value)/y)%1,h=(1-(f[c].value-u[c].value)/y)%1,d=c-(v?1:0)-(h?1:0)}var m=a.zoomFixMM,_=m[0]||m[1],S=[a.fixMM[0]||_,a.fixMM[1]||_],b=r.getExtent(),x=s.getExtent(),w=UW(x,S),T,C,A,M,L,E;function R(F){for(var $=50,j=0;j<$&&!F();j++)A=i?A*Dt(l,2):Dgt(A),M=uc(A)}function I(){T=Yt(E-A*v,M)}function O(){C=Yt(L+A*h,M)}function N(){E=v?Yt(T+A*v,M):T}function P(){L=h?Yt(C-A*h,M):C}if(S[0]&&S[1]){T=w[0],C=w[1],A=(C-T)/(d+v+h);var z=e.getExtent(),B=Ie(z[1]-z[0]);M=TI([C,T],B,.5/d),N(),P(),Xa(M)&&(A=Yt(A,M))}else{var H=w[1]-w[0];A=i?Dt(AI(H),1):Kx(H/d,Vj),M=uc(A),S[0]?(T=w[0],R(function(){if(N(),L=Yt(E+A*d,M),O(),C>=w[1])return!0})):S[1]?(C=w[1],R(function(){if(P(),E=Yt(L-A*d,M),I(),T<=w[0])return!0})):R(function(){E=Yt(Uc(w[0]/A)*A,M),L=Yt(ja(w[1]/A)*A,M);var F=_o((L-E)/A);if(F<=d){var $=d-F,j=void 0,tt=a.incl0||i;if(tt&&w[0]===0)j=[0,$];else if(tt&&w[1]===0)j=[$,0];else{var mt=ja($/2);j=$%2===0?[mt,mt]:T+C<w[0]+w[1]?[mt,mt+1]:[mt+1,mt]}if(E=Yt(E-A*j[0],M),L=Yt(L+A*j[1],M),I(),O(),T<=w[0]&&C>=w[1])return!0}})}qW(r,S,x,[T,C],b,{interval:A,intervalCount:d,intervalPrecision:M,niceExtent:[E,L]})}var W4=[[3,1],[0,2]],z_t=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=OS,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;D(this._axesList,function(o){vc(o,sd);var s=o.scale;un(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function a(o){for(var s=kt(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):ld(f)}D(l,function(c){V_t(c,c.__alignTo)?ld(c):Aq(c,c.__alignTo.scale)})}a(n.x),a(n.y);var i={};D(n.x,function(o){Z4(n,"y",o,i)}),D(n.y,function(o){Z4(n,"x",o,i)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var a=sr(t,r),i=this._rect=xe(t.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(BL(o,i),!n){var u=U_t(i,s,o,l,r),f=void 0;if(l)VL?(VL(this._axesList,i),BL(o,i)):f=J4(i.clone(),"axisLabel",null,i,o,u,a);else{var c=F_t(t,i,a),v=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;v&&(f=J4(v,h,d,i,o,u,a))}Mq(i,o,yi.determine,null,f,a),D(this._coordsList,function(p){p.calcAffineTransform()})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}pt(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===t||i[a].getAxis("y").index===r)return i[a]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",ze).models[0],a=t.yAxisModel||r&&r.getReferringComponents("yAxis",ze).models[0],i=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,St(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,D(s.x,function(f,c){D(s.y,function(v,h){var d="x"+c+"y"+h,p=new k_t(d);p.master=a,p.model=t,a._coordsMap[d]=p,a._coordsList.push(p),p.addAxis(f),p.addAxis(v)})}),K4(s.x),K4(s.y);function u(f){return function(c,v){if(B_t(c,t)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=Nm(c),p=new QZ(f,Xd(c,d,!0),[0,0],d,h);p.onBand=zm(p.scale,c),p.inverse=c.get("inverse"),c.axis=p,p.model=c,p.grid=i,p.index=v,i._axesList.push(p),s[f][v]=p,l[f]++}}}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return D(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);St(r,i)<0&&r.push(i),St(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(a,i){var o=new e(a,t,r);o.name="grid_"+i,o.resize(a,r,!0),a.coordinateSystem=o,n.push(o),D(o._axesList,function(s){syt(s,e.dimIdxMap)})}),t.eachSeries(function(a){var i,o;Rm({targetModel:a,coordSysType:di,coordSysProvider:s});function s(){var l=U0t(a),u=l.xAxisModel,f=l.yAxisModel;i=u.axis,o=f.axis;var c=u.getCoordSysModel(),v=c.coordinateSystem;return v.getCartesian(u.componentIndex,f.componentIndex)}i&&o&&(cc(i,a,di),cc(o,a,di))},this),n},e.dimensions=OS,e.dimIdxMap=IP(OS),e}();function B_t(e,t){return e.getCoordSysModel()===t}function Z4(e,t,r,n){r.getAxesOnZeroOf=function(){return i?[i]:[]};var a=e[t],i,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)q4(s,a[l])&&(i=a[l]);else for(var u in a)if(it(a,u)&&q4(s,a[u])&&!n[f(a[u])]){i=a[u];break}i&&(n[f(i)]=!0);function f(c){return c.dim+"_"+c.index}}function q4(e,t){if(!t)return!1;var r=t.scale,n=Ggt(r,0),a=t&&t.type!=="category"&&t.type!=="time"&&n!==bL;return a&&e==="auto"&&Ygt(t)&&(a=!1),a}function K4(e){for(var t=kt(e),r,n=[],a=t.length-1;a>=0;a--){var i=e[+t[a]];HW(i.scale)&&ZW(i.model,i.type,!0)==null&&(i.model.get("alignTicks")&&i.model.get("interval")==null?n.push(i):r=i)}r||(r=n.pop()),r&&D(n,function(o){o.__alignTo=r})}function V_t(e,t){return Q1(e.scale)||Q1(t.scale)||t.scale.getTicks().length<2}function G_t(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(a){return a+t}:function(a){return n-a+t},e.toLocalCoord=e.dim==="x"?function(a){return a-t}:function(a){return n-a+t}}function BL(e,t){D(e.x,function(r){return Q4(r,t.x,t.width)}),D(e.y,function(r){return Q4(r,t.y,t.height)})}function Q4(e,t,r){var n=[0,r],a=e.inverse?1:0;e.setExtent(n[a],n[1-a]),G_t(e,t)}var VL;function H_t(e){VL=e}function J4(e,t,r,n,a,i,o){Mq(n,a,yi.estimate,t,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=Vs(s,function(v){return v>0})==null;return oc(n,s,!0,!0,r),BL(a,n),l;function u(v){D(a[_t[v]],function(h){if(Ly(h.model)){var d=i.ensureRecord(h.model),p=d.labelInfoList;if(p)for(var g=0;g<p.length;g++){var y=p[g],m=h.scale.normalize($d(h.scale,pc(y.label).labelInfo.tick));m=v===1?1-m:m,f(y.rect,v,m),f(y.rect,1-v,NaN)}var _=d.nameLayout;if(_){var m=od(d.nameLocation)?.5:NaN;f(_.rect,v,m),f(_.rect,1-v,NaN)}}})}function f(v,h,d){var p=e[_t[h]]-v[_t[h]],g=v[Ge[h]]+v[_t[h]]-(e[Ge[h]]+e[_t[h]]);p=c(p,1-d),g=c(g,d);var y=W4[h][0],m=W4[h][1];s[y]=Dt(s[y],p),s[m]=Dt(s[m],g)}function c(v,h){return v>0&&!Yr(h)&&h>1e-4&&(v/=h),v}}function U_t(e,t,r,n,a){var i=new rq(Y_t);return D(r,function(o){return D(o,function(s){if(Ly(s.model)){var l=!n;s.axisBuilder=F0t(e,t,s.model,a,i,l)}})}),i}function Mq(e,t,r,n,a,i){var o=r===yi.determine;D(t,function(u){return D(u,function(f){Ly(f.model)&&(Y0t(f.axisBuilder,e,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[_t[1-u]]=e[Ge[u]]<=i.refContainer[Ge[u]]*.5?0:1-u===1?2:1}D(t,function(u,f){return D(u,function(c){Ly(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function F_t(e,t,r){var n,a=e.get("outerBoundsMode",!0);a==="same"?n=t.clone():(a==null||a==="auto")&&(n=xe(e.get("outerBounds",!0)||fq,r.refContainer));var i=e.get("outerBoundsContain",!0),o;i==null||i==="auto"||St(["all","axisLabel"],i)<0?o="all":o=i;var s=[Y1(ot(e.get("outerBoundsClampWidth",!0),wb[0]),t.width),Y1(ot(e.get("outerBoundsClampHeight",!0),wb[1]),t.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var Y_t=function(e,t,r,n,a,i){var o=r.axis.dim==="x"?"y":"x";nq(e,t,r,n,a,i),od(e.nameLocation)||D(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&iq(s.labelInfoList,s.dirVec,n,a)})};function j_t(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return X_t(r,e,t),r.seriesInvolved&&W_t(r,e),r}function X_t(e,t,r){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];D(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=By(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(D(s.getAxes(),At(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var v=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(v||h)&&D(d.baseAxes,At(p,h?"cross":!0,v)),h&&D(d.otherAxes,At(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!g&&!GL(_))){y==null&&(y=_.get("triggerTooltip")),_=g?$_t(m,c,a,t,g,y):_;var b=_.get("snap"),x=_.get("triggerEmphasis"),w=By(m.model),T=y||b||m.type==="category",C=e.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:x,involveSeries:T,snap:b,useHandle:GL(_),seriesModels:[],linkGroup:null};u[w]=C,e.seriesInvolved=e.seriesInvolved||T;var A=Z_t(i,m);if(A!=null){var M=o[A]||(o[A]={axesInfo:{}});M.axesInfo[w]=C,M.mapper=i[A].mapper,C.linkGroup=M}}}})}function $_t(e,t,r,n,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};D(s,function(v){l[v]=st(o.get(v))}),l.snap=e.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&dt(u,c.textStyle)}}return e.model.getModel("axisPointer",new Ot(l,r,n))}function W_t(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!n||!n.model||a==="none"||a===!1||a==="item"||i===!1||r.get(["axisPointer","show"],!0)===!1||D(e.coordSysAxesInfo[By(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function Z_t(e,t){for(var r=t.model,n=t.dim,a=0;a<e.length;a++){var i=e[a]||{};if(hA(i[n+"AxisId"],r.id)||hA(i[n+"AxisIndex"],r.componentIndex)||hA(i[n+"AxisName"],r.name))return a}}function hA(e,t){return e==="all"||Y(e)&&St(e,t)>=0||e===t}function q_t(e){var t=aN(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,a=r.option,i=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=GL(r);i==null&&(a.status=s?"show":"hide");var l=n.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function aN(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[By(e)]}function K_t(e){var t=aN(e);return t&&t.axisPointerModel}function GL(e){return!!e.get(["handle","show"])}function By(e){return e.type+"||"+e.id}var tG={},Qc=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this.axisPointerClass&&q_t(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},t.prototype.updateAxisPointer=function(r,n,a,i){this._doUpdateAxisPointerClass(r,a,!1)},t.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,a){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=K_t(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,n,a):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){tG[r]=n},t.getAxisPointerClass=function(r){return r&&tG[r]},t.type="axis",t}(fe),HL=Tt();function Dq(e,t,r,n){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=HL(e).splitAreaColors,v=nt(),h=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){h=(p+(f-1)*d)%f;break}}var g=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=Y(s)?s:[s];for(var d=1;d<u.length;d++){var m=a.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,x=void 0;a.isHorizontal()?(_=g,S=l.y,b=m-_,x=l.height,g=_+b):(_=l.x,S=g,b=l.width,x=m-S,g=S+x);var w=u[d-1].tickValue;w!=null&&v.set(w,h),t.add(new Et({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:b,height:x},style:dt({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%f}HL(e).splitAreaColors=v}}}function Eq(e){HL(e).splitAreaColors=null}var Q_t=["splitArea","splitLine","minorSplitLine","breakArea"],Lq=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ct,this.group.add(this._axisGroup),!!Ly(r)){this._axisGroup.add(r.axis.axisBuilder.group),D(Q_t,function(l){r.get([l,"show"])&&J_t[l](this,this._axisGroup,r,r.getCoordSysModel(),a)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||Lm(o,this._axisGroup,r),e.prototype.render.call(this,r,n,a,i)}},t.prototype.remove=function(){Eq(this)},t.type="cartesianAxis",t}(Qc),J_t={splitLine:function(e,t,r,n,a){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=Y(l)?l:[l];for(var c=n.coordinateSystem.getRect(),v=i.isHorizontal(),h=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],y=s.getLineStyle(),m=0;m<d.length;m++){var _=i.toGlobalCoord(d[m].coord);if(!(m===0&&!u||m===d.length-1&&!f)){var S=d[m].tickValue;v?(p[0]=_,p[1]=c.y,g[0]=_,g[1]=c.y+c.height):(p[0]=c.x,p[1]=_,g[0]=c.x+c.width,g[1]=_);var b=h++%l.length,x=new je({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:dt({stroke:l[b]},y),silent:!0});rd(x.shape,y.lineWidth),t.add(x)}}}},minorSplitLine:function(e,t,r,n,a){var i=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var c=[],v=[],h=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var g=i.toGlobalCoord(f[d][p].coord);u?(c[0]=g,c[1]=l.y,v[0]=g,v[1]=l.y+l.height):(c[0]=l.x,c[1]=g,v[0]=l.x+l.width,v[1]=g);var y=new je({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]},style:h,silent:!0});rd(y.shape,h.lineWidth),t.add(y)}},splitArea:function(e,t,r,n,a){Dq(e,t,r,n)},breakArea:function(e,t,r,n,a){var i=Hm(),o=r.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(t,e,r,n.coordinateSystem.getRect(),a)}},Oq=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(Lq),tSt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Oq.type,r}return t.type="yAxis",t}(Lq),eSt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Et({shape:r.coordinateSystem.getRect(),style:dt({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(fe),eG={offset:0};function Rq(e){e.registerComponentView(eSt),e.registerComponentModel(W0t),e.registerCoordinateSystem("cartesian2d",z_t),fd(e,"x",zL,eG),fd(e,"y",zL,eG),e.registerComponentView(Oq),e.registerComponentView(tSt),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Aw="single",rSt="singleAxis",UL="singleAxis",RS=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getCoordSysModel=function(){return this},t.type=UL,t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},t}(Lt);We(RS,Wd.prototype);function nSt(e,t){var r=e.coordinateSystem,n=r&&r.type,a=r&&r.getBaseAxis&&r.getBaseAxis(),i=a&&a.scale&&a.scale.type,o=n===di&&i==="ordinal"||n===Aw,s=t.model.get("jitter")>0;return o&&s}var aSt=Tt();function rG(e,t,r,n){if(e instanceof QZ){var a=e.scale.type;if(a!=="ordinal")return r}var i=e.model,o=i.get("jitter");if(!(o>0))return r;var s=i.get("jitterOverlap"),l=i.get("jitterMargin")||0,u=un(e.scale)?qr(e).w:null;return s?Iq(r,o,u,n):iSt(e,t,r,n,o,l)}function Iq(e,t,r,n){if(r===null)return e+(Math.random()-.5)*t;var a=r-n*2,i=Math.min(Math.max(0,t),a);return e+(Math.random()-.5)*i}function iSt(e,t,r,n,a,i){var o=aSt(e);o.items||(o.items=[]);var s=o.items,l=nG(s,t,r,n,a,i,1),u=nG(s,t,r,n,a,i,-1),f=Math.abs(l-r)<Math.abs(u-r)?l:u,c=un(e.scale)?qr(e).w:null,v=Math.abs(f-r);return v>a/2||c&&v>c/2-n?Iq(r,a,c,n):(s.push({fixedCoord:t,floatCoord:f,r:n}),f)}function nG(e,t,r,n,a,i,o){for(var s=r,l=0;l<e.length;l++){var u=e[l],f=t-u.fixedCoord,c=s-u.floatCoord,v=f*f+c*c,h=n+u.r+i;if(v<h*h){var d=u.floatCoord+Math.sqrt(h*h-f*f)*o;if(Math.abs(d-r)>a/2)return Number.MAX_VALUE;if(o===1&&d>s||o===-1&&d<s){s=d,l=-1;continue}}}return s}function oSt(){return{seriesType:"scatter",plan:Zc(),reset:function(e){var t=e.coordinateSystem;if(!(!t||t.type!==di&&t.type!==Aw)){var r=t.getBaseAxis&&t.getBaseAxis(),n=r&&nSt(e,r);if(n){var a=r.dim,i=r.orient,o=i==="horizontal"&&r.type!=="category"||i==="vertical"&&r.type==="category",s=a==="y"||a==="single"&&o,l=a==="x"||a==="single"&&!o;if(!(!s&&!l))return{progress:function(u,f){for(var c=f.getLayout("points"),v=!!c,h=u.start;h<u.end;h++){var d=v?(h-u.start)*2:-1,p=v?[c[d],c[d+1]]:f.getItemLayout(h);if(p){var g=f.getItemVisual(h,"symbolSize"),y=g instanceof Array?(g[1]+g[0])/2:g;if(s){var m=rG(r,p[0],p[1],y/2);v?c[d+1]=m:p[1]=m}else if(l){var m=rG(r,p[1],p[0],y/2);v?c[d]=m:p[0]=m}}}}}}}}}}function sSt(e){Ct(Rq),e.registerSeriesModel(M_t),e.registerChartView(O_t),e.registerLayout(Gm("scatter"))}function lSt(e){e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,oSt())}function uSt(e){var t=e.polar;if(t){Y(t)||(t=[t]);var r=[];D(t,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),e.radar=e.radar||[],Y(e.radar)||(e.radar=[e.radar]),e.radar.push(n)):r.push(n)}),e.polar=r}D(e.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var Vy="radar",fSt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Kd(rt(this.getData,this),rt(this.getRawData,this))},t.prototype.getInitialData=function(r,n){return qd(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,f=$$(this,r);return Ke("section",{header:u,sortBlocks:!0,blocks:X(s,function(c){var v=i.get(i.mapDimension(c.dim),r);return Ke("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:v,sortParam:v})})})},t.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(X(a.dimensions,function(u){return n.mapDimension(u)}),r),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series."+Vy,t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(ne),cSt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Vy,r}return t.prototype.render=function(r,n,a){var i=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(v,h){var d=v.getItemVisual(h,"symbol")||"circle";if(d!=="none"){var p=Yd(v.getItemVisual(h,"symbolSize")),g=$e(d,-1,-1,2,2),y=v.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function f(v,h,d,p,g,y){d.removeAll();for(var m=0;m<h.length-1;m++){var _=u(p,g);_&&(_.__dimIdx=m,v[m]?(_.setPosition(v[m]),Xc[y?"initProps":"updateProps"](_,{x:h[m][0],y:h[m][1]},r,g)):_.setPosition(h[m]),d.add(_))}}function c(v){return X(v,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(v){var h=s.getItemLayout(v);if(h){var d=new Zr,p=new Or,g={shape:{points:h}};d.shape.points=c(h),p.shape.points=c(h),ye(d,g,r,v),ye(p,g,r,v);var y=new ct,m=new ct;y.add(p),y.add(d),y.add(m),f(p.shape.points,h,m,s,v,!0),s.setItemGraphicEl(v,y)}}).update(function(v,h){var d=l.getItemGraphicEl(h),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(v)}};m.shape.points&&(f(p.shape.points,m.shape.points,y,s,v,!1),Wa(g),Wa(p),jt(p,m,r),jt(g,m,r),s.setItemGraphicEl(v,d))}).remove(function(v){o.remove(l.getItemGraphicEl(v))}).execute(),s.eachItemGraphicEl(function(v,h){var d=s.getItemModel(h),p=v.childAt(0),g=v.childAt(1),y=v.childAt(2),m=s.getItemVisual(h,"style"),_=m.fill;o.add(v),p.useStyle(dt(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),ar(p,d,"lineStyle"),ar(g,d,"areaStyle");var S=d.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=b,D(["emphasis","select","blur"],function(w){var T=d.getModel([w,"areaStyle"]),C=T.isEmpty()&&T.parentModel.isEmpty();g.ensureState(w).ignore=C&&b;var A=d.getModel([w,"lineStyle"]).getLineStyle();p.ensureState(w).style=A;var M=T.getAreaStyle();g.ensureState(w).style=M;var L=d.getModel([w,"itemStyle"]).getItemStyle();y.eachChild(function(E){E.ensureState(w).style=st(L)})}),g.useStyle(dt(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var x=d.getModel("emphasis");y.eachChild(function(w){if(w instanceof mr){var T=w.style;w.useStyle(U({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},m))}else w.useStyle(m),w.setColor(_),w.style.strokeNoScale=!0;var C=s.getStore().get(s.getDimensionIndex(w.__dimIdx),h);(C==null||isNaN(C))&&(C=""),yr(w,ir(d),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:w.__dimIdx,defaultText:C,inheritColor:_,defaultOpacity:m.opacity})}),Ae(v,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type=Vy,t}(ee),Mp=Cq.value,Vg="radar",Pq=Vg,vSt=Vg,Nq=5;function u_(e,t){return dt({show:t},e)}var hSt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),a=this.get("clockwise"),i=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),f=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),v=this.get("axisNameGap"),h=this.get("triggerEvent"),d=X(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=u;p.color!=null&&(g=dt({color:p.color},u));var y=wt(st(p),{boundaryGap:r,splitNumber:n,clockwise:a,scale:i,axisLine:o,axisTick:s,axisLabel:l,name:p.text,showName:f,nameLocation:"end",nameGap:v,nameTextStyle:g,triggerEvent:h},!1);if(J(c)){var m=y.name;y.name=c.replace("{value}",m??"")}else ut(c)&&(y.name=c(y.name,y));var _=new Ot(y,null,this.ecModel);return We(_,Wd.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_.uid=$c("ec_radar"),_},this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=Pq,t.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:V.color.axisLabel},boundaryGap:[0,0],splitNumber:Nq,axisNameGap:15,scale:!1,shape:"polygon",axisLine:wt({lineStyle:{color:V.color.neutral20}},Mp.axisLine),axisLabel:u_(Mp.axisLabel,!1),axisTick:u_(Mp.axisTick,!1),splitLine:u_(Mp.splitLine,!0),splitArea:u_(Mp.splitArea,!0),indicator:[]},t}(Lt),dSt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=this.group;i.removeAll(),this._buildAxes(r,a),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r,n){var a=r.coordinateSystem,i=a.getIndicatorAxes(),o=X(i,function(s){var l=s.model.get("showName")?s.name:"",u=new bn(s.model,n,{axisName:l,position:[a.cx,a.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});D(o,function(s){s.build(),this.group.add(s.group)},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),v=l.get("color"),h=u.get("color"),d=Y(v)?v:[v],p=Y(h)?h:[h],g=[],y=[];function m(I,O,N){var P=N%O.length;return I[P]=I[P]||[],P}if(i==="circle")for(var _=a[0].getTicksCoords(),S=n.cx,b=n.cy,x=0;x<_.length;x++){if(f){var w=m(g,d,x);g[w].push(new Po({shape:{cx:S,cy:b,r:_[x].coord}}))}if(c&&x<_.length-1){var w=m(y,p,x);y[w].push(new Pd({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,C=X(a,function(I,O){var N=I.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),X(N,function(P){return n.coordToPoint(P.coord,O)})}),A=[],x=0;x<=T;x++){for(var M=[],L=0;L<a.length;L++)M.push(C[L][x]);if(M[0]&&M.push(M[0].slice()),f){var w=m(g,d,x);g[w].push(new Or({shape:{points:M}}))}if(c&&A){var w=m(y,p,x-1);y[w].push(new Zr({shape:{points:M.concat(A)}}))}A=M.slice().reverse()}var E=l.getLineStyle(),R=u.getAreaStyle();D(y,function(I,O){this.group.add(Jn(I,{style:dt({stroke:"none",fill:p[O%p.length]},R),silent:!0}))},this),D(g,function(I,O){this.group.add(Jn(I,{style:dt({fill:"none",stroke:d[O%d.length]},E),silent:!0}))},this)},t.type="radar",t}(fe),pSt=function(e){G(t,e);function t(r,n,a){var i=e.call(this,r,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return t}(Ka),gSt=function(){function e(t,r,n){this.type=Vg,this.dimensions=[],this._model=t,this._indicatorAxes=X(t.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new pSt(o,new Ul);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(t,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(t),r)},e.prototype.coordToPoint=function(t,r){var n=this._indicatorAxes[r],a=n.angle,i=this.cx+t*Math.cos(a),o=this.cy-t*Math.sin(a);return[i,o]},e.prototype.pointToData=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,a=Math.sqrt(r*r+n*n);r/=a,n/=a;for(var i=Math.atan2(-n,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(i-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(a))]},e.prototype.resize=function(t,r){var n=sr(t,r).refContainer,a=t.get("center"),i=t.get("clockwise")||!1,o=Math.min(n.width,n.height)/2;this.cx=et(a[0],n.width)+n.x,this.cy=et(a[1],n.height)+n.y,this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(J(s)||Ut(s))&&(s=[0,s]),this.r0=et(s[0],o),this.r=et(s[1],o);var l=i?-1:1;D(this._indicatorAxes,function(u,f){u.setExtent(this.r0,this.r);var c=this.startAngle+l*f*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),u.angle=c},this)},e.prototype.update=function(t,r){var n=this._indicatorAxes,a=this._model,i=_w(a.get("splitNumber"),Nq),o=new Ul;o.setExtent(0,i),o.setConfig({interval:1}),D(n,function(s){vc(s,sd),Aq(s,o)})},e.prototype.convertToPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.create=function(t,r){var n=[];return t.eachComponent(Pq,function(a){var i=new e(a,t,r);n.push(i),a.coordinateSystem=i}),t.eachSeriesByType(vSt,function(a){if(a.get("coordinateSystem")===Vg){var i=a.coordinateSystem=n[a.get("radarIndex")||0];i&&D(i.getIndicatorAxes(),function(o){cc(o,a,Vg)})}}),n},e.dimensions=[],e}();function ySt(e){e.registerCoordinateSystem("radar",gSt),e.registerComponentModel(hSt),e.registerComponentView(dSt),e.registerVisual({seriesType:"radar",reset:function(t){var r=t.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}var mSt=or(Vy,_St);function _St(e){e.eachSeriesByType(Vy,function(t){var r=t.getData(),n=[],a=t.coordinateSystem;if(a){var i=a.getIndicatorAxes();D(i,function(o,s){r.each(r.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var f=a.dataToPoint(l,s);n[u][s]=aG(f)?f:iG(a)})}),r.each(function(o){var s=Vs(n[o],function(l){return aG(l)})||iG(a);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function aG(e){return!isNaN(e[0])&&!isNaN(e[1])}function iG(e){return[e.cx,e.cy]}function SSt(e){Ct(ySt),e.registerChartView(cSt),e.registerSeriesModel(fSt),e.registerLayout(mSt),e.registerProcessor(Um("radar")),e.registerPreprocessor(uSt)}var iN=Tt();function bSt(e,t,r){iN(e)[t]=r}function xSt(e,t,r){var n=iN(e),a=n[t];a===r&&(n[t]=null)}function oG(e,t){return!!iN(e)[t]}bi({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Pe);var wSt={axisPointer:1,tooltip:1,brush:1};function kq(e,t,r){var n=t.getComponentByElement(e.topTarget);if(!n||n===r||wSt.hasOwnProperty(n.mainType))return!1;var a=n.coordinateSystem;if(!a||a.model===r)return!1;var i=sc(n),o=sc(r);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var Jc=function(e){G(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var a=rt(n._mousedownHandler,n),i=rt(n._mousemoveHandler,n),o=rt(n._mouseupHandler,n),s=rt(n._mousewheelHandler,n),l=rt(n._pinchHandler,n);return n.enable=function(u,f){var c=f.zInfo,v=sc(c.component),h=v.z,d=v.zlevel,p={component:c.component,z:h,zlevel:d,z2:ot(c.z2,-1/0)},g=U({},f.triggerInfo);this._opt=dt(U({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:g,cursorGrab:"grab",cursorGrabbing:"grabbing"}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this.disable(),this._enabled=!0,(u===!0||u==="move"||u==="pan")&&(Ep(r,"mousedown",a,p),Ep(r,"mousemove",i,p),Ep(r,"mouseup",o,p)),(u===!0||u==="scale"||u==="zoom")&&(Ep(r,"mousewheel",s,p),Ep(r,"pinch",l,p)))},n.disable=function(){this._enabled&&(this._enabled=!1,Lp(r,"mousedown",a),Lp(r,"mousemove",i),Lp(r,"mouseup",o),Lp(r,"mousewheel",s),Lp(r,"pinch",l))},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(r,n,a){var i=this._opt,o=i.zInfoParsed;if(kq(r,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(r,n,a)),u&&s.isInClip&&!s.isInClip(r,n,a)&&(u=!1),u},t.prototype._decideCursorStyle=function(r,n,a,i){var o=r.target;if(!o&&this._checkPointer(r,n,a))return this._opt.cursorGrab;if(i)return o&&o.cursor||"default"},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(r){if(!(v3(r)||Dp(r))){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=r.offsetX,i=r.offsetY;this._checkPointer(r,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){var n=this._zr;if(!(r.gestureEvent==="pinch"||oG(n,"globalPan")||Dp(r))){var a=r.offsetX,i=r.offsetY;if(!this._dragging||!IS("moveOnMouseMove",r,this._opt)){var o=this._decideCursorStyle(r,a,i,!1);o&&n.setCursorStyle(o);return}n.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=a-s,f=i-l;this._x=a,this._y=i,this._opt.preventDefaultMouseMove&&Cs(r.event),r.__ecRoamConsumed=!0,sG(this,"pan","moveOnMouseMove",r,{dx:u,dy:f,oldX:s,oldY:l,newX:a,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){if(!Dp(r)){var n=this._zr;if(!v3(r)){this._dragging=!1;var a=this._decideCursorStyle(r,r.offsetX,r.offsetY,!0);a&&n.setCursorStyle(a)}}},t.prototype._mousewheelHandler=function(r){if(!Dp(r)){var n=IS("zoomOnMouseWheel",r,this._opt),a=IS("moveOnMouseWheel",r,this._opt),i=r.wheelDelta,o=Math.abs(i),s=r.offsetX,l=r.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",r,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var c=Math.abs(i),v=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(r){if(!(oG(this._zr,"globalPan")||Dp(r))){var n=r.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(r,n,a,i,o){r._checkPointer(i,o.originX,o.originY)&&(Cs(i.event),i.__ecRoamConsumed=!0,sG(r,n,a,i,o))},t}(Za);function Dp(e){return e.__ecRoamConsumed}var TSt=Tt();function Mw(e){var t=TSt(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function Ep(e,t,r,n){for(var a=Mw(e),i=a.roam,o=i[t]=i[t]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-n.zlevel||l.z-n.z||l.z2-n.z2)<=0)break}o.splice(s,0,{listener:r,zInfoParsed:n}),CSt(e,t)}function Lp(e,t,r){for(var n=Mw(e),a=n.roam[t]||[],i=0;i<a.length;i++)if(a[i].listener===r){a.splice(i,1),a.length||ASt(e,t);return}}function CSt(e,t){var r=Mw(e);r.uniform[t]||e.on(t,r.uniform[t]=function(n){var a=r.roam[t];if(a)for(var i=0;i<a.length;i++)a[i].listener(n)})}function ASt(e,t){var r=Mw(e),n=r.uniform;n[t]&&(e.off(t,n[t]),n[t]=null)}function sG(e,t,r,n,a){a.isAvailableBehavior=rt(IS,null,r,n),e.trigger(t,a)}function IS(e,t,r){var n=r[e];return!e||n&&(!J(n)||t.event[n+"Key"])}function zq(e){if(J(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var dA,Cb={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},lG=kt(Cb),Ab={"alignment-baseline":"textBaseline","stop-color":"stopColor"},uG=kt(Ab),MSt=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=zq(t);this._defsUsePending=[];var a=new ct;this._root=a;var i=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Un(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;LSt(this._defs,this._defsUsePending),this._defsUsePending=[];var f,c;if(o){var v=Dw(o);v.length>=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&s!=null&&l!=null&&(c=Vq(f,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=a;a=new ct,a.add(h),h.scaleX=h.scaleY=c.scale,h.x=c.x,h.y=c.y}return!r.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new Et({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:f,viewBoxTransform:c,named:i}},e.prototype._parseNode=function(t,r,n,a,i,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!i){var f=dA[s];if(f&&it(dA,s)){l=f.call(this,t,r);var c=t.getAttribute("name");if(c){var v={name:c,namedFrom:null,svgNodeTagLower:s,el:l};n.push(v),s==="g"&&(u=v)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});r.add(l)}}var h=fG[s];if(h&&it(fG,s)){var d=h.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},e.prototype._parseText=function(t,r){var n=new td({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ma(r,n),Un(t,n,this._defsUsePending,!1,!1),DSt(n,r);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){dA={g:function(t,r){var n=new ct;return ma(r,n),Un(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Et;return ma(r,n),Un(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new Po;return ma(r,n),Un(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new je;return ma(r,n),Un(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new Mm;return ma(r,n),Un(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),a;n&&(a=hG(n));var i=new Zr({shape:{points:a||[]},silent:!0});return ma(r,i),Un(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,r){var n=t.getAttribute("points"),a;n&&(a=hG(n));var i=new Or({shape:{points:a||[]},silent:!0});return ma(r,i),Un(t,i,this._defsUsePending,!1,!1),i},image:function(t,r){var n=new mr;return ma(r,n),Un(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new ct;return ma(r,s),Un(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),a=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new ct;return ma(r,s),Un(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",a=MX(n);return ma(r,a),Un(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),e}(),fG={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),a=parseInt(e.getAttribute("y2")||"0",10),i=new jc(t,r,n,a);return cG(e,i),vG(e,i),i},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),a=new UI(t,r,n);return cG(e,a),vG(e,a),a}};function cG(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function vG(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};Bq(r,i,i);var o=i.stopColor||r.getAttribute("stop-color")||"#000000",s=i.stopOpacity||r.getAttribute("stop-opacity");if(s){var l=on(o),u=l&&l[3];u&&(l[3]*=ss(s),o=Ga(l,"rgba"))}t.colorStops.push({offset:a,color:o})}r=r.nextSibling}}function ma(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),dt(t.__inheritedStyle,e.__inheritedStyle))}function hG(e){for(var t=Dw(e),r=[],n=0;n<t.length;n+=2){var a=parseFloat(t[n]),i=parseFloat(t[n+1]);r.push([a,i])}return r}function Un(e,t,r,n,a){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};e.nodeType===1&&(ISt(e,t),Bq(e,o,s),n||PSt(e,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=dG(i,"fill",o.fill,r)),o.stroke!=null&&(i.style.stroke=dG(i,"stroke",o.stroke,r)),D(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),D(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=X(Dw(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function DSt(e,t){var r=t.__selfStyle;if(r){var n=r.textBaseline,a=n;!n||n==="auto"||n==="baseline"?a="alphabetic":n==="before-edge"||n==="text-before-edge"?a="top":n==="after-edge"||n==="text-after-edge"?a="bottom":(n==="central"||n==="mathematical")&&(a="middle"),e.style.textBaseline=a}var i=t.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),e.style.textAlign=s)}}var ESt=/^url\(\s*#(.*?)\)/;function dG(e,t,r,n){var a=r&&r.match(ESt);if(a){var i=ea(a[1]);n.push([e,t,i]);return}return r==="none"&&(r=null),r}function LSt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n[0].style[n[1]]=e[n[2]]}}var OSt=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Dw(e){return e.match(OSt)||[]}var RSt=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,pA=Math.PI/180;function ISt(e,t){var r=e.getAttribute("transform");if(r){r=r.replace(/,/g," ");var n=[],a=null;r.replace(RSt,function(c,v,h){return n.push(v,h),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],l=Dw(o);switch(a=a||we(),s){case"translate":gi(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Yx(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Gs(a,a,-parseFloat(l[0])*pA,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*pA);ua(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*pA);ua(a,[1,f,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var pG=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Bq(e,t,r){var n=e.getAttribute("style");if(n){pG.lastIndex=0;for(var a;(a=pG.exec(n))!=null;){var i=a[1],o=it(Cb,i)?Cb[i]:null;o&&(t[o]=a[2]);var s=it(Ab,i)?Ab[i]:null;s&&(r[s]=a[2])}}}function PSt(e,t,r){for(var n=0;n<lG.length;n++){var a=lG[n],i=e.getAttribute(a);i!=null&&(t[Cb[a]]=i)}for(var n=0;n<uG.length;n++){var a=uG[n],i=e.getAttribute(a);i!=null&&(r[Ab[a]]=i)}}function Vq(e,t){var r=t.width/e.width,n=t.height/e.height,a=Math.min(r,n);return{scale:a,x:-(e.x+e.width/2)*a+(t.x+t.width/2),y:-(e.y+e.height/2)*a+(t.y+t.height/2)}}function NSt(e,t){var r=new MSt;return r.parse(e,t)}var kSt=nt(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),zSt=function(){function e(t,r){this.type="geoSVG",this._usedGraphicMap=nt(),this._freedGraphics=[],this._mapName=t,this._parsedXML=zq(r)}return e.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var r=VSt(t.named),n=r.regions,a=r.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(t){var r,n;try{r=t&&NSt(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=r.root,$r(n!=null)}catch(g){throw new Error(`Invalid svg format
170
+ `+g.message)}var a=new ct;a.add(n),a.isGeoSVGGraphicRoot=!0;var i=r.width,o=r.height,s=r.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,c=void 0,v=void 0;if(i!=null?(u=0,c=i):s&&(u=s.x,c=s.width),o!=null?(f=0,v=o):s&&(f=s.y,v=s.height),u==null||f==null){var h=n.getBoundingRect();u==null&&(u=h.x,c=h.width),f==null&&(f=h.y,v=h.height)}l=this._boundingRect=new vt(u,f,c,v)}if(s){var d=Vq(s,l);n.scaleX=n.scaleY=d.scale,n.x=d.x,n.y=d.y}a.setClipPath(new Et({shape:l.plain()}));var p=[];return D(r.named,function(g){kSt.get(g.svgNodeTagLower)!=null&&(p.push(g),BSt(g.el))}),{root:a,boundingRect:l,named:p}},e.prototype.useGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),r.set(t,n),n)},e.prototype.freeGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);n&&(r.removeKey(t),this._freedGraphics.push(n))},e}();function BSt(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function VSt(e){var t=[],r=nt();return D(e,function(n){if(n.namedFrom==null){var a=new Tyt(n.name,n.el);t.push(a),r.set(n.name,a)}}),{regions:t,regionsMap:r}}var FL=[126,25],gG="南海诸岛",af=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var qu=0;qu<af.length;qu++)for(var mv=0;mv<af[qu].length;mv++)af[qu][mv][0]/=10.5,af[qu][mv][1]/=-10.5/.75,af[qu][mv][0]+=FL[0],af[qu][mv][1]+=FL[1];function GSt(e,t){if(e==="china"){for(var r=0;r<t.length;r++)if(t[r].name===gG)return;t.push(new uZ(gG,X(af,function(n){return{type:"polygon",exterior:n}}),FL))}}var HSt={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function USt(e,t){if(e==="china"){var r=HSt[t.name];if(r){var n=t.getCenter();n[0]+=r[0]/10.5,n[1]+=-r[1]/(10.5/.75),t.setCenter(n)}}}var FSt=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function YSt(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:FSt[0]})}var jSt="name",XSt=function(){function e(t,r,n){this.type="geoJSON",this._parsedMap=nt(),this._mapName=t,this._specialAreas=n,this._geoJSON=WSt(r)}return e.prototype.load=function(t,r){r=r||jSt;var n=this._parsedMap.get(r);if(!n){var a=this._parseToRegions(r);n=this._parsedMap.set(r,{regions:a,boundingRect:$St(a)})}var i=nt(),o=[];return D(n.regions,function(s){var l=s.name;t&&it(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new vt(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(t){var r=this._mapName,n=this._geoJSON,a;try{a=n?TL(n,t):[]}catch(i){throw new Error(`Invalid geoJson format
171
+ `+i.message)}return GSt(r,a),D(a,function(i){var o=i.name;USt(r,i),YSt(r,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function $St(e){for(var t,r=0;r<e.length;r++){var n=e[r].getBoundingRect();t=t||n.clone(),t.union(n)}return t}function WSt(e){return J(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var Op=nt();const Rs={registerMap:function(e,t,r){if(t.svg){var n=new zSt(e,t.svg);Op.set(e,n)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?r=t.specialAreas:a=t;var n=new XSt(e,a,r);Op.set(e,n)}},getGeoResource:function(e){return Op.get(e)},getMapForUser:function(e){var t=Op.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,r){var n=Op.get(e);if(n)return n.load(t,r)}};var gc=0,yc=1,Co=2;var ZSt="view",Ew=function(e){G(t,e);function t(r,n,a){var i=e.call(this)||this;i.type=ZSt,i.dimensions=["x","y"];var o=i;o.invertY=r,o.lgCt=n,o.lgGeo=a;var s=o.trans=[];return s[gc]=xh(),s[yc]=xh(),s[Co]=xh(),o.mtRaw=we(),o.mtRawInv=we(),o.mtOverall=we(),o.mtOverallInv=we(),o.zoom=1,i}return t.prototype.getBoundingRect=function(){return Gq(null,this)},t.prototype.getViewRect=function(){return oN(null,this)},t.prototype.getRoamTransform=function(){return tu(this.trans[yc])},t.prototype.dataToPoint=function(r,n,a){var i=n?this.mtRaw:this.mtOverall;return a=a||[],i?Ne(a,r,i):Ir(a,r)},t.prototype.pointToData=function(r,n,a){a=a||[];var i=this.mtOverallInv;return i?Ne(a,r,i):Ir(a,r)},t.prototype.convertToPixel=function(r,n,a){var i=bG(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(r,n,a){var i=bG(n);return i===this?i.pointToData(a):null},t.prototype.containPoint=function(r){var n=this;return Kh(f_,n.dataRect),lj(f_,f_,n.mtOverall),iut(f_,r[0],r[1])},t.dimensions=["x","y"],t}(Ro),f_=jx();function Mb(e,t){return Ql([],t.mtOverall)}function qSt(e){return e.zoom}function Gq(e,t){return Kh(jx(),t.dataRect)}function oN(e,t){return Kh(jx(),t.viewRect)}function Gy(e,t,r){return yo(e||xh(),t.trans[r])}function sN(e){return!!(e.dataRect&&e.viewRect)}function KSt(e,t,r,n){n===yc?Hq(e,t.trans[gc],r):yo(e,r)}function yG(e,t,r){tu(r,c_),ua(c_,c_,t.mtRawInv),uw(e,c_)}var c_=we();function lN(e,t){var r=e;r.centerOption=t.getShallow("center");var n=r.zoomLimit=t.getShallow("scaleLimit"),a=t.getShallow("zoom");r.zoom=fN(a||1,n)||1,sN(r)&&uN(r)}function Lw(e,t,r,n,a){var i=e;i.dataRect=new vt(t,r,n,a),sN(i)&&uN(i)}function Db(e,t,r,n,a){var i=e;i.viewRect=new vt(t,r,n,a),sN(i)&&uN(i)}function uN(e){QSt(e),t1t(e),e1t(e)}function QSt(e){var t=e.dataRect,r=e.viewRect,n=e.trans[gc],a=e.invertY;a&&(t=Kh(JSt,t),t.y=-t.y-t.height),sj(mG,t,r),uw(n,mG),a&&(n.scaleY=-n.scaleY);var i=tu(n,e.mtRaw);ca(e.mtRawInv,i)}var mG=we(),JSt=jx();function t1t(e){var t=Uq(e),r=a1t(gA,e,e.centerOption)?Ne(gA,gA,e.mtRaw):t,n=e.zoom,a=e.trans[yc];a.x=t[0]-n*r[0],a.y=t[1]-n*r[1],a.scaleX=a.scaleY=n}var gA=[];function e1t(e){var t=e.trans,r=t[yc],n=t[gc],a=t[Co];Hq(a,n,r);var i=tu(a,e.mtOverall),o=ca(e.mtOverallInv,i);_G(e,a,i,o),_G(e.lgGeo,a,i,o)}function _G(e,t,r,n){e&&(yo(e,t),Ql(e.transform||(e.transform=[]),r),Ql(e.invTransform||(e.invTransform=[]),n))}function Hq(e,t,r){tu(t,SG),tu(r,v_),ua(v_,v_,SG),uw(e,v_)}var SG=we(),v_=we();function bG(e){var t=e.seriesModel;return t?t.coordinateSystem:null}function Uq(e){var t=e.viewRect;return yA[0]=t.x+t.width/2,yA[1]=t.y+t.height/2,yA}var yA=[];function Fq(e){return e&&e.type==="view"}function ru(e,t,r,n){var a=r;a.syncBackEl=e,a.syncBackType=t,n?jt(e,Gy(null,r,t),n):(Gy(e,r,t),e.dirty())}function r1t(e,t,r,n){var a=e,i=a.syncBackEl;i?(i.stopAnimation(),KSt(rl,a,i,a.syncBackType)):yo(rl,a.trans[Co]),yG(mA,a,rl),n?n1t(rl,mA,a,n):yo(rl,mA),yG(rl,a,rl),o1t(a,t,r,rl)}var rl=xh(),mA=xh();function Yq(e,t,r){var n=Eb(t);n&&(r1t(n,t,r,e),lN(n,t))}function Eb(e){return e.__ownRoamView?e.__ownRoamView():null}function jq(e,t,r,n){r.setUpdatePayload(ZI(e));var a=hX(n,t);a&&a.__updateOnOwnRoam&&a.__updateOnOwnRoam(e,t,n)}function n1t(e,t,r,n){n.dx!=null&&n.dy!=null&&(e.x+=n.dx,e.y+=n.dy);var a=n.zoom;if(a!=null){var i=Xq(t),o=fN(i*a,r.zoomLimit),s=o/i;e.x-=(n.originX-e.x)*(s-1),e.y-=(n.originY-e.y)*(s-1),e.scaleX*=s,e.scaleY*=s}}function Xq(e){return e.scaleX}function a1t(e,t,r){var n=t.dataRect;if(!r)return!1;var a=t.lgCt;return a?os(e,et(r[0],a.w),et(r[1],a.h)):n&&os(e,et(r[0],n.width,n.x),et(r[1],n.height,n.y)),!0}function i1t(e,t){var r=e.centerOption,n=e.dataRect;return!r||e.lgCt?t.slice():[xG(0,t,r,n),xG(1,t,r,n)]}function xG(e,t,r,n){return r&&n&&n[Ge[e]]&&gft(r[e])?(t[e]-n[_t[e]])/n[Ge[e]]*100+"%":t[e]}function $q(e,t){return t&&e&&e.getShallow("legacyViewCoordSysCenterBase")?{w:t.getWidth(),h:t.getHeight()}:null}function o1t(e,t,r,n){var a=Uq(e),i=Xq(n),o=Ie(i)>1e-6;Rp[0]=o?(a[0]-n.x)/i:a[0],Rp[1]=o?(a[1]-n.y)/i:a[1],Ne(Rp,Rp,e.mtRawInv);var s=i1t(e,Rp);wG(t,s,i),D(r,function(l){l!==t&&wG(l,s.slice(),i)})}var Rp=[];function wG(e,t,r){var n=e.option;n.center=t,n.zoom=r}function fN(e,t){if(t){var r=t.min||0,n=t.max||1/0;e=Math.max(Math.min(n,e),r)}return e}function Wq(e,t){var r=t.getShallow("nodeScaleRatio",!0)||1,n=e;return((n.zoom-1)*r+1)/(n.trans[Co].scaleX||1)}function Ow(e,t,r,n,a,i,o,s){var l=Eb(e);if(!l){r.disable();return}r.enable(ot(e.get("roam"),o),{api:t,zInfo:{component:e},triggerInfo:{roamTrigger:e.get("roamTrigger"),isInSelf:n,isInClip:function(f,c,v){return!a||a.contain(c,v)}}});function u(f){var c=e.mainType,v=ZI(dt({type:qq(c,e.subType,cX)},f));s&&(v.componentType=c),v[c+"Id"]=e.id,t.dispatchAction(v)}r.off("pan").off("zoom").on("pan",function(f){i&&i("pan"),u({dx:f.dx,dy:f.dy})}).on("zoom",function(f){i&&i("zoom"),u({zoom:f.scale,originX:f.originX,originY:f.originY})})}function Zq(e){return function(t,r,n){return _A.copy(e.getBoundingRect()),_A.applyTransform(e.getComputedTransform()),_A.contain(r,n)}}var _A=new vt(0,0,0,0);function cN(e,t,r){var n=qq(t,r,cX);e.registerAction({type:n,event:n,update:"none"},function(a,i,o){i.eachComponent(OI(a,t,r),function(s){Yq(a,s),jq(a,s,i,o)})})}function qq(e,t,r){return(e!==xo?e:t==="map"?"geo":t)+r}function Kq(e){return e.zoom!=null}function vN(e,t,r,n,a,i,o){var s=new Ew(null,$q(e.ecModel,t));return Lw(s,r,n,a,i),o?Db(s,o.x,o.y,o.width,o.height):Db(s,r,n,a,i),lN(s,e),s}var hN=["rect","circle","line","ellipse","polygon","polyline","path"],s1t=nt(hN),l1t=nt(hN.concat(["g"])),u1t=nt(hN.concat(["g"])),Qq=Tt();function h_(e){var t=e.getItemStyle(),r=e.get("areaColor");return r!=null&&(t.fill=r),t}function TG(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var Jq=function(){function e(t){var r=this.group=new ct,n=this._transformGroup=new ct;r.add(n),this.uid=$c("ec_map_draw"),this._controller=new Jc(t.getZr()),n.add(this._regionsGroup=new ct),n.add(this._svgGroup=new ct)}return e.prototype.draw=function(t,r,n,a,i){var o=this,s=t.getData&&t.getData();Eh(t)&&r.eachComponent({mainType:"series",subType:"map"},function(p){!s&&p.getHostGeoModel()===t&&(s=p.getData())});var l=t.coordinateSystem,u=l.view,f=this._regionsGroup,c=this._transformGroup,v=!f.childAt(0)||i,h;l.shouldClip()?(h=oN(null,u),this.group.setClipPath(new Et({shape:h.clone()}))):this.group.removeClipPath(),ru(c,yc,u,v?null:t);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0;l.resourceType==="geoJSON"?this._buildGeoJSON(u,n,l,t,s,d):l.resourceType==="geoSVG"&&this._buildSVG(u,n,l,t,s,d),Ow(t,n,this._controller,function(p,g,y){return t.coordinateSystem.containPoint([g,y])},h,function(){o._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(t,f,n,a)},e.prototype.__updateOnOwnRoam=function(t){ru(this._transformGroup,yc,t.coordinateSystem.view,null)},e.prototype._buildGeoJSON=function(t,r,n,a,i,o){var s=this._regionsGroupByName=nt(),l=nt(),u=this._regionsGroup,f=n.projection,c=f&&f.stream,v=tu(Gy(null,t,gc));function h(g,y){return y&&(g=y(g)),g&&Ne([],g,v)}function d(g){for(var y=[],m=!c&&f&&f.project,_=0;_<g.length;++_){var S=h(g[_],m);S&&y.push(S)}return y}function p(g){return{shape:{points:d(g)}}}u.removeAll(),D(n.regions,function(g){var y=g.name,m=s.get(y),_=l.get(y)||{},S=_.dataIdx,b=_.regionModel;if(!m){m=s.set(y,new ct),u.add(m),S=i?i.indexOfName(y):null,b=Eh(a)?a.getRegionModel(y):i?i.getItemModel(S):null;var x=b.get("silent",!0);x!=null&&(m.silent=x),l.set(y,{dataIdx:S,regionModel:b})}var w=[],T=[];D(g.geometries,function(M){if(M.type==="polygon"){var L=[M.exterior].concat(M.interiors||[]);c&&(L=LG(L,c)),D(L,function(R){w.push(new Zr(p(R)))})}else{var E=M.points;c&&(E=LG(E,c,!0)),D(E,function(R){T.push(new Or(p(R)))})}});var C=h(g.getCenter(),f&&f.project);function A(M,L){if(M.length){var E=new Em({culling:!0,segmentIgnoreThreshold:1,shape:{paths:M}});m.add(E),CG(r,i,o,E,S,b),AG(a,i,E,y,b,S,C),L&&(TG(E),D(E.states,TG))}}A(w),A(T,!0)}),s.each(function(g,y){var m=l.get(y),_=m.dataIdx,S=m.regionModel;MG(a,i,g,y,S,_),DG(a,i,g,y,S),EG(a,g,y,S)},this)},e.prototype._buildSVG=function(t,r,n,a,i,o){var s=n.map;Gy(this._svgGroup,t,gc),this._svgResourceChanged(s)&&(this._freeSVG(),this._useSVG(s));var l=this._svgDispatcherMap=nt(),u=!1;D(this._svgGraphicRecord.named,function(f){var c=f.name,v=f.svgNodeTagLower,h=f.el,d=i?i.indexOfName(c):null,p=a.getRegionModel(c);s1t.get(v)!=null&&h instanceof $a&&CG(r,i,o,h,d,p),h instanceof $a&&(h.culling=!0);var g=p.get("silent",!0);if(g!=null&&(h.silent=g),h.z2EmphasisLift=0,!f.namedFrom&&(u1t.get(v)!=null&&AG(a,i,h,c,p,d,null),MG(a,i,h,c,p,d),DG(a,i,h,c,p),l1t.get(v)!=null)){var y=EG(a,h,c,p);y==="self"&&(u=!0);var m=l.get(c)||l.set(c,[]);m.push(h)}},this),this._enableBlurEntireSVG(u,a)},e.prototype._enableBlurEntireSVG=function(t,r){if(t&&Eh(r)){var n=r.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){ic(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.disable()},e.prototype.findHighDownDispatchers=function(t,r){if(t==null)return[];var n=r.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(t);return i?[i]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},e.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},e.prototype._useSVG=function(t){var r=Rs.getGeoResource(t);if(r&&r.type==="geoSVG"){var n=r.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},e.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var r=Rs.getGeoResource(t);r&&r.type==="geoSVG"&&r.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var r=t.getTextContent();r&&(r.ignore=Qq(r).ignore)})},e.prototype._updateMapSelectHandler=function(t,r,n,a){var i=this;r.off("mousedown"),r.off("click"),t.get("selectedMode")&&(r.on("mousedown",function(){i._mouseDownFlag=!0}),r.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},e}();function CG(e,t,r,n,a,i){var o=i.getModel("itemStyle"),s=i.getModel(["emphasis","itemStyle"]),l=i.getModel(["blur","itemStyle"]),u=i.getModel(["select","itemStyle"]),f=h_(o),c=h_(s),v=h_(u),h=h_(l);if(t){var d=t.getItemVisual(a,"style"),p=t.getItemVisual(a,"decal");r&&d.fill&&(f.fill=d.fill),p&&(f.decal=ad(p,e))}n.setStyle(f),n.style.strokeNoScale=!0,n.ensureState("emphasis").style=c,n.ensureState("select").style=v,n.ensureState("blur").style=h,ic(n)}function AG(e,t,r,n,a,i,o){var s=t&&isNaN(t.get(t.mapDimension("value"),i)),l=t&&t.getItemLayout(i);if(Eh(e)||s||l&&l.showLabel){var u=Eh(e)?n:i,f=void 0;(!t||i>=0)&&(f=e);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;yr(r,ir(a),{labelFetcher:f,labelDataIndex:u,defaultText:n},c);var v=r.getTextContent();if(v&&(Qq(v).ignore=v.ignore,r.textConfig&&o)){var h=r.getBoundingRect().clone();r.textConfig.layoutRect=h,r.textConfig.position=[(o[0]-h.x)/h.width*100+"%",(o[1]-h.y)/h.height*100+"%"]}r.disableLabelAnimation=!0}else r.removeTextContent(),r.removeTextConfig(),r.disableLabelAnimation=null}function MG(e,t,r,n,a,i){t?t.setItemGraphicEl(i,r):yt(r).eventData={componentType:"geo",componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:n,region:a&&a.option||{}}}function DG(e,t,r,n,a){t||Us({el:r,componentModel:e,itemName:n,itemTooltipOption:a.get("tooltip")})}function EG(e,t,r,n){t.highDownSilentOnTouch=!!e.get("selectedMode");var a=n.getModel("emphasis"),i=a.get("focus");return Ae(t,i,a.get("blurScope"),a.get("disabled")),Eh(e)&&tvt(t,e,r),i}function LG(e,t,r){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),D(e,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!r&&s.polygonEnd(),n}function Eh(e){return e.mainType==="geo"}var mc="map",f1t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.getTooltipPosition=function(n){if(n!=null){var a=this.getData().getName(n),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},r}return t.prototype.getInitialData=function(r){for(var n=qd(this,{coordDimensions:["value"],encodeDefaulter:At(vP,this)}),a=nt(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,o)}var u=Rs.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return D(u.regions,function(f){var c=f.name,v=a.get(c),h=f.properties&&f.properties.echartsStyle,d;v==null?(d={name:c},i.push(d)):d=n.getRawDataItem(v),h&&wt(d,h)}),n.appendData(i),n},t.prototype.getHostGeoModel=function(){if(f$(this).kind!==u$)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(r){var n=this.getData();return n.get(n.mapDimension("value"),r)},t.prototype.getRegionModel=function(r){var n=this.getData();return n.getItemModel(n.indexOfName(r))},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r),l=[];return D(this.seriesGroup.f,function(u){var f=u.originalData.indexOfName(s),c=i.mapDimension("value");isNaN(u.originalData.get(c,f))||l.push(u.name)}),Ke("section",{header:l.join(", "),noHeader:!l.length,blocks:[Ke("nameValue",{name:s,value:o})]})},t.prototype.getLegendIcon=function(r){var n=r.icon||"roundRect",a=$e(n,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill);return a.setStyle(r.itemStyle),a.style.stroke="none",n.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill=V.color.neutral00,a.style.lineWidth=2),a},t.prototype.__ownRoamView=function(){return Lb(this)?this.coordinateSystem.view:null},t.type="series."+mc,t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:V.color.tertiary},itemStyle:{borderWidth:.5,borderColor:V.color.border,areaColor:V.color.background},emphasis:{label:{show:!0,color:V.color.primary},itemStyle:{areaColor:V.color.highlight}},select:{label:{show:!0,color:V.color.primary},itemStyle:{color:V.color.highlight}},nameProperty:"name"},t}(ne);function tK(e){return e.indexOf("i")===0}function Lb(e){return Hy(e.seriesGroup)===e&&!e.getHostGeoModel()}function Hy(e){return e.f[0]}function dN(e,t){var r={};return e.eachRawSeriesByType(mc,function(n){var a=n.getHostGeoModel(),i=a?"o"+a.id:"i"+n.getMapType(),o=r[i]=r[i]||{f:[],r:[]};!e.isSeriesFiltered(n)&&!t&&o.f.push(n),o.r.push(n)}),r}var c1t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=mc,r}return t.prototype.render=function(r,n,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!r.getHostGeoModel()){var s=this._mapDraw;s&&i&&i.type==="geoRoam"&&s.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===r.id?s&&o.add(s.group):Lb(r)?(s=s||(this._mapDraw=new Jq(a)),o.add(s.group),s.draw(r,n,a,this,i)):this._clearMapDraw(),r.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(r)}}},t.prototype.__updateOnOwnRoam=function(r,n,a){var i=this._mapDraw;Lb(n)&&i&&i.__updateOnOwnRoam(n)},t.prototype.remove=function(){this._clearMapDraw(),this.group.removeAll()},t.prototype.dispose=function(){this._clearMapDraw()},t.prototype._clearMapDraw=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(r){var n=r.originalData,a=this.group;n.each(n.mapDimension("value"),function(i,o){if(!isNaN(i)){var s=n.getItemLayout(o);if(!(!s||!s.point)){var l=s.point,u=s.offset,f=new Po({style:{fill:r.getData().getVisual("style").fill},shape:{cx:l[0]+u*9,cy:l[1],r:3},silent:!0,z2:8+(u?0:Id+1)});if(!u){var c=Hy(r.seriesGroup).getData(),v=n.getName(o),h=c.indexOfName(v),d=n.getItemModel(o),p=d.getModel("label"),g=c.getItemGraphicEl(h);yr(f,ir(d),{labelFetcher:{getFormattedLabel:function(y,m){return r.getFormattedLabel(h,m)}},defaultText:v}),f.disableLabelAnimation=!0,p.get("position")||f.setTextConfig({position:"bottom"}),g.onHoverStateChange=function(y){W1(f,y)}}a.add(f)}}})},t.type=mc,t}(ee),v1t={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},eK=["lng","lat"],OG=function(e){G(t,e);function t(r,n,a){var i=e.call(this)||this;i.dimensions=eK,i.type="geo",i._nameCoordMap=nt(),i.name=r;var o=a.projection,s=Rs.load(n,a.nameMap,a.nameProperty),l=Rs.getGeoResource(n);i.resourceType=l?l.type:null;var u=i.regions=s.regions,f=v1t[l.type];i._clip=a.clip;var c=o?!1:f.invertLongitute;i.view=new Ew(c,$q(a.ecModel,a.api),i),i.map=n,i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var v;if(o)for(var h=0;h<u.length;h++){var d=u[h].getBoundingRect(o);v=v||d.clone(),v.union(d)}else v=s.boundingRect;return Lw(i.view,v.x,v.y,v.width,v.height),i.aspectScale=o?1:ot(a.aspectScale,f.aspectScale),i}return t.prototype.getRegion=function(r){return this._regionsMap.get(r)},t.prototype.getRegionByCoord=function(r){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(r))return n[a]}},t.prototype.addGeoCoord=function(r,n){this._nameCoordMap.set(r,n)},t.prototype.getGeoCoord=function(r){var n=this._regionsMap.get(r);return this._nameCoordMap.get(r)||n&&n.getCenter()},t.prototype.dataToPoint=function(r,n,a){if(J(r)&&(r=this.getGeoCoord(r)),r){var i=this.projection;return i&&(r=i.project(r)),r&&this.view.dataToPoint(r,n,a)}},t.prototype.pointToData=function(r,n,a){var i=this.projection;return i&&(r=i.unproject(r)),r&&this.view.pointToData(r,a)},t.prototype.convertToPixel=function(r,n,a){var i=RG(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(r,n,a){var i=RG(n);return i===this?i.pointToData(a):null},t.prototype.containPoint=function(r){return this.view.containPoint(r)},t.prototype.getArea=function(r){r=r||0;var n=oN(null,this.view);return n.x-=r,n.y-=r,n.width+=2*r,n.height+=2*r,n},t.prototype.shouldClip=function(){return this._clip},t.prototype.getBoundingRect=function(){return this.view.getBoundingRect()},t.prototype.getViewRect=function(){return this.view.getViewRect()},t.prototype.getRoamTransform=function(){return this.view.getRoamTransform()},t}(Ro);function RG(e){var t=e.geoModel,r=e.seriesModel;return t?t.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo",ze).models[0]||{}).coordinateSystem:null}function IG(e,t){var r=this.view,n=e.get("boundingCoords");if(n!=null){var a=n[0],i=n[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var s=a[0],l=a[1],u=i[0],f=i[1];a=[1/0,1/0],i=[-1/0,-1/0];var c=function(x,w,T,C){for(var A=T-x,M=C-w,L=0;L<=100;L++){var E=L/100,R=o.project([x+A*E,w+M*E]);Jo(a,a,R),ts(i,i,R)}};c(s,l,u,l),c(u,l,u,f),c(u,f,s,f),c(s,f,u,l)}Lw(r,a[0],a[1],i[0]-a[0],i[1]-a[1])}}var v=r.getBoundingRect(),h=e.get("layoutCenter"),d=e.get("layoutSize"),p=sr(e,t).refContainer,g=v.width/v.height*this.aspectScale,y=!1,m,_;h&&d&&(m=[et(h[0],p.width)+p.x,et(h[1],p.height)+p.y],_=et(d,Math.min(p.width,p.height)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)&&(y=!0));var S;if(y)S={},g>1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var b=e.getBoxLayoutParams();b.aspect=g,S=xe(b,p),S=p$(e,S,g)}Db(r,S.x,S.y,S.width,S.height),lN(r,e)}function h1t(e,t){D(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var d1t=function(){function e(){this.dimensions=eK}return e.prototype.create=function(t,r){var n=[];function a(i){return{nameProperty:i.get("nameProperty"),aspectScale:i.get("aspectScale"),projection:i.get("projection"),clip:i.getShallow("clip",!0)}}return t.eachComponent("geo",function(i,o){var s=i.get("map"),l=new OG(s+o,s,U({nameMap:i.get("nameMap"),api:r,ecModel:t},a(i)));n.push(l),i.coordinateSystem=l,l.model=i,l.resize=IG,l.resize(i,r)}),t.eachSeries(function(i){Rm({targetModel:i,coordSysType:"geo",coordSysProvider:function(){var o=i.subType===mc?i.getHostGeoModel():i.getReferringComponents("geo",ze).models[0];return o&&o.coordinateSystem},allowNotFound:!0})}),D(dN(t,!0),function(i,o){if(tK(o)){var s=i.r[0],l=[];D(i.r,function(v){l.push(v.get("nameMap")),v.seriesGroup=null});var u=o.slice(1),f=new OG(u,u,U({nameMap:Ux(l),api:r,ecModel:t},a(s))),c;D(i.r,function(v){c=ot(c,v.get("scaleLimit"))}),n.push(f),f.resize=IG,f.resize(s,r),D(i.r,function(v){v.coordinateSystem=f,h1t(f,v)})}}),n},e.prototype.getFilledRegions=function(t,r,n,a){for(var i=(t||[]).slice(),o=nt(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=Rs.load(r,n,a);return D(l.regions,function(u){var f=u.name,c=o.get(f),v=u.properties&&u.properties.echartsStyle;c||(c={name:f},i.push(c)),v&&wt(c,v)}),i},e}(),rK=new d1t,p1t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a);var i=Rs.getGeoResource(r.map);if(i&&i.type==="geoJSON"){var o=r.itemStyle=r.itemStyle||{};"color"in o||(o.color=r.defaultItemStyleColor||V.color.backgroundTint)}ec(r,"label",["show"])},t.prototype.optionUpdated=function(){var r=this,n=this.option;n.regions=rK.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=Ya(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Ot(o,r,r.ecModel)),o.selected&&(a[s]=!0)),i},nt()),n.selectedMap||(n.selectedMap=a)},t.prototype.getRegionModel=function(r){return this._optionModelMap.get(r)||new Ot(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(r,n){var a=this.getRegionModel(r),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:r};if(ut(i))return o.status=n,i(o);if(J(i))return i.replace("{a}",r??"")},t.prototype.select=function(r){var n=this.option,a=n.selectedMode;if(a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[r]=!0}},t.prototype.unSelect=function(r){var n=this.option.selectedMap;n&&(n[r]=!1)},t.prototype.toggleSelected=function(r){this[this.isSelected(r)?"unSelect":"select"](r)},t.prototype.isSelected=function(r){var n=this.option.selectedMap;return!!(n&&n[r])},t.prototype.__ownRoamView=function(){return this.coordinateSystem.view},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:V.color.tertiary},itemStyle:{borderWidth:.5,borderColor:V.color.border},emphasis:{label:{show:!0,color:V.color.primary},itemStyle:{color:V.color.highlight}},select:{label:{show:!0,color:V.color.primary},itemStyle:{color:V.color.highlight}},regions:[]},t}(Lt),g1t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.focusBlurEnabled=!0,r}return t.prototype.init=function(r,n){this._api=n},t.prototype.render=function(r,n,a,i){if(this._model=r,!r.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new Jq(a));var o=this._mapDraw;o.draw(r,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=r.get("silent"),this.group.add(o.group),this.updateSelectStatus(r,n,a)},t.prototype.__updateOnOwnRoam=function(r,n,a){var i=this._mapDraw;i&&i.__updateOnOwnRoam(n)},t.prototype._handleRegionClick=function(r){var n;bf(r.target,function(a){return(n=yt(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(r,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=yt(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(r){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(r,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(fe);function y1t(e,t,r){Rs.registerMap(e,t,r)}function nK(e){e.registerCoordinateSystem("geo",rK),e.registerComponentModel(p1t),e.registerComponentView(g1t),e.registerImpl("registerMap",y1t),e.registerImpl("getMap",function(r){return Rs.getMapForUser(r)});function t(r,n){n.update="geo:updateSelectStatus",e.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[r](a.name);var u=l.coordinateSystem;D(u.regions,function(c){o[c.name]=l.isSelected(c.name)||!1});var f=[];D(o,function(c,v){o[v]&&f.push(v)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:a.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(r,n,a){var i=r.componentType||(r.geoId!=null||r.geoName!=null||r.geoIndex!=null?"geo":xo),o=i===xo;if(!(i!=="geo"&&!o)){var s=o?"map":null;n.eachComponent(OI(r,i,s),function(l){o&&!Lb(l)||(Yq(r,l,o?l.seriesGroup.r:null),jq(r,l,n,a))})}})}var m1t=or(mc,_1t);function _1t(e){D(dN(e),function(t,r){if(!(!Hy(t)||!tK(r))){var n={};D(t.f,function(i){var o=i.coordinateSystem,s=i.originalData;i.get("showLegendSymbol")&&e.getComponent("legend")&&s.each(s.mapDimension("value"),function(l,u){var f=s.getName(u),c=o.getRegion(f);if(!(!c||isNaN(l))){var v=n[f]||0,h=o.dataToPoint(c.getCenter());n[f]=v+1,s.setItemLayout(u,{point:h,offset:v})}})});var a=Hy(t).getData();a.each(function(i){var o=a.getName(i),s=a.getItemLayout(i)||{};s.showLabel=!n[o],a.setItemLayout(i,s)})}})}function S1t(e,t){var r={};return D(e,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);r[o]=r[o]||[],isNaN(a)||r[o].push(a)})}),e[0].map(e[0].mapDimension("value"),function(n,a){for(var i="ec-"+e[0].getName(a),o=0,s=1/0,l=-1/0,u=r[i].length,f=0;f<u;f++)s=Math.min(s,r[i][f]),l=Math.max(l,r[i][f]),o+=r[i][f];var c;return t==="min"?c=s:t==="max"?c=l:t==="average"?c=o/u:c=o,u===0?NaN:c})}var b1t=or(mc,x1t);function x1t(e){D(dN(e),function(t){var r=Hy(t);if(r){var n=S1t(X(t.f,function(a){return a.getData()}),r.get("mapValueCalculation"));D(t.f,function(a){a.seriesGroup=t,a.originalData=a.getData(),a.setData(n.cloneShallow())})}})}function w1t(e){Ct(nK),e.registerChartView(c1t),e.registerSeriesModel(f1t),e.registerLayout(m1t),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,b1t),iW("map",e.registerAction)}function T1t(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var r=[t],n,a;n=r.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function C1t(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,a=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){M1t(e);var i=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-i):e.hierNode.prelim=i}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=D1t(e,a,e.parentNode.hierNode.defaultAncestor||n[0],t)}function A1t(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function PG(e){return arguments.length?e:O1t}function ng(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function M1t(e){for(var t=e.children,r=t.length,n=0,a=0;--r>=0;){var i=t[r];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function D1t(e,t,r,n){if(t){for(var a=e,i=e,o=i.parentNode.children[0],s=t,l=a.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,c=s.hierNode.modifier;s=SA(s),i=bA(i),s&&i;){a=SA(a),o=bA(o),a.hierNode.ancestor=e;var v=s.hierNode.prelim+c-i.hierNode.prelim-u+n(s,i);v>0&&(L1t(E1t(s,e,r),e,v),u+=v,l+=v),c+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!SA(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=c-l),i&&!bA(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,r=e)}return r}function SA(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function bA(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function E1t(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function L1t(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function O1t(e,t){return e.parentNode===t.parentNode?1:2}var Ua=Tt();function aK(e){var t=e.mainData,r=e.datas;r||(r={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,iK(t,r,e),D(r,function(n){D(t.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,At(R1t,e))})}),t.wrapMethod("cloneShallow",At(P1t,e)),D(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,At(I1t,e))}),$r(r[t.dataType]===t)}function R1t(e,t){if(z1t(this)){var r=U({},Ua(this).datas);r[this.dataType]=t,iK(t,r,e)}else pN(t,this.dataType,Ua(this).mainData,e);return t}function I1t(e,t){return e.struct&&e.struct.update(),t}function P1t(e,t){return D(Ua(t).datas,function(r,n){r!==t&&pN(r.cloneShallow(),n,t,e)}),t}function N1t(e){var t=Ua(this).mainData;return e==null||t==null?t:Ua(t).datas[e]}function k1t(){var e=Ua(this).mainData;return e==null?[{data:e}]:X(kt(Ua(e).datas),function(t){return{type:t,data:Ua(e).datas[t]}})}function z1t(e){return Ua(e).mainData===e}function iK(e,t,r){Ua(e).datas={},D(t,function(n,a){pN(n,a,e,r)})}function pN(e,t,r,n){Ua(r).datas[t]=e,Ua(e).mainData=r,e.dataType=t,n.struct&&(e[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=e),e.getLinkedData=N1t,e.getLinkedDataAll=k1t}var B1t=function(){function e(t,r){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=r}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(t,r,n){ut(t)&&(n=r,r=t,t=null),t=t||{},J(t)&&(t={order:t});var a=t.order||"preorder",i=this[t.attr||"children"],o;a==="preorder"&&(o=r.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(t,r,n);a==="postorder"&&r.call(n,this)},e.prototype.updateDepthAndHeight=function(t){var r=0;this.depth=t;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(t+1),a.height>r&&(r=a.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,a=n.length;r<a;r++){var i=n[r].getNodeById(t);if(i)return i}},e.prototype.contains=function(t){if(t===this)return!0;for(var r=0,n=this.children,a=n.length;r<a;r++){var i=n[r].contains(t);if(i)return i}},e.prototype.getAncestors=function(t){for(var r=[],n=t?this:this.parentNode;n;)r.push(n),n=n.parentNode;return r.reverse(),r},e.prototype.getAncestorsIndices=function(){for(var t=[],r=this;r;)t.push(r.dataIndex),r=r.parentNode;return t.reverse(),t},e.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(r){t.push(r.dataIndex)}),t},e.prototype.getValue=function(t){var r=this.hostTree.data;return r.getStore().get(r.getDimensionIndex(t||"value"),this.dataIndex)},e.prototype.setLayout=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r<t.length;++r)if(t[r]===this)return r;return-1}return-1},e.prototype.isAncestorOf=function(t){for(var r=t.parentNode;r;){if(r===this)return!0;r=r.parentNode}return!1},e.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},e}(),gN=function(){function e(t){this.type="tree",this._nodes=[],this.hostModel=t}return e.prototype.eachNode=function(t,r,n){this.root.eachNode(t,r,n)},e.prototype.getNodeByDataIndex=function(t){var r=this.data.getRawIndex(t);return this._nodes[r]},e.prototype.getNodeById=function(t){return this.root.getNodeById(t)},e.prototype.update=function(){for(var t=this.data,r=this._nodes,n=0,a=r.length;n<a;n++)r[n].dataIndex=-1;for(var n=0,a=t.count();n<a;n++)r[t.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,r,n){var a=new e(r),i=[],o=1;s(t);function s(f,c){var v=f.value;o=Math.max(o,Y(v)?v.length:1),i.push(f);var h=new B1t(nr(f.name,""),a);c?V1t(h,c):a.root=h,a._nodes.push(h);var d=f.children;if(d)for(var p=0;p<d.length;p++)s(d[p],h)}a.root.updateDepthAndHeight(0);var l=jd(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new sn(l,r);return u.initData(i),n&&n(u),aK({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},e}();function V1t(e,t){var r=t.children;e.parentNode!==t&&(r.push(e),e.parentNode=t)}function Uy(e,t,r){if(e&&St(t,e.type)>=0){var n=r.getData().tree.root,a=e.targetNode;if(J(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=e.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function oK(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function yN(e,t){var r=oK(e);return St(r,t)>=0}function Rw(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var _c="tree",G1t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},a=r.leaves||{},i=new Ot(a,this,this.ecModel),o=gN.createTree(n,this,s);function s(c){c.wrapMethod("getItemModel",function(v,h){var d=o.getNodeByDataIndex(h);return d&&d.children.length&&d.isExpand||(v.parentModel=i),v})}var l=0;o.eachNode("preorder",function(c){c.depth>l&&(l=c.depth)});var u=r.expandAndCollapse,f=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(c){var v=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=v&&v.collapsed!=null?!v.collapsed:c.depth<=f}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.formatTooltip=function(r,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Ke("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=Rw(a,this),n.collapsed=!a.isExpand,n},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type="series."+_c,t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:V.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(ne),H1t=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),U1t=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:V.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new H1t},t.prototype.buildPath=function(r,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,f=u==="TB"||u==="BT"?0:1,c=1-f,v=et(n.forkPosition,1),h=[];h[f]=o[f],h[c]=o[c]+(l[c]-o[c])*v,r.moveTo(o[0],o[1]),r.lineTo(h[0],h[1]),r.moveTo(s[0],s[1]),h[f]=s[f],r.lineTo(h[0],h[1]),h[f]=l[f],r.lineTo(h[0],h[1]),r.lineTo(l[0],l[1]);for(var d=1;d<i-1;d++){var p=a[d];r.moveTo(p[0],p[1]),h[f]=p[f],r.lineTo(h[0],h[1])}},t}(Rt),F1t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=_c,r._mainGroup=new ct,r}return t.prototype.init=function(r,n){this._controller=new Jc(n.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(r,n,a){var i=r.getData(),o=r.layoutInfo,s=this._mainGroup,l=r.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(r,a),Ow(r,a,this._controller,Zq(this.group),null);var u=this._data;i.diff(u).add(function(f){NG(i,f)&&kG(i,f,null,s,r)}).update(function(f,c){var v=u.getItemGraphicEl(c);if(!NG(i,f)){v&&BG(u,c,v,s,r);return}kG(i,f,v,s,r)}).remove(function(f){var c=u.getItemGraphicEl(f);c&&BG(u,f,c,s,r)}).execute(),this._updateNodeAndLinkScale(r),r.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(f,c){f.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:r.id,dataIndex:c})})}),this._data=i,this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(r,n,a){ru(this.group,Co,n.coordinateSystem,null),Kq(r)&&this._updateNodeAndLinkScale(n)},t.prototype._updateViewCoordSys=function(r,n){var a=r.getData(),i=[];a.each(function(c){var v=a.getItemLayout(c);v&&!isNaN(v.x)&&!isNaN(v.y)&&i.push([+v.x,+v.y])});var o=[],s=[];rw(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var f=r.coordinateSystem=vN(r,n,o[0],o[1],s[0]-o[0],s[1]-o[1]);ru(this.group,Co,f,this._firstRender?null:r),this._min=o,this._max=s},t.prototype._updateNodeAndLinkScale=function(r){var n=r.getData(),a=Wq(r.coordinateSystem,r);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type=_c,t}(ee);function NG(e,t){var r=e.getItemLayout(t);return r&&!isNaN(r.x)&&!isNaN(r.y)}function kG(e,t,r,n,a){var i=!r,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:V.color.neutral00,f=e.tree.root,c=o.parentNode===f?o:o.parentNode||o,v=e.getItemGraphicEl(c.dataIndex),h=c.getLayout(),d=v?{x:v.__oldX,y:v.__oldY,rawX:v.__radialOldRawX,rawY:v.__radialOldRawY}:h,p=o.getLayout();i?(r=new Bm(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.x=d.x,r.y=d.y):r.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.__radialOldRawX=r.__radialRawX,r.__radialOldRawY=r.__radialRawY,r.__radialRawX=p.rawX,r.__radialRawY=p.rawY,n.add(r),e.setItemGraphicEl(t,r),r.__oldX=r.x,r.__oldY=r.y,jt(r,{x:p.x,y:p.y},a);var g=r.getSymbolPath();if(a.get("layout")==="radial"){var y=f.children[0],m=y.getLayout(),_=y.children.length,S=void 0,b=void 0;if(p.x===m.x&&o.isExpand===!0&&y.children.length){var x={x:(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2};S=Math.atan2(x.y-m.y,x.x-m.x),S<0&&(S=Math.PI*2+S),b=x.x<m.x,b&&(S=S-Math.PI)}else S=Math.atan2(p.y-m.y,p.x-m.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(b=p.x<m.x,b&&(S=S-Math.PI)):(b=p.x>m.x,b||(S=S-Math.PI));var w=b?"left":"right",T=s.getModel("label"),C=T.get("rotate"),A=C*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:T.get("position")||w,rotation:C==null?-S:A,origin:"center"}),M.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),E=L==="relative"?qh(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;E&&(yt(r).focus=E),Y1t(a,o,f,r,d,h,p,n),r.__edge&&(r.onHoverStateChange=function(R){if(R!=="blur"){var I=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);I&&I.hoverState===Am||W1(r.__edge,R)}})}function Y1t(e,t,r,n,a,i,o,s){var l=t.getModel(),u=e.get("edgeShape"),f=e.get("layout"),c=e.getOrient(),v=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(p||(p=n.__edge=new Nd({shape:YL(f,c,v,a,a)})),jt(p,{shape:YL(f,c,v,i,o)},e));else if(u==="polyline"&&f==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,y=[],m=0;m<g.length;m++){var _=g[m].getLayout();y.push([_.x,_.y])}p||(p=n.__edge=new U1t({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:c,forkPosition:h}})),jt(p,{shape:{parentPoint:[o.x,o.y],childPoints:y}},e)}p&&!(u==="polyline"&&!t.isExpand)&&(p.useStyle(dt({strokeNoScale:!0,fill:null},d)),ar(p,l,"lineStyle"),ic(p),s.add(p))}function zG(e,t,r,n,a){var i=t.tree.root,o=sK(i,e),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var f=t.getItemGraphicEl(s.dataIndex),c=f.__edge,v=u.__edge||(s.isExpand===!1||s.children.length===1?c:void 0),h=n.get("edgeShape"),d=n.get("layout"),p=n.get("orient"),g=n.get(["lineStyle","curveness"]);v&&(h==="curve"?eu(v,{shape:YL(d,p,g,l,l),style:{opacity:0}},n,{cb:function(){r.remove(v)},removeOpt:a}):h==="polyline"&&n.get("layout")==="orthogonal"&&eu(v,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){r.remove(v)},removeOpt:a}))}}function sK(e,t){for(var r=t.parentNode===e?t:t.parentNode||t,n;n=r.getLayout(),n==null;)r=r.parentNode===e?r:r.parentNode||r;return{source:r,sourceLayout:n}}function BG(e,t,r,n,a){var i=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=sK(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};eu(r,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(r),e.setItemGraphicEl(t,null)},removeOpt:l}),r.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),D(i.children,function(u){zG(u,e,n,a,l)}),zG(i,e,n,a,l)}function YL(e,t,r,n,a){var i,o,s,l,u,f,c,v;if(e==="radial"){u=n.rawX,c=n.rawY,f=a.rawX,v=a.rawY;var h=ng(u,c),d=ng(u,c+(v-c)*r),p=ng(f,v+(c-v)*r),g=ng(f,v);return{x1:h.x||0,y1:h.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=n.x,c=n.y,f=a.x,v=a.y,(t==="LR"||t==="RL")&&(i=u+(f-u)*r,o=c,s=f+(u-f)*r,l=v),(t==="TB"||t==="BT")&&(i=u,o=c+(v-c)*r,s=f,l=v+(c-v)*r);return{x1:u,y1:c,x2:f,y2:v,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}function j1t(e,t,r){for(var n=[e],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;i=a.pop();)t(i,r)}function Ip(e,t){for(var r=[e],n;n=r.pop();)if(t(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)r.push(a[i])}}function X1t(e,t){e.eachSeriesByType("tree",function(r){$1t(r,t)})}function $1t(e,t){var r=sr(e,t).refContainer,n=xe(e.getBoxLayoutParams(),r);e.layoutInfo=n;var a=e.get("layout"),i=0,o=0,s=null;a==="radial"?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,s=PG(function(S,b){return(S.parentNode===b.parentNode?1:2)/S.depth})):(i=n.width,o=n.height,s=PG());var l=e.getData().tree.root,u=l.children[0];if(u){T1t(l),j1t(u,C1t,s),l.hierNode.modifier=-u.hierNode.prelim,Ip(u,A1t);var f=u,c=u,v=u;Ip(u,function(S){var b=S.getLayout().x;b<f.getLayout().x&&(f=S),b>c.getLayout().x&&(c=S),S.depth>v.depth&&(v=S)});var h=f===c?1:s(f,c)/2,d=h-f.getLayout().x,p=0,g=0,y=0,m=0;if(a==="radial")p=i/(c.getLayout().x+h+d),g=o/(v.depth-1||1),Ip(u,function(S){y=(S.getLayout().x+d)*p,m=(S.depth-1)*g;var b=ng(y,m);S.setLayout({x:b.x,y:b.y,rawX:y,rawY:m},!0)});else{var _=e.getOrient();_==="RL"||_==="LR"?(g=o/(c.getLayout().x+h+d),p=i/(v.depth-1||1),Ip(u,function(S){m=(S.getLayout().x+d)*g,y=_==="LR"?(S.depth-1)*p:i-(S.depth-1)*p,S.setLayout({x:y,y:m},!0)})):(_==="TB"||_==="BT")&&(p=i/(c.getLayout().x+h+d),g=o/(v.depth-1||1),Ip(u,function(S){y=(S.getLayout().x+d)*p,m=_==="TB"?(S.depth-1)*g:o-(S.depth-1)*g,S.setLayout({x:y,y:m},!0)}))}}}function W1t(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:xo,subType:_c,query:t},function(n){var a=t.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),cN(e,xo,_c)}var Z1t=or(_c,q1t);function q1t(e){e.eachSeriesByType(_c,function(t){var r=t.getData(),n=r.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(a.dataIndex,"style");U(s,o)})})}function K1t(e){e.registerChartView(F1t),e.registerSeriesModel(G1t),e.registerLayout(X1t),e.registerVisual(Z1t),W1t(e)}var VG=["treemapZoomToNode","treemapRender","treemapMove"];function Q1t(e){for(var t=0;t<VG.length;t++)e.registerAction({type:VG[t],update:"updateView"},Pe);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(r,n){n.eachComponent({mainType:"series",subType:"treemap",query:r},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Uy(r,s,i);if(l){var u=i.getViewRoot();u&&(r.direction=yN(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function lK(e){var t=e.getData(),r=t.tree,n={};r.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=oL(e.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var J1t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var a={name:r.name,children:r.data};uK(a);var i=r.levels||[],o=this.designatedVisualItemStyle={},s=new Ot({itemStyle:o},this,n);i=r.levels=tbt(i,n);var l=X(i||[],function(c){return new Ot(c,s,n)},this),u=gN.createTree(a,this,f);function f(c){c.wrapMethod("getItemModel",function(v,h){var d=u.getNodeByDataIndex(h),p=d?l[d.depth]:null;return v.parentModel=p||s,v})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return Ke("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=Rw(a,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},U(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=nt(),this._idIndexMapCount=0);var a=n.get(r);return a==null&&n.set(r,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){lK(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,coordinateSystemUsage:"box",left:V.size.l,top:V.size.xxxl,right:V.size.l,bottom:V.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:V.size.m,emptyItemWidth:25,itemStyle:{color:V.color.backgroundShade,textStyle:{color:V.color.secondary}},emphasis:{itemStyle:{color:V.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:V.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:V.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(ne);function uK(e){var t=0;D(e.children,function(n){uK(n);var a=n.value;Y(a)&&(a=a[0]),t+=a});var r=e.value;Y(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Y(e.value)?e.value[0]=r:e.value=r}function tbt(e,t){var r=ue(t.get("color")),n=ue(t.get(["aria","decal","decals"]));if(r){e=e||[];var a,i;D(e,function(s){var l=new Ot(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=e[0]||(e[0]={});return a||(o.color=r.slice()),!i&&n&&(o.decal=n.slice()),e}}var ebt=8,GG=8,xA=5,rbt=function(){function e(t){this.group=new ct,t.add(this.group)}return e.prototype.render=function(t,r,n,a){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),c=sr(t,r).refContainer,v={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},h={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},d=xe(v,c);this._prepare(n,h,u),this._renderContent(t,h,d,s,l,u,f,a),cw(o,v,c)}},e.prototype._prepare=function(t,r,n){for(var a=t;a;a=a.parentNode){var i=nr(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+ebt*2,r.emptyItemWidth);r.totalWidth+=s+GG,r.renderList.push({node:a,text:i,width:s})}},e.prototype._renderContent=function(t,r,n,a,i,o,s,l){for(var u=0,f=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),v=r.totalWidth,h=r.renderList,d=i.getModel("itemStyle").getItemStyle(),p=h.length-1;p>=0;p--){var g=h[p],y=g.node,m=g.width,_=g.text;v>n.width&&(v-=m-f,m=f,_=null);var S=new Zr({shape:{points:nbt(u,0,m,c,p===h.length-1,p===0)},style:dt(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Ht({style:se(o,{text:_})}),textConfig:{position:"inside"},z2:Id*1e4,onclick:At(l,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=se(s,{text:_}),S.ensureState("emphasis").style=d,Ae(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),abt(S,t,y),u+=m+GG}},e.prototype.remove=function(){this.group.removeAll()},e}();function nbt(e,t,r,n,a,i){var o=[[a?e:e-xA,t],[e+r,t],[e+r,t+n],[a?e:e-xA,t+n]];return!i&&o.splice(2,0,[e+r+xA,t+n/2]),!a&&o.push([e,t+n/2]),o}function abt(e,t,r){yt(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&Rw(r,t)}}var ibt=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:a,easing:i}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function obt(){return new ibt}var Fy=Math.max,Ob=Math.min,mN=D,fK=["itemStyle","borderWidth"],sbt=["itemStyle","gapWidth"],lbt=["upperLabel","show"],ubt=["upperLabel","height"];const fbt={seriesType:"treemap",reset:function(e,t,r,n){var a=e.option,i=sr(e,r).refContainer,o=xe(e.getBoxLayoutParams(),i),s=n&&n.type,l=["treemapZoomToNode","treemapRootToNode"],u=Uy(n,l,e),f=s==="treemapRender"||s==="treemapMove"?n.rootRect:null,c=e.getViewRoot(),v=oK(c);if(s!=="treemapMove"){var h=!1,d=s==="treemapZoomToNode"?(h=!0,gbt(e,u,c,o)):f?(h=!0,U({},f)):U({},o);if(h){var p=dK(o,d);p=pK(p,e),d.width=o.width*p,d.height=o.height*p}var g=a.sort;g&&g!=="asc"&&g!=="desc"&&(g="desc");var y={squareRatio:a.squareRatio,sort:g,leafDepth:a.leafDepth};c.hostTree.clearLayouts();var m={x:0,y:0,width:d.width,height:d.height,area:d.width*d.height};c.setLayout(m),cK(c,y,!1,0),m=c.getLayout(),mN(v,function(S,b){var x=(v[b+1]||c).getValue();S.setLayout(U({dataExtent:[x,x],borderWidth:0,upperHeight:0},m))})}var _=e.getData().tree.root;_.setLayout(ybt(o,f,u),!0),e.setLayoutInfo(o),vK(_,new vt(-o.x,-o.y,r.getWidth(),r.getHeight()),v,c,0)}};function cK(e,t,r,n){var a,i;if(!e.isRemoved()){var o=e.getLayout();a=o.width,i=o.height;var s=e.getModel(),l=s.get(fK),u=s.get(sbt)/2,f=hK(s),c=Math.max(l,f),v=l-u,h=c-u;e.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),a=Fy(a-2*v,0),i=Fy(i-v-h,0);var d=a*i,p=cbt(e,s,d,t,r,n);if(p.length){var g={x:v,y:h,width:a,height:i},y=Ob(a,i),m=1/0,_=[];_.area=0;for(var S=0,b=p.length;S<b;){var x=p[S];_.push(x),_.area+=x.getLayout().area;var w=pbt(_,y,t.squareRatio);w<=m?(S++,m=w):(_.area-=_.pop().getLayout().area,HG(_,y,g,u,!1),y=Ob(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&HG(_,y,g,u,!0),!r){var T=s.get("childrenVisibleMin");T!=null&&d<T&&(r=!0)}for(var S=0,b=p.length;S<b;S++)cK(p[S],t,r,n+1)}}}function cbt(e,t,r,n,a,i){var o=e.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return e.viewChildren=[];o=qt(o,function(h){return!h.isRemoved()}),hbt(o,s);var u=dbt(t,o,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=vbt(t,r,u.sum,s,o),u.sum===0)return e.viewChildren=[];for(var f=0,c=o.length;f<c;f++){var v=o[f].getValue()/u.sum*r;o[f].setLayout({area:v})}return l&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:u.dataExtent},!0),o}function vbt(e,t,r,n,a){if(!n)return r;for(var i=e.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/r*t<i&&(s=l,r-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),r}function hbt(e,t){return t&&e.sort(function(r,n){var a=t==="asc"?r.getValue()-n.getValue():n.getValue()-r.getValue();return a===0?t==="asc"?r.dataIndex-n.dataIndex:n.dataIndex-r.dataIndex:a}),e}function dbt(e,t,r){for(var n=0,a=0,i=t.length;a<i;a++)n+=t[a].getValue();var o=e.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&r?(s=[t[t.length-1].getValue(),t[0].getValue()],r==="asc"&&s.reverse()):(s=kr(),mN(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function pbt(e,t,r){for(var n=0,a=1/0,i=0,o=void 0,s=e.length;i<s;i++)o=e[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var l=e.area*e.area,u=t*t*r;return l?Fy(u*n/l,l/(u*a)):1/0}function HG(e,t,r,n,a){var i=t===r.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=r[s[i]],f=t?e.area/t:0;(a||f>r[l[o]])&&(f=r[l[o]]);for(var c=0,v=e.length;c<v;c++){var h=e[c],d={},p=f?h.getLayout().area/f:0,g=d[l[o]]=Fy(f-2*n,0),y=r[s[i]]+r[l[i]]-u,m=c===v-1||y<p?y:p,_=d[l[i]]=Fy(m-2*n,0);d[s[o]]=r[s[o]]+Ob(n,g/2),d[s[i]]=u+Ob(n,_/2),u+=m,h.setLayout(d,!0)}r[s[o]]+=f,r[l[o]]-=f}function gbt(e,t,r,n){var a=(t||{}).node,i=n.width,o=n.height,s=U({},n);if(!a||a===r)return s;for(var l,u=i*o,f=u*e.option.zoomToNodeRatio;l=a.parentNode;){for(var c=0,v=l.children,h=0,d=v.length;h<d;h++)c+=v[h].getValue();var p=a.getValue();if(p===0)return s;f*=c/p;var g=l.getModel(),y=g.get(fK),m=Math.max(y,hK(g));f+=4*y*y+(3*y+m)*Math.pow(f,.5),f>gy&&(f=gy),a=l}f<u&&(f=u);var _=Math.pow(f/u,.5);return{width:i*_,height:o*_}}function ybt(e,t,r){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!r)return n;var a=r.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function vK(e,t,r,n,a){var i=e.getLayout(),o=r[a],s=o&&o===e;if(!(o&&!s||a===r.length&&e!==n)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new vt(t.x-i.x,t.y-i.y,t.width,t.height);mN(e.viewChildren||[],function(u){vK(u,l,r,n,a+1)})}}function hK(e){return e.get(lbt)?e.get(ubt):0}function dK(e,t){return t.width/e.width||t.height/e.height||1}function pK(e,t){return fN(e,t.get("scaleLimit",!0))}var jL=ct,UG=Et,FG=3,YG="label",jG="upperLabel",mbt=Id*10,_bt=Id*2,Sbt=Id*3,of=ac([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),XG=function(e){var t=of(e);return t.stroke=t.fill=t.lineWidth=null,t},Rb=Tt(),bbt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._state="ready",r._storage=Pp(),r}return t.prototype.render=function(r,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(St(o,r)<0)){this.seriesModel=r,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=Uy(i,s,r),u=i&&i.type,f=r.layoutInfo,c=!this._oldTree,v=this._storage,h=u==="treemapRootToNode"&&l&&v?{rootNodeGroup:v.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(f),p=r.get("animation"),g=this._doRender(d,r,h);p&&!c&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,g,r,h):g.renderFinally(),this._resetController(a),this._renderBreadcrumb(r,a,l)}},t.prototype._giveContainerGroup=function(r){var n=this._containerGroup;return n||(n=this._containerGroup=new jL,this._initEvents(n),this.group.add(n)),n.x=r.x,n.y=r.y,n},t.prototype._doRender=function(r,n,a){var i=n.getData().tree,o=this._oldTree,s=Pp(),l=Pp(),u=this._storage,f=[];function c(g,y,m,_){return xbt(n,l,u,a,s,f,g,y,m,_)}h(i.root?[i.root]:[],o&&o.root?[o.root]:[],r,i===o||!o,0);var v=d(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:v,renderFinally:p};function h(g,y,m,_,S){_?(y=g,D(g,function(w,T){!w.isRemoved()&&x(T,T)})):new Ls(y,g,b,b).add(x).update(x).remove(At(x,null)).execute();function b(w){return w.getId()}function x(w,T){var C=w!=null?g[w]:null,A=T!=null?y[T]:null,M=c(C,A,m,S);M&&h(C&&C.viewChildren||[],A&&A.viewChildren||[],M,_,S+1)}}function d(g){var y=Pp();return g&&D(g,function(m,_){var S=y[_];D(m,function(b){b&&(S.push(b),Rb(b).willDelete=!0)})}),y}function p(){D(v,function(g){D(g,function(y){y.parent&&y.parent.remove(y)})}),D(f,function(g){g.invisible=!0,g.dirty()})}},t.prototype._doAnimation=function(r,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(ut(o)?0:o)||0,u=(ut(s)?null:s)||"cubicOut",f=obt();D(n.willDeleteEls,function(c,v){D(c,function(h,d){if(!h.invisible){var p=h.parent,g,y=Rb(p);if(i&&i.direction==="drillDown")g=p===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,_=0;y.willDelete||(m=y.nodeWidth/2,_=y.nodeHeight/2),g=v==="nodeGroup"?{x:m,y:_,style:{opacity:0}}:{shape:{x:m,y:_,width:0,height:0},style:{opacity:0}}}g&&f.add(h,g,l,0,u)}})}),D(this._storage,function(c,v){D(c,function(h,d){var p=n.lastsForAnimation[v][d],g={};p&&(h instanceof ct?p.oldX!=null&&(g.x=h.x,g.y=h.y,h.x=p.oldX,h.y=p.oldY):(p.oldShape&&(g.shape=U({},h.shape),h.setShape(p.oldShape)),p.fadein?(h.setStyle("opacity",0),g.style={opacity:1}):h.style.opacity!==1&&(g.style={opacity:1})),f.add(h,g,l,0,u))})},this),this._state="animating",f.finished(rt(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(r){var n=this,a=this.seriesModel,i=this._controller;i||(i=this._controller=new Jc(r.getZr()),i.on("pan",rt(this._onPan,this)),i.on("zoom",rt(this._onZoom,this))),i.enable(a.get("roam"),{api:r,zInfo:{component:a},triggerInfo:{roamTrigger:a.get("roamTrigger"),isInSelf:function(o,s,l){var u=n._containerGroup;return u?u.getBoundingRect().contain(s-u.x,l-u.y):!1}}})},t.prototype._clearController=function(){var r=this._controller;r&&(r.dispose(),r=null)},t.prototype._onPan=function(r){if(this._state!=="animating"&&(Math.abs(r.dx)>FG||Math.abs(r.dy)>FG)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+r.dx,y:a.y+r.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(r){var n=r.originX,a=r.originY,i=r.scale,o=this.seriesModel;if(this._state!=="animating"){var s=o.getData().tree.root;if(!s)return;var l=s.getLayout();if(!l)return;var u=new vt(l.x,l.y,l.width,l.height),f=o.layoutInfo,c=dK(f,l),v=c*i;v=pK(v,o);var h=v/c;n-=f.x,a-=f.y;var d=we();gi(d,d,[-n,-a]),Yx(d,d,[h,h]),gi(d,d,[n,a]),u.applyTransform(d),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x,y:u.y,width:u.width,height:u.height}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&tb(u,f)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,a){var i=this;a||(a=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new rbt(this.group))).render(r,n,a.node,function(o){i._state!=="animating"&&(yN(r.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Pp(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},t.type="treemap",t}(ee);function Pp(){return{nodeGroup:[],background:[],content:[]}}function xbt(e,t,r,n,a,i,o,s,l,u){if(!o)return;var f=o.getLayout(),c=e.getData(),v=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var h=f.width,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,b=_&&_.length,x=v.getModel("itemStyle"),w=v.getModel(["emphasis","itemStyle"]),T=v.getModel(["blur","itemStyle"]),C=v.getModel(["select","itemStyle"]),A=x.get("borderRadius")||0,M=tt("nodeGroup",jL);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),Rb(M).nodeWidth=h,Rb(M).nodeHeight=d,f.isAboveViewRoot)return M;var L=tt("background",UG,u,_bt);L&&B(M,L,b&&f.upperLabelHeight);var E=v.getModel("emphasis"),R=E.get("focus"),I=E.get("blurScope"),O=E.get("disabled"),N=R==="ancestor"?o.getAncestorsIndices():R==="descendant"?o.getDescendantIndices():R;if(b)_y(M)&&_f(M,!1),L&&(_f(L,!O),c.setItemGraphicEl(o.dataIndex,L),ZE(L,N,I));else{var P=tt("content",UG,u,Sbt);P&&H(M,P),L.disableMorphing=!0,L&&_y(L)&&_f(L,!1),_f(M,!O),c.setItemGraphicEl(o.dataIndex,M);var z=v.getShallow("cursor");z&&P.attr("cursor",z),ZE(M,N,I)}return M;function B(Q,q,ht){var K=yt(q);if(K.dataIndex=o.dataIndex,K.seriesIndex=e.seriesIndex,q.setShape({x:0,y:0,width:h,height:d,r:A}),g)F(q);else{q.invisible=!1;var at=o.getVisual("style"),bt=at.stroke,Mt=XG(x);Mt.fill=bt;var zt=of(w);zt.fill=w.get("borderColor");var $t=of(T);$t.fill=T.get("borderColor");var me=of(C);if(me.fill=C.get("borderColor"),ht){var lr=h-2*p;$(q,bt,at.opacity,{x:p,y:0,width:lr,height:S})}else q.removeTextContent();q.setStyle(Mt),q.ensureState("emphasis").style=zt,q.ensureState("blur").style=$t,q.ensureState("select").style=me,ic(q)}Q.add(q)}function H(Q,q){var ht=yt(q);ht.dataIndex=o.dataIndex,ht.seriesIndex=e.seriesIndex;var K=Math.max(h-2*p,0),at=Math.max(d-2*p,0);if(q.culling=!0,q.setShape({x:p,y:p,width:K,height:at,r:A}),g)F(q);else{q.invisible=!1;var bt=o.getVisual("style"),Mt=bt.fill,zt=XG(x);zt.fill=Mt,zt.decal=bt.decal;var $t=of(w),me=of(T),lr=of(C);$(q,Mt,bt.opacity,null),q.setStyle(zt),q.ensureState("emphasis").style=$t,q.ensureState("blur").style=me,q.ensureState("select").style=lr,ic(q)}Q.add(q)}function F(Q){!Q.invisible&&i.push(Q)}function $(Q,q,ht,K){var at=v.getModel(K?jG:YG),bt=nr(v.get("name"),null),Mt=at.getShallow("show");yr(Q,ir(v,K?jG:YG),{defaultText:Mt?bt:null,inheritColor:q,defaultOpacity:ht,labelFetcher:e,labelDataIndex:o.dataIndex});var zt=Q.getTextContent();if(zt){var $t=zt.style,me=xm($t.padding||0);K&&(Q.setTextConfig({layoutRect:K}),zt.disableLabelLayout=!0),zt.beforeUpdate=function(){var Kr=Math.max((K?K.width:Q.shape.width)-me[1]-me[3],0),ko=Math.max((K?K.height:Q.shape.height)-me[0]-me[2],0);($t.width!==Kr||$t.height!==ko)&&zt.setStyle({width:Kr,height:ko})},$t.truncateMinChar=2,$t.lineOverflow="truncate",j($t,K,f);var lr=zt.getState("emphasis");j(lr?lr.style:null,K,f)}}function j(Q,q,ht){var K=Q?Q.text:null;if(!q&&ht.isLeafRoot&&K!=null){var at=e.get("drillDownIcon",!0);Q.text=at?at+" "+K:K}}function tt(Q,q,ht,K){var at=m!=null&&r[Q][m],bt=a[Q];return at?(r[Q][m]=null,mt(bt,at)):g||(at=new q,at instanceof $a&&(at.z2=wbt(ht,K)),Nt(bt,at)),t[Q][y]=at}function mt(Q,q){var ht=Q[y]={};q instanceof jL?(ht.oldX=q.x,ht.oldY=q.y):ht.oldShape=U({},q.shape)}function Nt(Q,q){var ht=Q[y]={},K=o.parentNode,at=q instanceof ct;if(K&&(!n||n.direction==="drillDown")){var bt=0,Mt=0,zt=a.background[K.getRawIndex()];!n&&zt&&zt.oldShape&&(bt=zt.oldShape.width,Mt=zt.oldShape.height),at?(ht.oldX=0,ht.oldY=Mt):ht.oldShape={x:bt,y:Mt,width:0,height:0}}ht.fadein=!at}}function wbt(e,t){return e*mbt+t}var Yy=D,Tbt=pt,Ib=-1,dr=function(){function e(t){var r=t.mappingMethod,n=t.type,a=this.option=st(t);this.type=n,this.mappingMethod=r,this._normalizeData=Mbt[r];var i=e.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[r],r==="piecewise"?(wA(a),Cbt(a)):r==="category"?a.categories?Abt(a):wA(a,!0):($r(r!=="linear"||a.dataExtent),wA(a))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return rt(this._normalizeData,this)},e.listVisualTypes=function(){return kt(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){pt(t)?D(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var a,i=Y(t)?[]:pt(t)?{}:(a=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);a?i=l:i[s]=l}),i},e.retrieveVisuals=function(t){var r={},n;return t&&Yy(e.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(Y(t))t=t.slice();else if(Tbt(t)){var r=[];Yy(t,function(n,a){r.push(a)}),t=r}else return[];return t.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var a,i=1/0,o=0,s=r.length;o<s;o++){var l=r[o].value;if(l!=null){if(l===t||J(l)&&l===t+"")return o;n&&v(l,o)}}for(var o=0,s=r.length;o<s;o++){var u=r[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(p_(c[1],t,f[1]))return o}else if(f[1]===1/0){if(p_(c[0],f[0],t))return o}else if(p_(c[0],f[0],t)&&p_(c[1],t,f[1]))return o;n&&v(f[0],o),n&&v(f[1],o)}}if(n)return t===1/0?r.length-1:t===-1/0?0:a;function v(h,d){var p=Math.abs(h-t);p<i&&(i=p,a=d)}},e.visualHandlers={color:{applyVisual:Np("color"),getColorMapper:function(){var t=this.option;return rt(t.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),ag.call(this,r)}:function(r,n,a){var i=!!a;return!n&&(r=this._normalizeData(r)),a=Lg(r,t.parsedVisual,a),i?a:Ga(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Ga(Lg(t,this.option.parsedVisual),"rgba")},category:ag,piecewise:function(t,r){var n=$L.call(this,r);return n==null&&(n=Ga(Lg(t,this.option.parsedVisual),"rgba")),n},fixed:sf}},colorHue:d_(function(t,r){return ls(t,r)}),colorSaturation:d_(function(t,r){return ls(t,null,r)}),colorLightness:d_(function(t,r){return ls(t,null,null,r)}),colorAlpha:d_(function(t,r){return vy(t,r)}),decal:{applyVisual:Np("decal"),_normalizedToVisual:{linear:null,category:ag,piecewise:null,fixed:null}},opacity:{applyVisual:Np("opacity"),_normalizedToVisual:XL([0,1])},liftZ:{applyVisual:Np("liftZ"),_normalizedToVisual:{linear:sf,category:sf,piecewise:sf,fixed:sf}},symbol:{applyVisual:function(t,r,n){var a=this.mapValueToVisual(t);n("symbol",a)},_normalizedToVisual:{linear:$G,category:ag,piecewise:function(t,r){var n=$L.call(this,r);return n==null&&(n=$G.call(this,t)),n},fixed:sf}},symbolSize:{applyVisual:Np("symbolSize"),_normalizedToVisual:XL([0,1])}},e}();function Cbt(e){var t=e.pieceList;e.hasSpecialVisual=!1,D(t,function(r,n){r.originIndex=n,r.visual!=null&&(e.hasSpecialVisual=!0)})}function Abt(e){var t=e.categories,r=e.categoryMap={},n=e.visual;if(Yy(t,function(o,s){r[o]=s}),!Y(n)){var a=[];pt(n)?Yy(n,function(o,s){var l=r[s];a[l??Ib]=o}):a[Ib]=n,n=gK(e,a)}for(var i=t.length-1;i>=0;i--)n[i]==null&&(delete r[t[i]],t.pop())}function wA(e,t){var r=e.visual,n=[];pt(r)?Yy(r,function(i){n.push(i)}):r!=null&&n.push(r);var a={color:1,symbol:1};!t&&n.length===1&&!a.hasOwnProperty(e.type)&&(n[1]=n[0]),gK(e,n)}function d_(e){return{applyVisual:function(t,r,n){var a=this.mapValueToVisual(t);n("color",e(r("color"),a))},_normalizedToVisual:XL([0,1])}}function $G(e){var t=this.option.visual;return t[Math.round(Xt(e,[0,1],[0,t.length-1],!0))]||{}}function Np(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function ag(e){var t=this.option.visual;return t[this.option.loop&&e!==Ib?e%t.length:e]}function sf(){return this.option.visual[0]}function XL(e){return{linear:function(t){return Xt(t,e,this.option.visual,!0)},category:ag,piecewise:function(t,r){var n=$L.call(this,r);return n==null&&(n=Xt(t,e,this.option.visual,!0)),n},fixed:sf}}function $L(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=dr.findPieceIndex(e,r),a=r[n];if(a&&a.visual)return a.visual[this.type]}}function gK(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=X(t,function(r){var n=on(r);return n||[0,0,0,1]})),t}var Mbt={linear:function(e){return Xt(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=dr.findPieceIndex(e,t,!0);if(r!=null)return Xt(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??Ib},fixed:Pe};function p_(e,t,r){return e?t<=r:t<r}var Dbt="itemStyle",yK=Tt();const Ebt={seriesType:"treemap",reset:function(e){var t=e.getData().tree,r=t.root;r.isRemoved()||mK(r,{},e.getViewRoot().getAncestors(),e)}};function mK(e,t,r,n){var a=e.getModel(),i=e.getLayout(),o=e.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(Dbt),l=Lbt(s,t,n),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),f=s.get("borderColor"),c=s.get("borderColorSaturation"),v;c!=null&&(v=WG(l),f=Obt(c,v)),u.stroke=f;var h=e.viewChildren;if(!h||!h.length)v=WG(l),u.fill=v;else{var d=Rbt(e,a,i,s,l,h);D(h,function(p,g){if(p.depth>=r.length||p===r[p.depth]){var y=Ibt(a,l,p,g,d,n);mK(p,y,r,n)}})}}}function Lbt(e,t,r){var n=U({},t),a=r.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=e.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function WG(e){var t=TA(e,"color");if(t){var r=TA(e,"colorAlpha"),n=TA(e,"colorSaturation");return n&&(t=ls(t,null,null,n)),r&&(t=vy(t,r)),t}}function Obt(e,t){return t!=null?ls(t,null,null,e):null}function TA(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function Rbt(e,t,r,n,a,i){if(!(!i||!i.length)){var o=CA(t,"color")||a.color!=null&&a.color!=="none"&&(CA(t,"colorAlpha")||CA(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=t.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(f==="index"||f==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var v=new dr(c);return yK(v).drColorMappingBy=f,v}}}function CA(e,t){var r=e.get(t);return Y(r)&&r.length?{name:t,range:r}:null}function Ibt(e,t,r,n,a,i){var o=U({},t);if(a){var s=a.type,l=s==="color"&&yK(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}function Pbt(e){e.registerSeriesModel(J1t),e.registerChartView(bbt),e.registerVisual(Ebt),e.registerLayout(fbt),Q1t(e)}function _v(e){return"_EC_"+e}var Nbt=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[_v(t)]){var a=new lf(t,r);return a.hostGraph=this,this.nodes.push(a),n[_v(t)]=a,a}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[_v(t)]},e.prototype.addEdge=function(t,r,n){var a=this._nodesMap,i=this._edgesMap;if(Ut(t)&&(t=this.nodes[t]),Ut(r)&&(r=this.nodes[r]),t instanceof lf||(t=a[_v(t)]),r instanceof lf||(r=a[_v(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new _K(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),i[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof lf&&(t=t.id),r instanceof lf&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&t.call(r,n[i],i)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(r,n[i],i)},e.prototype.breadthFirstTraverse=function(t,r,n,a){if(r instanceof lf||(r=this._nodesMap[_v(r)]),!!r){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(a,r,null))for(var s=[r];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var f=u[o],c=f.node1===l?f.node2:f.node1;if(!c.__visited){if(t.call(a,c,l))return;s.push(c),c.__visited=!0}}}},e.prototype.update=function(){for(var t=this.data,r=this.edgeData,n=this.nodes,a=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i;r.filterSelf(function(s){var l=a[r.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=r.count();i<o;i++)a[r.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),r=this.nodes,n=this.edges,a=0;a<r.length;a++)t.addNode(r[a].id,r[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},e}(),lf=function(){function e(t,r){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=r??-1}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},r=0;r<this.edges.length;r++){var n=this.edges[r];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},e.prototype.getTrajectoryDataIndices=function(){for(var t=nt(),r=nt(),n=0,a=this.edges.length;n<a;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var o=[i.node1],s=[i.node2],l=0;l<o.length;){var u=o[l];l++,r.set(u.dataIndex,!0);for(var f=u.inEdges,c=0,v=f.length,h=void 0,d=void 0;c<v;c++)h=f[c],d=h.dataIndex,d>=0&&!t.hasKey(d)&&(t.set(d,!0),o.push(h.node1))}for(l=0;l<s.length;){var p=s[l];l++,r.set(p.dataIndex,!0);for(var g=p.outEdges,c=0,y=g.length,m=void 0,_=void 0;c<y;c++)m=g[c],_=m.dataIndex,_>=0&&!t.hasKey(_)&&(t.set(_,!0),s.push(m.node2))}}}return{edge:t.keys(),node:r.keys()}},e}(),_K=function(){function e(t,r,n){this.dataIndex=-1,this.node1=t,this.node2=r,this.dataIndex=n??-1}return e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var t=nt(),r=nt();t.set(this.dataIndex,!0);for(var n=[this.node1],a=[this.node2],i=0;i<n.length;){var o=n[i];i++,r.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,f=void 0,c=void 0;l<u;l++)f=o.inEdges[l],c=f.dataIndex,c>=0&&!t.hasKey(c)&&(t.set(c,!0),n.push(f.node1))}for(i=0;i<a.length;){var v=a[i];i++,r.set(v.dataIndex,!0);for(var h=v.outEdges,l=0,u=h.length,d=void 0,p=void 0;l<u;l++)d=v.outEdges[l],p=d.dataIndex,p>=0&&!t.hasKey(p)&&(t.set(p,!0),a.push(d.node2))}return{edge:t.keys(),node:r.keys()}},e}();function SK(e,t){return{getValue:function(r){var n=this[e][t];return n.getStore().get(n.getDimensionIndex(r||"value"),this.dataIndex)},setVisual:function(r,n){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}We(lf,SK("hostGraph","data"));We(_K,SK("hostGraph","edgeData"));function _N(e,t,r,n,a){for(var i=new Nbt(n),o=0;o<e.length;o++)i.addNode(nn(e[o].id,e[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var f=t[o],c=f.source,v=f.target;i.addEdge(c,v,u)&&(l.push(f),s.push(nn(nr(f.id,null),c+" > "+v)),u++)}var h=r.get("coordinateSystem"),d;if(h==="cartesian2d"||h==="polar"||h==="matrix")d=No(e,r);else{var p=Hd.get(h),g=p?p.dimensions||[]:[];St(g,"value")<0&&g.concat(["value"]);var y=jd(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;d=new sn(y,r),d.initData(e)}var m=new sn(["value"],r);return m.initData(l,s),a&&a(d,m),aK({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var WL="-->",Iw=function(e){return e.get("autoCurveness")||null},bK=function(e,t){var r=Iw(e),n=20,a=[];if(Ut(r))n=r;else if(Y(r)){e.__curvenessList=r;return}t>n&&(n=t);var i=n%2?n+2:n+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=a},jy=function(e,t,r){var n=[e.id,e.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[r.uid,n,a].join(WL)},xK=function(e){var t=e.split(WL);return[t[0],t[2],t[1]].join(WL)},kbt=function(e,t){var r=jy(e.node1,e.node2,t);return t.__edgeMap[r]},zbt=function(e,t){var r=ZL(jy(e.node1,e.node2,t),t),n=ZL(jy(e.node2,e.node1,t),t);return r+n},ZL=function(e,t){var r=t.__edgeMap;return r[e]?r[e].length:0};function Bbt(e){Iw(e)&&(e.__curvenessList=[],e.__edgeMap={},bK(e))}function Vbt(e,t,r,n){if(Iw(r)){var a=jy(e,t,r),i=r.__edgeMap,o=i[xK(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(n)}}function SN(e,t,r,n){var a=Iw(t),i=Y(a);if(!a)return null;var o=kbt(e,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===r){s=l;break}var u=zbt(e,t);bK(t,u),e.lineStyle=e.lineStyle||{};var f=jy(e.node1,e.node2,t),c=t.__curvenessList,v=i||u%2?0:1;if(o.isForward)return c[v+s];var h=xK(f),d=ZL(h,t),p=c[s+d+v];return n?i?a&&a[0]===0?(d+v)%2?p:-p:((d%2?0:1)+v)%2?p:-p:(d+v)%2?p:-p:c[s+d+v]}var Cn="graph",Gbt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new Kd(a,a),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),ec(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var a=r.edges||r.links||[],i=r.data||r.nodes||[],o=this;if(i&&a){Bbt(this);var s=_N(i,a,this,!0,l);return D(s.edges,function(u){Vbt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var c=Ot.prototype.getModel;function v(d,p){var g=c.call(this,d,p);return g.resolveParentPath=h,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=h,d.getModel=v,d});function h(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(r,a),s=i.graph.getEdgeByIndex(r),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),Ke("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=Z$({series:this,dataIndex:r,multipleSeries:n});return c},t.prototype._updateCategoriesData=function(){var r=X(this.option.categories||[],function(a){return a.value!=null?a:U({value:0},a)}),n=new sn(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.prototype.__ownRoamView=function(){var r=this.coordinateSystem;return Fq(r)&&r},t.type="series."+Cn,t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:V.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:V.color.primary}}},t}(ne);function g_(e){return e instanceof Array||(e=[e,e]),e}var Hbt=or(Cn,Ubt);function Ubt(e){e.eachSeriesByType(Cn,function(t){var r=t.getGraph(),n=t.getEdgeData(),a=g_(t.get("edgeSymbol")),i=g_(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=r.getEdgeByIndex(o),u=g_(s.getShallow("symbol",!0)),f=g_(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),v=n.ensureUniqueItemVisual(o,"style");switch(U(v,c),v.stroke){case"source":{var h=l.node1.getVisual("style");v.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");v.stroke=h&&h.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}function wK(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view")){var r=e.getGraph();r.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),bN(r,e)}}function bN(e,t){e.eachEdge(function(r,n){var a=zn(r.getModel().get(["lineStyle","curveness"]),-SN(r,t,n,!0),0),i=oo(r.node1.getLayout()),o=oo(r.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),r.setLayout(s)})}var Fbt=or(Cn,Ybt);function Ybt(e,t){e.eachSeriesByType(Cn,function(r){var n=r.get("layout"),a=r.coordinateSystem;if(a&&a.type!=="view"){var i=r.getData(),o=[];D(a.dimensions,function(v){o=o.concat(i.mapDimensionsAll(v))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var c=i.get(o[f],s);isNaN(c)||(u=!0),l.push(c)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}bN(i.graph,r)}else(!n||n==="none")&&wK(r)})}function ig(e){var t=e.coordinateSystem;return Fq(t)?Wq(t,e):1}function og(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var ZG=Math.PI,AA=[];function xN(e,t,r,n){var a=e.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=e.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,f=Math.min(i.width,i.height)/2,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(r){var v=a.pointToData(n),h=v[0],d=v[1],p=[h-l,d-u];Gc(p,p),Ag(p,p,f),r.setLayout([l+p[0],u+p[1]],!0);var g=e.get(["circular","rotateLabel"]);TK(r,g,l,u)}jbt[t](e,s,o,f,l,u,c),s.eachEdge(function(y,m){var _=zn(y.getModel().get(["lineStyle","curveness"]),SN(y,e,m),0),S=oo(y.node1.getLayout()),b=oo(y.node2.getLayout()),x,w=(S[0]+b[0])/2,T=(S[1]+b[1])/2;+_&&(_*=3,x=[l*_+w*(1-_),u*_+T*(1-_)]),y.setLayout([S,b,x])})}}}var jbt={value:function(e,t,r,n,a,i,o){var s=0,l=r.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(f){var c=f.getValue("value"),v=u*(l?c:1)/2;s+=v,f.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=v})},symbolSize:function(e,t,r,n,a,i,o){var s=0;AA.length=o;var l=ig(e);t.eachNode(function(c){var v=og(c);isNaN(v)&&(v=2),v<0&&(v=0),v*=l;var h=Math.asin(v/2/n);isNaN(h)&&(h=ZG/2),AA[c.dataIndex]=h,s+=h*2});var u=(2*ZG-s)/o/2,f=0;t.eachNode(function(c){var v=u+AA[c.dataIndex];f+=v,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([n*Math.cos(f)+a,n*Math.sin(f)+i]),f+=v})}};function TK(e,t,r,n){var a=e.getGraphicEl();if(a){var i=e.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(t){var l=e.getLayout(),u=Math.atan2(l[1]-n,l[0]-r);u<0&&(u=Math.PI*2+u);var f=l[0]<r;f&&(u=u-Math.PI);var c=f?"left":"right";s.setTextConfig({rotation:-u,position:c,origin:"center"});var v=s.ensureState("emphasis");U(v.textConfig||(v.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}var Xbt=or(Cn,$bt);function $bt(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&xN(t,"symbolSize")})}var Sv=O1;function Wbt(e,t,r){for(var n=e,a=t,i=r.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=r.gravity==null?.1:r.gravity,f=0;f<n.length;f++){var c=n[f];c.p||(c.p=pu(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=oo(c.p),c.edges=null}var v=r.friction==null?.6:r.friction,h=v,d,p;return{warmUp:function(){h=v*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){d=g},afterStep:function(g){p=g},step:function(g){d&&d(n,a);for(var y=[],m=n.length,_=0;_<a.length;_++){var S=a[_];if(!S.ignoreForceLayout){var b=S.n1,x=S.n2;_l(y,x.p,b.p);var w=uy(y)-S.d,T=x.w/(b.w+x.w);isNaN(T)&&(T=0),Gc(y,y),!b.fixed&&Sv(b.p,b.p,y,T*w*h),!x.fixed&&Sv(x.p,x.p,y,-(1-T)*w*h)}}for(var _=0;_<m;_++){var C=n[_];C.fixed||(_l(y,l,C.p),Sv(C.p,C.p,y,u*h))}for(var _=0;_<m;_++)for(var b=n[_],A=_+1;A<m;A++){var x=n[A];_l(y,x.p,b.p);var w=uy(y);w===0&&(os(y,Math.random()-.5,Math.random()-.5),w=1);var M=(b.rep+x.rep)/w/w;!b.fixed&&Sv(b.pp,b.pp,y,M),!x.fixed&&Sv(x.pp,x.pp,y,-M)}for(var L=[],_=0;_<m;_++){var C=n[_];C.fixed||(_l(L,C.p,C.pp),Sv(C.p,C.p,L,h),Ir(C.pp,C.p))}h=h*.992;var E=h<.01;p&&p(n,a,E),g&&g(E)}}}var Zbt=or(Cn,qbt);function qbt(e){e.eachSeriesByType(Cn,function(t){var r=t.coordinateSystem;if(!(r&&r.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},a=t.getGraph(),i=a.data,o=a.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,n[S]||[NaN,NaN])}):!l||l==="none"?wK(t):l==="circular"&&xN(t,"value");var u=i.getDataExtent("value"),f=o.getDataExtent("value"),c=s.get("repulsion"),v=s.get("edgeLength"),h=Y(c)?c:[c,c],d=Y(v)?v:[v,v];d=[d[1],d[0]];var p=i.mapArray("value",function(_,S){var b=i.getItemLayout(S),x=Xt(_,u,h);return isNaN(x)&&(x=(h[0]+h[1])/2),{w:x,rep:x,fixed:i.getItemModel(S).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),g=o.mapArray("value",function(_,S){var b=a.getEdgeByIndex(S),x=Xt(_,f,d);isNaN(x)&&(x=(d[0]+d[1])/2);var w=b.getModel(),T=zn(b.getModel().get(["lineStyle","curveness"]),-SN(b,t,S,!0),0);return{n1:p[b.node1.dataIndex],n2:p[b.node2.dataIndex],d:x,curveness:T,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=r.getBoundingRect(),m=Wbt(p,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var b=0,x=_.length;b<x;b++)_[b].fixed&&Ir(_[b].p,a.getNodeByIndex(b).getLayout())}),m.afterStep(function(_,S,b){for(var x=0,w=_.length;x<w;x++)_[x].fixed||a.getNodeByIndex(x).setLayout(_[x].p),n[i.getId(x)]=_[x].p;for(var x=0,w=S.length;x<w;x++){var T=S[x],C=a.getEdgeByIndex(x),A=T.n1.p,M=T.n2.p,L=C.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],Ir(L[0],A),Ir(L[1],M),+T.curveness&&(L[2]=[(A[0]+M[0])/2-(A[1]-M[1])*T.curveness,(A[1]+M[1])/2-(M[0]-A[0])*T.curveness]),C.setLayout(L)}}),t.forceLayout=m,t.preservedPoints=n,m.step()}else t.forceLayout=null})}function Kbt(e,t,r){var n=sr(e,t),a=U(e.getBoxLayoutParams(),{aspect:r}),i=xe(a,n.refContainer);return p$(e,i,r)}function Qbt(e,t){var r=[];return e.eachSeriesByType("graph",function(n){Rm({targetModel:n,coordSysType:"view",coordSysProvider:a,isDefaultDataCoordSys:!0});function a(){var i=n.getData(),o=i.mapArray(function(d){var p=i.getItemModel(d);return[+p.get("x"),+p.get("y")]}),s=[],l=[];rw(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),f=Kbt(n,t,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var c=l[0]-s[0],v=l[1]-s[1],h=vN(n,t,s[0],s[1],c,v,f);return r.push(h),h}}),r}var qG=je.prototype,MA=Nd.prototype,CK=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(CK);function DA(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var AK=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:V.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new CK},t.prototype.buildPath=function(r,n){DA(n)?qG.buildPath.call(this,r,n):MA.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return DA(this.shape)?qG.pointAt.call(this,r):MA.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,a=DA(n)?[n.x2-n.x1,n.y2-n.y1]:MA.tangentAt.call(this,r);return Gc(a,a)},t}(Rt),EA=["fromSymbol","toSymbol"];function KG(e){return"_"+e+"Type"}function QG(e,t,r){var n=t.getItemVisual(r,e);if(!n||n==="none")return n;var a=t.getItemVisual(r,e+"Size"),i=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=Yd(a),u=qc(o||0,l);return n+l+u+(i||"")+(s||"")}function JG(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var a=t.getItemVisual(r,e+"Size"),i=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=Yd(a),u=qc(o||0,l),f=$e(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=e,f}}function Jbt(e){var t=new AK({name:"line",subPixelOptimize:!0});return qL(t.shape,e),t}function qL(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var r=t[2];r?(e.cpx1=r[0],e.cpy1=r[1]):(e.cpx1=NaN,e.cpy1=NaN)}var wN=function(e){G(t,e);function t(r,n,a){var i=e.call(this)||this;return i._createLine(r,n,a),i}return t.prototype._createLine=function(r,n,a){var i=r.hostModel,o=r.getItemLayout(n),s=r.getItemVisual(n,"z2"),l=Jbt(o);l.shape.percent=0,ye(l,{z2:ot(s,0),shape:{percent:1}},i,n),this.add(l),D(EA,function(u){var f=JG(u,r,n);this.add(f),this[KG(u)]=QG(u,r,n)},this),this._updateCommonStl(r,n,a)},t.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};qL(l.shape,s),jt(o,l,i,n),D(EA,function(u){var f=QG(u,r,n),c=KG(u);if(this[c]!==f){this.remove(this.childOfName(u));var v=JG(u,r,n);this.add(v)}this[c]=f},this),this._updateCommonStl(r,n,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,f=a&&a.labelStatesModels,c=a&&a.emphasisDisabled,v=a&&a.focus,h=a&&a.blurScope;if(!a||r.hasItemOption){var d=r.getItemModel(n),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),v=p.get("focus"),h=p.get("blurScope"),f=ir(d)}var g=r.getItemVisual(n,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,D(EA,function(x){var w=this.childOfName(x);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var T=0;T<Tn.length;T++){var C=Tn[T],A=o.getState(C);if(A){var M=A.style||{},L=w.ensureState(C),E=L.style||(L.style={});M.stroke!=null&&(E[w.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(E.opacity=M.opacity)}}w.markRedraw()}},this);var m=i.getRawValue(n);yr(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(x,w){return i.getFormattedLabel(x,w,r.dataType)}},inheritColor:y||V.color.neutral99,defaultOpacity:g.opacity,defaultText:(m==null?r.getName(n):isFinite(m)?Yt(m,10):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var b=S.get("distance");Y(b)||(b=[b,b]),_.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),Ae(this,v,h,c)},t.prototype.highlight=function(){Ds(this)},t.prototype.downplay=function(){Es(this)},t.prototype.updateLayout=function(r,n){this.childOfName("line").stopAnimation(),this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");qL(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),a=r.childOfName("toSymbol"),i=r.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),v=_l([],c,f);Gc(v,v);function h(A,M){var L=A.__specifiedRotation;if(L==null){var E=l.tangentAt(M);A.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(E[1],E[0]))}else A.attr("rotation",L)}if(n&&(n.setPosition(f),h(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(c),h(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,p=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),b=[S[1],-S[0]],x=l.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);c[0]<f[0]&&(T=Math.PI+T),i.rotation=T}var C=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-m,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=m,p="top";break;default:C=0,p="middle"}switch(i.__position){case"end":i.x=v[0]*y+c[0],i.y=v[1]*m+c[1],d=v[0]>.8?"left":v[0]<-.8?"right":"center",p=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":i.x=-v[0]*y+f[0],i.y=-v[1]*m+f[1],d=v[0]>.8?"right":v[0]<-.8?"left":"center",p=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+C,d=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+C,d="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+c[0],i.y=c[1]+C,d=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},t}(ct),TN=function(){function e(t){this.group=new ct,this._LineCtor=t||wN}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var o=tH(t);t.diff(i).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=tH(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[];function a(l){!l.isGroup&&!txt(l)&&(l.incremental=n,l.ensureState("emphasis").hoverLayer=zd)}for(var i=t.start;i<t.end;i++){var o=r.getItemLayout(i);if(LA(o)){var s=new this._LineCtor(r,i,this._seriesScope);s.traverse(a),this.group.add(s),r.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){gu(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var a=t.getItemLayout(r);if(LA(a)){var i=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,i),this.group.add(i)}},e.prototype._doUpdate=function(t,r,n,a,i){var o=t.getItemGraphicEl(n);if(!LA(r.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(r,a,i):o=new this._LineCtor(r,a,i),r.setItemGraphicEl(a,o),this.group.add(o)},e}();function txt(e){return e.animators&&e.animators.length>0}function tH(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:ir(t)}}function eH(e){return isNaN(e[0])||isNaN(e[1])}function LA(e){return e&&!eH(e[0])&&!eH(e[1])}var OA=[],RA=[],IA=[],bv=wr,PA=kl,rH=Math.abs;function nH(e,t,r){for(var n=e[0],a=e[1],i=e[2],o=1/0,s,l=r*r,u=.1,f=.1;f<=.9;f+=.1){OA[0]=bv(n[0],a[0],i[0],f),OA[1]=bv(n[1],a[1],i[1],f);var c=rH(PA(OA,t)-l);c<o&&(o=c,s=f)}for(var v=0;v<32;v++){var h=s+u;RA[0]=bv(n[0],a[0],i[0],s),RA[1]=bv(n[1],a[1],i[1],s),IA[0]=bv(n[0],a[0],i[0],h),IA[1]=bv(n[1],a[1],i[1],h);var c=PA(RA,t)-l;if(rH(c)<.01)break;var d=PA(IA,t)-l;u/=2,c<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function NA(e,t){var r=[],n=fy,a=[[],[],[]],i=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[oo(u[0]),oo(u[1])],u[2]&&u.__original.push(oo(u[2])));var v=u.__original;if(u[2]!=null){if(Ir(a[0],v[0]),Ir(a[1],v[2]),Ir(a[2],v[1]),f&&f!=="none"){var h=og(s.node1),d=nH(a,v[0],h*t);n(a[0][0],a[1][0],a[2][0],d,r),a[0][0]=r[3],a[1][0]=r[4],n(a[0][1],a[1][1],a[2][1],d,r),a[0][1]=r[3],a[1][1]=r[4]}if(c&&c!=="none"){var h=og(s.node2),d=nH(a,v[1],h*t);n(a[0][0],a[1][0],a[2][0],d,r),a[1][0]=r[1],a[2][0]=r[2],n(a[0][1],a[1][1],a[2][1],d,r),a[1][1]=r[1],a[2][1]=r[2]}Ir(u[0],a[0]),Ir(u[1],a[2]),Ir(u[2],a[1])}else{if(Ir(i[0],v[0]),Ir(i[1],v[1]),_l(o,i[1],i[0]),Gc(o,o),f&&f!=="none"){var h=og(s.node1);O1(i[0],i[0],o,h*t)}if(c&&c!=="none"){var h=og(s.node2);O1(i[1],i[1],o,-h*t)}Ir(u[0],i[0]),Ir(u[1],i[1])}})}var MK=Tt();function ext(e){if(e)return MK(e).bridge}function aH(e,t){e&&(MK(e).bridge=t)}var rxt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Cn,r}return t.prototype.init=function(r,n){var a=new Vm,i=new TN,o=this.group,s=new ct;this._controller=new Jc(n.getZr()),s.add(a.group),s.add(i.group),o.add(s),this._symbolDraw=a,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},t.prototype.render=function(r,n,a){var i=this,o=Eb(r),s=!1;this._model=r,this._api=a,this._active=!0;var l=this._mainGroup,u=this._getThumbnailInfo();u&&u.bridge.reset(a);var f=this._symbolDraw,c=this._lineDraw;o&&ru(l,Co,o,this._firstRender?null:r),NA(r.getGraph(),ig(r));var v=r.getData();f.updateData(v);var h=r.getEdgeData();c.updateData(h),this._updateNodeAndLinkScale(),o&&Ow(r,a,this._controller,function(S,b,x){return r.coordinateSystem.containPoint([b,x])},null),clearTimeout(this._layoutTimeout);var d=r.forceLayout,p=r.get(["force","layoutAnimation"]);d&&(s=!0,this._startForceLayoutIteration(d,a,p));var g=r.get("layout");v.graph.eachNode(function(S){var b=S.dataIndex,x=S.getGraphicEl(),w=S.getModel();if(x){x.off("drag").off("dragend");var T=w.get("draggable");T&&x.on("drag",function(A){switch(g){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,a,p),d.setFixed(b),v.setItemLayout(b,[x.x,x.y]);break;case"circular":v.setItemLayout(b,[x.x,x.y]),S.setLayout({fixed:!0},!0),xN(r,"symbolSize",S,[A.offsetX,A.offsetY]),i.updateLayout(r);break;case"none":default:v.setItemLayout(b,[x.x,x.y]),bN(r.getGraph(),r),i.updateLayout(r);break}}).on("dragend",function(){d&&d.setUnfixed(b)}),x.setDraggable(T,!!w.get("cursor"));var C=w.get(["emphasis","focus"]);C==="adjacency"&&(yt(x).focus=S.getAdjacentDataIndices())}}),v.graph.eachEdge(function(S){var b=S.getGraphicEl(),x=S.getModel().get(["emphasis","focus"]);b&&x==="adjacency"&&(yt(b).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var y=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),m=v.getLayout("cx"),_=v.getLayout("cy");v.graph.eachNode(function(S){TK(S,y,m,_)}),this._firstRender=!1,s||this._renderThumbnail(r,a,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},t.prototype._startForceLayoutIteration=function(r,n,a){var i=this,o=!1;(function s(){r.step(function(l){i.updateLayout(i._model),(l||!o)&&(o=!0,i._renderThumbnail(i._model,n,i._symbolDraw,i._lineDraw)),(i._layouting=!l)&&(a?i._layoutTimeout=setTimeout(s,16):s())})})()},t.prototype.__updateOnOwnRoam=function(r,n,a){var i=Eb(n);!this._active||!i||(ru(this._mainGroup,Co,i,null),Kq(r)&&(this._updateNodeAndLinkScale(),NA(n.getGraph(),ig(n)),this._lineDraw.updateLayout(),a.updateLabelLayout()),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),a=ig(r);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(r){this._active&&(NA(r.getGraph(),ig(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var r=this._model,n=r.coordinateSystem;if(n.type==="view"){var a=ext(r);if(a)return{bridge:a,coordSys:n}}},t.prototype._updateThumbnailWindow=function(){var r=this._getThumbnailInfo();r&&r.bridge.updateWindow(Mb(null,r.coordSys),this._api)},t.prototype._renderThumbnail=function(r,n,a,i){var o=this._getThumbnailInfo();if(o){var s=new ct,l=a.group.children(),u=i.group.children(),f=new ct,c=new ct;s.add(c),s.add(f);for(var v=0;v<l.length;v++){var h=l[v],d=h.children()[0],p=h.x,g=h.y,y=st(d.shape),m=U(y,{width:d.scaleX,height:d.scaleY,x:p-d.scaleX/2,y:g-d.scaleY/2}),_=st(d.style),S=new d.constructor({shape:m,style:_,z2:151});c.add(S)}for(var v=0;v<u.length;v++){var h=u[v],b=h.children()[0],_=st(b.style),m=st(b.shape),x=new AK({style:_,shape:m,z2:151});f.add(x)}o.bridge.renderContent({api:n,roamType:r.get("roam"),viewportRect:null,group:s,targetTrans:Mb(null,o.coordSys)})}},t.type=Cn,t}(ee),nxt=or(Cn,axt);function axt(e){var t=e.findComponents({mainType:"legend"});!t||!t.length||e.eachSeriesByType(Cn,function(r){var n=r.getCategoriesData(),a=r.getGraph(),i=a.data,o=n.mapArray(n.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){Ut(u)&&(u=o[u]);for(var f=0;f<t.length;f++)if(!t[f].isSelected(u))return!1}return!0})})}var ixt=or(Cn,oxt);function oxt(e){var t={};e.eachSeriesByType(Cn,function(r){var n=r.getCategoriesData(),a=r.getData(),i={};n.each(function(o){var s=n.getName(o);i["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=r.getColorFromPalette(s,t)),n.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],c=0;c<f.length;c++){var v=l.getShallow(f[c],!0);v!=null&&n.setItemVisual(o,f[c],v)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){J(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),f=a.ensureUniqueItemVisual(o,"style");U(f,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],v=0;v<c.length;v++)a.setItemVisual(o,c[v],n.getItemVisual(l,c[v]))}})})}function sxt(e){e.registerChartView(rxt),e.registerSeriesModel(Gbt),e.registerProcessor(nxt),e.registerVisual(ixt),e.registerVisual(Hbt),e.registerLayout(Fbt),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,Xbt),e.registerLayout(Zbt),e.registerCoordinateSystem("graphView",{dimensions:Ew.dimensions,create:Qbt}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Pe),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Pe),cN(e,xo,Cn)}var Xy="chord",lxt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this.legendVisualProvider=new Kd(rt(this.getData,this),rt(this.getRawData,this))},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links)},t.prototype.getInitialData=function(r,n){var a=r.edges||r.links||[],i=r.data||r.nodes||[];if(i&&a){var o=_N(i,a,this,!0,s);return o.data}function s(l,u){var f=Ot.prototype.getModel;function c(h,d){var p=f.call(this,h,d);return p.resolveParentPath=v,p}u.wrapMethod("getItemModel",function(h){return h.resolveParentPath=v,h.getModel=c,h});function v(h){if(h&&(h[0]==="label"||h[1]==="label")){var d=h.slice();return h[0]==="label"?d[0]="edgeLabel":h[1]==="label"&&(d[1]="edgeLabel"),d}return h}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,a){var i=this.getDataParams(r,a);if(a==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(r),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),Ke("nameValue",{name:f.join(" > "),value:i.value,noValue:i.value==null})}return Ke("nameValue",{name:i.name,value:i.value,noValue:i.value==null})},t.prototype.getDataParams=function(r,n){var a=e.prototype.getDataParams.call(this,r,n);if(n==="node"){var i=this.getData(),o=this.getGraph().getNodeByIndex(r);if(a.name==null&&(a.name=i.getName(r)),a.value==null){var s=o.getLayout().value;a.value=s}}return a},t.type="series."+Xy,t.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},t}(ne),iH=function(e){G(t,e);function t(r,n,a){var i=e.call(this)||this;yt(i).dataType="node",i.z2=2;var o=new Ht;return i.setTextContent(o),i.updateData(r,n,a,!0),i}return t.prototype.updateData=function(r,n,a,i){var o=this,s=r.graph.getNodeByIndex(n),l=r.hostModel,u=s.getModel(),f=u.getModel("emphasis"),c=r.getItemLayout(n),v=U(Ji(u.getModel("itemStyle"),c,!0),c),h=this;if(isNaN(v.startAngle)){h.setShape(v);return}i?h.setShape(v):jt(h,{shape:v},l,n);var d=U(Ji(u.getModel("itemStyle"),c,!0),c);o.setShape(d),o.useStyle(r.getItemVisual(n,"style")),ar(o,u),this._updateLabel(l,u,s),r.setItemGraphicEl(n,h),ar(h,u,"itemStyle");var p=f.get("focus");Ae(this,p==="adjacency"?s.getAdjacentDataIndices():p,f.get("blurScope"),f.get("disabled"))},t.prototype._updateLabel=function(r,n,a){var i=this.getTextContent(),o=a.getLayout(),s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=n.getModel("label");i.ignore=!f.get("show");var c=ir(n),v=a.getVisual("style");yr(i,c,{labelFetcher:{getFormattedLabel:function(m,_,S,b,x,w){return r.getFormattedLabel(m,_,"node",b,zn(x,c.normal&&c.normal.get("formatter"),n.get("name")),w)}},labelDataIndex:a.dataIndex,defaultText:a.dataIndex+"",inheritColor:v.fill,defaultOpacity:v.opacity,defaultOutsidePosition:"startArc"});var h=f.get("position")||"outside",d=f.get("distance")||0,p;h==="outside"?p=o.r+d:p=(o.r+o.r0)/2,this.textConfig={inside:h!=="outside"};var g=h!=="outside"?f.get("align")||"center":l>0?"left":"right",y=h!=="outside"?f.get("verticalAlign")||"middle":u>0?"top":"bottom";i.attr({x:l*p+o.cx,y:u*p+o.cy,rotation:0,style:{align:g,verticalAlign:y}})},t}(Wr),uxt=function(e){G(t,e);function t(r,n,a,i){var o=e.call(this)||this;return yt(o).dataType="edge",o.updateData(r,n,a,i,!0),o}return t.prototype.buildPath=function(r,n){r.moveTo(n.s1[0],n.s1[1]);var a=.7,i=n.clockwise;r.arc(n.cx,n.cy,n.r,n.sStartAngle,n.sEndAngle,!i),r.bezierCurveTo((n.cx-n.s2[0])*a+n.s2[0],(n.cy-n.s2[1])*a+n.s2[1],(n.cx-n.t1[0])*a+n.t1[0],(n.cy-n.t1[1])*a+n.t1[1],n.t1[0],n.t1[1]),r.arc(n.cx,n.cy,n.r,n.tStartAngle,n.tEndAngle,!i),r.bezierCurveTo((n.cx-n.t2[0])*a+n.t2[0],(n.cy-n.t2[1])*a+n.t2[1],(n.cx-n.s1[0])*a+n.s1[0],(n.cy-n.s1[1])*a+n.s1[1],n.s1[0],n.s1[1]),r.closePath()},t.prototype.updateData=function(r,n,a,i,o){var s=r.hostModel,l=n.graph.getEdgeByIndex(a),u=l.getLayout(),f=l.node1.getModel(),c=n.getItemModel(l.dataIndex),v=c.getModel("lineStyle"),h=c.getModel("emphasis"),d=h.get("focus"),p=U(Ji(f.getModel("itemStyle"),u,!0),u),g=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){g.setShape(p);return}o?(g.setShape(p),oH(g,l,r,v)):(Wa(g),oH(g,l,r,v),jt(g,{shape:p},s,a)),Ae(this,d==="adjacency"?l.getAdjacentDataIndices():d,h.get("blurScope"),h.get("disabled")),ar(g,c,"lineStyle"),n.setItemGraphicEl(l.dataIndex,g)},t}(Rt);function oH(e,t,r,n){var a=t.node1,i=t.node2,o=e.style;e.setStyle(n.getLineStyle());var s=n.get("color");switch(s){case"source":o.fill=r.getItemVisual(a.dataIndex,"style").fill,o.decal=a.getVisual("style").decal;break;case"target":o.fill=r.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var l=r.getItemVisual(a.dataIndex,"style").fill,u=r.getItemVisual(i.dataIndex,"style").fill;if(J(l)&&J(u)){var f=e.shape,c=(f.s1[0]+f.s2[0])/2,v=(f.s1[1]+f.s2[1])/2,h=(f.t1[0]+f.t2[0])/2,d=(f.t1[1]+f.t2[1])/2;o.fill=new jc(c,v,h,d,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var fxt=Math.PI/180,cxt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Xy,r}return t.prototype.init=function(r,n){},t.prototype.render=function(r,n,a){var i=r.getData(),o=this._data,s=this.group,l=-r.get("startAngle")*fxt;if(i.diff(o).add(function(f){var c=i.getItemLayout(f);if(c){var v=new iH(i,f,l);yt(v).dataIndex=f,s.add(v)}}).update(function(f,c){var v=o.getItemGraphicEl(c),h=i.getItemLayout(f);if(!h){v&&us(v,r,c);return}v?v.updateData(i,f,l):v=new iH(i,f,l),s.add(v)}).remove(function(f){var c=o.getItemGraphicEl(f);c&&us(c,r,f)}).execute(),!o){var u=r.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=et(u[0],a.getWidth()),this.group.originY=et(u[1],a.getHeight()),ye(this.group,{scaleX:1,scaleY:1},r)}this._data=i,this.renderEdges(r,l)},t.prototype.renderEdges=function(r,n){var a=r.getData(),i=r.getEdgeData(),o=this._edgeData,s=this.group;i.diff(o).add(function(l){var u=new uxt(a,i,l,n);yt(u).dataIndex=l,s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(a,i,l,n),s.add(f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&us(u,r,l)}).execute(),this._edgeData=i},t.prototype.dispose=function(){},t.type=Xy,t}(ee),kA=Math.PI/180,vxt=or(Xy,hxt);function hxt(e,t){e.eachSeriesByType(Xy,function(r){dxt(r,t)})}function dxt(e,t){var r=e.getData(),n=r.graph,a=e.getEdgeData(),i=a.count();if(i){var o=d$(e,t),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=Math.max((e.get("padAngle")||0)*kA,0),v=Math.max((e.get("minAngle")||0)*kA,0),h=-e.get("startAngle")*kA,d=h+Math.PI*2,p=e.get("clockwise"),g=p?1:-1,y=[h,d];nw(y,!p);var m=y[0],_=y[1],S=_-m,b=r.getSum("value")===0&&a.getSum("value")===0,x=[],w=0;n.eachEdge(function(P){var z=b?1:P.getValue("value");b&&(z>0||v)&&(w+=2);var B=P.node1.dataIndex,H=P.node2.dataIndex;x[B]=(x[B]||0)+z,x[H]=(x[H]||0)+z});var T=0;if(n.eachNode(function(P){var z=P.getValue("value");isNaN(z)||(x[P.dataIndex]=Math.max(z,x[P.dataIndex]||0)),!b&&(x[P.dataIndex]>0||v)&&w++,T+=x[P.dataIndex]||0}),!(w===0||T===0)){c*w>=Math.abs(S)&&(c=Math.max(0,(Math.abs(S)-v*w)/w)),(c+v)*w>=Math.abs(S)&&(v=(Math.abs(S)-c*w)/w);var C=(S-c*w*g)/T,A=0,M=0,L=0;n.eachNode(function(P){var z=x[P.dataIndex]||0,B=C*(T?z:1)*g;Math.abs(B)<v?A+=v-Math.abs(B):(M+=Math.abs(B)-v,L+=Math.abs(B)),P.setLayout({angle:B,value:z})});var E=!1;if(A>M){var R=A/M;n.eachNode(function(P){var z=P.getLayout().angle;Math.abs(z)>=v?P.setLayout({angle:z*R,ratio:R},!0):P.setLayout({angle:v,ratio:v===0?1:z/v},!0)})}else n.eachNode(function(P){if(!E){var z=P.getLayout().angle,B=Math.min(z/L,1),H=B*A;z-H<v&&(E=!0)}});var I=A;n.eachNode(function(P){if(!(I<=0)){var z=P.getLayout().angle;if(z>v&&v>0){var B=E?1:Math.min(z/L,1),H=z-v,F=Math.min(H,Math.min(I,A*B));I-=F,P.setLayout({angle:z-F,ratio:(z-F)/z},!0)}else v>0&&P.setLayout({angle:v,ratio:z===0?1:v/z},!0)}});var O=m,N=[];n.eachNode(function(P){var z=Math.max(P.getLayout().angle,v);P.setLayout({cx:s,cy:l,r0:f,r:u,startAngle:O,endAngle:O+z*g,clockwise:p},!0),N[P.dataIndex]=O,O+=(z+c)*g}),n.eachEdge(function(P){var z=b?1:P.getValue("value"),B=C*(T?z:1)*g,H=P.node1.dataIndex,F=N[H]||0,$=Math.abs((P.node1.getLayout().ratio||1)*B),j=F+$*g,tt=[s+f*Math.cos(F),l+f*Math.sin(F)],mt=[s+f*Math.cos(j),l+f*Math.sin(j)],Nt=P.node2.dataIndex,Q=N[Nt]||0,q=Math.abs((P.node2.getLayout().ratio||1)*B),ht=Q+q*g,K=[s+f*Math.cos(Q),l+f*Math.sin(Q)],at=[s+f*Math.cos(ht),l+f*Math.sin(ht)];P.setLayout({s1:tt,s2:mt,sStartAngle:F,sEndAngle:j,t1:K,t2:at,tStartAngle:Q,tEndAngle:ht,cx:s,cy:l,r:f,value:z,clockwise:p}),N[H]=j,N[Nt]=ht})}}}function pxt(e){e.registerChartView(cxt),e.registerSeriesModel(lxt),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,vxt),e.registerProcessor(Um("chord"))}var gxt=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),yxt=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new gxt},t.prototype.buildPath=function(r,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),f=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,f),r.lineTo(n.x+a(l)*s,n.y+i(l)*s),r.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),r.lineTo(n.x-a(l)*s,n.y-i(l)*s),r.lineTo(u,f)},t}(Rt);function mxt(e,t){var r=e.get("center"),n=t.getWidth(),a=t.getHeight(),i=Math.min(n,a),o=et(r[0],t.getWidth()),s=et(r[1],t.getHeight()),l=et(e.get("radius"),i/2);return{cx:o,cy:s,r:l}}function y_(e,t){var r=e==null?"":e+"";return t&&(J(t)?r=t.replace("{value}",r):ut(t)&&(r=t(e))),r}var _xt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){this.group.removeAll();var i=r.get(["axisLine","lineStyle","color"]),o=mxt(r,a);this._renderMain(r,n,a,i,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,a,i,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,f=-r.get("endAngle")/180*Math.PI,c=r.getModel("axisLine"),v=c.get("roundCap"),h=v?Tb:Wr,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),y=[u,f];nw(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],b=0;d&&b<i.length;b++){var x=Math.min(Math.max(i[b][0],0),1);f=u+m*x;var w=new h({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});w.setStyle({fill:i[b][1]}),w.setStyle(p.getLineStyle(["color","width"])),S.push(w),_=f}S.reverse(),D(S,function(C){return s.add(C)});var T=function(C){if(C<=0)return i[0][1];var A;for(A=0;A<i.length;A++)if(i[A][0]>=C&&(A===0?0:i[A-1][0])<C)return i[A][1];return i[A-1][1]};this._renderTicks(r,n,a,T,o,u,f,l,g),this._renderTitleAndDetail(r,n,a,T,o),this._renderAnchor(r,o),this._renderPointer(r,n,a,T,o,u,f,l,g)},t.prototype._renderTicks=function(r,n,a,i,o,s,l,u,f){for(var c=this.group,v=o.cx,h=o.cy,d=o.r,p=+r.get("min"),g=+r.get("max"),y=r.getModel("splitLine"),m=r.getModel("axisTick"),_=r.getModel("axisLabel"),S=r.get("splitNumber"),b=m.get("splitNumber"),x=et(y.get("length"),d),w=et(m.get("length"),d),T=s,C=(l-s)/S,A=C/b,M=y.getModel("lineStyle").getLineStyle(),L=m.getModel("lineStyle").getLineStyle(),E=y.get("distance"),R,I,O=0;O<=S;O++){if(R=Math.cos(T),I=Math.sin(T),y.get("show")){var N=E?E+f:f,P=new je({shape:{x1:R*(d-N)+v,y1:I*(d-N)+h,x2:R*(d-x-N)+v,y2:I*(d-x-N)+h},style:M,silent:!0});M.stroke==="auto"&&P.setStyle({stroke:i(O/S)}),c.add(P)}if(_.get("show")){var N=_.get("distance")+E,z=y_(Yt(O*(g-p)/S+p,vft),_.get("formatter")),B=i(O/S),H=R*(d-x-N)+v,F=I*(d-x-N)+h,$=_.get("rotate"),j=0;$==="radial"?(j=-T+2*Math.PI,j>Math.PI/2&&(j+=Math.PI)):$==="tangential"?j=-T-Math.PI/2:Ut($)&&(j=$*Math.PI/180),j===0?c.add(new Ht({style:se(_,{text:z,x:H,y:F,verticalAlign:I<-.8?"top":I>.8?"bottom":"middle",align:R<-.4?"left":R>.4?"right":"center"},{inheritColor:B}),silent:!0})):c.add(new Ht({style:se(_,{text:z,x:H,y:F,verticalAlign:"middle",align:"center"},{inheritColor:B}),silent:!0,originX:H,originY:F,rotation:j}))}if(m.get("show")&&O!==S){var N=m.get("distance");N=N?N+f:f;for(var tt=0;tt<=b;tt++){R=Math.cos(T),I=Math.sin(T);var mt=new je({shape:{x1:R*(d-N)+v,y1:I*(d-N)+h,x2:R*(d-w-N)+v,y2:I*(d-w-N)+h},silent:!0,style:L});L.stroke==="auto"&&mt.setStyle({stroke:i((O+tt/b)/S)}),c.add(mt),T+=A}T-=A}else T+=C}},t.prototype._renderPointer=function(r,n,a,i,o,s,l,u,f){var c=this.group,v=this._data,h=this._progressEls,d=[],p=r.get(["pointer","show"]),g=r.getModel("progress"),y=g.get("show"),m=r.getData(),_=m.mapDimension("value"),S=+r.get("min"),b=+r.get("max"),x=[S,b],w=[s,l];function T(A,M){var L=m.getItemModel(A),E=L.getModel("pointer"),R=et(E.get("width"),o.r),I=et(E.get("length"),o.r),O=r.get(["pointer","icon"]),N=E.get("offsetCenter"),P=et(N[0],o.r),z=et(N[1],o.r),B=E.get("keepAspect"),H;return O?H=$e(O,P-R/2,z-I,R,I,null,B):H=new yxt({shape:{angle:-Math.PI/2,width:R,r:I,x:P,y:z}}),H.rotation=-(M+Math.PI/2),H.x=o.cx,H.y=o.cy,H}function C(A,M){var L=g.get("roundCap"),E=L?Tb:Wr,R=g.get("overlap"),I=R?g.get("width"):f/m.count(),O=R?o.r-I:o.r-(A+1)*I,N=R?o.r:o.r-A*I,P=new E({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:O,r:N}});return R&&(P.z2=Xt(m.get(_,A),[S,b],[100,0],!0)),P}(y||p)&&(m.diff(v).add(function(A){var M=m.get(_,A);if(p){var L=T(A,s);ye(L,{rotation:-((isNaN(+M)?w[0]:Xt(M,x,w,!0))+Math.PI/2)},r),c.add(L),m.setItemGraphicEl(A,L)}if(y){var E=C(A,s),R=g.get("clip");ye(E,{shape:{endAngle:Xt(M,x,w,R)}},r),c.add(E),jE(r.seriesIndex,m.dataType,A,E),d[A]=E}}).update(function(A,M){var L=m.get(_,A);if(p){var E=v.getItemGraphicEl(M),R=E?E.rotation:s,I=T(A,R);I.rotation=R,jt(I,{rotation:-((isNaN(+L)?w[0]:Xt(L,x,w,!0))+Math.PI/2)},r),c.add(I),m.setItemGraphicEl(A,I)}if(y){var O=h[M],N=O?O.shape.endAngle:s,P=C(A,N),z=g.get("clip");jt(P,{shape:{endAngle:Xt(L,x,w,z)}},r),c.add(P),jE(r.seriesIndex,m.dataType,A,P),d[A]=P}}).execute(),m.each(function(A){var M=m.getItemModel(A),L=M.getModel("emphasis"),E=L.get("focus"),R=L.get("blurScope"),I=L.get("disabled"),O=i(Xt(m.get(_,A),x,[0,1],!0));if(p){var N=m.getItemGraphicEl(A),P=m.getItemVisual(A,"style"),z=P.fill;if(N instanceof mr){var B=N.style;N.useStyle(U({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},P))}else N.useStyle(P),N.type!=="pointer"&&N.setColor(z);N.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",O),N.z2EmphasisLift=0,ar(N,M),Ae(N,E,R,I)}if(y){var H=d[A];H.useStyle(m.getItemVisual(A,"style")),H.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),H.style.fill==="auto"&&H.setStyle("fill",O),H.z2EmphasisLift=0,ar(H,M),Ae(H,E,R,I)}}),this._progressEls=d)},t.prototype._renderAnchor=function(r,n){var a=r.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),f=$e(s,n.cx-o/2+et(l[0],n.r),n.cy-o/2+et(l[1],n.r),o,o,null,u);f.z2=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},t.prototype._renderTitleAndDetail=function(r,n,a,i,o){var s=this,l=r.getData(),u=l.mapDimension("value"),f=+r.get("min"),c=+r.get("max"),v=new ct,h=[],d=[],p=r.isAnimationEnabled(),g=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new Ht({silent:!0}),d[y]=new Ht({silent:!0})}).update(function(y,m){h[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new ct,b=i(Xt(_,[f,c],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),T=o.cx+et(w[0],o.r),C=o.cy+et(w[1],o.r),A=h[y];A.attr({z2:g?0:2,style:se(x,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(A)}var M=m.getModel("detail");if(M.get("show")){var L=M.get("offsetCenter"),E=o.cx+et(L[0],o.r),R=o.cy+et(L[1],o.r),I=et(M.get("width"),o.r),O=et(M.get("height"),o.r),N=r.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,A=d[y],P=M.get("formatter");A.attr({z2:g?0:2,style:se(M,{x:E,y:R,text:y_(_,P),width:isNaN(I)?null:I,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:N})}),jX(A,{normal:M},_,function(B){return y_(B,P)}),p&&XX(A,y,l,r,{getFormattedLabel:function(B,H,F,$,j,tt){return y_(tt?tt.interpolatedValue:_,P)}}),S.add(A)}v.add(S)}),this.group.add(v),this._titleEls=h,this._detailEls=d},t.type="gauge",t}(ee),Sxt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return qd(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,V.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:V.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:V.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:V.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:V.color.neutral00,borderWidth:0,borderColor:V.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:V.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:V.color.transparent,borderWidth:0,borderColor:V.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:V.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(ne);function bxt(e){e.registerChartView(_xt),e.registerSeriesModel(Sxt)}var cd="funnel",xxt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Kd(rt(this.getData,this),rt(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return qd(this,{coordDimensions:["value"],encodeDefaulter:At(vP,this)})},t.prototype._defaultLabelLine=function(r){ec(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),a=e.prototype.getDataParams.call(this,r),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,r)/o*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series."+cd,t.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:V.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:V.color.primary}}},t}(ne),wxt=["itemStyle","opacity"],Txt=function(e){G(t,e);function t(r,n){var a=e.call(this)||this,i=a,o=new Or,s=new Ht;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(r,n,!0),a}return t.prototype.updateData=function(r,n,a){var i=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(wxt);f=f??1,a||Wa(i),i.useStyle(r.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,ye(i,{style:{opacity:f}},o,n)):jt(i,{style:{opacity:f},shape:{points:l.points}},o,n),ar(i,s),this._updateLabel(r,n),Ae(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),f=u.label,c=r.getItemVisual(n,"style"),v=c.fill;yr(o,ir(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:r.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var h=l.getModel("label"),d=h.get("color"),p=d==="inherit"?v:null;a.setTextConfig({local:!0,inside:!!f.inside,insideStroke:p,outsideFill:p});var g=f.linePoints;i.setShape({points:g}),a.textGuideLineConfig={anchor:g?new gt(g[0][0],g[0][1]):null},jt(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),YP(a,jP(l),{stroke:v})},t}(Zr),Cxt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=cd,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new Txt(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);us(u,r,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type=cd,t}(ee);function Axt(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),a=[],i=t==="ascending",o=0,s=e.count();o<s;o++)a[o]=o;return ut(t)?a.sort(t):t!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function Mxt(e){var t=e.hostModel,r=DK(t);e.each(function(n){var a=e.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=e.getItemLayout(n),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,v,h,d;if(f)o==="insideLeft"?(v=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(v=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,c="right"):(v=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),d=[[v,h],[v,h]];else{var p=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");J(o)&&(!r&&St(["top","bottom"],o)>-1&&(o="left"),r&&St(["left","right"],o)>-1&&(o="bottom")),o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=p-_,v=y-5,c="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=p+_,v=y+5,c="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,h=m-5,c="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,h=m+5,c="center"):o==="rightTop"?(p=r?u[3][0]:u[1][0],g=r?u[3][1]:u[1][1],r?(m=g-_,h=m-5,c="center"):(y=p+_,v=y+5,c="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],r?(m=g+_,h=m+5,c="center"):(y=p+_,v=y+5,c="bottom")):o==="leftTop"?(p=u[0][0],g=r?u[0][1]:u[1][1],r?(m=g-_,h=m-5,c="center"):(y=p-_,v=y-5,c="right")):o==="leftBottom"?(p=r?u[1][0]:u[3][0],g=r?u[1][1]:u[2][1],r?(m=g+_,h=m+5,c="center"):(y=p-_,v=y-5,c="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,r?(m=g+_,h=m+5,c="center"):(y=p+_,v=y+5,c="left")),r?(y=p,v=y):(m=g,h=m),d=[[p,g],[y,m]]}l.label={linePoints:d,x:v,y:h,verticalAlign:"middle",textAlign:c,inside:f}})}var Dxt=or(cd,Ext);function Ext(e,t){e.eachSeriesByType(cd,function(r){var n=r.getData(),a=n.mapDimension("value"),i=r.get("sort"),o=sr(r,t),s=xe(r.getBoxLayoutParams(),o.refContainer),l=DK(r),u=s.width,f=s.height,c=Axt(n,i),v=s.x,h=s.y,d=l?[et(r.get("minSize"),f),et(r.get("maxSize"),f)]:[et(r.get("minSize"),u),et(r.get("maxSize"),u)],p=n.getDataExtent(a),g=r.get("min"),y=r.get("max");g==null&&(g=Math.min(p[0],0)),y==null&&(y=p[1]);var m=r.get("funnelAlign"),_=r.get("gap"),S=l?u:f,b=(S-_*(n.count()-1))/n.count(),x=function(I,O){if(l){var N=n.get(a,I)||0,P=Xt(N,[g,y],d,!0),z=void 0;switch(m){case"top":z=h;break;case"center":z=h+(f-P)/2;break;case"bottom":z=h+(f-P);break}return[[O,z],[O,z+P]]}var B=n.get(a,I)||0,H=Xt(B,[g,y],d,!0),F;switch(m){case"left":F=v;break;case"center":F=v+(u-H)/2;break;case"right":F=v+u-H;break}return[[F,O],[F+H,O]]};i==="ascending"&&(b=-b,_=-_,l?v+=u:h+=f,c=c.reverse());for(var w=0;w<c.length;w++){var T=c[w],C=c[w+1],A=n.getItemModel(T);if(l){var M=A.get(["itemStyle","width"]);M==null?M=b:(M=et(M,u),i==="ascending"&&(M=-M));var L=x(T,v),E=x(C,v+M);v+=M+_,n.setItemLayout(T,{points:L.concat(E.slice().reverse())})}else{var R=A.get(["itemStyle","height"]);R==null?R=b:(R=et(R,f),i==="ascending"&&(R=-R));var L=x(T,h),E=x(C,h+R);h+=R+_,n.setItemLayout(T,{points:L.concat(E.slice().reverse())})}}Mxt(n)})}function DK(e){return e.get("orient")==="horizontal"}function Lxt(e){e.registerChartView(Cxt),e.registerSeriesModel(xxt),e.registerLayout(Dxt),e.registerProcessor(Um(cd))}var Oxt=.3,Rxt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._dataGroup=new ct,r._initialized=!1,r}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(r,n,a,i){var o=this._dataGroup;this._progressiveEls=[],o.removeAll();var s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.dimensions,c=lH(r);s.diff(l).add(v).update(h).remove(d).execute();function v(g){var y=sH(s,o,g,f,u);zA(y,s,g,c)}function h(g,y){var m=l.getItemGraphicEl(y);o.add(m);var _=EK(s,g,f,u);s.setItemGraphicEl(g,m),jt(m,{shape:{points:_}},r,g),Wa(m),zA(m,s,g,c)}function d(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var p=Ixt(u,r,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},t.prototype.incrementalPrepareRender=function(r,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(r,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=this._progressiveEls=[],l=r.start;l<r.end;l++){var u=sH(i,this._dataGroup,l,o.dimensions,o);u.incremental=uo(n),zA(u,i,l,lH(n)),s.push(u)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(ee);function Ixt(e,t,r){var n=e.model,a=e.getRect(),i=new Et({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=n.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),ye(i,{shape:{width:a.width,height:a.height}},t,r),i}function EK(e,t,r,n){for(var a=[],i=0;i<r.length;i++){var o=r[i],s=e.get(e.mapDimension(o),t);Pxt(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function sH(e,t,r,n,a){var i=EK(e,r,n,a),o=new Or({shape:{points:i},z2:10});return t.add(o),e.setItemGraphicEl(r,o),o}function lH(e){var t=e.get("smooth",!0);return t===!0&&(t=Oxt),t=So(t),Yr(t)&&(t=0),{smooth:t}}function zA(e,t,r,n){e.useStyle(t.getItemVisual(r,"style")),e.style.fill=null,e.setShape("smooth",n.smooth);var a=t.getItemModel(r),i=a.getModel("emphasis");ar(e,a,"lineStyle"),Ae(e,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function Pxt(e,t){return t==="category"?e==null:e==null||isNaN(e)}var Nxt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.getInitialData=function(r,n){return No(null,this,{useEncodeDefaulter:rt(kxt,null,this)})},t.prototype.getRawIndicesByActiveState=function(r){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(o,s){r===o&&i.push(a.getRawIndex(s))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:300,smooth:!1,animationEasing:"linear"},t}(ne);function kxt(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var r={};return D(t.dimensions,function(n){var a=zxt(n);r[n]=a}),r}}function zxt(e){return+e.replace("dim","")}var Bxt=["lineStyle","opacity"],Vxt={seriesType:"parallel",reset:function(e,t){var r=e.coordinateSystem,n={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(a,i){r.eachActiveState(i,function(o,s){var l=n[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(Bxt,!0);u!=null&&(l=u)}var f=i.ensureUniqueItemVisual(s,"style");f.opacity=l},a.start,a.end)}}}};function Gxt(e){Hxt(e),Uxt(e)}function Hxt(e){if(!e.parallel){var t=!1;D(e.series,function(r){r&&r.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function Uxt(e){var t=ue(e.parallelAxis);D(t,function(r){if(pt(r)){var n=r.parallelIndex||0,a=ue(e.parallel)[n];a&&a.parallelAxisDefault&&wt(r,a.parallelAxisDefault,!1)}})}var Fxt=5,Yxt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){this._model=r,this._api=a,this._handlers||(this._handlers={},D(jxt,function(i,o){a.getZr().on(o,this._handlers[o]=rt(i,this))},this)),Ud(this,"_throttledDispatchExpand",r.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(r,n){Ty(this,"_throttledDispatchExpand"),D(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(r){this._dispatchExpand(r)},t.prototype._dispatchExpand=function(r){r&&this._api.dispatchAction(U({type:"parallelAxisExpand"},r))},t.type="parallel",t}(fe),jxt={mousedown:function(e){BA(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(BA(this,"click")&&t){var r=[e.offsetX,e.offsetY],n=Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2);if(n>Fxt)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!BA(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function BA(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}var Pb="parallel",KL=Pb,Xxt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&wt(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var a=r.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(r){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],a=qt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);D(a,function(i){r.push("dim"+i.get("dim")),n.push(i.componentIndex)})},t.type=KL,t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Lt),$xt=function(e){G(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Ka);function nu(e,t,r,n,a,i){e=e||0;var o=rf(r[1],-r[0]);if(a!=null&&(a=xv(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(rf(t[1],-t[0]));s=xv(s,[0,o]),a=i=xv(s,[a,i]),n=0}t[0]=xv(t[0],r),t[1]=xv(t[1],r);var l=VA(t,n);t[n]+=e;var u=a||0,f=r.slice();l.sign<0?f[0]=rf(f[0],u):f[1]=rf(f[1],-u),t[n]=xv(t[n],f);var c;return c=VA(t,n),a!=null&&(c.sign!==l.sign||c.span<a)&&(t[1-n]=rf(t[n],l.sign*a)),c=VA(t,n),i!=null&&c.span>i&&(t[1-n]=rf(t[n],c.sign*i)),t}function VA(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function xv(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Wxt=function(){function e(t,r,n){this.type=Pb,this._axesMap=nt(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var a=t.dimensions,i=t.parallelAxisIndex;D(a,function(o,s){var l=i[s],u=r.getComponent("parallelAxis",l),f=Nm(u),c=this._axesMap.set(o,new $xt(o,Xd(u,f,!1),[0,0],f,l));c.onBand=zm(c.scale,u),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){D(this.dimensions,function(n){var a=this._axesMap.get(n);vc(a,sd),ld(a)},this)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,a=r.layoutBase,i=r.pixelDimIndex,o=t[1-i],s=t[i];return o>=n&&o<=n+r.axisLength&&s>=a&&s<=a+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype.resize=function(t,r){var n=sr(t,r).refContainer;this._rect=xe(t.getBoxLayoutParams(),n),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],a=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=r[a[o]],l=[0,s],u=this.dimensions.length,f=m_(t.get("axisExpandWidth"),l),c=m_(t.get("axisExpandCount")||0,[0,u]),v=t.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,h=t.get("axisExpandWindow"),d;if(h)d=m_(h[1]-h[0],l),h[1]=h[0]+d;else{d=m_(f*(c-1),l);var p=t.get("axisExpandCenter")||ja(u/2);h=[f*p-d/2],h[1]=h[0]+d}var g=(s-d)/(u-c);g<3&&(g=0);var y=[ja(Yt(h[0]/f,1))+1,Uc(Yt(h[1]/f,1))-1],m=g/f*h[0];return{layout:i,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[a[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;r.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),D(n,function(o,s){var l=(a.axisExpandable?qxt:Zxt)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:F1/2,vertical:0},c=[u[i].x+t.x,u[i].y+t.y],v=f[i],h=we();Gs(h,h,v),gi(h,h,c),this._axesLayout[o]={position:c,rotation:v,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,a){n==null&&(n=0),a==null&&(a=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];D(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=n;f<a;f++){var c=void 0;if(!u)c="normal";else{c="active";for(var v=t.getValues(s,f),h=0,d=o.length;h<d;h++){var p=l[h].getActiveState(v[h]);if(p==="inactive"){c="inactive";break}}}r(c,f)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,r=this._axesMap,n=!1,a=0,i=t.length;a<i;a++)r.get(t[a]).model.getActiveState()!=="normal"&&(n=!0);return n},e.prototype.axisCoordToPoint=function(t,r){var n=this._axesLayout[r];return hi([t,0],n.transform)},e.prototype.getAxisLayout=function(t){return st(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var r=this._makeLayoutInfo(),n=r.pixelDimIndex,a=r.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,r.axisExpandWidth*(r.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:a};var s=t[n]-r.layoutBase-r.axisExpandWindow0Pos,l,u="slide",f=r.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),v=c[0]!=null;if(f)v&&f&&s<i*c[0]?(u="jump",l=s-i*c[2]):v&&f&&s>i*(1-c[0])?(u="jump",l=s-i*(1-c[2])):(l=s-i*c[1])>=0&&(l=s-i*(1-c[1]))<=0&&(l=0),l*=r.axisExpandWidth/f,l?nu(l,a,o,"all"):u="none";else{var h=a[1]-a[0],d=o[1]*s/h;a=[Dt(0,d-h/2)],a[1]=te(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},e}();function m_(e,t){return te(Dt(e,t[0]),t[1])}function Zxt(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function qxt(e,t){var r=t.layoutLength,n=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,f;return e<o[0]?(s=e*i,f=i):e<=o[1]?(s=t.axisExpandWindow0Pos+e*n-t.axisExpandWindow[0],l=n,u=!0):(s=r-(a-1-e)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}function Kxt(e,t){var r=[];return e.eachComponent(KL,function(n,a){var i=new Wxt(n,e,t);i.name="parallel_"+a,i.resize(n,t),n.coordinateSystem=i,i.model=n,r.push(i)}),e.eachSeries(function(n){if(n.get("coordinateSystem")===Pb){var a=n.getReferringComponents(KL,ze).models[0],i=n.coordinateSystem=a.coordinateSystem;i&&D(i.dimensions,function(o){cc(i.getAxis(o),n,Pb)})}}),r}var Qxt={create:Kxt},QL=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.activeIntervals=[],r}return t.prototype.getAreaSelectStyle=function(){return ac([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(r){var n=this.activeIntervals=st(r);if(n)for(var a=n.length-1;a>=0;a--)Er(n[a])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=r&&r<=a[1])return"active"}else for(var i=0,o=n.length;i<o;i++)if(n[i][0]<=r&&r<=n[i][1])return"active";return"inactive"},t}(Lt);We(QL,Wd);var Sc=!0,$y=Math.min,vd=Math.max,Jxt=Math.pow,twt=1e4,ewt=6,rwt=6,uH="globalPan",nwt={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},awt={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},fH={brushStyle:{lineWidth:2,stroke:V.color.backgroundTint,fill:V.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},iwt=0,CN=function(e){G(t,e);function t(r){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=r,n.group=new ct,n._uid="brushController_"+iwt++,D(vwt,function(a,i){this._handlers[i]=rt(a,this)},n),n}return t.prototype.enableBrush=function(r){return this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},t.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||bSt(n,uH,this._uid),D(this._handlers,function(a,i){n.on(i,a)}),this._brushType=r.brushType,this._brushOption=wt(st(fH),r,!0)},t.prototype._doDisableBrush=function(){var r=this._zr;xSt(r,uH,this._uid),D(this._handlers,function(n,a){r.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};D(r,function(a){n[a.panelId]=st(a)})}else this._panels=null;return this},t.prototype.mount=function(r){r=r||{},this._enableGlobalPan=r.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(r){r=X(r,function(v){return wt(st(fH),v,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Ls(a,r,u,l).add(f).update(f).remove(c).execute(),this;function l(v,h){return(v.id!=null?v.id:n+h)+"-"+v.brushType}function u(v,h){return l(v.__brushOption,h)}function f(v,h){var d=r[v];if(h!=null&&a[h]===s)i[v]=a[h];else{var p=i[v]=h!=null?(a[h].__brushOption=d,a[h]):OK(o,LK(o,d));AN(o,p)}}function c(v){a[v]!==s&&o.group.remove(a[v])}},t.prototype.unmount=function(){return this.enableBrush(!1),JL(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Za);function LK(e,t){var r=Pw[t.brushType].createCover(e,t);return r.__brushOption=t,IK(r,t),e.group.add(r),r}function OK(e,t){var r=MN(t);return r.endCreating&&(r.endCreating(e,t),IK(t,t.__brushOption)),t}function RK(e,t){var r=t.__brushOption;MN(t).updateCoverShape(e,t,r.range,r)}function IK(e,t){var r=t.z;r==null&&(r=twt),e.traverse(function(n){n.z=r,n.z2=r})}function AN(e,t){MN(t).updateCommon(e,t),RK(e,t)}function MN(e){return Pw[e.__brushOption.brushType]}function DN(e,t,r){var n=e._panels;if(!n)return Sc;var a,i=e._transform;return D(n,function(o){o.isTargetByCursor(t,r,i)&&(a=o)}),a}function PK(e,t){var r=e._panels;if(!r)return Sc;var n=t.__brushOption.panelId;return n!=null?r[n]:Sc}function JL(e){var t=e._covers,r=t.length;return D(t,function(n){e.group.remove(n)},e),t.length=0,!!r}function bc(e,t){var r=X(e._covers,function(n){var a=n.__brushOption,i=st(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});e.trigger("brush",{areas:r,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function owt(e){var t=e._track;if(!t.length)return!1;var r=t[t.length-1],n=t[0],a=r[0]-n[0],i=r[1]-n[1],o=Jxt(a*a+i*i,.5);return o>ewt}function NK(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function kK(e,t,r,n){var a=new ct;return a.add(new Et({name:"main",style:EN(r),silent:!0,draggable:!0,cursor:"move",drift:At(cH,e,t,a,["n","s","w","e"]),ondragend:At(bc,t,{isEnd:!0})})),D(n,function(i){a.add(new Et({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:At(cH,e,t,a,i),ondragend:At(bc,t,{isEnd:!0})}))}),a}function zK(e,t,r,n){var a=n.brushStyle.lineWidth||0,i=vd(a,rwt),o=r[0][0],s=r[1][0],l=o-a/2,u=s-a/2,f=r[0][1],c=r[1][1],v=f-i+a/2,h=c-i+a/2,d=f-o,p=c-s,g=d+a,y=p+a;Fo(e,t,"main",o,s,d,p),n.transformable&&(Fo(e,t,"w",l,u,i,y),Fo(e,t,"e",v,u,i,y),Fo(e,t,"n",l,u,g,i),Fo(e,t,"s",l,h,g,i),Fo(e,t,"nw",l,u,i,i),Fo(e,t,"ne",v,u,i,i),Fo(e,t,"sw",l,h,i,i),Fo(e,t,"se",v,h,i,i))}function tO(e,t){var r=t.__brushOption,n=r.transformable,a=t.childAt(0);a.useStyle(EN(r)),a.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?eO(e,i[0]):lwt(e,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?awt[s]+"-resize":null})})}function Fo(e,t,r,n,a,i,o){var s=t.childOfName(r);s&&s.setShape(fwt(LN(e,t,[[n,a],[n+i,a+o]])))}function EN(e){return dt({strokeNoScale:!0},e.brushStyle)}function BK(e,t,r,n){var a=[$y(e,r),$y(t,n)],i=[vd(e,r),vd(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function swt(e){return If(e.group)}function eO(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=sw(r[t],swt(e));return n[a]}function lwt(e,t){var r=[eO(e,t[0]),eO(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function cH(e,t,r,n,a,i){var o=r.__brushOption,s=e.toRectRange(o.range),l=VK(t,a,i);D(n,function(u){var f=nwt[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=e.fromRectRange(BK(s[0][0],s[1][0],s[0][1],s[1][1])),AN(t,r),bc(t,{isEnd:!1})}function uwt(e,t,r,n){var a=t.__brushOption.range,i=VK(e,r,n);D(a,function(o){o[0]+=i[0],o[1]+=i[1]}),AN(e,t),bc(e,{isEnd:!1})}function VK(e,t,r){var n=e.group,a=n.transformCoordToLocal(t,r),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function LN(e,t,r){var n=PK(e,t);return n&&n!==Sc?n.clipPath(r,e._transform):st(r)}function fwt(e){var t=$y(e[0][0],e[1][0]),r=$y(e[0][1],e[1][1]),n=vd(e[0][0],e[1][0]),a=vd(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:a-r}}function cwt(e,t,r){if(!(!e._brushType||hwt(e,t.offsetX,t.offsetY))){var n=e._zr,a=e._covers,i=DN(e,t,r);if(!e._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===Sc||s.panelId===i.panelId)&&Pw[s.brushType].contain(a[o],r[0],r[1]))return}i&&n.setCursorStyle("crosshair")}}function rO(e){var t=e.event;t.preventDefault&&t.preventDefault()}function nO(e,t,r){return e.childOfName("main").contain(t,r)}function GK(e,t,r,n){var a=e._creatingCover,i=e._creatingPanel,o=e._brushOption,s;if(e._track.push(r.slice()),owt(e)||a){if(i&&!a){o.brushMode==="single"&&JL(e);var l=st(o);l.brushType=vH(l.brushType,i),l.panelId=i===Sc?null:i.panelId,a=e._creatingCover=LK(e,l),e._covers.push(a)}if(a){var u=Pw[vH(e._brushType,i)],f=a.__brushOption;f.range=u.getCreatingRange(LN(e,a,e._track)),n&&(OK(e,a),u.updateCommon(e,a)),RK(e,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&DN(e,t,r)&&JL(e)&&(s={isEnd:n,removeOnClick:!0});return s}function vH(e,t){return e==="auto"?t.defaultBrushType:e}var vwt={mousedown:function(e){if(this._dragging)hH(this,e);else if(!e.target||!e.target.draggable){rO(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var r=this._creatingPanel=DN(this,e,t);r&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,r=e.offsetY,n=this.group.transformCoordToLocal(t,r);if(cwt(this,e,n),this._dragging){rO(e);var a=GK(this,e,n,!1);a&&bc(this,a)}},mouseup:function(e){hH(this,e)}};function hH(e,t){if(e._dragging){rO(t);var r=t.offsetX,n=t.offsetY,a=e.group.transformCoordToLocal(r,n),i=GK(e,t,a,!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&bc(e,i)}}function hwt(e,t,r){var n=e._zr;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var Pw={lineX:dH(0),lineY:dH(1),rect:{createCover:function(e,t){function r(n){return n}return kK({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=NK(e);return BK(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){zK(e,t,r,n)},updateCommon:tO,contain:nO},polygon:{createCover:function(e,t){var r=new ct;return r.add(new Or({name:"main",style:EN(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Zr({name:"main",draggable:!0,drift:At(uwt,e,t),ondragend:At(bc,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:LN(e,t,r)})},updateCommon:tO,contain:nO}};function dH(e){return{createCover:function(t,r){return kK({toRectRange:function(n){var a=[n,[0,100]];return e&&a.reverse(),a},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=NK(t),n=$y(r[0][e],r[1][e]),a=vd(r[0][e],r[1][e]);return[n,a]},updateCoverShape:function(t,r,n,a){var i,o=PK(t,r);if(o!==Sc&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(e);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,i];e&&l.reverse(),zK(t,r,l,a)},updateCommon:tO,contain:nO}}function HK(e){return e=ON(e),function(t){return XI(t,e)}}function UK(e,t){return e=ON(e),function(r){var n=t??r,a=n?e.width:e.height,i=n?e.x:e.y;return[i,i+(a||0)]}}function FK(e,t,r){var n=ON(e);return function(a,i){return n.contain(i[0],i[1])&&!kq(a,t,r)}}function ON(e){return vt.create(e)}var dwt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new CN(n.getZr())).on("brush",rt(this._onBrush,this))},t.prototype.render=function(r,n,a,i){if(!pwt(r,n,i)){this.axisModel=r,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ct,this.group.add(this._axisGroup),!!r.get("show")){var s=ywt(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),f=u.width,c=r.axis.dim,v=l.getAxisLayout(c),h=U({strokeContainThreshold:f},v),d=new bn(r,a,h);d.build(),this._axisGroup.add(d.group),this._refreshBrushController(h,u,r,s,f,a),Lm(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=vt.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:HK(c),isTargetByCursor:FK(c,s,i),getLinearBrushOtherExtent:UK(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(gwt(a))},t.prototype._onBrush=function(r){var n=r.areas,a=this.axisModel,i=a.axis,o=X(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(fe);function pwt(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function gwt(e){var t=e.axis;return X(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function ywt(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var mwt={type:"axisAreaSelect",event:"axisAreaSelected"};function _wt(e){e.registerAction(mwt,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var Swt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function YK(e){e.registerComponentView(Yxt),e.registerComponentModel(Xxt),e.registerCoordinateSystem("parallel",Qxt),e.registerPreprocessor(Gxt),e.registerComponentModel(QL),e.registerComponentView(dwt),fd(e,"parallel",QL,Swt),_wt(e)}function bwt(e){Ct(YK),e.registerChartView(Rxt),e.registerSeriesModel(Nxt),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Vxt)}var Is="sankey",xwt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var a=r.edges||r.links||[],i=r.data||r.nodes||[],o=r.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Ot(o[l],this,n));var u=_N(i,a,this,!0,f);return u.data;function f(c,v){c.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(h.parentModel=m)}return h}),v.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(h.parentModel=_)}return h})}},t.prototype.setNodePosition=function(r,n){var a=this.option.data||this.option.nodes,i=a[r];i.localX=n[0],i.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(r,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Ke("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(r),c=f.getLayout().value,v=this.getDataParams(r,a).data.name;return Ke("nameValue",{name:v!=null?v+"":null,value:c,noValue:i(c)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var a=e.prototype.getDataParams.call(this,r,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(r),o=i.getLayout().value;a.value=o}return a},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type="series."+Is,t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:V.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:V.color.primary}},animationEasing:"linear",animationDuration:1e3},t}(ne),wwt=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),Twt=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new wwt},t.prototype.buildPath=function(r,n){var a=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+a,n.y2),r.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(r.lineTo(n.x2,n.y2+a),r.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),r.closePath()},t.prototype.highlight=function(){Ds(this)},t.prototype.downplay=function(){Es(this)},t}(Rt),Cwt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Is,r._mainGroup=new ct,r}return t.prototype.init=function(r,n){this._controller=new Jc(n.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(r,n,a){var i=r.getGraph(),o=this._mainGroup,s=r.layoutInfo,l=s.width,u=s.height,f=r.getData(),c=r.getData("edge"),v=r.get("orient");o.removeAll(),o.x=s.x,o.y=s.y,this._updateViewCoordSys(r,a),Ow(r,a,this._controller,Zq(o),null),i.eachEdge(function(h){var d=new Twt,p=yt(d);p.dataIndex=h.dataIndex,p.seriesIndex=r.seriesIndex,p.dataType="edge";var g=h.getModel(),y=g.getModel("lineStyle"),m=y.get("curveness"),_=h.node1.getLayout(),S=h.node1.getModel(),b=S.get("localX"),x=S.get("localY"),w=h.node2.getLayout(),T=h.node2.getModel(),C=T.get("localX"),A=T.get("localY"),M=h.getLayout(),L,E,R,I,O,N,P,z;d.shape.extent=Math.max(1,M.dy),d.shape.orient=v,v==="vertical"?(L=(b!=null?b*l:_.x)+M.sy,E=(x!=null?x*u:_.y)+_.dy,R=(C!=null?C*l:w.x)+M.ty,I=A!=null?A*u:w.y,O=L,N=E*(1-m)+I*m,P=R,z=E*m+I*(1-m)):(L=(b!=null?b*l:_.x)+_.dx,E=(x!=null?x*u:_.y)+M.sy,R=C!=null?C*l:w.x,I=(A!=null?A*u:w.y)+M.ty,O=L*(1-m)+R*m,N=E,P=L*m+R*(1-m),z=I),d.setShape({x1:L,y1:E,x2:R,y2:I,cpx1:O,cpy1:N,cpx2:P,cpy2:z}),d.useStyle(y.getItemStyle()),pH(d.style,v,h);var B=""+g.get("value"),H=ir(g,"edgeLabel");yr(d,H,{labelFetcher:{getFormattedLabel:function(j,tt,mt,Nt,Q,q){return r.getFormattedLabel(j,tt,"edge",Nt,zn(Q,H.normal&&H.normal.get("formatter"),B),q)}},labelDataIndex:h.dataIndex,defaultText:B}),d.setTextConfig({position:"inside"});var F=g.getModel("emphasis");ar(d,g,"lineStyle",function(j){var tt=j.getItemStyle();return pH(tt,v,h),tt}),o.add(d),c.setItemGraphicEl(h.dataIndex,d);var $=F.get("focus");Ae(d,$==="adjacency"?h.getAdjacentDataIndices():$==="trajectory"?h.getTrajectoryDataIndices():$,F.get("blurScope"),F.get("disabled"))}),i.eachNode(function(h){var d=h.getLayout(),p=h.getModel(),g=p.get("localX"),y=p.get("localY"),m=p.getModel("emphasis"),_=p.get(["itemStyle","borderRadius"])||0,S=new Et({shape:{x:g!=null?g*l:d.x,y:y!=null?y*u:d.y,width:d.dx,height:d.dy,r:_},style:p.getModel("itemStyle").getItemStyle(),z2:10});yr(S,ir(p),{labelFetcher:{getFormattedLabel:function(x,w){return r.getFormattedLabel(x,w,"node")}},labelDataIndex:h.dataIndex,defaultText:h.id}),S.disableLabelAnimation=!0,S.setStyle("fill",h.getVisual("color")),S.setStyle("decal",h.getVisual("style").decal),ar(S,p),o.add(S),f.setItemGraphicEl(h.dataIndex,S),yt(S).dataType="node";var b=m.get("focus");Ae(S,b==="adjacency"?h.getAdjacentDataIndices():b==="trajectory"?h.getTrajectoryDataIndices():b,m.get("blurScope"),m.get("disabled"))}),f.eachItemGraphicEl(function(h,d){var p=f.getItemModel(d);p.get("draggable")&&(h.drift=function(g,y){this.shape.x+=g,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:f.getRawIndex(d),localX:this.shape.x/l,localY:this.shape.y/u})},h.draggable=!0,h.cursor="move")}),!this._data&&r.isAnimationEnabled()&&o.setClipPath(Awt(o.getBoundingRect(),r,function(){o.removeClipPath()})),this._data=r.getData(),this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(r,n,a){ru(this.group,Co,n.coordinateSystem,null)},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype._updateViewCoordSys=function(r,n){var a=r.layoutInfo,i=r.coordinateSystem=vN(r,n,a.x,a.y,a.width,a.height);ru(this.group,Co,i,this._firstRender?null:r)},t.type=Is,t}(ee);function pH(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),a=r.node2.getVisual("color");J(n)&&J(a)&&(e.fill=new jc(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function Awt(e,t,r){var n=new Et({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return ye(n,{shape:{width:e.width+20}},t,r),n}var Mwt=or(Is,Dwt);function Dwt(e,t){e.eachSeriesByType(Is,function(r){var n=r.get("nodeWidth"),a=r.get("nodeGap"),i=sr(r,t).refContainer,o=xe(r.getBoxLayoutParams(),i);r.layoutInfo=o;var s=o.width,l=o.height,u=r.getGraph(),f=u.nodes,c=u.edges;Lwt(f);var v=qt(f,function(g){return g.getLayout().value===0}),h=v.length!==0?0:r.get("layoutIterations"),d=r.get("orient"),p=r.get("nodeAlign");Ewt(f,c,n,a,s,l,h,d,p)})}function Ewt(e,t,r,n,a,i,o,s,l){Owt(e,t,r,a,i,s,l),Nwt(e,t,i,a,n,o,s),Ywt(e,s)}function Lwt(e){D(e,function(t){var r=Yl(t.outEdges,Nb),n=Yl(t.inEdges,Nb),a=t.getValue()||0,i=Math.max(r,n,a);t.setLayout({value:i},!0)})}function Owt(e,t,r,n,a,i,o){for(var s=[],l=[],u=[],f=[],c=0,v=0;v<t.length;v++)s[v]=1;for(var v=0;v<e.length;v++)l[v]=e[v].inEdges.length,l[v]===0&&u.push(e[v]);for(var h=-1;u.length;){for(var d=0;d<u.length;d++){var p=u[d],g=p.hostGraph.data.getRawDataItem(p.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>h&&(h=g.depth),p.setLayout({depth:y?g.depth:c},!0),i==="vertical"?p.setLayout({dy:r},!0):p.setLayout({dx:r},!0);for(var m=0;m<p.outEdges.length;m++){var _=p.outEdges[m],S=St(t,_);s[S]=0;var b=_.node2,x=St(e,b);--l[x]===0&&St(f,b)<0&&f.push(b)}}++c,u=f,f=[]}for(var v=0;v<s.length;v++)if(s[v]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=h>c-1?h:c-1;o&&o!=="left"&&Rwt(e,o,i,w);var T=i==="vertical"?(a-r)/w:(n-r)/w;Pwt(e,T,i)}function jK(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function Rwt(e,t,r,n){if(t==="right"){for(var a=[],i=e,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var f=l.inEdges[u];St(a,f.node1)<0&&a.push(f.node1)}}i=a,a=[],++o}D(e,function(c){jK(c)||c.setLayout({depth:Math.max(0,n-c.getLayout().skNodeHeight)},!0)})}else t==="justify"&&Iwt(e,n)}function Iwt(e,t){D(e,function(r){!jK(r)&&!r.outEdges.length&&r.setLayout({depth:t},!0)})}function Pwt(e,t,r){D(e,function(n){var a=n.getLayout().depth*t;r==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function Nwt(e,t,r,n,a,i,o){var s=kwt(e,o);zwt(s,t,r,n,a,o),GA(s,a,r,n,o);for(var l=1;i>0;i--)l*=.99,Bwt(s,l,o),GA(s,a,r,n,o),Fwt(s,l,o),GA(s,a,r,n,o)}function kwt(e,t){var r=[],n=t==="vertical"?"y":"x",a=VE(e,function(i){return i.getLayout()[n]});return Er(a.keys),D(a.keys,function(i){r.push(a.buckets.get(i))}),r}function zwt(e,t,r,n,a,i){var o=1/0;D(e,function(s){var l=s.length,u=0;D(s,function(c){u+=c.getLayout().value});var f=i==="vertical"?(n-(l-1)*a)/u:(r-(l-1)*a)/u;f<o&&(o=f)}),D(e,function(s){D(s,function(l,u){var f=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),D(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function GA(e,t,r,n,a){var i=a==="vertical"?"x":"y";D(e,function(o){o.sort(function(p,g){return p.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,f=0,c=o.length,v=a==="vertical"?"dx":"dy",h=0;h<c;h++)l=o[h],u=f-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[v]+t;var d=a==="vertical"?n:r;if(u=f-t-d,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var h=c-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[v]+t-f,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function Bwt(e,t,r){D(e.slice().reverse(),function(n){D(n,function(a){if(a.outEdges.length){var i=Yl(a.outEdges,Vwt,r)/Yl(a.outEdges,Nb);if(isNaN(i)){var o=a.outEdges.length;i=o?Yl(a.outEdges,Gwt,r)/o:0}if(r==="vertical"){var s=a.getLayout().x+(i-au(a,r))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-au(a,r))*t;a.setLayout({y:l},!0)}}})})}function Vwt(e,t){return au(e.node2,t)*e.getValue()}function Gwt(e,t){return au(e.node2,t)}function Hwt(e,t){return au(e.node1,t)*e.getValue()}function Uwt(e,t){return au(e.node1,t)}function au(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function Nb(e){return e.getValue()}function Yl(e,t,r){for(var n=0,a=e.length,i=-1;++i<a;){var o=+t(e[i],r);isNaN(o)||(n+=o)}return n}function Fwt(e,t,r){D(e,function(n){D(n,function(a){if(a.inEdges.length){var i=Yl(a.inEdges,Hwt,r)/Yl(a.inEdges,Nb);if(isNaN(i)){var o=a.inEdges.length;i=o?Yl(a.inEdges,Uwt,r)/o:0}if(r==="vertical"){var s=a.getLayout().x+(i-au(a,r))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-au(a,r))*t;a.setLayout({y:l},!0)}}})})}function Ywt(e,t){var r=t==="vertical"?"x":"y";D(e,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[r]-i.node2.getLayout()[r]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[r]-i.node1.getLayout()[r]})}),D(e,function(n){var a=0,i=0;D(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),D(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}var jwt=or(Is,Xwt);function Xwt(e){e.eachSeriesByType(Is,function(t){var r=t.getGraph(),n=r.nodes,a=r.edges;if(n.length){var i=1/0,o=-1/0;D(n,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),D(n,function(s){var l=new dr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&D(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function $wt(e){e.registerChartView(Cwt),e.registerSeriesModel(xwt),e.registerLayout(Mwt),e.registerVisual(jwt),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:xo,subType:Is,query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})}),cN(e,xo,Is)}var XK=function(){function e(){}return e.prototype._hasEncodeRule=function(t){var r=this.getEncode();return r&&r.get(t)!=null},e.prototype.getInitialData=function(t,r){var n,a=r.getComponent("xAxis",this.get("xAxisIndex")),i=r.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l,u=t.layout;o==="category"?(u="horizontal",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"&&(u="vertical",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")),u||(u=s==="time"?"vertical":"horizontal"),this._layout=u;var f=["x","y"],c=u==="horizontal"?0:1,v=this._baseAxisDim=f[c],h=f[1-c],d=[a,i],p=d[c].get("type"),g=d[1-c].get("type"),y=t.data;if(y&&l){var m=[];D(y,function(b,x){var w;Y(b)?(w=b.slice(),b.unshift(x)):Y(b.value)?(w=U({},b),w.value=w.value.slice(),b.value.unshift(x)):w=b,m.push(w)}),t.data=m}var _=this.defaultValueDimensions,S=[{name:v,type:fb(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:fb(g),dimsDef:_.slice()}];return qd(this,{coordDimensions:S,dimensionsCount:_.length+1,encodeDefaulter:At(b$,S,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e.prototype.getWhiskerBoxesLayout=function(){return this._layout},e}();function kb(e,t){for(var r=t.ends.length,n=0,a=0;a<r;a++)e.contain(t.ends[a][0],t.ends[a][1])&&n++;return n?n<r?Py:Iy:Ny}var co="boxplot",$K=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return t.type="series."+co,t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:V.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:V.color.shadow}},animationDuration:800},t}(ne);We($K,XK,!0);var Wwt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=co,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.getWhiskerBoxesLayout()==="horizontal"?1:0,u=r.get("clip",!0),f=r.coordinateSystem,c=f.getArea&&f.getArea(),v=u&&hc(f,!1,r);i.diff(s).add(function(h){if(i.hasValue(h)){var d=i.getItemLayout(h),p=u?kb(c,d):Iy;if(p===Ny)return;var g=gH(d,i,h,l,!0);sh(p===Py,g,v),i.setItemGraphicEl(h,g),o.add(g)}}).update(function(h,d){var p=s.getItemGraphicEl(d);if(!i.hasValue(h)){o.remove(p);return}var g=i.getItemLayout(h),y=u?kb(c,g):Iy;if(y===Ny){o.remove(p);return}p?(Wa(p),WK(g,p,i,h)):p=gH(g,i,h,l),sh(y===Py,p,v),o.add(p),i.setItemGraphicEl(h,p)}).remove(function(h){var d=s.getItemGraphicEl(h);d&&o.remove(d)}).execute(),this._data=i},t.prototype.remove=function(r){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},t.type=co,t}(ee),Zwt=function(){function e(){}return e}(),qwt=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new Zwt},t.prototype.buildPath=function(r,n){var a=n.points,i=0;for(r.moveTo(a[i][0],a[i][1]),i++;i<4;i++)r.lineTo(a[i][0],a[i][1]);for(r.closePath();i<a.length;i++)r.moveTo(a[i][0],a[i][1]),i++,r.lineTo(a[i][0],a[i][1])},t}(Rt);function gH(e,t,r,n,a){var i=e.ends,o=new qwt({shape:{points:a?Kwt(i,n,e):i}});return WK(e,o,t,r,a),o}function WK(e,t,r,n,a){var i=r.hostModel,o=Xc[a?"initProps":"updateProps"];o(t,{shape:{points:e.ends}},i,n),t.useStyle(r.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=r.getItemModel(n),l=s.getModel("emphasis");ar(t,s),Ae(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function Kwt(e,t,r){return X(e,function(n){return n=n.slice(),n[t]=r.initBaseline,n})}var Qwt=Od(),Jwt=or(co,tTt);function tTt(e){var t=kf(co);HP(e,t,function(r){var n=tyt(r,t);if(n){var a=eTt(r,n);fc(r,t,function(i){var o=i.seriesIndex;rTt(i,a.boxOffsetList[o],a.boxWidthList[o])})}})}function eTt(e,t){var r=[],n=[],a=[],i=qr(e,{fromStat:{key:kf(co)},min:1}).w;fc(e,kf(co),function(f){var c=f.get("boxWidth");Y(c)||(c=[c,c]),a[f.seriesIndex]=[et(c[0],i)||0,et(c[1],i)||0]});var o=i*.8-2,s=o/t*.3,l=(o-s*(t-1))/t,u=l/2-o/2;return fc(e,kf(co),function(f){var c=f.seriesIndex;n[c]=u,u+=s+l,r[c]=te(Dt(l,a[c][0]),a[c][1])}),{boxOffsetList:n,boxWidthList:r}}function rTt(e,t,r){var n=e.coordinateSystem,a=e.getData(),i=r/2,o=e.getWhiskerBoxesLayout()==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),f=a.mapDimensionsAll(l[s]);if(u==null||f.length<5)return;for(var c=0;c<a.count();c++){var v=a.get(u,c),h=_(v,f[2],c),d=_(v,f[0],c),p=_(v,f[1],c),g=_(v,f[3],c),y=_(v,f[4],c),m=[];S(m,p,!1),S(m,g,!0),m.push(d,p,y,g),b(m,d),b(m,y),b(m,h),a.setItemLayout(c,{initBaseline:h[s],ends:m})}function _(x,w,T){var C=a.get(w,T),A=[];A[o]=x,A[s]=C;var M;return isNaN(x)||isNaN(C)?M=[NaN,NaN]:(M=n.dataToPoint(A),M[o]+=t),M}function S(x,w,T){var C=w.slice(),A=w.slice();C[o]+=i,A[o]-=i,T?x.push(C,A):x.push(A,C)}function b(x,w){var T=w.slice(),C=w.slice();T[o]-=i,C[o]+=i,x.push(T,C)}}function nTt(e){Qwt(e,function(){var t=kf(co);UP(e,{key:t,seriesType:co,getMetrics:rN}),bw(t,Cw(t))})}function aTt(e,t){t=t||{};for(var r=[],n=[],a=t.boundIQR,i=a==="none"||a===0,o=0;o<e.length;o++){var s=Er(e[o].slice()),l=_S(s,.25),u=_S(s,.5),f=_S(s,.75),c=s[0],v=s[s.length-1],h=(a??1.5)*(f-l),d=i?c:Math.max(c,l-h),p=i?v:Math.min(v,f+h),g=t.itemNameFormatter,y=ut(g)?g({value:o}):J(g)?g.replace("{value}",o+""):o+"";r.push([y,d,l,u,f,p]);for(var m=0;m<s.length;m++){var _=s[m];if(_<d||_>p){var S=[y,_];n.push(S)}}}return{boxData:r,outliers:n}}var iTt={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Lr){var n="";Zt(n)}var a=aTt(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function oTt(e){e.registerSeriesModel($K),e.registerChartView(Wwt),e.registerLayout(Jwt),e.registerTransform(iTt),nTt(e)}var iu="candlestick",ZK=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,a){var i=n.getItemLayout(r);return i&&a.rect(i.brushRect)},t.type="series."+iu,t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(ne);We(ZK,XK,!0);var sTt=["itemStyle","borderColor"],lTt=["itemStyle","borderColor0"],uTt=["itemStyle","borderColorDoji"],fTt=["itemStyle","color"],cTt=["itemStyle","color0"];function RN(e,t){return t.get(e>0?fTt:cTt)}function IN(e,t){return t.get(e===0?uTt:e>0?sTt:lTt)}var vTt={seriesType:iu,plan:Zc(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e)){var r=e.pipelineContext.large;return!r&&{progress:function(n,a){for(var i;(i=n.next())!=null;){var o=a.getItemModel(i),s=a.getItemLayout(i).sign,l=o.getItemStyle();l.fill=RN(s,o),l.stroke=IN(s,o)||l.fill;var u=a.ensureUniqueItemVisual(i,"style");U(u,l)}}}}}},hTt=["color","borderColor"],dTt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,a){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){gu(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea(),f=s&&hc(l,!1,r);this._data||i.removeAll();var c=yH(r);n.diff(a).add(function(v){if(n.hasValue(v)){var h=n.getItemLayout(v),d=s?kb(u,h):Iy;if(d===Ny)return;var p=HA(h,v,c,!0);ye(p,{shape:{points:h.ends}},r,v),sh(d===Py,p,f),UA(p,n,v,o),i.add(p),n.setItemGraphicEl(v,p)}}).update(function(v,h){var d=a.getItemGraphicEl(h);if(!n.hasValue(v)){i.remove(d);return}var p=n.getItemLayout(v),g=s?kb(u,p):Iy;if(g===Ny){i.remove(d);return}d?(jt(d,{shape:{points:p.ends}},r,v),Wa(d)):d=HA(p,v,c),UA(d,n,v,o),sh(g===Py,d,f),i.add(d),n.setItemGraphicEl(v,d)}).remove(function(v){var h=a.getItemGraphicEl(v);h&&i.remove(h)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),mH(r,this.group);var n=r.get("clip",!0)?hc(r.coordinateSystem,!1,r):null;sh(!!n,this.group,n)},t.prototype._incrementalRenderNormal=function(r,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o=yH(n),s;(s=r.next())!=null;){var l=a.getItemLayout(s),u=HA(l,s,o);UA(u,a,s,i),u.incremental=uo(n),this.group.add(u),this._progressiveEls.push(u)}},t.prototype._incrementalRenderLarge=function(r,n){mH(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),sh(!1,this.group,null),this._data=null},t.type=iu,t}(ee),pTt=function(){function e(){}return e}(),gTt=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new pTt},t.prototype.buildPath=function(r,n){var a=n.points;this.__simpleBox?(r.moveTo(a[4][0],a[4][1]),r.lineTo(a[6][0],a[6][1])):(r.moveTo(a[0][0],a[0][1]),r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]),r.lineTo(a[3][0],a[3][1]),r.closePath(),r.moveTo(a[4][0],a[4][1]),r.lineTo(a[5][0],a[5][1]),r.moveTo(a[6][0],a[6][1]),r.lineTo(a[7][0],a[7][1]))},t}(Rt);function HA(e,t,r,n){var a=e.ends;return new gTt({shape:{points:n?yTt(a,r,e):a},z2:100})}function UA(e,t,r,n){var a=t.getItemModel(r);e.useStyle(t.getItemVisual(r,"style")),e.style.strokeNoScale=!0;var i=a.getShallow("cursor");i&&e.attr("cursor",i),e.__simpleBox=n,ar(e,a);var o=t.getItemLayout(r).sign;D(e.states,function(l,u){var f=a.getModel(u),c=RN(o,f),v=IN(o,f)||c,h=l.style||(l.style={});c&&(h.fill=c),v&&(h.stroke=v)});var s=a.getModel("emphasis");Ae(e,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function yTt(e,t,r){return X(e,function(n){return n=n.slice(),n[t]=r.initBaseline,n})}function yH(e){return e.getWhiskerBoxesLayout()==="horizontal"?1:0}var mTt=function(){function e(){}return e}(),FA=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new mTt},t.prototype.buildPath=function(r,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];r.moveTo(o,a[i++]),r.lineTo(o,a[i++])}else i+=3},t}(Rt);function mH(e,t,r,n){var a=e.getData(),i=a.getLayout("largePoints"),o=new FA({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new FA({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new FA({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),YA(1,o,e),YA(-1,s,e),YA(0,l,e),n&&(o.incremental=uo(e),s.incremental=uo(e),l.incremental=uo(e)),r&&r.push(o,s,l)}function YA(e,t,r,n){var a=IN(e,r)||RN(e,r),i=r.getModel("itemStyle").getItemStyle(hTt);t.useStyle(i),t.style.fill=null,t.style.stroke=a;var o=r.get("cursor");o&&t.attr("cursor",o)}function _Tt(e){!e||!Y(e.series)||D(e.series,function(t){pt(t)&&t.type==="k"&&(t.type=iu)})}var STt=Od(),bTt={seriesType:iu,plan:Zc(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=xTt(e),a=e.getWhiskerBoxesLayout()==="horizontal"?0:1,i=1-a,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[a])),l=X(r.mapDimensionsAll(o[i]),r.getDimensionIndex,r),u=l[0],f=l[1],c=l[2],v=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?d:h};function h(p,g){for(var y,m=g.getStore();(y=p.next())!=null;){var _=m.get(s,y),S=m.get(u,y),b=m.get(f,y),x=m.get(c,y),w=m.get(v,y),T=te(S,b),C=Dt(S,b),A=N(T,_),M=N(C,_),L=N(x,_),E=N(w,_),R=[];P(R,M,0),P(R,A,1),R.push(B(E),B(M),B(L),B(A));var I=g.getItemModel(y),O=!!I.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:_H(m,y,S,b,f,O),initBaseline:S>b?M[i]:A[i],ends:R,brushRect:z(x,w,_)})}function N(H,F){var $=[];return $[a]=F,$[i]=H,isNaN(F)||isNaN(H)?[NaN,NaN]:t.dataToPoint($)}function P(H,F,$){var j=F.slice(),tt=F.slice();j[a]=wS(j[a]+n/2,1,!1),tt[a]=wS(tt[a]-n/2,1,!0),$?H.push(j,tt):H.push(tt,j)}function z(H,F,$){var j=N(H,$),tt=N(F,$);return j[a]-=n/2,tt[a]-=n/2,{x:j[0],y:j[1],width:i?n:tt[0]-j[0],height:i?tt[1]-j[1]:n}}function B(H){return H[a]=wS(H[a],1),H}}function d(p,g){for(var y=Qi(p.count*4),m=0,_,S=[],b=[],x,w=g.getStore(),T=!!e.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var C=w.get(s,x),A=w.get(u,x),M=w.get(f,x),L=w.get(c,x),E=w.get(v,x);if(isNaN(C)||isNaN(L)||isNaN(E)){y[m++]=NaN,m+=3;continue}y[m++]=_H(w,x,A,M,f,T),S[a]=C,S[i]=L,_=t.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=E,_=t.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function _H(e,t,r,n,a,i){var o;return r>n?o=-1:r<n?o=1:o=i?0:t>0?e.get(a,t-1)<=n?1:-1:1,o}function xTt(e,t){var r=e.getBaseAxis(),n=qr(r,{fromStat:{key:kf(iu)},min:1}).w,a=et(ot(e.get("barMaxWidth"),n),n),i=et(ot(e.get("barMinWidth"),1),n),o=e.get("barWidth");return o!=null?et(o,n):Dt(te(n/2,a),i)}function wTt(e){STt(e,function(){var t=kf(iu);UP(e,{key:t,seriesType:iu,getMetrics:rN}),bw(t,Cw(t))})}function TTt(e){e.registerChartView(dTt),e.registerSeriesModel(ZK),e.registerPreprocessor(_Tt),e.registerVisual(vTt),e.registerLayout(bTt),wTt(e)}function SH(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var CTt=function(e){G(t,e);function t(r,n){var a=e.call(this)||this,i=new Bm(r,n),o=new ct;return a.add(i),a.add(o),a.updateData(r,n),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,a=r.color,i=r.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=$e(n,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*r.period+r.effectOffset;l.animate("",!0).when(r.period,{scaleX:r.rippleScale/2,scaleY:r.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(r.period,{opacity:0}).delay(u).start(),o.add(l)}SH(o,r)},t.prototype.updateEffectAnimation=function(r){for(var n=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(n[s]!==r[s]){this.stopEffectAnimation(),this.startEffectAnimation(r);return}}SH(a,r)},t.prototype.highlight=function(){Ds(this)},t.prototype.downplay=function(){Es(this)},t.prototype.getSymbolType=function(){var r=this.childAt(0);return r&&r.getSymbolType()},t.prototype.updateData=function(r,n){var a=this,i=r.hostModel;this.childAt(0).updateData(r,n);var o=this.childAt(1),s=r.getItemModel(n),l=r.getItemVisual(n,"symbol"),u=Yd(r.getItemVisual(n,"symbolSize")),f=r.getItemVisual(n,"style"),c=f&&f.fill,v=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",c)});var h=qc(r.getItemVisual(n,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var d=r.getItemVisual(n,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=n/r.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=l,p.color=c,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&a.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=p,Ae(this,v.get("focus"),v.get("blurScope"),v.get("disabled"))},t.prototype.fadeOut=function(r){r&&r()},t}(ct),ATt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._symbolDraw=new Vm(CTt)},t.prototype.render=function(r,n,a){var i=r.getData(),o=this._symbolDraw;o.updateData(i,bH(r)),this.group.add(o.group)},t.prototype.updateTransform=function(r,n,a){var i=r.getData();this.group.dirty();var o=Gm("").reset(r,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(bH(r))},t.prototype._updateGroupTransform=function(r){var n=r.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=oj(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(ee);function bH(e){return{clipShape:$Z(e)}}var MTt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return No(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(r,n,a){return a.point(n.getItemLayout(r))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(ne);function DTt(e){e.registerChartView(ATt),e.registerSeriesModel(MTt),e.registerLayout(Gm("effectScatter"))}var qK=function(e){G(t,e);function t(r,n,a){var i=e.call(this)||this;return i.add(i.createLine(r,n,a)),i._updateEffectSymbol(r,n),i}return t.prototype.createLine=function(r,n,a){return new wN(r,n,a)},t.prototype._updateEffectSymbol=function(r,n){var a=r.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");Y(o)||(o=[o,o]);var l=r.getItemVisual(n,"style"),u=i.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=$e(s,-.5,-.5,1,1,u),f.z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(i.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(r,i,n))},t.prototype._updateEffectAnimation=function(r,n,a){var i=this.childAt(1);if(i){var o=r.getItemLayout(a),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),f=n.get("constantSpeed"),c=nn(n.get("delay"),function(h){return h/r.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),f>0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var v=void 0;ut(c)?v=c(a):v=c,i.__t>0&&(v=-s*i.__t),this._animateSymbol(i,s,v,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,a,i,o){if(n>0){r.__t=0;var s=this,l=r.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(r)});i||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return Qo(r.__p1,r.__cp1)+Qo(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,a){this.childAt(0).updateData(r,n,a),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,a=r.__p2,i=r.__cp1,o=r.__t<=1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=wr,f=TE;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var c=r.__t<=1?f(n[0],i[0],a[0],o):f(a[0],i[0],n[0],1-o),v=r.__t<=1?f(n[1],i[1],a[1],o):f(a[1],i[1],n[1],1-o);r.rotation=-Math.atan2(v,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT<r.__t?(r.scaleY=Qo(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):r.__lastT===1?r.scaleY=2*Qo(n,s):r.scaleY=this._symbolScale[1]),r.__lastT=r.__t,r.ignore=!1,r.x=s[0],r.y=s[1]},t.prototype.updateLayout=function(r,n){this.childAt(0).updateLayout(r,n);var a=r.getItemModel(n).getModel("effect");this._updateEffectAnimation(r,a,n)},t}(ct),KK=function(e){G(t,e);function t(r,n,a){var i=e.call(this)||this;return i._createPolyline(r,n,a),i}return t.prototype._createPolyline=function(r,n,a){var i=r.getItemLayout(n),o=new Or({shape:{points:i}});this.add(o),this._updateCommonStl(r,n,a)},t.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childAt(0),s={shape:{points:r.getItemLayout(n)}};jt(o,s,i,n),this._updateCommonStl(r,n,a)},t.prototype._updateCommonStl=function(r,n,a){var i=this.childAt(0),o=r.getItemModel(n),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,f=a&&a.emphasisDisabled;if(!a||r.hasItemOption){var c=o.getModel("emphasis");s=c.getModel("lineStyle").getLineStyle(),f=c.get("disabled"),l=c.get("focus"),u=c.get("blurScope")}i.useStyle(r.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var v=i.ensureState("emphasis");v.style=s,Ae(this,l,u,f)},t.prototype.updateLayout=function(r,n){var a=this.childAt(0);a.stopAnimation(),a.setShape("points",r.getItemLayout(n))},t}(ct),ETt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._lastFrame=0,r._lastFramePercent=0,r}return t.prototype.createLine=function(r,n,a){return new KK(r,n,a)},t.prototype._updateAnimationPoints=function(r,n){this._points=n;for(var a=[0],i=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];i+=Qo(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(r){var n=r.__t<=1?r.__t:2-r.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>n);l++);l=Math.min(l-1,o-2)}var f=(n-i[l])/(i[l+1]-i[l]),c=a[l],v=a[l+1];r.x=c[0]*(1-f)+f*v[0],r.y=c[1]*(1-f)+f*v[1];var h=r.__t<=1?v[0]-c[0]:c[0]-v[0],d=r.__t<=1?v[1]-c[1]:c[1]-v[1];r.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(qK),LTt=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),OTt=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(r){r&&!r.contentRetained&&this.reset()},t.prototype.getDefaultStyle=function(){return{stroke:V.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new LTt},t.prototype.buildPath=function(r,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){r.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)r.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],f=a[o++],c=a[o++],v=a[o++];if(r.moveTo(u,f),i>0){var h=(u+c)/2-(f-v)*i,d=(f+v)/2-(c-u)*i;r.quadraticCurveTo(h,d,c,v)}else r.lineTo(c,v)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var f=i[u++];if(f>0)for(var c=i[u++],v=i[u++],h=1;h<f;h++){var d=i[u++],p=i[u++];if(ul(c,v,d,p,s,r,n))return l}l++}else for(var l=0,u=0;u<i.length;){var c=i[u++],v=i[u++],d=i[u++],p=i[u++];if(o>0){var g=(c+d)/2-(v-p)*o,y=(v+p)/2-(d-c)*o;if(aX(c,v,g,y,d,p,s,r,n))return l}else if(ul(c,v,d,p,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(r=a[0],n=a[1],i.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,a=n.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var f=a[u++],c=a[u++];i=Math.min(f,i),s=Math.max(f,s),o=Math.min(c,o),l=Math.max(c,l)}r=this._rect=new vt(i,o,s,l)}return r},t}(Rt),RTt=function(){function e(){this.group=new ct}return e.prototype.updateData=function(t){this._clear();var r=this._create();r.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(r,t)},e.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(t,r,n){var a=this._newAdded[0],i=r.getLayout("linesPoints"),o=a&&a.shape.segs;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.setShape({segs:l})}else{this._newAdded=[];var u=this._create();u.incremental=n,u.setShape({segs:i}),this._setCommon(u,r),u.__startIndex=t.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new OTt({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},e.prototype._setCommon=function(t,r,n){var a=r.hostModel;t.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),t.useStyle(a.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=r.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=yt(t);o.seriesIndex=a.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),QK={seriesType:"lines",plan:Zc(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,l=a.end-a.start;if(r){for(var u=0,f=a.start;f<a.end;f++)u+=e.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var c=0,v=[],f=a.start;f<a.end;f++){var h=e.getLineCoords(f,o);r&&(s[c++]=h);for(var d=0;d<h;d++)v=t.dataToPoint(o[d],!1,v),s[c++]=v[0],s[c++]=v[1]}i.setLayout("linesPoints",s)}else for(var f=a.start;f<a.end;f++){var p=i.getItemModel(f),h=e.getLineCoords(f,o),g=[];if(r)for(var y=0;y<h;y++)g.push(t.dataToPoint(o[y]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var m=p.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(f,g)}}}}}},ITt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this._updateLineDraw(i,r),s=r.get("zlevel"),l=r.get(["effect","trailLength"]),u=a.getZr(),f=!!tL(a);f&&u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&f&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(r)&&l>0&&f&&u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)}),o.updateData(i);var c=r.get("clip",!0)&&hc(r.coordinateSystem,!1,r);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,a){var i=r.getData(),o=this._updateLineDraw(i,r);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,a){this._lineDraw.incrementalUpdate(r,n.getData(),uo(n)),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,a){var i=r.getData(),o=this._lineDraw;if(!this._finished||!o||!o.updateLayout)return{update:!0};var s=QK.reset(r,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),o.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(r,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new RTt:new TN(o?i?ETt:KK:i?qK:wN),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=tL(r);n&&this._lastZlevel!=null&&n.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(ee),PTt=typeof Uint32Array>"u"?Array:Uint32Array,NTt=typeof Float64Array>"u"?Array:Float64Array;function xH(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=X(t,function(r){var n=[r[0].coord,r[1].coord],a={coords:n};return r[0].name&&(a.fromName=r[0].name),r[1].name&&(a.toName=r[1].name),Ux([a,r[0],r[1]])}))}var kTt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],xH(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if(xH(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=qh(this._flatCoords,n.flatCoords),this._flatCoordsOffset=qh(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[r*2],i=this._flatCoordsOffset[r*2+1],o=0;o<i;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[a+o*2],n[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(r),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(r){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),Ut(r[0])){for(var a=r.length,i=new PTt(a),o=new NTt(a),s=0,l=0,u=0,f=0;f<a;){u++;var c=r[f++];i[l++]=s+n,i[l++]=c;for(var v=0;v<c;v++){var h=r[f++],d=r[f++];o[s++]=h,o[s++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:r.length}},t.prototype.getInitialData=function(r,n){var a=new sn(["value"],this);return a.hasItemOption=!1,a.initData(r.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;a.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),a},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getItemModel(r),l=s.get("name");if(!l){var u=s.get("fromName"),f=s.get("toName"),c=[];u!=null&&c.push(u),f!=null&&c.push(f),l=c.join(" > ")}return Ke("nameValue",{name:l,value:o,noValue:o==null||isNaN(o)})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(ne);function __(e){return e instanceof Array||(e=[e,e]),e}var zTt={seriesType:"lines",reset:function(e){var t=__(e.get("symbol")),r=__(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function a(i,o){var s=i.getItemModel(o),l=__(s.getShallow("symbol",!0)),u=__(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?a:null}}};function BTt(e){e.registerChartView(ITt),e.registerSeriesModel(kTt),e.registerLayout(QK),e.registerVisual(zTt)}var VTt=256,GTt=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=hr.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,v=c.getContext("2d"),h=t.length;c.width=r,c.height=n;for(var d=0;d<h;++d){var p=t[d],g=p[0],y=p[1],m=p[2],_=a(m);v.globalAlpha=_,v.drawImage(s,g-f,y-f)}if(!c.width||!c.height)return c;for(var S=v.getImageData(0,0,c.width,c.height),b=S.data,x=0,w=b.length,T=this.minOpacity,C=this.maxOpacity,A=C-T;x<w;){var _=b[x+3]/256,M=Math.floor(_*(VTt-1))*4;if(_>0){var L=o(_)?l:u;_>0&&(_=_*A+T),b[x++]=L[M],b[x++]=L[M+1],b[x++]=L[M+2],b[x++]=L[M+3]*_*256}else x+=4}return v.putImageData(S,0,0),c},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=hr.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var a=t.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor=V.color.neutral99,a.beginPath(),a.arc(-r,r,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,a=n[r]||(n[r]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},e}();function HTt(e,t,r){var n=e[1]-e[0];t=X(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var a=t.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&r[s]}}function UTt(e,t){var r=e[1]-e[0];return t=[(t[0]-e[0])/r,(t[1]-e[0])/r],function(n){return n>=t[0]&&n<=t[1]}}var FTt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(r,a,0,r.getData().count()):w4(o)&&this._renderOnGeo(o,r,i,a)},t.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,a,i){var o=n.coordinateSystem;o&&(w4(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnGridLike(n,i,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){gu(this._progressiveEls||this.group,r)},t.prototype._renderOnGridLike=function(r,n,a,i,o){var s=r.coordinateSystem,l=dc(s,"cartesian2d"),u=dc(s,"matrix"),f,c,v,h;if(l){var d=s.getAxis("x"),p=s.getAxis("y");f=qr(d).w+.5,c=qr(p).w+.5,v=d.scale.getExtent(),h=p.scale.getExtent()}for(var g=this.group,y=r.getData(),m=r.getModel(["emphasis","itemStyle"]).getItemStyle(),_=r.getModel(["blur","itemStyle"]).getItemStyle(),S=r.getModel(["select","itemStyle"]).getItemStyle(),b=r.get(["itemStyle","borderRadius"]),x=ir(r),w=r.getModel("emphasis"),T=w.get("focus"),C=w.get("blurScope"),A=w.get("disabled"),M=l||u?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],L=a;L<i;L++){var E=void 0,R=y.getItemVisual(L,"style");if(l){var I=y.get(M[0],L),O=y.get(M[1],L);if(isNaN(y.get(M[2],L))||isNaN(I)||isNaN(O)||I<v[0]||I>v[1]||O<h[0]||O>h[1])continue;var N=s.dataToPoint([I,O]);E=new Et({shape:{x:N[0]-f/2,y:N[1]-c/2,width:f,height:c},style:R})}else if(u){var P=s.dataToLayout([y.get(M[0],L),y.get(M[1],L)]).rect;if(Yr(P.x))continue;E=new Et({z2:1,shape:P,style:R})}else{if(isNaN(y.get(M[1],L)))continue;var z=s.dataToLayout([y.get(M[0],L)]),P=z.contentRect||z.rect;if(Yr(P.x)||Yr(P.y))continue;E=new Et({z2:1,shape:P,style:R})}if(y.hasItemOption){var B=y.getItemModel(L),H=B.getModel("emphasis");m=H.getModel("itemStyle").getItemStyle(),_=B.getModel(["blur","itemStyle"]).getItemStyle(),S=B.getModel(["select","itemStyle"]).getItemStyle(),b=B.get(["itemStyle","borderRadius"]),T=H.get("focus"),C=H.get("blurScope"),A=H.get("disabled"),x=ir(B)}E.shape.r=b;var F=r.getRawValue(L),$="-";F&&F[2]!=null&&($=F[2]+""),yr(E,x,{labelFetcher:r,labelDataIndex:L,defaultOpacity:R.opacity,defaultText:$}),E.ensureState("emphasis").style=m,E.ensureState("blur").style=_,E.ensureState("select").style=S,Ae(E,T,C,A),E.incremental=uo(r,o),o&&(E.states.emphasis.hoverLayer=zd),g.add(E),y.setItemGraphicEl(L,E),this._progressiveEls&&this._progressiveEls.push(E)}},t.prototype._renderOnGeo=function(r,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new GTt;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var f=r.getViewRect().clone(),c=r.getRoamTransform();f.applyTransform(c);var v=Math.max(f.x,0),h=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),g=d-v,y=p-h,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,C){var A=r.dataToPoint([w,T]);return A[0]-=v,A[1]-=h,A.push(C),A}),S=a.getExtent(),b=a.type==="visualMap.continuous"?UTt(S,a.option.range):HTt(S,a.getPieceList(),a.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new mr({style:{width:g,height:y,x:v,y:h,image:u.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}(ee),YTt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return No(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=Hd.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:V.color.primary}}},t}(ne);function jTt(e){e.registerChartView(FTt),e.registerSeriesModel(YTt)}var XTt=["itemStyle","borderWidth"],wH=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],jA=new Po,$Tt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=ky,r}return t.prototype.render=function(r,n,a){var i=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),c=l.master.getRect(),v={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:f,valueDim:wH[+f],categoryDim:wH[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=CH(o,d),g=TH(o,d,p,v),y=AH(o,v,g);o.setItemGraphicEl(d,y),i.add(y),DH(y,v,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var y=CH(o,d),m=TH(o,d,y,v),_=aQ(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?tCt(g,v,m):g=AH(o,v,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,i.add(g),DH(g,v,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&MH(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var h=r.get("clip",!0)?hc(r.coordinateSystem,!1,r):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(r,n){var a=this.group,i=this._data;r.get("animation")?i&&i.eachItemGraphicEl(function(o){MH(i,yt(o).dataIndex,r,o)}):a.removeAll()},t.type=ky,t}(ee);function TH(e,t,r,n){var a=e.getItemLayout(t),i=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=r.get("symbolPatternSize")||2,c=r.isAnimationEnabled(),v={dataIndex:t,layout:a,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:c?r:null,hoverScale:c&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};WTt(r,i,a,n,v),ZTt(e,t,a,i,o,v.boundingLength,v.pxSign,f,n,v),qTt(r,v.symbolScale,u,n,v);var h=v.symbolSize,d=qc(r.get("symbolOffset"),h);return KTt(r,h,a,i,o,d,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,n,v),v}function WTt(e,t,r,n,a){var i=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[i.wh]<=0),f;if(Y(o)){var c=[XA(s,o[0])-l,XA(s,o[1])-l];c[1]<c[0]&&c.reverse(),f=c[u]}else o!=null?f=XA(s,o)-l:t?f=n.coordSysExtent[i.index][u]-l:f=r[i.wh];a.boundingLength=f,t&&(a.repeatCutLength=r[i.wh]);var v=i.xy==="x",h=s.inverse;a.pxSign=v&&!h||!v&&h?f>=0?1:-1:f>0?1:-1}function XA(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function ZTt(e,t,r,n,a,i,o,s,l,u){var f=l.valueDim,c=l.categoryDim,v=Math.abs(r[c.wh]),h=e.getItemVisual(t,"symbolSize"),d;Y(h)?d=h.slice():h==null?d=["100%","100%"]:d=[h,h],d[c.index]=et(d[c.index],v),d[f.index]=et(d[f.index],n?v:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function qTt(e,t,r,n,a){var i=e.get(XTt)||0;i&&(jA.attr({scaleX:t[0],scaleY:t[1],rotation:r}),jA.updateTransform(),i/=jA.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function KTt(e,t,r,n,a,i,o,s,l,u,f,c){var v=f.categoryDim,h=f.valueDim,d=c.pxSign,p=Math.max(t[h.index]+s,0),g=p;if(n){var y=Math.abs(l),m=nn(e.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=et(m,t[h.index]),b=Math.max(p+S*2,0),x=_?0:S*2,w=MI(n),T=w?n:EH((y+x)/b),C=y-T*p;S=C/2/(_?T:Math.max(T-1,1)),b=p+S*2,x=_?0:S*2,!w&&n!=="fixed"&&(T=u?EH((Math.abs(u)+x)/b):0),g=T*b-x,c.repeatTimes=T,c.symbolMargin=S}var A=d*(g/2),M=c.pathPosition=[];M[v.index]=r[v.wh]/2,M[h.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var L=c.bundlePosition=[];L[v.index]=r[v.xy],L[h.index]=r[h.xy];var E=c.barRectShape=U({},r);E[h.wh]=d*Math.max(Math.abs(r[h.wh]),Math.abs(M[h.index]+A)),E[v.wh]=r[v.wh];var R=c.clipShape={};R[v.xy]=-r[v.xy],R[v.wh]=f.ecSize[v.wh],R[h.xy]=0,R[h.wh]=r[h.wh]}function JK(e){var t=e.symbolPatternSize,r=$e(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function tQ(e,t,r,n){var a=e.__pictorialBundle,i=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,f=0,c=i[t.valueDim.index]+o+r.symbolMargin*2;for(PN(e,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f<u?Lh(p,null,d(f),r,n):Lh(p,null,{scaleX:0,scaleY:0},r,n,function(){a.remove(p)}),f++});f<u;f++){var v=JK(r);v.__pictorialAnimationIndex=f,v.__pictorialRepeatTimes=u,a.add(v);var h=d(f);Lh(v,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},r,n)}function d(p){var g=s.slice(),y=r.pxSign,m=p;return(r.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-p),g[l.index]=c*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function eQ(e,t,r,n){var a=e.__pictorialBundle,i=e.__pictorialMainPath;i?Lh(i,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(i=e.__pictorialMainPath=JK(r),a.add(i),Lh(i,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function rQ(e,t,r){var n=U({},t.barRectShape),a=e.__pictorialBarRect;a?Lh(a,null,{shape:n},t,r):(a=e.__pictorialBarRect=new Et({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function nQ(e,t,r,n){if(r.symbolClip){var a=e.__pictorialClipPath,i=U({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(a)jt(a,{shape:i},s,l);else{i[o.wh]=0,a=new Et({shape:i}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[o.wh]=r.clipShape[o.wh],Xc[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function CH(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=QTt,r.isAnimationEnabled=JTt,r}function QTt(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function JTt(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function AH(e,t,r,n){var a=new ct,i=new ct;return a.add(i),a.__pictorialBundle=i,i.x=r.bundlePosition[0],i.y=r.bundlePosition[1],r.symbolRepeat?tQ(a,t,r):eQ(a,t,r),rQ(a,r,n),nQ(a,t,r,n),a.__pictorialShapeStr=aQ(e,r),a.__pictorialSymbolMeta=r,a}function tCt(e,t,r){var n=r.animationModel,a=r.dataIndex,i=e.__pictorialBundle;jt(i,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,a),r.symbolRepeat?tQ(e,t,r,!0):eQ(e,t,r,!0),rQ(e,r,!0),nQ(e,t,r,!0)}function MH(e,t,r,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];PN(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),D(i,function(o){eu(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function aQ(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function PN(e,t,r){D(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function Lh(e,t,r,n,a,i){t&&e.attr(t),n.symbolClip&&!a?r&&e.attr(r):r&&Xc[a?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,i)}function DH(e,t,r){var n=r.dataIndex,a=r.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=i.get("focus"),c=i.get("blurScope"),v=i.get("scale");PN(e,function(p){if(p instanceof mr){var g=p.style;p.useStyle(U({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},r.style))}else p.useStyle(r.style);var y=p.ensureState("emphasis");y.style=o,v&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=r.z2});var h=t.valueDim.posDesc[+(r.boundingLength>0)],d=e.__pictorialBarRect;d.ignoreClip=!0,yr(d,ir(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:ud(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),Ae(e,f,c,i.get("disabled"))}function EH(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var eCt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series."+ky,t.dependencies=["grid"],t.defaultOption=yu(zy.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:V.color.primary}}}),t}(zy);function rCt(e){e.registerChartView($Tt),e.registerSeriesModel(eCt),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,hq(ky)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,dq(ky)),gq(e)}var $A=2,hd="themeRiver",nCt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Kd(rt(this.getData,this),rt(this.getRawData,this))},t.prototype.fixData=function(r){var n=r.length,a={},i=VE(r,function(v){return a.hasOwnProperty(v[0]+"")||(a[v[0]+""]=-1),v[2]}),o=[];i.buckets.each(function(v,h){o.push({name:h,dataList:v})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,f=0;f<o[l].dataList.length;++f){var c=o[l].dataList[f][0]+"";a[c]=l}for(var c in a)a.hasOwnProperty(c)&&a[c]!==l&&(a[c]=l,r[n]=[c,0,u],n++)}return r},t.prototype.getInitialData=function(r,n){for(var a=this.getReferringComponents("singleAxis",ze).models[0],i=a.get("type"),o=qt(r.data,function(d){return d[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=nt(),f=0,c=0;c<s.length;++c)l.push(s[c][$A]),u.get(s[c][$A])||(u.set(s[c][$A],f),f++);var v=jd(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:fb(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new sn(v,this);return h.initData(s),h},t.prototype.getLayerSeries=function(){for(var r=this.getData(),n=r.count(),a=[],i=0;i<n;++i)a[i]=i;var o=r.mapDimension("single"),s=VE(a,function(u){return r.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(c,v){return r.get(o,c)-r.get(o,v)}),l.push({name:f,indices:u})}),l},t.prototype.getAxisTooltipData=function(r,n,a){Y(r)||(r=r?[r]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var c=Number.MAX_VALUE,v=-1,h=o[f].indices.length,d=0;d<h;++d){var p=i.get(r[0],o[f].indices[d]),g=Math.abs(p-n);g<=c&&(u=p,c=g,v=o[f].indices[d])}s.push(v)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=i.getName(r),s=i.get(i.mapDimension("value"),r);return Ke("nameValue",{name:o,value:s})},t.type="series."+hd,t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(ne),aCt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=hd,r._layers=[],r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,c=u.boundaryGap;s.x=0,s.y=f.y+c[0];function v(g){return g.name}var h=new Ls(this._layersSeries||[],l,v,v),d=[];h.add(rt(p,this,"add")).update(rt(p,this,"update")).remove(rt(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],b=[],x,w=l[y].indices,T=0;T<w.length;T++){var C=i.getItemLayout(w[T]),A=C.x,M=C.y0,L=C.y;S.push(A,M),b.push(A,M+L),x=i.getItemVisual(w[T],"style")}var E,R=i.getItemLayout(w[0]),I=r.getModel("label"),O=I.get("margin"),N=r.getModel("emphasis");if(g==="add"){var P=d[y]=new ct;E=new YZ({shape:{points:S,stackedOnPoints:b,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),P.add(E),s.add(P),r.isAnimationEnabled()&&E.setClipPath(iCt(E.getBoundingRect(),r,function(){E.removeClipPath()}))}else{var P=_[m];E=P.childAt(0),s.add(P),d[y]=P,jt(E,{shape:{points:S,stackedOnPoints:b}},r),Wa(E)}yr(E,ir(r),{labelDataIndex:w[T-1],defaultText:i.getName(w[T-1]),inheritColor:x.fill},{normal:{verticalAlign:"middle"}}),E.setTextConfig({position:null,local:!0});var z=E.getTextContent();z&&(z.x=R.x-O,z.y=R.y0+R.y/2),E.useStyle(x),i.setItemGraphicEl(y,E),ar(E,r),Ae(E,N.get("focus"),N.get("blurScope"),N.get("disabled"))}this._layersSeries=l,this._layers=d},t.type=hd,t}(ee);function iCt(e,t,r){var n=new Et({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return ye(n,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,r),n}var oCt=or(hd,sCt);function sCt(e,t){e.eachSeriesByType(hd,function(r){var n=r.getData(),a=r.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=r.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=et(s[0],o.height),s[1]=et(s[1],o.height);var u=o.height-s[0]-s[1];LH(n,r,u)}else{s[0]=et(s[0],o.width),s[1]=et(s[1],o.width);var f=o.width-s[0]-s[1];LH(n,r,f)}n.setLayout("layoutInfo",i)})}function LH(e,t,r){if(e.count())for(var n=t.coordinateSystem,a=t.getLayerSeries(),i=e.mapDimension("single"),o=e.mapDimension("value"),s=X(a,function(g){return X(g.indices,function(y){var m=n.dataToPoint(e.get(i,y));return m[1]=e.get(o,y),m})}),l=lCt(s),u=l.y0,f=r/l.max,c=a.length,v=a[0].indices.length,h,d=0;d<v;++d){h=u[d]*f,e.setItemLayout(a[0].indices[d],{layerIndex:0,x:s[0][d][0],y0:h,y:s[0][d][1]*f});for(var p=1;p<c;++p)h+=s[p-1][d][1]*f,e.setItemLayout(a[p].indices[d],{layerIndex:p,x:s[p][d][0],y0:h,y:s[p][d][1]*f})}}function lCt(e){for(var t=e.length,r=e[0].length,n=[],a=[],i=0,o=0;o<r;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>i&&(i=s),n.push(s)}for(var u=0;u<r;++u)a[u]=(i-n[u])/2;i=0;for(var f=0;f<r;++f){var c=n[f]+a[f];c>i&&(i=c)}return{y0:a,max:i}}function uCt(e){e.registerChartView(aCt),e.registerSeriesModel(nCt),e.registerLayout(oCt),e.registerProcessor(Um(hd))}var fCt=2,cCt=4,OH=function(e){G(t,e);function t(r,n,a,i){var o=e.call(this)||this;o.z2=fCt,o.textConfig={inside:!0},yt(o).seriesIndex=n.seriesIndex;var s=new Ht({z2:cCt,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,a,i),o}return t.prototype.updateData=function(r,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;yt(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),f=n.getLayout(),c=U({},f);c.label=null;var v=n.getVisual("style");v.lineJoin="bevel";var h=n.getVisual("decal");h&&(v.decal=ad(h,o));var d=Ji(l.getModel("itemStyle"),c,!0);U(c,d),D(Tn,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var b=Ji(S,c);b&&(_.shape=b)}),r?(s.setShape(c),s.shape.r=f.r0,ye(s,{shape:{r:f.r}},a,n.dataIndex)):(jt(s,{shape:c},a),Wa(s)),s.useStyle(v),this._updateLabel(a);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="relative"?qh(n.getAncestorsIndices(),n.getDescendantIndices()):g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;Ae(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),c=this,v=c.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)<d);v.ignore=!p,D(my,function(y){var m=y==="normal"?a.getModel("label"):a.getModel([y,"label"]),_=y==="normal",S=_?v:v.ensureState(y),b=r.getFormattedLabel(h,y);_&&(b=b||n.node.name),S.style=se(m,{},null,y!=="normal",!0),b&&(S.style.text=b);var x=m.get("show");x!=null&&!_&&(S.ignore=!x);var w=g(m,"position"),T=_?c:c.states[y],C=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?C:null,inside:w!=="outside"};var A,M=g(m,"distance")||0,L=g(m,"align"),E=g(m,"rotate"),R=Math.PI*.5,I=Math.PI*1.5,O=ra(E==="tangential"?Math.PI/2-l:l),N=O>R&&!tc(O-R)&&O<I;w==="outside"?(A=o.r+M,L=N?"right":"left"):!L||L==="center"?(o.r0===0&&tc(s-2*Math.PI)?A=0:A=(o.r+o.r0)/2,L="center"):L==="left"?(A=o.r0+M,L=N?"right":"left"):L==="right"&&(A=o.r-M,L=N?"left":"right"),S.style.align=L,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=A*u+o.cx,S.y=A*f+o.cy;var P=0;E==="radial"?P=ra(-l)+(N?Math.PI:0):E==="tangential"?P=ra(Math.PI/2-l)+(N?Math.PI:0):Ut(E)&&(P=E*Math.PI/180),S.rotation=ra(P)});function g(y,m){var _=y.get(m);return _??i.get(m)}v.dirtyStyle()},t}(Wr),xc="sunburst",vCt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var a={name:r.name,children:r.data};iQ(a);var i=this._levelModels=X(r.levels||[],function(l){return new Ot(l,this,n)},this),o=gN.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var c=o.getNodeByDataIndex(f),v=i[c.depth];return v&&(u.parentModel=v),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=Rw(a,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){lK(this)},t.type="series."+xc,t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(ne);function iQ(e){var t=0;D(e.children,function(n){iQ(n);var a=n.value;Y(a)&&(a=a[0]),t+=a});var r=e.value;Y(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Y(e.value)?e.value[0]=r:e.value=r}var aO="sunburstRootToNode",RH="sunburstHighlight",hCt="sunburstUnhighlight";function dCt(e){e.registerAction({type:aO,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(a,i){var o=Uy(t,[aO],a);if(o){var s=a.getViewRoot();s&&(t.direction=yN(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),e.registerAction({type:RH,update:"none"},function(t,r,n){t=U({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i){var o=Uy(t,[RH],i);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(U(t,{type:"highlight"}))}),e.registerAction({type:hCt,update:"updateView"},function(t,r,n){t=U({},t),n.dispatchAction(U(t,{type:"downplay"}))})}var pCt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=xc,r}return t.prototype.render=function(r,n,a,i){var o=this;this.seriesModel=r,this.api=a,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),f=this.group,c=r.get("renderLabelForZeroData"),v=[];u.eachNode(function(m){v.push(m)});var h=this._oldChildren||[];d(v,h),y(l,u),this._initEvents(),this._oldChildren=v;function d(m,_){if(m.length===0&&_.length===0)return;new Ls(_,m,S,S).add(b).update(b).remove(At(b,null)).execute();function S(x){return x.getId()}function b(x,w){var T=x==null?null:m[x],C=w==null?null:_[w];p(T,C)}}function p(m,_){if(!c&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,r,n,a),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new OH(m,r,n,a);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){m&&m.piece&&(f.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,r,n,a):(o.virtualPiece=new OH(m,r,n,a),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=r.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";tb(u,f)}}a=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:aO,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type=xc,t}(ee),gCt=or(xc,yCt);function yCt(e){var t={};function r(n,a,i){if(n.depth===0)return V.color.neutral50;for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&J(s)&&(s=z1(s,(n.depth-1)/(i-1)*.5)),s}e.eachSeriesByType(xc,function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");U(u,l)})})}var IH=Math.PI/180,mCt=or(xc,_Ct);function _Ct(e,t){e.eachSeriesByType(xc,function(r){var n=r.get("center"),a=r.get("radius");Y(a)||(a=[0,a]),Y(n)||(n=[n,n]);var i=t.getWidth(),o=t.getHeight(),s=Math.min(i,o),l=et(n[0],i),u=et(n[1],o),f=et(a[0],s/2),c=et(a[1],s/2),v=-r.get("startAngle")*IH,h=r.get("minAngle")*IH,d=r.getData().tree.root,p=r.getViewRoot(),g=p.depth,y=r.get("sort");y!=null&&oQ(p,y);var m=0;D(p.children,function(I){!isNaN(I.getValue())&&m++});var _=p.getValue(),S=Math.PI/(_||m)*2,b=p.depth>0,x=p.height-(b?-1:1),w=(c-f)/(x||1),T=r.get("clockwise"),C=r.get("stillShowZeroSum"),A=T?1:-1,M=function(I,O){if(I){var N=O;if(I!==d){var P=I.getValue(),z=_===0&&C?S:P*S;z<h&&(z=h),N=O+A*z;var B=I.depth-g-(b?-1:1),H=f+w*B,F=f+w*(B+1),$=r.getLevelModel(I);if($){var j=$.get("r0",!0),tt=$.get("r",!0),mt=$.get("radius",!0);mt!=null&&(j=mt[0],tt=mt[1]),j!=null&&(H=et(j,s/2)),tt!=null&&(F=et(tt,s/2))}I.setLayout({angle:z,startAngle:O,endAngle:N,clockwise:T,cx:l,cy:u,r0:H,r:F})}if(I.children&&I.children.length){var Nt=0;D(I.children,function(Q){Nt+=M(Q,O+Nt)})}return N-O}};if(b){var L=f,E=f+w,R=Math.PI*2;d.setLayout({angle:R,startAngle:v,endAngle:v+R,clockwise:T,cx:l,cy:u,r0:L,r:E})}M(p,v)})}function oQ(e,t){var r=e.children||[];e.children=SCt(r,t),r.length&&D(e.children,function(n){oQ(n,t)})}function SCt(e,t){if(ut(t)){var r=X(e,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return r.sort(function(a,i){return t(a.params,i.params)}),X(r,function(a){return e[a.index]})}else{var n=t==="asc";return e.sort(function(a,i){var o=(a.getValue()-i.getValue())*(n?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(n?-1:1):o})}}function bCt(e){e.registerChartView(pCt),e.registerSeriesModel(vCt),e.registerLayout(mCt),e.registerVisual(gCt),dCt(e)}var PH={color:"fill",borderColor:"stroke"},xCt={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},cs=Tt(),wCt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return No(null,this)},t.prototype.getDataParams=function(r,n,a){var i=e.prototype.getDataParams.call(this,r,n);return a&&(i.info=cs(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(ne);function TCt(e,t){return t=t||[0,0],X(["x","y"],function(r,n){var a=this.getAxis(r),i=t[n],o=e[n]/2;return a.type==="category"?qr(a).w:Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function CCt(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:rt(TCt,e)}}}function ACt(e,t){return t=t||[0,0],X([0,1],function(r){var n=t[r],a=e[r]/2,i=[],o=[];return i[r]=n-a,o[r]=n+a,i[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(i)[r]-this.dataToPoint(o)[r])},this)}function MCt(e){var t=e.view,r=t.getBoundingRect();return{coordSys:{type:"geo",x:r.x,y:r.y,width:r.width,height:r.height,zoom:qSt(t)},api:{coord:function(n){return e.dataToPoint(n)},size:rt(ACt,e)}}}function DCt(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return r.type==="category"?qr(r).w:Math.abs(r.dataToCoord(n-a)-r.dataToCoord(n+a))}function ECt(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:rt(DCt,e)}}}function LCt(e,t){return t=t||[0,0],X(["Radius","Angle"],function(r,n){var a="get"+r+"Axis",i=this[a](),o=t[n],s=e[n]/2,l=i.type==="category"?qr(i).w:Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function OCt(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),o=r.dataToAngle(a[1]),s=e.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:rt(LCt,e)}}}function RCt(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,a){return e.dataToPoint(n,a)},layout:function(n,a){return e.dataToLayout(n,a)}}}}function ICt(e){var t=e.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r,n){return e.dataToPoint(r,n)},layout:function(r,n){return e.dataToLayout(r,n)}}}}var sQ={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},NH=kt(sQ);Ya(As,function(e,t){return e[t]=1,e},{});As.join(", ");var zb=["","style","shape","extra"],dd=Tt();function NN(e,t,r,n,a){var i=e+"Animation",o=kd(e,n,a)||{},s=dd(t).userDuring;return o.duration>0&&(o.during=s?rt(BCt,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),U(o,r[i]),o}function PS(e,t,r,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=dd(e),u=t.style;l.userDuring=t.during;var f={},c={};if(GCt(e,t,c),e.type==="compound")for(var v=e.shape.paths,h=t.shape.paths,d=0;d<h.length;d++){var p=h[d];WA("shape",p,v[d])}else WA("shape",t,c),WA("extra",t,c);if(!i&&s&&(VCt(e,t,f),kH("shape",e,t,f),kH("extra",e,t,f),HCt(e,t,u,f)),c.style=u,PCt(e,c,o),kCt(e,t),s)if(i){var g={};D(zb,function(m){var _=m?t[m]:t;_&&_.enterFrom&&(m&&(g[m]=g[m]||{}),U(m?g[m]:g,_.enterFrom))});var y=NN("enter",e,t,r,a);y.duration>0&&e.animateFrom(g,y)}else NCt(e,t,a||0,r,f);lQ(e,t),u?e.dirty():e.markRedraw()}function lQ(e,t){for(var r=dd(e).leaveToProps,n=0;n<zb.length;n++){var a=zb[n],i=a?t[a]:t;i&&i.leaveTo&&(r||(r=dd(e).leaveToProps={}),a&&(r[a]=r[a]||{}),U(a?r[a]:r,i.leaveTo))}}function Nw(e,t,r,n){if(e){var a=e.parent,i=dd(e).leaveToProps;if(i){var o=NN("update",e,t,r,0);o.done=function(){a&&a.remove(e)},e.animateTo(i,o)}else a&&a.remove(e)}}function zf(e){return e==="all"}function PCt(e,t,r){var n=t.style;if(!e.isGroup&&n){if(r){e.useStyle({});for(var a=e.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(e.style)}}e.setStyle(n)}t&&(t.style=null,t&&e.attr(t),t.style=n)}function NCt(e,t,r,n,a){if(a){var i=NN("update",e,t,n,r);i.duration>0&&e.animateFrom(a,i)}}function kCt(e,t){it(t,"silent")&&(e.silent=t.silent),it(t,"ignore")&&(e.ignore=t.ignore),e instanceof $a&&it(t,"invisible")&&(e.invisible=t.invisible),e instanceof Rt&&it(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var Ni={},zCt={setTransform:function(e,t){return Ni.el[e]=t,this},getTransform:function(e){return Ni.el[e]},setShape:function(e,t){var r=Ni.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=Ni.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=Ni.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=Ni.el.style;if(t)return t[e]},setExtra:function(e,t){var r=Ni.el.extra||(Ni.el.extra={});return r[e]=t,this},getExtra:function(e){var t=Ni.el.extra;if(t)return t[e]}};function BCt(){var e=this,t=e.el;if(t){var r=dd(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}Ni.el=t,n(zCt)}}function kH(e,t,r,n){var a=r[e];if(a){var i=t[e],o;if(i){var s=r.transition,l=a.transition;if(l)if(!o&&(o=n[e]={}),zf(l))U(o,i);else for(var u=ue(l),f=0;f<u.length;f++){var c=u[f],v=i[c];o[c]=v}else if(zf(s)||St(s,e)>=0){!o&&(o=n[e]={});for(var h=kt(i),f=0;f<h.length;f++){var c=h[f],v=i[c];UCt(a[c],v)&&(o[c]=v)}}}}}function WA(e,t,r){var n=t[e];if(n)for(var a=r[e]={},i=kt(n),o=0;o<i.length;o++){var s=i[o];a[s]=Og(n[s])}}function VCt(e,t,r){for(var n=t.transition,a=zf(n)?As:ue(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=e[o];r[o]=s}}}function GCt(e,t,r){for(var n=0;n<NH.length;n++){var a=NH[n],i=sQ[a],o=t[a];o&&(r[i[0]]=o[0],r[i[1]]=o[1])}for(var n=0;n<As.length;n++){var s=As[n];t[s]!=null&&(r[s]=t[s])}}function HCt(e,t,r,n){if(r){var a=e.style,i;if(a){var o=r.transition,s=t.transition;if(o&&!zf(o)){var l=ue(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var f=l[u],c=a[f];i[f]=c}}else if(e.getAnimationStyleProps&&(zf(s)||zf(o)||St(s,"style")>=0)){var v=e.getAnimationStyleProps(),h=v?v.style:null;if(h){!i&&(i=n.style={});for(var d=kt(r),u=0;u<d.length;u++){var f=d[u];if(h[f]){var c=a[f];i[f]=c}}}}}}}function UCt(e,t){return Xr(e)?e!==t:e!=null&&isFinite(e)}var uQ=Tt(),FCt=["percent","easing","shape","style","extra"];function fQ(e){e.stopAnimation("keyframe"),e.attr(uQ(e))}function Bb(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(Y(t)){D(t,function(s){Bb(e,s,r)});return}var n=t.keyframes,a=t.duration;if(r&&a==null){var i=kd("enter",r,0);a=i&&i.duration}if(!(!n||!a)){var o=uQ(e);D(zb,function(s){if(!(s&&!e[s])){var l;n.sort(function(u,f){return u.percent-f.percent}),D(n,function(u){var f=e.animators,c=s?u[s]:u;if(c){var v=kt(c);if(s||(v=qt(v,function(p){return St(FCt,p)<0})),!!v.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var h=0;h<f.length;h++)f[h]!==l&&f[h].targetName===l.targetName&&f[h].stopTracks(v);s&&(o[s]=o[s]||{});var d=s?o[s]:o;D(v,function(p){d[p]=((s?e[s]:e)||{})[p]}),l.whenWithKeys(a*u.percent,c,v,u.easing)}}}),l&&l.delay(t.delay||0).duration(a).start(t.easing)}})}}}var vs="emphasis",Tl="normal",kN="blur",zN="select",ou=[Tl,vs,kN,zN],ZA={normal:["itemStyle"],emphasis:[vs,"itemStyle"],blur:[kN,"itemStyle"],select:[zN,"itemStyle"]},qA={normal:["label"],emphasis:[vs,"label"],blur:[kN,"label"],select:[zN,"label"]},YCt=["x","y"],jCt="e\0\0",_a={normal:{},emphasis:{},blur:{},select:{}},XCt={cartesian2d:CCt,geo:MCt,single:ECt,polar:OCt,calendar:RCt,matrix:ICt};function iO(e){return e instanceof Rt}function oO(e){return e instanceof $a}function $Ct(e,t){t.copyTransform(e),oO(t)&&oO(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,iO(t)&&iO(e)&&t.setShape(e.shape))}var WCt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this._progressiveEls=null;var o=this._data,s=r.getData(),l=this.group,u=zH(r,s,n,a);o||l.removeAll(),s.diff(o).add(function(c){KA(a,null,c,u(c,i),r,l,s)}).remove(function(c){var v=o.getItemGraphicEl(c);v&&Nw(v,cs(v).option,r)}).update(function(c,v){var h=o.getItemGraphicEl(v);KA(a,h,c,u(c,i),r,l,s)}).execute();var f=r.get("clip",!0)?hc(r.coordinateSystem,!1,r):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(r,n,a,i,o){var s=n.getData(),l=zH(n,s,a,i),u=this._progressiveEls=[];function f(h){h.isGroup||(h.incremental=uo(n),h.ensureState("emphasis").hoverLayer=zd)}for(var c=r.start;c<r.end;c++){var v=KA(null,null,c,l(c,o),n,this.group,s);v&&(v.traverse(f),u.push(v))}},t.prototype.eachRendered=function(r){gu(this._progressiveEls||this.group,r)},t.prototype.filterForExposedEvent=function(r,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},t.type="custom",t}(ee);function BN(e){var t=e.type,r;if(t==="path"){var n=e.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=hQ(n);r=ed(i,null,a,n.layout||"center"),cs(r).customPathData=i}else if(t==="image")r=new mr({}),cs(r).customImagePath=e.style.image;else if(t==="text")r=new Ht({});else if(t==="group")r=new ct;else if(t==="compoundPath"){var n=e.shape;if(!n||!n.paths){var o="";Zt(o)}var s=X(n.paths,function(f){if(f.type==="path")return ed(f.shape.pathData,f,null);var c=Sy(f.type);if(!c){var v="";Zt(v)}return new c});r=new Em({shape:{paths:s}})}else{var l=Sy(t);if(!l){var o="";Zt(o)}r=new l}return cs(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function VN(e,t,r,n,a,i,o){fQ(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=YCt);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;it(u,"textFill")&&(u.fill=u.textFill),it(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,c=iO(t)?l.decal:null;e&&c&&(c.dirty=!0,f=ad(c,e)),l.__decalPattern=f}if(oO(t)&&l){var f=l.__decalPattern;f&&(l.decal=f)}PS(t,n,i,{dataIndex:r,isInit:o,clearStyle:!0}),Bb(t,n.keyframeAnimation,i)}function cQ(e,t,r,n,a){var i=t.isGroup?null:t,o=a&&a[e].cfg;if(i){var s=i.ensureState(e);if(n===!1){var l=i.getState(e);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),ic(i)}}function ZCt(e,t,r){if(!e.isGroup){var n=e,a=r.currentZ,i=r.currentZLevel;n.z=a,n.zlevel=i;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<ou.length;s++)qCt(n,t,ou[s])}}function qCt(e,t,r){var n=r===Tl,a=n?t:Vb(t,r),i=a?a.z2:null,o;i!=null&&(o=n?e:e.ensureState(r),o.z2=i||0)}function zH(e,t,r,n){var a=e.get("renderItem");if(typeof a=="string"){var i=Kdt(a);i&&(a=i)}var o=e.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):XCt[o.type](o));for(var l=dt({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:b,style:w,ordinalRawValue:x,styleEmphasis:T,visual:M,barLayout:L,currentSeriesIndices:E,font:R},s.api||{}),u={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:KCt(e.getData()),itemPayload:e.get("itemPayload")||{}},f,c,v={},h={},d={},p={},g=0;g<ou.length;g++){var y=ou[g];d[y]=e.getModel(ZA[y]),p[y]=e.getModel(qA[y])}function m(I){return I===f?c||(c=t.getItemModel(I)):t.getItemModel(I)}function _(I,O){return t.hasItemOption?I===f?v[O]||(v[O]=m(I).getModel(ZA[O])):m(I).getModel(ZA[O]):d[O]}function S(I,O){return t.hasItemOption?I===f?h[O]||(h[O]=m(I).getModel(qA[O])):m(I).getModel(qA[O]):p[O]}return function(I,O){return f=I,c=null,v={},h={},a&&a(dt({dataIndexInside:I,dataIndex:t.getRawIndex(I),actionType:O?O.type:null},u),l)};function b(I,O){return O==null&&(O=f),t.getStore().get(t.getDimensionIndex(I||0),O)}function x(I,O){O==null&&(O=f),I=I||0;var N=t.getDimensionInfo(I);if(!N){var P=t.getDimensionIndex(I);return P>=0?t.getStore().get(P,O):void 0}var z=t.get(N.name,O),B=N&&N.ordinalMeta;return B?B.categories[z]:z}function w(I,O){O==null&&(O=f);var N=t.getItemVisual(O,"style"),P=N&&N.fill,z=N&&N.opacity,B=_(O,Tl).getItemStyle();P!=null&&(B.fill=P),z!=null&&(B.opacity=z);var H={inheritColor:J(P)?P:V.color.neutral99},F=S(O,Tl),$=se(F,null,H,!1,!0);$.text=F.getShallow("show")?ot(e.getFormattedLabel(O,Tl),ud(t,O)):null;var j=Z1(F,H,!1);return A(I,B),B=C4(B,$,j),I&&C(B,I),B.legacy=!0,B}function T(I,O){O==null&&(O=f);var N=_(O,vs).getItemStyle(),P=S(O,vs),z=se(P,null,null,!0,!0);z.text=P.getShallow("show")?zn(e.getFormattedLabel(O,vs),e.getFormattedLabel(O,Tl),ud(t,O)):null;var B=Z1(P,null,!0);return A(I,N),N=C4(N,z,B),I&&C(N,I),N.legacy=!0,N}function C(I,O){for(var N in O)it(O,N)&&(I[N]=O[N])}function A(I,O){I&&(I.textFill&&(O.textFill=I.textFill),I.textPosition&&(O.textPosition=I.textPosition))}function M(I,O){if(O==null&&(O=f),it(PH,I)){var N=t.getItemVisual(O,"style");return N?N[PH[I]]:null}if(it(xCt,I))return t.getItemVisual(O,I)}function L(I){if(o.type==="cartesian2d"){var O=o.getBaseAxis();return q0t(dt({axis:O},I))}}function E(){return r.getCurrentSeriesIndices()}function R(I){return qI(I,r)}}function KCt(e){var t={};return D(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var a=n.coordDim,i=t[a]=t[a]||[];i[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function KA(e,t,r,n,a,i,o){if(!n){i.remove(t);return}var s=GN(e,t,r,n,a,i);return s&&o.setItemGraphicEl(r,s),s&&Ae(s,n.focus,n.blurScope,n.emphasisDisabled),s}function GN(e,t,r,n,a,i){var o=-1,s=t;t&&vQ(t,n,a)&&(o=St(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=BN(n),s&&$Ct(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),n.tooltipDisabled&&(u.tooltipDisabled=!0),_a.normal.cfg=_a.normal.conOpt=_a.emphasis.cfg=_a.emphasis.conOpt=_a.blur.cfg=_a.blur.conOpt=_a.select.cfg=_a.select.conOpt=null,_a.isLegacy=!1,JCt(u,r,n,a,l,_a),QCt(u,r,n,a,l),VN(e,u,r,n,_a,a,l),it(n,"info")&&(cs(u).info=n.info);for(var f=0;f<ou.length;f++){var c=ou[f];if(c!==Tl){var v=Vb(n,c),h=HN(n,v,c);cQ(c,u,v,h,_a)}}return ZCt(u,n,a),n.type==="group"&&tAt(e,u,r,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function vQ(e,t,r){var n=cs(e),a=t.type,i=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&aAt(i)&&hQ(i)!==n.customPathData||a==="image"&&it(o,"image")&&o.image!==n.customImagePath}function QCt(e,t,r,n,a){var i=r.clipPath;if(i===!1)e&&e.getClipPath()&&e.removeClipPath();else if(i){var o=e.getClipPath();o&&vQ(o,i,n)&&(o=null),o||(o=BN(i),e.setClipPath(o)),VN(null,o,t,i,null,n,a)}}function JCt(e,t,r,n,a,i){if(!(e.isGroup||e.type==="compoundPath")){BH(r,null,i),BH(r,vs,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=e.getTextContent();if(o===!1)f&&e.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=BN(o),e.setTextContent(f)),VN(null,f,t,o,null,n,a);for(var c=o&&o.style,v=0;v<ou.length;v++){var h=ou[v];if(h!==Tl){var d=i[h].conOpt;cQ(h,f,d,HN(o,d,h),null)}}c?f.dirty():f.markRedraw()}}}}function BH(e,t,r){var n=t?Vb(e,t):e,a=t?HN(e,n,vs):e.style,i=e.type,o=n?n.textConfig:null,s=e.textContent,l=s?t?Vb(s,t):s:null;if(a&&(r.isLegacy||WZ(a,i,!!o,!!l))){r.isLegacy=!0;var u=ZZ(a,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var f=l;!f.type&&(f.type="text")}var c=t?r[t]:r.normal;c.cfg=o,c.conOpt=l}function Vb(e,t){return t?e?e[t]:null:e}function HN(e,t,r){var n=t&&t.style;return n==null&&r===vs&&e&&(n=e.styleEmphasis),n}function tAt(e,t,r,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){rAt({api:e,oldChildren:t.children()||[],newChildren:i||[],dataIndex:r,seriesModel:a,group:t});return}u&&t.removeAll();for(var f=0;f<o;f++){var c=i[f],v=t.childAt(f);c?(c.ignore==null&&(c.ignore=!1),GN(e,v,r,c,a,t)):v.ignore=!0}for(var h=t.childCount()-1;h>=f;h--){var d=t.childAt(h);eAt(t,d,a)}}}function eAt(e,t,r){t&&Nw(t,cs(e).option,r)}function rAt(e){new Ls(e.oldChildren,e.newChildren,VH,VH,e).add(GH).update(GH).remove(nAt).execute()}function VH(e,t){var r=e&&e.name;return r??jCt+t}function GH(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,a=t!=null?r.oldChildren[t]:null;GN(r.api,a,r.dataIndex,n,r.seriesModel,r.group)}function nAt(e){var t=this.context,r=t.oldChildren[e];r&&Nw(r,cs(r).option,t.seriesModel)}function hQ(e){return e&&(e.pathData||e.d)}function aAt(e){return e&&(it(e,"pathData")||it(e,"d"))}function iAt(e){e.registerChartView(WCt),e.registerSeriesModel(wCt)}var vf=Tt(),HH=st,QA=rt,UN=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,a){var i=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new ct,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var v=At(UH,r,c);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,r)}YH(s,r,!0),this._renderHandle(i)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),a=t.axis,i=a.type==="category",o=r.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&qr(a).w>s)return!0;if(o){var l=aN(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,a,i){},e.prototype.createPointerEl=function(t,r,n,a){var i=r.pointer;if(i){var o=vf(t).pointerEl=new Xc[i.type](HH(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,a){if(r.label){var i=vf(t).labelEl=new Ht(HH(r.label));t.add(i),FH(i,a)}},e.prototype.updatePointerEl=function(t,r,n){var a=vf(t).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,a){var i=vf(t).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),FH(i,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Bd(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Cs(u.event)},onmousedown:QA(this._onHandleDragMove,this,0,0),drift:QA(this._onHandleDragMove,this),ondragend:QA(this._onHandleDragEnd,this)}),n.add(a)),YH(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");Y(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Ud(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){UH(this._axisPointerModel,!r&&this._moveAnimation,this._handle,JA(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(JA(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(JA(a)),vf(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Ty(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function UH(e,t,r,n){dQ(vf(r).lastProp,n)||(vf(r).lastProp=n,t?jt(r,n,e):(r.stopAnimation(),r.attr(n)))}function dQ(e,t){if(pt(e)&&pt(t)){var r=!0;return D(t,function(n,a){r=r&&dQ(e[a],n)}),!!r}else return e===t}function FH(e,t){e[t.get(["label","show"])?"show":"hide"]()}function JA(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function YH(e,t,r){var n=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=r)})}function FN(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function pQ(e,t,r,n,a){var i=r.get("value"),o=gQ(i,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Gd(s.get("padding")||0),u=s.getFont(),f=$x(o,u),c=a.position,v=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=a.align;d==="right"&&(c[0]-=v),d==="center"&&(c[0]-=v/2);var p=a.verticalAlign;p==="bottom"&&(c[1]-=h),p==="middle"&&(c[1]-=h/2),oAt(c,v,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:se(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function oAt(e,t,r,n){var a=n.getWidth(),i=n.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+r,i)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function gQ(e,t,r,n,a){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:a.precision}),o=a.formatter;if(o){var s={value:hb(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),J(o)?i=o.replace("{value}",i):ut(o)&&(i=o(s))}return i}function YN(e,t,r){var n=we();return Gs(n,n,r.rotation),gi(n,n,r.position),hi([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function yQ(e,t,r,n,a,i){var o=bn.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),pQ(t,n,a,i,{position:YN(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function jN(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function mQ(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function jH(e,t,r,n,a,i){return{cx:e,cy:t,r0:r,r:n,startAngle:a,endAngle:i,clockwise:!0}}function XN(e,t,r){return qr(e,{fromStat:{sers:X(t,function(n){return r.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function $N(e,t,r){return[Dt(te(t[0],t[1]),e-r/2),te(e+r/2,Dt(t[0],t[1]))]}var sAt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=s.getGlobalExtent(),c=XH(l,s).getOtherAxis(s).getGlobalExtent(),v=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=FN(i),d=lAt[u](s,v,f,c,i.get("seriesDataIndices"),i.ecModel);d.style=h,r.graphicKey=d.type,r.pointer=d}var p=xb(l.getRect(),a);yQ(n,r,p,a,i,o)},t.prototype.getHandleTransform=function(r,n,a){var i=xb(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=YN(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=XH(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=te(l[1],c[f]),c[f]=Dt(l[0],c[f]);var v=(u[1]+u[0])/2,h=[v,v];h[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:d[f]}},t}(UN);function XH(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var lAt={line:function(e,t,r,n){var a=jN([t,n[0]],[t,n[1]],$H(e));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(e,t,r,n,a,i){var o=XN(e,a,i),s=n[1]-n[0],l=$N(t,r,o),u=l[0],f=l[1];return{type:"Rect",shape:mQ([u,n[0]],[f-u,s],$H(e))}}};function $H(e){return e.dim==="x"?0:1}var uAt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:V.color.border,width:1,type:"dashed"},shadowStyle:{color:V.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:V.color.neutral00,padding:[5,7,5,7],backgroundColor:V.color.accent60,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:V.color.accent40,throttle:40}},t}(Lt),es=Tt(),fAt=D;function _Q(e,t,r){if(!Vt.node){var n=t.getZr();es(n).records||(es(n).records={}),cAt(n,t);var a=es(n).records[e]||(es(n).records[e]={});a.handler=r}}function cAt(e,t){if(es(e).initialized)return;es(e).initialized=!0,r("click",At(tM,"click")),r("mousemove",At(tM,"mousemove")),r("mousewheel",At(tM,"mousewheel")),r("globalout",hAt);function r(n,a){e.on(n,function(i){var o=dAt(t);fAt(es(e).records,function(s){s&&a(s,i,o.dispatchAction)}),vAt(o.pendings,t)})}}function vAt(e,t){var r=e.showTip.length,n=e.hideTip.length,a;r?a=e.showTip[r-1]:n&&(a=e.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function hAt(e,t,r){e.handler("leave",null,r)}function tM(e,t,r,n){t.handler(e,r,n)}function dAt(e){var t={showTip:[],hideTip:[]},r=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function sO(e,t){if(!Vt.node){var r=t.getZr(),n=(es(r).records||{})[e];n&&(es(r).records[e]=null)}}var pAt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click|mousewheel";_Q("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){sO("axisPointer",n)},t.prototype.dispose=function(r,n){sO("axisPointer",n)},t.type="axisPointer",t}(fe);function SQ(e,t){var r=[],n=e.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=rc(i,e);if(o==null||o<0||Y(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,v=u.dim,h=c==="x"||c==="radius"?1:0,d=i.mapDimension(v),p=[];p[h]=i.get(d,o),p[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(i.getValues(X(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];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 WH=Tt();function gAt(e,t,r){var n=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||rt(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){NS(a)&&(a=SQ({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=NS(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||NS(a),v={},h={},d={list:[],map:{}},p={showPointer:At(mAt,h),showTooltip:At(_At,d)};D(s.coordSysMap,function(y,m){var _=l||y.containPoint(a);D(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=wAt(u,S);if(!c&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&ZH(S,T,p,!1,v)}})});var g={};return D(f,function(y,m){var _=y.linkGroup;_&&!h[m]&&D(_.axesInfo,function(S,b){var x=h[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,qH(S),qH(y)))),g[y.key]=w}})}),D(g,function(y,m){ZH(f[m],y,p,!0,v)}),SAt(h,f,v),bAt(d,a,e,o),xAt(f,o,r),v}}function ZH(e,t,r,n,a){var i=e.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=yAt(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&U(a,s[0]),!n&&e.snap&&i.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function yAt(e,t){var r=t.axis,n=r.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return D(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,v;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,e,r);v=h.dataIndices,c=h.nestestValue}else{if(v=l.indicesOfNearest(n,f[0],e,r.type==="category"?.5:null),!v.length)return;c=l.getData().get(f[0],v[0])}if(Xa(c)){var d=e-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,a=c,i.length=0),D(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function mAt(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function _At(e,t,r,n){var a=r.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=By(l),f=e.map[u];f||(f=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function SAt(e,t,r){var n=r.axesInfo=[];D(t,function(a,i){var o=a.axisPointerModel.option,s=e[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function bAt(e,t,r,n){if(NS(t)||!e.list.length){n({type:"hideTip"});return}var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function xAt(e,t,r){var n=r.getZr(),a="axisPointerLastHighlights",i=WH(n)[a]||{},o=WH(n)[a]={};D(e,function(f,c){var v=f.axisPointerModel.option;v.status==="show"&&f.triggerEmphasis&&D(v.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}D(i,function(f,c){!o[c]&&l.push(u(f))}),D(o,function(f,c){!i[c]&&s.push(u(f))}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function wAt(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function qH(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function NS(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Fm(e){Qc.registerAxisPointerClass("CartesianAxisPointer",sAt),e.registerComponentModel(uAt),e.registerComponentView(pAt),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!Y(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=j_t(t,r)}}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},gAt)}function TAt(e){Ct(Rq),Ct(Fm)}var CAt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=s.getExtent(),f=l.getOtherAxis(s).getExtent(),c=s.dataToCoord(n),v=i.get("type");if(v&&v!=="none"){var h=FN(i),d=MAt[v](s,l,c,u,f,i.get("seriesDataIndices"),i.ecModel);d.style=h,r.graphicKey=d.type,r.pointer=d}var p=i.get(["label","margin"]),g=AAt(n,a,i,l,p);pQ(r,a,i,o,g)},t}(UN);function AAt(e,t,r,n,a){var i=t.axis,o=i.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,c;if(i.dim==="radius"){var v=we();Gs(v,v,s),gi(v,v,[n.cx,n.cy]),u=hi([o,-a],v);var h=t.getModel("axisLabel").get("rotate")||0,d=bn.innerTextLayout(s,h*Math.PI/180,-1);f=d.textAlign,c=d.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+a,o]);var g=n.cx,y=n.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:c}}var MAt={line:function(e,t,r,n,a){return e.dim==="angle"?{type:"Line",shape:jN(t.coordToPoint([a[0],r]),t.coordToPoint([a[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n,a,i,o){var s=Math.PI/180,l=XN(e,i,o),u;if(e.dim==="angle")u=jH(t.cx,t.cy,a[0],a[1],(-r-l/2)*s,(-r+l/2)*s);else{var f=$N(r,n,l),c=f[0],v=f[1];u=jH(t.cx,t.cy,c,v,0,Math.PI*2)}return{type:"Sector",shape:u}}},vo="polar",KH=vo,DAt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,a=this.ecModel;return a.eachComponent(r,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},t.type=vo,t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Lt),WN=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ze).models[0]},t.type="polarAxis",t}(Lt);We(WN,Wd);var EAt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(WN),LAt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(WN),ZN=function(e){G(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(Ka);ZN.prototype.dataToRadius=Ka.prototype.dataToCoord;ZN.prototype.radiusToData=Ka.prototype.coordToData;var OAt=Tt(),qN=function(e){G(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),a=r.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),f=$x(s==null?"":s+"",n.getFont(),"center","top"),c=Math.max(f.height,7),v=c/u;isNaN(v)&&(v=1/0);var h=Math.max(0,Math.floor(v)),d=OAt(r.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-h)<=1&&Math.abs(g-o)<=1&&p>h?h=p:(d.lastTickCount=o,d.lastAutoInterval=h),h},t}(Ka);qN.prototype.dataToAngle=Ka.prototype.dataToCoord;qN.prototype.angleToData=Ka.prototype.coordToData;var bQ=["radius","angle"],RAt=function(){function e(t){this.dimensions=bQ,this.type=vo,this.cx=0,this.cy=0,this._radiusAxis=new ZN,this._angleAxis=new qN,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===t&&r.push(n),a.scale.type===t&&r.push(a),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r,n){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)],n)},e.prototype.pointToData=function(t,r,n){n=n||[];var a=this.pointToCoord(t);return n[0]=this._radiusAxis.radiusToData(a[0],r),n[1]=this._angleAxis.angleToData(a[1],r),n},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},e.prototype.coordToPoint=function(t,r){r=r||[];var n=t[0],a=t[1]/180*Math.PI;return r[0]=Math.cos(a)*n+this.cx,r[1]=-Math.sin(a)*n+this.cy,r},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var a=t.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,c=u*u+f*f,v=this.r,h=this.r0;return v!==h&&c-o<=v*v&&c+o>=h*h},x:this.cx-n[1],y:this.cy-n[1],width:n[1]*2,height:n[1]*2}},e.prototype.convertToPixel=function(t,r,n){var a=QH(r);return a===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=QH(r);return a===this?this.pointToData(n):null},e}();function QH(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function IAt(e,t,r){var n=t.get("center"),a=sr(t,r).refContainer;e.cx=et(n[0],a.width)+a.x,e.cy=et(n[1],a.height)+a.y;var i=e.getRadiusAxis(),o=Math.min(a.width,a.height)/2,s=t.get("radius");s==null?s=[0,"100%"]:Y(s)||(s=[0,s]);var l=[et(s[0],o),et(s[1],o)];i.inverse?i.setExtent(l[1],l[0]):i.setExtent(l[0],l[1])}function PAt(e,t){var r=this,n=r.getAngleAxis(),a=r.getRadiusAxis();if(vc(n,sd),vc(a,sd),ld(n),ld(a),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function NAt(e){return e.mainType==="angleAxis"}function JH(e,t){var r;if(e.type=Nm(t),e.scale=Xd(t,e.type,!1),e.onBand=zm(e.scale,t),e.inverse=t.get("inverse"),NAt(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle"),a=(r=t.get("endAngle"))!==null&&r!==void 0?r:n+(e.inverse?-360:360);e.setExtent(n,a)}t.axis=e,e.model=t}var kAt={dimensions:bQ,create:function(e,t){var r=[];return e.eachComponent(KH,function(n,a){var i=new RAt(a+"");i.update=PAt;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");JH(o,l),JH(s,u),IAt(i,n,t),r.push(i),n.coordinateSystem=i,i.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")===vo){var a=n.getReferringComponents(KH,ze).models[0],i=n.coordinateSystem=a.coordinateSystem;i&&(cc(i.getRadiusAxis(),n,vo),cc(i.getAngleAxis(),n,vo))}}),r}},zAt=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function S_(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),a=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function b_(e){var t=e.getRadiusAxis();return t.inverse?0:1}function tU(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var BAt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var a=r.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords({breakTicks:"none"}),l=a.getMinorTicksCoords(),u=[];D(a.getViewLabels(),function(f){if(!f.tick.offInterval){f=st(f);var c=a.scale;f.coord=a.dataToCoord($d(c,f.tick)),u.push(f)}}),tU(u),tU(s),D(zAt,function(f){r.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&VAt[f](this.group,r,i,s,l,o,u)},this)}},t.type="angleAxis",t}(Qc),VAt={axisLine:function(e,t,r,n,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=r.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=b_(r),c=f?0:1,v,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[c]===0?v=new Xc[h]({shape:{cx:r.cx,cy:r.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):v=new Pd({shape:{cx:r.cx,cy:r.cy,r:i[f],r0:i[c]},style:o.getLineStyle(),z2:1,silent:!0}),v.style.fill=null,e.add(v)},axisTick:function(e,t,r,n,a,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[b_(r)],u=X(n,function(f){return new je({shape:S_(r,[l,l+s],f.coord)})});e.add(Jn(u,{style:dt(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,a,i){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[b_(r)],f=[],c=0;c<a.length;c++)for(var v=0;v<a[c].length;v++)f.push(new je({shape:S_(r,[u,u+l],a[c][v].coord)}));e.add(Jn(f,{style:dt(s.getModel("lineStyle").getLineStyle(),dt(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,r,n,a,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),f=t.get("triggerEvent");D(o,function(c,v){var h=l,d=c.tick.value,p=i[b_(r)],g=r.coordToPoint([p+u,c.coord]),y=r.cx,m=r.cy,_=Math.abs(g[0]-y)/p<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var b=s[d];pt(b)&&b.textStyle&&(h=new Ot(b.textStyle,l,l.ecModel))}var x=new Ht({silent:bn.isLabelSilent(t),style:se(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:S})});if(e.add(x),Us({el:x,componentModel:t,itemName:c.formattedLabel,formatterParamsExtra:{isTruncated:function(){return x.isTruncated},value:c.rawLabel,tickIndex:v}}),f){var w=bn.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=c.rawLabel,yt(x).eventData=w}},this)},splitLine:function(e,t,r,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c<n.length;c++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new je({shape:S_(r,i,n[c].coord)}))}for(var c=0;c<f.length;c++)e.add(Jn(f[c],{style:dt({stroke:l[c%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,r,n,a,i){if(a.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var f=0;f<a[u].length;f++)l.push(new je({shape:S_(r,i,a[u][f].coord)}));e.add(Jn(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,r,n,a,i){if(n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=Math.PI/180,v=-n[0].coord*c,h=Math.min(i[0],i[1]),d=Math.max(i[0],i[1]),p=t.get("clockwise"),g=1,y=n.length;g<=y;g++){var m=g===y?n[0].coord:n[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new Wr({shape:{cx:r.cx,cy:r.cy,r0:h,r:d,startAngle:v,endAngle:-m*c,clockwise:p},silent:!0})),v=-m*c}for(var g=0;g<f.length;g++)e.add(Jn(f[g],{style:dt({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},GAt=["splitLine","splitArea","minorSplitLine"],HAt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var i=this._axisGroup,o=this._axisGroup=new ct;this.group.add(o);var s=r.axis,l=s.polar,u=l.getAngleAxis(),f=s.getTicksCoords(),c=s.getMinorTicksCoords(),v=u.getExtent()[0],h=s.getExtent(),d=FAt(l,r,v),p=new bn(r,a,d);p.build(),o.add(p.group),Lm(i,o,r),D(GAt,function(g){r.get([g,"show"])&&!s.scale.isBlank()&&UAt[g](this.group,r,l,v,h,f,c)},this)}},t.type="radiusAxis",t}(Qc),UAt={splitLine:function(e,t,r,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,f=r.getAngleAxis(),c=Math.PI/180,v=f.getExtent(),h=Math.abs(v[1]-v[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var d=[],p=0;p<i.length;p++){var g=u++%l.length;d[g]=d[g]||[],d[g].push(new Xc[h]({shape:{cx:r.cx,cy:r.cy,r:Math.max(i[p].coord,0),startAngle:-v[0]*c,endAngle:-v[1]*c,clockwise:f.inverse}}))}for(var p=0;p<d.length;p++)e.add(Jn(d[p],{style:dt({stroke:l[p%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,r,n,a,i,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var c=0;c<o[f].length;c++)u.push(new Po({shape:{cx:r.cx,cy:r.cy,r:o[f][c].coord}}));e.add(Jn(u,{style:dt({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,r,n,a,i){if(i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=i[0].coord,v=1;v<i.length;v++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new Wr({shape:{cx:r.cx,cy:r.cy,r0:c,r:i[v].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),c=i[v].coord}for(var v=0;v<f.length;v++)e.add(Jn(f[v],{style:dt({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};function FAt(e,t,r){return{position:[e.cx,e.cy],rotation:r/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}var YAt=Od();function xQ(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}var jAt=or(fo,XAt);function XAt(e){var t=Kc(fo,vo);HP(e,t,function(r){var n=WAt(r,fo),a={};fc(r,t,function(i){$At(r,i,n,a)})})}function $At(e,t,r,n){var a=t.getData(),i=xQ(t),o=r[i],s=o.offset,l=o.width,u=t.coordinateSystem,f=u.getOtherAxis(e),c=u.cx,v=u.cy,h=t.get("barMinHeight")||0,d=t.get("barMinAngle")||0;n[i]=n[i]||[];for(var p=a.mapDimension(f.dim),g=a.mapDimension(e.dim),y=Os(a,p),m=e.dim!=="radius"||!t.get("roundCap",!0),_=f.dataToCoord(uq(f)),S=0,b=a.count();S<b;S++){var x=a.get(p,S),w=a.get(g,S),T=x>=0?"p":"n",C=_;y&&(n[i][w]||(n[i][w]={p:_,n:_}),C=n[i][w][T]);var A=void 0,M=void 0,L=void 0,E=void 0;if(f.dim==="radius"){var R=f.dataToCoord(x)-_,I=e.dataToCoord(w);Ie(R)<h&&(R=(R<0?-1:1)*h),A=C,M=C+R,L=I-s,E=L-l,y&&(n[i][w][T]=M)}else{var O=f.dataToCoord(x,m)-_,N=e.dataToCoord(w);Ie(O)<d&&(O=(O<0?-1:1)*d),A=N+s,M=A+l,L=C,E=C+O,y&&(n[i][w][T]=E)}a.setItemLayout(S,{cx:c,cy:v,r0:A,r:M,startAngle:-L*F1/180,endAngle:-E*F1/180,clockwise:L>=E})}}function WAt(e,t){var r=Kc(t,vo),n=qr(e,{fromStat:{key:r},min:1}).w,a=n,i=0,o="20%",s="30%",l={};fc(e,r,function(g){var y=xQ(g);l[y]||i++,l[y]=l[y]||{width:0,maxWidth:0};var m=et(g.get("barWidth"),n),_=et(g.get("barMaxWidth"),n),S=g.get("barGap"),b=g.get("barCategoryGap");m&&!l[y].width&&(m=te(a,m),l[y].width=m,a-=m),_&&(l[y].maxWidth=_),S!=null&&(s=S),b!=null&&(o=b)});var u={},f=et(o,n),c=et(s,1),v=(a-f)/(i+(i-1)*c);v=Dt(v,0),D(l,function(g,y){var m=g.maxWidth;m&&m<v&&(m=te(m,a),g.width&&(m=te(m,g.width)),a-=m,g.width=m,i--)}),v=(a-f)/(i+(i-1)*c),v=Dt(v,0);var h=0,d;D(l,function(g,y){g.width||(g.width=v),d=g,h+=g.width*(1+c)}),d&&(h-=d.width*c);var p=-h/2;return D(l,function(g,y){u[y]=u[y]||{offset:p,width:g.width},p+=g.width*(1+c)}),u}function ZAt(e,t){YAt(e,function(){var r=Kc(t,vo);lq(e,r,t,vo),bw(r,Cw(r))})}var qAt={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},KAt={splitNumber:5},QAt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="polar",t}(fe);function JAt(e){Ct(Fm),Qc.registerAxisPointerClass("PolarAxisPointer",CAt),e.registerCoordinateSystem("polar",kAt),e.registerComponentModel(DAt),e.registerComponentView(QAt),fd(e,"angle",EAt,qAt),fd(e,"radius",LAt,KAt),e.registerComponentView(BAt),e.registerComponentView(HAt),e.registerLayout(jAt),ZAt(e,fo)}function lO(e,t){t=t||{};var r=e.coordinateSystem,n=e.axis,a={},i=n.position,o=n.orient,s=r.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var f={horizontal:0,vertical:1};a.rotation=Math.PI/2*f[o];var c={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=c[i],e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),nn(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=e.get(["axisLabel","rotate"]);return a.labelRotate=i==="top"?-v:v,a.z2=1,a}var tMt=["splitArea","splitLine","breakArea"],eMt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="SingleAxisPointer",r}return t.prototype.render=function(r,n,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new ct;var l=lO(r),u=new bn(r,a,l);u.build(),o.add(this._axisGroup),o.add(u.group),D(tMt,function(f){r.get([f,"show"])&&rMt[f](this,this.group,this._axisGroup,r,a)},this),Lm(s,this._axisGroup,r),e.prototype.render.call(this,r,n,a,i)},t.prototype.remove=function(){Eq(this)},t.type="singleAxis",t}(Qc),rMt={splitLine:function(e,t,r,n,a){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),f=n.coordinateSystem.getRect(),c=i.isHorizontal(),v=[],h=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],y=0;y<d.length;++y){var m=i.toGlobalCoord(d[y].coord);c?(p[0]=m,p[1]=f.y,g[0]=m,g[1]=f.y+f.height):(p[0]=f.x,p[1]=m,g[0]=f.x+f.width,g[1]=m);var _=new je({shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},silent:!0});rd(_.shape,u);var S=h++%l.length;v[S]=v[S]||[],v[S].push(_)}for(var b=s.getLineStyle(["color"]),y=0;y<v.length;++y)t.add(Jn(v[y],{style:dt({stroke:l[y%l.length]},b),silent:!0}))}},splitArea:function(e,t,r,n,a){Dq(e,r,n,n)},breakArea:function(e,t,r,n,a){var i=Hm(),o=n.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(t,e,n,n.coordinateSystem.getRect(),a)}},nMt=function(e){G(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.pointToData=function(r,n){return this.coordinateSystem.pointToData(r)[0]},t}(Ka),wQ=["single"],aMt=function(){function e(t,r,n){this.type=Aw,this.dimension="single",this.dimensions=wQ,this.axisPointerEnabled=!0,this.model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var a=this.dimension,i=Nm(t),o=new nMt(a,Xd(t,i,!0),[0,0],i,t.get("position"));o.onBand=zm(o.scale,t),o.inverse=t.get("inverse"),o.orient=t.get("orient"),t.axis=o,o.model=t,o.coordinateSystem=this,this._axis=o},e.prototype.update=function(t,r){var n=this._axis;vc(n,sd),ld(n)},e.prototype.resize=function(t,r){var n=sr(t,r).refContainer;this._rect=xe(t.getBoxLayoutParams(),n),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var t=this._rect,r=this._axis,n=r.isHorizontal(),a=n?[0,t.width]:[0,t.height],i=r.inverse?1:0;r.setExtent(a[i],a[1-i]),this._updateAxisTransform(r,n?t.x:t.y)},e.prototype._updateAxisTransform=function(t,r){var n=t.getExtent(),a=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(o){return o+r}:function(o){return a-o+r},t.toLocalCoord=i?function(o){return o-r}:function(o){return a-o+r}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(t){var r=this.getRect(),n=this.getAxis(),a=n.orient;return a==="horizontal"?n.contain(n.toLocalCoord(t[0]))&&t[1]>=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t,r,n){n=n||[];var a=this.getAxis();return n[0]=a.coordToData(a.toLocalCoord(t[a.orient==="horizontal"?0:1])),n},e.prototype.dataToPoint=function(t,r,n){var a=this.getAxis(),i=this.getRect();n=n||[];var o=a.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),n[o]=a.toGlobalCoord(a.dataToCoord(+t)),n[1-o]=o===0?i.y+i.height/2:i.x+i.width/2,n},e.prototype.convertToPixel=function(t,r,n){var a=eU(r);return a===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=eU(r);return a===this?this.pointToData(n):null},e}();function eU(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function iMt(e,t){var r=[];return e.eachComponent(UL,function(n,a){var i=new aMt(n,e,t);i.name="single_"+a,i.resize(n,t),n.coordinateSystem=i,r.push(i)}),e.eachSeries(function(n){if(n.get("coordinateSystem")===rSt){var a=n.getReferringComponents(UL,ze).models[0],i=n.coordinateSystem=a&&a.coordinateSystem;i&&cc(i.getAxis(),n,Aw)}}),r}var oMt={create:iMt,dimensions:wQ},rU=["x","y"],sMt=["width","height"],lMt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=Gb(s),f=x_(l,u),c=x_(l,1-u),v=l.dataToPoint(n)[0],h=i.get("type");if(h&&h!=="none"){var d=FN(i),p=uMt[h](s,v,f,c,i.get("seriesDataIndices"),i.ecModel);p.style=d,r.graphicKey=p.type,r.pointer=p}var g=lO(a);yQ(n,r,g,a,i,o)},t.prototype.getHandleTransform=function(r,n,a){var i=lO(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=YN(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.coordinateSystem,l=Gb(o),u=x_(s,l),f=[r.x,r.y];f[l]+=n[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var c=x_(s,1-l),v=(c[1]+c[0])/2,h=[v,v];return h[l]=f[l],{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(UN),uMt={line:function(e,t,r,n){var a=jN([t,n[0]],[t,n[1]],Gb(e));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(e,t,r,n,a,i){var o=XN(e,a,i),s=n[1]-n[0],l=$N(t,r,o),u=l[0],f=l[1];return{type:"Rect",shape:mQ([u,n[0]],[f-u,s],Gb(e))}}};function Gb(e){return e.isHorizontal()?0:1}function x_(e,t){var r=e.getRect();return[r[rU[t]],r[rU[t]]+r[sMt[t]]]}var fMt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(fe);function cMt(e){Ct(Fm),Qc.registerAxisPointerClass("SingleAxisPointer",lMt),e.registerComponentView(fMt),e.registerComponentView(eMt),e.registerComponentModel(RS),fd(e,"single",RS,RS.defaultOption),e.registerCoordinateSystem("single",oMt)}var vMt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,a){var i=Wc(r);e.prototype.init.apply(this,arguments),nU(r,i)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),nU(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.layoutMode="box",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:V.color.axisLine,width:1,type:"solid"}},itemStyle:{color:V.color.neutral00,borderWidth:1,borderColor:V.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:V.size.s,color:V.color.secondary},monthLabel:{show:!0,position:"start",margin:V.size.s,align:"center",formatter:null,color:V.color.secondary},yearLabel:{show:!0,position:null,margin:V.size.xl,formatter:null,color:V.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Lt);function nU(e,t){var r=e.cellSize,n;Y(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var a=X([0,1],function(i){return hht(t,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});wo(e,t,{type:"box",ignoreSize:a})}var hMt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=this.group;i.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,i),this._renderLines(r,s,l,i),this._renderYearText(r,s,l,i),this._renderMonthText(r,u,l,i),this._renderWeekText(r,u,s,l,i)},t.prototype._renderDayRect=function(r,n,a){for(var i=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=n.start.time;u<=n.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToCalendarLayout([u],!1).tl,c=new Et({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});a.add(c)}},t.prototype._renderLines=function(r,n,a,i){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=n.start,v=0;c.time<=n.end.time;v++){d(c.formatedDate),v===0&&(c=s.getDateInfo(n.start.y+"-"+n.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=s.getDateInfo(h)}d(s.getNextNDay(n.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToCalendarLayout([p],!1).tl);var g=o._getLinePointsOfOneWeek(r,p,a);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,a),l,i)},t.prototype._getEdgesPoints=function(r,n,a){var i=[r[0].slice(),r[r.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},t.prototype._drawSplitline=function(r,n,a){var i=new Or({z2:20,shape:{points:r},style:n});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(r,n,a){for(var i=r.coordinateSystem,o=i.getDateInfo(n),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToCalendarLayout([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[a==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return J(r)&&r?a$(r,n):ut(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,a,i,o){var s=n[0],l=n[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,a,i){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,v=a==="horizontal"?0:1,h={top:[f,u[v][1]],bottom:[f,u[1-v][1]],left:[u[1-v][0],c],right:[u[v][0],c]},d=n.start.y;+n.end.y>+n.start.y&&(d=d+"-"+n.end.y);var p=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new Ht({z2:30,style:se(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,h[l],a,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(r,n,a,i,o){var s="left",l="top",u=r[0],f=r[1];return a==="horizontal"?(f=f+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,a,i){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||J(s))&&(s&&(n=rL(s)||n),s=n.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),g=0;g<c[v].length-1;g++){var y=c[v][g].slice(),m=this._firstDayOfMonth[g];if(d){var _=this._firstDayPoints[g];y[h]=(_[h]+c[0][g+1][h])/2}var S=o.get("formatter"),b=s[+m.m-1],x={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:b},w=this._formatterLabel(S,x),T=new Ht({z2:30,style:U(se(o,{text:w}),this._monthTextPositionControl(y,d,a,u,l)),silent:p});i.add(T)}}},t.prototype._weekTextPositionControl=function(r,n,a,i,o){var s="center",l="middle",u=r[0],f=r[1],c=a==="start";return n==="horizontal"?(u=u+i+(c?1:-1)*o[0]/2,s=c?"right":"left"):(f=f+i+(c?1:-1)*o[1]/2,l=c?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(r,n,a,i,o){var s=r.getModel("dayLabel");if(s.get("show")){var l=r.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),c=s.get("margin"),v=l.getFirstDayOfWeek();if(!f||J(f)){f&&(n=rL(f)||n);var h=n.get(["time","dayOfWeekShort"]);f=h||X(n.get(["time","dayOfWeekAbbr"]),function(x){return x[0]})}var d=l.getNextNDay(a.end.time,7-a.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];c=et(c,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(a.start.time,-(7+a.fweek)).time,c=-c);for(var g=s.get("silent"),y=0;y<7;y++){var m=l.getNextNDay(d,y),_=l.dataToCalendarLayout([m.time],!1).center,S=y;S=Math.abs((y+v)%7);var b=new Ht({z2:30,style:U(se(s,{text:f[S]}),this._weekTextPositionControl(_,i,u,c,p)),silent:g});o.add(b)}}},t.type="calendar",t}(fe),eM=864e5,dMt=function(){function e(t,r,n){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t,this._update(r,n)}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(t){t=Io(t);var r=t.getFullYear(),n=t.getMonth()+1,a=n<10?"0"+n:""+n,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:r+"",m:a,d:o,day:s,time:t.getTime(),formatedDate:r+"-"+a+"-"+o,date:t}},e.prototype.getNextNDay=function(t,r){return r=r||0,r===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+r),this.getDateInfo(t))},e.prototype._update=function(t,r){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];D([0,1],function(c){f(i,c)&&(o[a[c]]=i[c]*s[c])});var l={width:r.getWidth(),height:r.getHeight()},u=this._rect=xe(o,l);D([0,1],function(c){f(i,c)||(i[c]=u[a[c]]/s[c])});function f(c,v){return c[v]!=null&&c[v]!=="auto"}this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(t,r,n){n=n||[],Y(t)&&(t=t[0]),r==null&&(r=!0);var a=this.getDateInfo(t),i=this._rangeInfo,o=a.formatedDate;if(r&&!(a.time>=i.start.time&&a.time<i.end.time+eM))return n[0]=n[1]=NaN,n;var s=a.day,l=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?(n[0]=this._rect.x+s*this._sw+this._sw/2,n[1]=this._rect.y+l*this._sh+this._sh/2):(n[0]=this._rect.x+l*this._sw+this._sw/2,n[1]=this._rect.y+s*this._sh+this._sh/2),n},e.prototype.pointToData=function(t){var r=this.pointToDate(t);return r&&r.time},e.prototype.dataToLayout=function(t,r,n){n=n||{};var a=n.rect=n.rect||{},i=n.contentRect=n.contentRect||{},o=this.dataToPoint(t,r);return a.x=o[0]-this._sw/2,a.y=o[1]-this._sh/2,a.width=this._sw,a.height=this._sh,vt.copy(i,a),oc(i,this._lineWidth/2,!0,!0),n},e.prototype.dataToCalendarLayout=function(t,r){var n=this.dataToPoint(t,r);return{center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(t){var r=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,r-1,a):this._getDateByWeeksAndDay(r,n-1,a)},e.prototype.convertToPixel=function(t,r,n){var a=rM(r);return a===this?a.dataToPoint(n):null},e.prototype.convertToLayout=function(t,r,n){var a=rM(r);return a===this?a.dataToLayout(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=rM(r);return a===this?a.pointToData(n):null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var t=this._model.get("range"),r;if(Y(t)&&t.length===1&&(t=t[0]),Y(t))r=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(r=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var a=this.getDateInfo(n),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);r=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(r=[n,n])}if(!r)return t;var s=this._getRangeInfo(r);return s.start.time>s.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var a=Math.floor(r[1].time/eM)-Math.floor(r[0].time/eM)+1,i=new Date(r[0].time),o=i.getDate(),s=r[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-r[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-r[1].time)*u>0;)a-=u,i.setDate(l-u);var f=Math.floor((a+r[0].day+6)/7),c=n?-f+1:f-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:a,weeks:f,nthWeek:c,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var a=this._getRangeInfo(n);if(t>a.weeks||t===0&&r<a.fweek||t===a.weeks&&r>a.lweek)return null;var i=(t-1)*7-a.fweek+r,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(a){var i=new e(a,t,r);n.push(i),a.coordinateSystem=i}),t.eachComponent(function(a,i){Rm({targetModel:i,coordSysType:"calendar",coordSysProvider:c$})}),n},e.dimensions=["time","value"],e}();function rM(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}function pMt(e){e.registerComponentModel(vMt),e.registerComponentView(hMt),e.registerCoordinateSystem("calendar",dMt)}var qo={level:1,leaf:2,nonLeaf:3},hs={none:0,all:1,body:2,corner:3};function uO(e,t,r){var n=t[_t[r]].getCell(e);return!n&&Ut(e)&&e<0&&(n=t[_t[1-r]].getUnitLayoutInfo(r,Math.round(e))),n}function TQ(e){var t=e||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function CQ(e,t,r,n,a){aU(e[0],t,a,r,n,0),aU(e[1],t,a,r,n,1)}function aU(e,t,r,n,a,i){e[0]=1/0,e[1]=-1/0;var o=n[i],s=Y(o)?o:[o],l=s.length,u=!!r;if(l>=1?(iU(e,t,s,u,a,i,0),l>1&&iU(e,t,s,u,a,i,l-1)):e[0]=e[1]=NaN,u){var f=-a[_t[1-i]].getLocatorCount(i),c=a[_t[i]].getLocatorCount(i)-1;r===hs.body?f=Dt(0,f):r===hs.corner&&(c=te(-1,c)),c<f&&(f=c=NaN),Yr(e[0])&&(e[0]=f),Yr(e[1])&&(e[1]=c),e[0]=Dt(te(e[0],c),f),e[1]=Dt(te(e[1],c),f)}}function iU(e,t,r,n,a,i,o){var s=uO(r[o],a,i);if(!s){e[0]=e[1]=NaN;return}var l=s.id[_t[i]],u=l,f=_Mt(s);f&&(u+=f.span[_t[i]]-1),e[0]=te(e[0],l,u),e[1]=Dt(e[1],l,u)}function w_(e,t){return Yr(e[t][0])||Yr(e[t][1])}function oU(e,t,r,n){t=t||gMt;for(var a=0;a<n;a++)t[a]=!1;for(;;){for(var i=!1,a=0;a<n;a++){var o=r[a];!t[a]&&o.cellMergeOwner&&yMt(e,o.locatorRange)&&(t[a]=!0,i=!0)}if(!i)break}}var gMt=[];function yMt(e,t){return!sU(e[0],t[0])||!sU(e[1],t[1])?!1:(e[0][0]=te(e[0][0],t[0][0]),e[0][1]=Dt(e[0][1],t[0][1]),e[1][0]=te(e[1][0],t[1][0]),e[1][1]=Dt(e[1][1],t[1][1]),!0)}function sU(e,t){return e[1]>=t[0]&&e[0]<=t[1]}function lU(e,t){e.id.set(t[0][0],t[1][0]),e.span.set(t[0][1]-e.id.x+1,t[1][1]-e.id.y+1)}function mMt(e,t){e[0][0]=t[0][0],e[0][1]=t[0][1],e[1][0]=t[1][0],e[1][1]=t[1][1]}function uU(e,t,r,n){var a=uO(t[n][0],r,n),i=uO(t[n][1],r,n);e[_t[n]]=e[Ge[n]]=NaN,a&&i&&(e[_t[n]]=a.xy,e[Ge[n]]=i.xy+i.wh-a.xy)}function kp(e,t,r,n){return e[_t[t]]=r,e[_t[1-t]]=n,e}function _Mt(e){return e&&(e.type===qo.leaf||e.type===qo.nonLeaf)?e:null}function Hb(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var fU=function(){function e(t,r){this._cells=[],this._levels=[],this.dim=t,this.dimIdx=t==="x"?0:1,this._model=r,this._uniqueValueGen=SMt(t);var n=r.get("data",!0),a=r.get("length",!0);if(n!=null&&!Y(n)&&(n=[]),n)this._initByDimModelData(n);else if(a!=null){n=Array(a);for(var i=0;i<a;i++)n[i]=null;this._initByDimModelData(n)}else this._initBySeriesData()}return e.prototype._initByDimModelData=function(t){var r=this,n=r._cells,a=r._levels,i=[],o=0;r._leavesCount=s(t,0,0),l();return;function s(u,f,c){var v=0;return u&&D(u,function(h,d){var p;J(h)?p={value:h}:pt(h)?(p=h,h.value!=null&&!J(h.value)&&(p={value:null})):p={value:null};var g={type:qo.nonLeaf,ordinal:NaN,level:c,firstLeafLocator:f,id:new gt,span:kp(new gt,r.dimIdx,1,1),option:p,xy:NaN,wh:NaN,dim:r,rect:Hb()};o++,(i[f]||(i[f]=[])).push(g),a[c]||(a[c]={type:qo.level,xy:NaN,wh:NaN,option:null,id:new gt,dim:r});var y=s(p.children,f,c+1),m=Math.max(1,y);g.span[_t[r.dimIdx]]=m,v+=m,f+=m}),v}function l(){for(var u=[];n.length<o;)for(var f=0;f<i.length;f++){var c=i[f].pop();if(c){c.ordinal=u.length;var v=c.option.value;u.push(v),n.push(c),r._uniqueValueGen.calcDupBase(v)}}r._uniqueValueGen.ensureValueUnique(u,n);var h=r._ordinalMeta=new Ay({categories:u,needCollect:!1,deduplication:!1});r._scale=new Ey({ordinalMeta:h});for(var d=0;d<r._leavesCount;d++){var p=r._cells[d];p.type=qo.leaf,p.span[_t[1-r.dimIdx]]=r._levels.length-p.level}r._initCellsId(),r._initLevelIdOptions()}},e.prototype._initBySeriesData=function(){var t=this;t._leavesCount=0,t._levels=[{type:qo.level,xy:NaN,wh:NaN,option:null,id:new gt,dim:t}],t._initLevelIdOptions();var r=t._ordinalMeta=new Ay({needCollect:!0,deduplication:!0,onCollect:function(n,a){var i=t._cells[a]={type:qo.leaf,ordinal:a,level:0,firstLeafLocator:a,id:new gt,span:kp(new gt,t.dimIdx,1,1),option:{value:n+""},xy:NaN,wh:NaN,dim:t,rect:Hb()};t._leavesCount++,t._setCellId(i)}});t._scale=new Ey({ordinalMeta:r})},e.prototype._setCellId=function(t){var r=this._levels.length,n=this.dimIdx;kp(t.id,n,t.firstLeafLocator,t.level-r)},e.prototype._initCellsId=function(){var t=this._levels.length,r=this.dimIdx;D(this._cells,function(n){kp(n.id,r,n.firstLeafLocator,n.level-t)})},e.prototype._initLevelIdOptions=function(){var t=this._levels.length,r=this.dimIdx,n=this._model.get("levels",!0);n=Y(n)?n:[],D(this._levels,function(a,i){kp(a.id,r,0,i-t),a.option=n[i]})},e.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},e.prototype.resetLayoutIterator=function(t,r,n,a){if(t=t||new Bl,r===this.dimIdx){var i=this._leavesCount,o=n!=null?Math.max(0,n):0;a=a!=null?Math.min(a,i):i,t.reset(this._cells,o,o+a)}else{var i=this._levels.length,o=n!=null?Math.max(0,n+i):0;a=a!=null?Math.min(a,i):i,t.reset(this._levels,o,o+a)}return t},e.prototype.resetCellIterator=function(t){return(t||new Bl).reset(this._cells,0)},e.prototype.resetLevelIterator=function(t){return(t||new Bl).reset(this._levels,0)},e.prototype.getLayout=function(t,r,n){var a=this.getUnitLayoutInfo(r,n);t[_t[r]]=a?a.xy:NaN,t[Ge[r]]=a?a.wh:NaN},e.prototype.getUnitLayoutInfo=function(t,r){return t===this.dimIdx?r<this._leavesCount?this._cells[r]:void 0:this._levels[r+this._levels.length]},e.prototype.getCell=function(t){var r=this._scale.parse(t);return Yr(r)?void 0:this._cells[r]},e.prototype.getLocatorCount=function(t){return t===this.dimIdx?this._leavesCount:this._levels.length},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e}();function SMt(e){var t=e.toUpperCase(),r=new RegExp("^"+t+"([0-9]+)$"),n=0;function a(s){var l;s!=null&&(l=s.match(r))&&(n=Dt(n,+l[1]+1))}function i(){return""+t+n++}function o(s,l){for(var u=nt(),f=0;f<s.length;f++){var c=s[f];(c==null||u.get(c)!=null)&&(s[f]=c=i(),l[f].option=dt({value:c},l[f].option)),u.set(c,!0)}}return{calcDupBase:a,ensureValueUnique:o}}var cU=function(){function e(t,r,n){this._model=r,this._dims=n,this._kind=t,this._cellMergeOwnerList=[]}return e.prototype._ensureCellMap=function(){var t=this,r=t._cellMap;return r||(r=t._cellMap=nt(),n()),r;function n(){var i=[],o=t._model.getShallow("data");o&&!Y(o)&&(o=null),D(o,function(d,p){if(!(!pt(d)||!Y(d.coord))){var g=TQ([]),y=null;if(CQ(g,y,d.coord,t._dims,d.coordClamp?hs[t._kind]:hs.none),!(w_(g,0)||w_(g,1))){var m=d&&d.mergeCells,_={id:new gt,span:new gt,locatorRange:g,option:d,cellMergeOwner:m};lU(_,g),i.push(_)}}});for(var s=[],l=0;l<i.length;l++){var u=i[l];if(u.cellMergeOwner){var f=u.locatorRange;oU(f,s,i,l);for(var c=0;c<l;c++)s[c]&&(i[c].cellMergeOwner=!1);if(f[0][0]!==u.id.x||f[1][0]!==u.id.y){u.cellMergeOwner=!1;var v=U({},u.option);v.coord=null;var h={id:new gt,span:new gt,locatorRange:f,option:v,cellMergeOwner:!0};lU(h,f),i.push(h)}}}D(i,function(d){var p=a(d.id.x,d.id.y);if(d.cellMergeOwner&&(p.cellMergeOwner=!0,p.span=d.span,p.locatorRange=d.locatorRange,p.spanRect=Hb(),t._cellMergeOwnerList.push(p)),!(!d.cellMergeOwner&&!d.option))for(var g=0;g<d.span.y;g++)for(var y=0;y<d.span.x;y++){var m=a(d.id.x+y,d.id.y+g);m.option=d.option,d.cellMergeOwner&&(m.inSpanOf=p)}})}function a(i,o){var s=vU(i,o),l=r.get(s);return l||(l=r.set(s,{id:new gt(i,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),l}},e.prototype.getCell=function(t){return this._ensureCellMap().get(vU(t[0],t[1]))},e.prototype.travelExistingCells=function(t){this._ensureCellMap().each(t)},e.prototype.expandRangeByCellMerge=function(t){if(!w_(t,0)&&!w_(t,1)&&t[0][0]===t[0][1]&&t[1][0]===t[1][1]){nM[0]=t[0][0],nM[1]=t[1][0];var r=this.getCell(nM),n=r&&r.inSpanOf;if(n){mMt(t,n.locatorRange);return}}var a=this._cellMergeOwnerList;oU(t,null,a,a.length)},e}(),nM=[];function vU(e,t){return e+"|"+t}var KN={show:!0,color:V.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function QN(e){return{color:"none",borderWidth:1,borderColor:e?"none":V.color.borderTint}}var hU={show:!0,label:KN,itemStyle:QN(!1),silent:void 0,dividerLineStyle:{width:1,color:V.color.border}},bMt={label:KN,itemStyle:QN(!1),silent:void 0},xMt={label:KN,itemStyle:QN(!0),silent:void 0},wMt={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:hU,y:hU,body:bMt,corner:xMt,backgroundStyle:{color:"none",borderColor:V.color.axisLine,borderWidth:1},triggerEvent:!1},TMt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){var r=this._dimModels={x:new dU(this.get("x",!0)||{}),y:new dU(this.get("y",!0)||{})};r.x.option.type=r.y.option.type="category";var n=r.x.dim=new fU("x",r.x),a=r.y.dim=new fU("y",r.y),i={x:n,y:a};this._body=new cU("body",new Ot(this.getShallow("body")),i),this._corner=new cU("corner",new Ot(this.getShallow("corner")),i)},t.prototype.getDimensionModel=function(r){return this._dimModels[r]},t.prototype.getBody=function(){return this._body},t.prototype.getCorner=function(){return this._corner},t.type="matrix",t.layoutMode="box",t.defaultOption=wMt,t}(Lt),dU=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},t}(Ot),T_=Math.round,CMt=0,AMt=99,MMt={normal:25,special:100},DMt={normal:50,special:125},EMt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n){this.group.removeAll();var a=this.group,i=r.coordinateSystem,o=i.getRect(),s=r.getDimensionModel("x"),l=r.getDimensionModel("y"),u=s.dim,f=l.dim;LMt(a,r,n),OMt(a,r,u,f,n);var c=r.getShallow("borderZ2",!0),v=ot(c,AMt),h=v-1,d=r.getModel("backgroundStyle").getItemStyle(["borderWidth"]);d.lineWidth=0;var p=r.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);p.fill="none";var g=fO(o.clone(),d,CMt),y=fO(o.clone(),p,v);g.silent=!0,y.silent=!0,a.add(g),a.add(y);var m=u.getUnitLayoutInfo(0,0),_=f.getUnitLayoutInfo(1,0);m&&_&&(u.shouldShow()&&a.add(pU({x1:o.x,y1:_.xy,x2:o.x+o.width,y2:_.xy},s.getModel("dividerLineStyle").getLineStyle(),h)),f.shouldShow()&&a.add(pU({x1:m.xy,y1:o.y,x2:m.xy,y2:o.y+o.height},l.getModel("dividerLineStyle").getLineStyle(),h)))},t.type="matrix",t}(fe);function LMt(e,t,r){n(0),n(1);function n(a){var i=t.getDimensionModel(_t[a]),o=i.dim;if(o.shouldShow())for(var s=i.getModel("itemStyle"),l=i.getModel("label"),u=t.getShallow("tooltip",!0),f=[],c=o.resetCellIterator();c.next();){var v=c.item,h={};vt.copy(h,v.rect),os(f,v.id.x,v.id.y),AQ(f,t,e,r,v.option,s,l,i,h,v.option.value,DMt,u,a===0?"x":"y")}}}function OMt(e,t,r,n,a){i("body",t.getBody(),r,n),r.shouldShow()&&n.shouldShow()&&i("corner",t.getCorner(),n,r);function i(o,s,l,u){var f=new Ot(t.getShallow(o,!0)),c=f.getModel("itemStyle"),v=f.getModel("label"),h=new Bl,d=new Bl,p=[],g=t.getShallow("tooltip",!0);for(u.resetLayoutIterator(d,1);d.next();)for(l.resetLayoutIterator(h,0);h.next();){var y=h.item,m=d.item;os(p,y.id.x,m.id.y);var _=s.getCell(p);if(!(_&&_.inSpanOf&&_.inSpanOf!==_)){var S={};_&&_.span?vt.copy(S,_.spanRect):(y.dim.getLayout(S,0,p[0]),m.dim.getLayout(S,1,p[1]));var b=_?_.option:null;AQ(p,t,e,a,b,c,v,f,S,b?b.value:null,MMt,g,o)}}}}function AQ(e,t,r,n,a,i,o,s,l,u,f,c,v){var h;C_.option=a?a.itemStyle:null,C_.parentModel=i,wv.option=a,wv.parentModel=s;var d=ot(wv.getShallow("z2"),a&&a.itemStyle?f.special:f.normal),p=c&&c.show,g=fO(l,C_.getItemStyle(),d);r.add(g);var y=wv.get("cursor");y!=null&&g.attr("cursor",y);var m;if(u!=null){var _=u+"";Ku.option=a?a.label:null,Ku.parentModel=o,Ku.ecModel=n;var S=Ku.getShallow("formatter");if(S){var b={componentType:"matrix",componentIndex:t.componentIndex,name:_,value:u,coord:e.slice(),$vars:["name","value","coord"]};if(J(S))_=a$(S,b);else if(ut(S)){var x=S(b);x!=null&&(_=x+"")}}if(yr(g,{normal:Ku},{defaultText:_,autoOverflowArea:!0,layoutRect:st(g.shape)}),m=g.getTextContent(),m){m.z2=d+1;var w=m.style;if(w&&w.overflow&&w.overflow!=="none"&&w.lineOverflow){var T={};vt.copy(T,l),oc(T,(((h=g.style)===null||h===void 0?void 0:h.lineWidth)||0)/2,!0,!0),g.updateInnerText(),m.getLocalTransform(A_),ca(A_,A_),vt.applyTransform(T,T,A_),m.setClipPath(new Et({shape:T}))}}Us({el:g,componentModel:t,itemName:_,itemTooltipOption:c,formatterParamsExtra:{xyLocator:e.slice()}})}var C=t.get("triggerEvent",!0);if(m){var A=Ku.get("silent");A==null&&(A=!(C||p)),m.silent=A,m.ignoreHostSilent=!0}var M=wv.get("silent");if(M==null&&(M=!g.style||g.style.fill==="none"||!g.style.fill),g.silent=M,C&&g){var L={componentType:"matrix",componentIndex:t.componentIndex,matrixIndex:t.componentIndex,targetType:v,name:m&&m.style?m.style.text:void 0,value:u,coord:e.slice()};yt(g).eventData=L}cC(wv),cC(C_),cC(Ku)}var wv=new Ot,C_=new Ot,Ku=new Ot,A_=[];function fO(e,t,r){var n=t.lineWidth;if(n){var a=e.x+e.width,i=e.y+e.height;e.x=na(e.x,n,!0),e.y=na(e.y,n,!0),e.width=na(a,n,!0)-e.x,e.height=na(i,n,!0)-e.y}return new Et({shape:e,style:t,z2:r})}function pU(e,t,r){var n=t.lineWidth;return n&&(T_(e.x1*2)===T_(e.x2*2)&&(e.x1=e.x2=na(e.x1,n,!0)),T_(e.y1*2)===T_(e.y2*2)&&(e.y1=e.y2=na(e.y1,n,!0))),new je({shape:e,style:t,silent:!0,z2:r})}var RMt=function(){function e(t,r,n){this.dimensions=e.dimensions,this.type="matrix",this._model=t;var a=this._dimModels={x:t.getDimensionModel("x"),y:t.getDimensionModel("y")};this._dims={x:a.x.dim,y:a.y.dim},this._resize(t,n)}return e.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},e.create=function(t,r){var n=[];return t.eachComponent("matrix",function(a){var i=new e(a,t,r);n.push(i),a.coordinateSystem=i}),t.eachComponent(function(a,i){Rm({targetModel:i,coordSysType:"matrix",coordSysProvider:c$})}),n},e.prototype.getRect=function(){return this._rect},e.prototype._resize=function(t,r){var n=this._dims,a=this._dimModels,i=this._rect=xe(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()});gU(a,n,i,0),gU(a,n,i,1),yU(0,n),yU(1,n),mU(this._model.getBody(),n),mU(this._model.getCorner(),n)},e.prototype.dataToPoint=function(t,r,n){return n=n||[],this.dataToLayout(t,r,zp),n[0]=zp.rect.x+zp.rect.width/2,n[1]=zp.rect.y+zp.rect.height/2,n},e.prototype.dataToLayout=function(t,r,n){var a=this._dims;n=n||{};var i=n.rect=n.rect||{};i.x=i.y=i.width=i.height=NaN;var o=n.matrixXYLocatorRange=TQ(n.matrixXYLocatorRange);return Y(t)&&(CQ(o,null,t,a,ot(r&&r.clamp,hs.none)),(!r||!r.ignoreMergeCells)&&((!r||r.clamp!==hs.corner)&&this._model.getBody().expandRangeByCellMerge(o),(!r||r.clamp!==hs.body)&&this._model.getCorner().expandRangeByCellMerge(o)),uU(i,o,a,0),uU(i,o,a,1)),n},e.prototype.pointToData=function(t,r,n){var a=this._dims;return _U(Ri,0,a,t,r&&r.clamp),_U(Ri,1,a,t,r&&r.clamp),n=n||[],n[0]=n[1]=NaN,Ri.y===Pr.inCorner&&Ri.x===Pr.inBody?SU(Ri,n,0,a):Ri.x===Pr.inCorner&&Ri.y===Pr.inBody?SU(Ri,n,1,a):(bU(Ri,n,0,a),bU(Ri,n,1,a)),n},e.prototype.convertToPixel=function(t,r,n,a){var i=iM(r);return i===this?i.dataToPoint(n,a):void 0},e.prototype.convertToLayout=function(t,r,n,a){var i=iM(r);return i===this?i.dataToLayout(n,a):void 0},e.prototype.convertFromPixel=function(t,r,n,a){var i=iM(r);return i===this?i.pointToData(n,a):void 0},e.prototype.containPoint=function(t){return this._rect.contain(t[0],t[1])},e.dimensions=["x","y","value"],e}(),zp={rect:Hb()},M_=new Bl,aM=new Bl;function gU(e,t,r,n){for(var a=1-n,i=t[_t[n]],o=t[_t[a]],s=o.shouldShow(),l=i.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=o.resetLayoutIterator(null,n);u.next();)u.item.wh=u.item.xy=NaN;for(var f=r[Ge[n]],c=i.getLocatorCount(n)+o.getLocatorCount(n),v=new Ot,h=o.resetLevelIterator();h.next();)v.option=h.item.option,v.parentModel=e[_t[a]],g(h.item,s?v.get("levelSize"):0);for(var d=new Ot,p=i.resetCellIterator();p.next();)p.item.type===qo.leaf&&(d.option=p.item.option,d.parentModel=void 0,g(p.item,d.get("size")));function g(w,T){var C=IMt(T,n,r);Yr(C)||(w.wh=cO(C,f),f=cO(f-w.wh),c--)}var y=c?f/c:0,m=!c&&f>=1,_=r[_t[n]],S=i.getLocatorCount(n)-1,b=new Bl;for(o.resetLayoutIterator(b,n);b.next();)x(b.item);for(i.resetLayoutIterator(b,n);b.next();)x(b.item);function x(w){Yr(w.wh)&&(w.wh=y),w.xy=_,w.id[_t[n]]===S&&!m&&(w.wh=r[_t[n]]+r[Ge[n]]-w.xy),_+=w.wh}}function yU(e,t){for(var r=t[_t[e]].resetCellIterator();r.next();){var n=r.item;Ub(n.rect,e,n.id,n.span,t),Ub(n.rect,1-e,n.id,n.span,t),n.type===qo.nonLeaf&&(n.xy=n.rect[_t[e]],n.wh=n.rect[Ge[e]])}}function mU(e,t){e.travelExistingCells(function(r){var n=r.span;if(n){var a=r.spanRect,i=r.id;Ub(a,0,i,n,t),Ub(a,1,i,n,t)}})}function Ub(e,t,r,n,a){e[Ge[t]]=0;var i=r[_t[t]],o=i<0?a[_t[1-t]]:a[_t[t]],s=o.getUnitLayoutInfo(t,r[_t[t]]);if(e[_t[t]]=s.xy,e[Ge[t]]=s.wh,n[_t[t]]>1){var l=o.getUnitLayoutInfo(t,r[_t[t]]+n[_t[t]]-1);e[Ge[t]]=l.xy+l.wh-s.xy}}function IMt(e,t,r){var n=Y1(e,r[Ge[t]]);return cO(n,r[Ge[t]])}function cO(e,t){return Math.max(Math.min(e,ot(t,1/0)),0)}function iM(e){var t=e.matrixModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}var Pr={inBody:1,inCorner:2,outside:3},Ri={x:null,y:null,point:[]};function _U(e,t,r,n,a){var i=r[_t[t]],o=r[_t[1-t]],s=i.getUnitLayoutInfo(t,i.getLocatorCount(t)-1),l=i.getUnitLayoutInfo(t,0),u=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),f=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,c=e.point[t]=n[t];if(!l&&!f){e[_t[t]]=Pr.outside;return}if(a===hs.body){l?(e[_t[t]]=Pr.inBody,c=te(s.xy+s.wh,Dt(l.xy,c)),e.point[t]=c):e[_t[t]]=Pr.outside;return}else if(a===hs.corner){f?(e[_t[t]]=Pr.inCorner,c=te(f.xy+f.wh,Dt(u.xy,c)),e.point[t]=c):e[_t[t]]=Pr.outside;return}var v=l?l.xy:f?f.xy+f.wh:NaN,h=u?u.xy:v,d=s?s.xy+s.wh:v;if(c<h){if(!a){e[_t[t]]=Pr.outside;return}c=h}else if(c>d){if(!a){e[_t[t]]=Pr.outside;return}c=d}e.point[t]=c,e[_t[t]]=v<=c&&c<=d?Pr.inBody:h<=c&&c<=v?Pr.inCorner:Pr.outside}function SU(e,t,r,n){var a=1-r;if(e[_t[r]]!==Pr.outside)for(n[_t[r]].resetCellIterator(aM);aM.next();){var i=aM.item;if(xU(e.point[r],i.rect,r)&&xU(e.point[a],i.rect,a)){t[r]=i.ordinal,t[a]=i.id[_t[a]];return}}}function bU(e,t,r,n){if(e[_t[r]]!==Pr.outside){var a=e[_t[r]]===Pr.inCorner?n[_t[1-r]]:n[_t[r]];for(a.resetLayoutIterator(M_,r);M_.next();)if(PMt(e.point[r],M_.item)){t[r]=M_.item.id[_t[r]];return}}}function PMt(e,t){return t.xy<=e&&e<=t.xy+t.wh}function xU(e,t,r){return t[_t[r]]<=e&&e<=t[_t[r]]+t[Ge[r]]}function NMt(e){e.registerComponentModel(TMt),e.registerComponentView(EMt),e.registerCoordinateSystem("matrix",RMt)}function kMt(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function wU(e,t){var r;return D(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function zMt(e,t,r){var n=U({},r),a=e[t],i=r.$action||"merge";i==="merge"?a?(wt(a,n,!0),wo(a,n,{ignoreSize:!0}),g$(r,a),D_(r,a),D_(r,a,"shape"),D_(r,a,"style"),D_(r,a,"extra"),r.clipPath=a.clipPath):e[t]=n:i==="replace"?e[t]=n:i==="remove"&&a&&(e[t]=null)}var MQ=["transition","enterFrom","leaveTo"],BMt=MQ.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function D_(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?MQ:BMt,a=0;a<n.length;a++){var i=n[a];e[i]==null&&t[i]!=null&&(e[i]=t[i])}}function VMt(e,t){if(e&&(e.hv=t.hv=[wU(t,["left","right"]),wU(t,["top","bottom"])],e.type==="group")){var r=e,n=t;r.width==null&&(r.width=n.width=0),r.height==null&&(r.height=n.height=0)}}var GMt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventAutoZ=!0,r}return t.prototype.mergeOption=function(r,n){var a=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,r,n),this.option.elements=a},t.prototype.optionUpdated=function(r,n){var a=this.option,i=(n?a:r).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=Yj(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];D(l,function(f,c){var v=f.newOption;v&&(u.push(v),kMt(f,v),zMt(o,c,v),VMt(o[c],v))},this),a.elements=qt(o,function(f){return f&&delete f.$action,f!=null})},t.prototype._flatten=function(r,n,a){D(r,function(i){if(i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},t.type="graphic",t.defaultOption={elements:[]},t}(Lt),TU={path:null,compoundPath:null,group:ct,image:mr,text:Ht},Aa=Tt(),HMt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._elMap=nt()},t.prototype.render=function(r,n,a){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,a)},t.prototype._updateElements=function(r){var n=r.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=r.get("z"),s=r.get("zlevel");D(n,function(l){var u=nr(l.id,null),f=u!=null?a.get(u):null,c=nr(l.parentId,null),v=c!=null?a.get(c):i,h=l.type,d=l.style;h==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&WZ(d,h,!!g,!!p)){var y=ZZ(d,h,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=UMt(l),_=l.$action||"merge",S=_==="merge",b=_==="replace";if(S){var x=!f,w=f;x?w=CU(u,v,l.type,a):(w&&(Aa(w).isNew=!1),fQ(w)),w&&(PS(w,m,r,{isInit:x}),AU(w,l,o,s))}else if(b){kS(f,l,a,r);var T=CU(u,v,l.type,a);T&&(PS(T,m,r,{isInit:!0}),AU(T,l,o,s))}else _==="remove"&&(lQ(f,l),kS(f,l,a,r));var C=a.get(u);if(C&&p)if(S){var A=C.getTextContent();A?A.attr(p):C.setTextContent(new Ht(p))}else b&&C.setTextContent(new Ht(p));if(C){var M=l.clipPath;if(M){var L=M.type,E=void 0,x=!1;if(S){var R=C.getClipPath();x=!R||Aa(R).type!==L,E=x?vO(L):R}else b&&(x=!0,E=vO(L));C.setClipPath(E),PS(E,M,r,{isInit:x}),Bb(E,M.keyframeAnimation,r)}var I=Aa(C);C.setTextConfig(g),I.option=l,FMt(C,r,l),Us({el:C,componentModel:r,itemName:C.name,itemTooltipOption:l.tooltip}),Bb(C,l.keyframeAnimation,r)}})}},t.prototype._relocate=function(r,n){for(var a=r.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<a.length;f++){var c=a[f],v=nr(c.id,null),h=v!=null?o.get(v):null;if(!(!h||!h.isGroup)){var d=h.parent,p=d===i,g=Aa(h),y=Aa(d);g.width=et(g.option.width,p?s:y.width)||0,g.height=et(g.option.height,p?l:y.height)||0}}for(var f=a.length-1;f>=0;f--){var c=a[f],v=nr(c.id,null),h=v!=null?o.get(v):null;if(h){var d=h.parent,y=Aa(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=cw(h,c,m,null,{hv:c.hv,boundingMode:c.bounding},_);if(!Aa(h).isNew&&S){for(var b=c.transition,x={},w=0;w<u.length;w++){var T=u[w],C=_[T];b&&(zf(b)||St(b,T)>=0)?x[T]=C:h[T]=C}jt(h,x,r,0)}else h.attr(_)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(a){kS(a,Aa(a).option,n,r._lastGraphicModel)}),this._elMap=nt()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(fe);function vO(e){var t=it(TU,e)?TU[e]:Sy(e),r=new t({});return Aa(r).type=e,r}function CU(e,t,r,n){var a=vO(r);return t.add(a),n.set(e,a),Aa(a).id=e,Aa(a).isNew=!0,a}function kS(e,t,r,n){var a=e&&e.parent;a&&(e.type==="group"&&e.traverse(function(i){kS(i,t,r,n)}),Nw(e,t,n),r.removeKey(Aa(e).id))}function AU(e,t,r,n){e.isGroup||D([["cursor",$a.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(a){var i=a[0];it(t,i)?e[i]=ot(t[i],a[1]):e[i]==null&&(e[i]=a[1])}),D(kt(t),function(a){if(a.indexOf("on")===0){var i=t[a];e[a]=ut(i)?i:null}}),it(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function UMt(e){return e=U({},e),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(v$),function(t){delete e[t]}),e}function FMt(e,t,r){var n=yt(e).eventData;!e.silent&&!e.ignore&&!n&&(n=yt(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function YMt(e){e.registerComponentModel(GMt),e.registerComponentView(HMt),e.registerPreprocessor(function(t){var r=t.graphic;Y(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var MU=["x","y","radius","angle","single"],jMt=Tt(),XMt=["cartesian2d","polar","singleAxis"];function $Mt(e){var t=e.get("coordinateSystem");return St(XMt,t)>=0}function Cl(e){return e+"Axis"}function WMt(e,t){var r=nt(),n=[],a=nt();e.eachComponent({mainType:"dataZoom",query:t},function(f){a.get(f.uid)||s(f)});var i;do i=!1,e.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(v,h){var d=r.get(v);d&&d[h]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,v){(r.get(c)||r.set(c,[]))[v]=!0})}return n}function DQ(e){var t=e.ecModel,r={infoList:[],infoMap:nt()};return e.eachTargetAxis(function(n,a){var i=t.getComponent(Cl(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(i)}}}),r}function EQ(e){var t=jMt(fW(e));return t.axisProxyMap||(t.axisProxyMap=nt())}function Fb(e){if(e)return EQ(e.ecModel).get(e.uid)}function ZMt(e,t){EQ(e.ecModel).set(e.uid,t)}function LQ(e,t){var r=t.getAxisModel().axis.__alignTo;return r&&e.getAxisProxy(r.dim,r.model.componentIndex)?Fb(r.model):null}var oM=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),Wy=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,a){var i=DU(r);this.settledOption=i,this.mergeDefaultAndTheme(r,a),this._doInit(i)},t.prototype.mergeOption=function(r){var n=DU(r);wt(this.option,r,!0),wt(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var a=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=nt(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return D(MU,function(a){var i=this.getReferringComponents(Cl(a),kft);if(i.specified){n=!0;var o=new oM;D(i.models,function(s){o.add(s.componentIndex)}),r.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var c=u[0];if(c){var v=new oM;if(v.add(c.componentIndex),r.set(f,v),i=!1,f==="x"||f==="y"){var h=c.getReferringComponents("grid",ze).models[0];h&&D(u,function(d){c.componentIndex!==d.componentIndex&&h===d.getReferringComponents("grid",ze).models[0]&&v.add(d.componentIndex)})}}}i&&D(MU,function(u){if(i){var f=a.findComponents({mainType:Cl(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var c=new oM;c.add(f[0].componentIndex),r.set(u,c),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,a=this.get("rangeMode");D([["start","startValue"],["end","endValue"]],function(i,o){var s=r[i[0]]!=null,l=r[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,a){r==null&&(r=this.ecModel.getComponent(Cl(n),a))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(a,i){D(a.indexList,function(o){r.call(n,i,o)})})},t.prototype.getAxisProxy=function(r,n){return Fb(this.getAxisModel(r,n))},t.prototype.getAxisModel=function(r,n){var a=this._targetAxisInfoMap.get(r);if(a&&a.indexMap[n])return this.ecModel.getComponent(Cl(r),n)},t.prototype.setRawRange=function(r){var n=this.option,a=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i){(r[i[0]]!=null||r[i[1]]!=null)&&(n[i[0]]=a[i[0]]=r[i[0]],n[i[1]]=a[i[1]]=r[i[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;D(["start","startValue","end","endValue"],function(a){n[a]=r[a]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getWindow().percent},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getWindow().value}else return this.getAxisProxy(r,n).getWindow().value},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return Fb(r);for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(Lt);function DU(e){var t={};return D(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var qMt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(Wy),JN=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this.dataZoomModel=r,this.ecModel=n,this.api=a},t.type="dataZoom",t}(fe),KMt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(JN),QMt=function(){function e(t,r,n,a){this._dimName=t,this._axisIndex=r,this.ecModel=a,this._dataZoomModel=n}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getWindow=function(){return st(this._window)},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(r){if($Mt(r)){var n=Cl(this._dimName),a=r.getReferringComponents(n,ze).models[0];a&&this._axisIndex===a.componentIndex&&t.push(r)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return st(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var r=this._extent,n=this.getAxisModel().axis,a=n.scale,i=this._dataZoomModel,o=i.getRangePropMode(),s=[0,100],l=[],u=[],f,c=[!1,!1];D(["start","end"],function(_,S){var b=t[_],x=t[_+"Value"];o[S]==="percent"?(b==null&&(b=s[S]),x=Xt(b,s,r),c[S]=!0):(f=!0,x==null?x=r[S]:(x=a.parse(x),a.sanitize&&(x=a.sanitize(x,r))),b=Xt(x,r,s)),u[S]=x==null||isNaN(x)?r[S]:x,l[S]=b==null||isNaN(b)?s[S]:b}),Er(u),Er(l);var v=this._minMaxSpan;f?h(u,l,r,s,!1):h(l,u,s,r,!0);function h(_,S,b,x,w){var T=w?"Span":"ValueSpan";nu(0,_,b,"all",v["min"+T],v["max"+T]);for(var C=0;C<2;C++)S[C]=Xt(_[C],b,x,!0),w&&(S[C]=S[C],c[C]=!0);SS(S)}var d=un(a)||Pm(a),p=n.getExtent(),g=Ie(p[1]-p[0]),y=d?0:TI(u,g,.5);D([[0,Uc],[1,ja]],function(_){var S=_[0],b=_[1];!c[S]||!isFinite(y)||(u[S]=Yt(u[S],y),u[S]=te(r[1],Dt(r[0],u[S])),l[S]===s[S]&&(u[S]=r[S],d&&(u[S]=b(u[S]))))}),SS(u);var m=[Xt(u[0],r,s,!0),Xt(u[1],r,s,!0)];return SS(m),{value:u,percent:l,percentInverted:m,valuePrecision:y}},e.prototype.reset=function(t,r){if(this.hostedBy(t)){var n=this.getAxisModel().axis;vc(n,ayt);var a=n.scale.rawExtentInfo;this._extent=a.makeNoZoom(),this._updateMinMaxSpan();var i=t.settledOption;r&&(i=dt({start:r[0],end:r[1]},i));var o=this._window=this.calculateDataWindow(i),s=o.percent,l=o.value;s[0]!==0&&a.setZoomMM(0,l[0]),s[1]!==100&&a.setZoomMM(1,l[1])}},e.prototype.filterData=function(t,r){if(!this.hostedBy(t))return;var n=this._dimName,a=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._window.value;if(i==="none")return;D(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(f.length){if(i==="weakFilter"){var c=u.getStore(),v=X(f,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var d,p,g,y=0;y<f.length;y++){var m=c.get(v[y],h),_=!isNaN(m),S=m<o[0],b=m>o[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(d=!0),b&&(p=!0)}return g&&d&&p})}else D(f,function(h){if(i==="empty")l.setData(u=u.map(h,function(p){return s(p)?p:NaN}));else{var d={};d[h]=o,u.selectRange(d)}});D(f,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._extent;D(["min","max"],function(a){var i=r.get(a+"Span"),o=r.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Xt(n[0]+o,n,[0,100],!0):i!=null&&(o=Xt(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},e}(),JMt={dirtyOnOverallProgress:!0,getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(Cl(o),s);a(o,s,l,i)})})}var r=[];t(function(a,i,o,s){if(!Fb(o)){var l=new QMt(a,i,s,e);r.push(l),ZMt(o,l)}});var n=nt();return D(r,function(a){D(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){var n=[];r.eachTargetAxis(function(a,i){var o=r.getAxisProxy(a,i),s=LQ(r,o);s?n.push([o,s]):o.reset(r,null)}),D(n,function(a){a[0].reset(r,a[1].getWindow().percentInverted)}),r.eachTargetAxis(function(a,i){r.getAxisProxy(a,i).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var a=n.getWindow(),i=a.percent,o=a.value;r.setCalculatedRange({start:i[0],end:i[1],startValue:o[0],endValue:o[1]})}})}};function tDt(e){e.registerAction("dataZoom",function(t,r){var n=WMt(r,t);D(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var eDt=Od();function tk(e){eDt(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,JMt),tDt(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function rDt(e){e.registerComponentModel(qMt),e.registerComponentView(KMt),tk(e)}var ho=function(){function e(){}return e}(),OQ={};function Vv(e,t){OQ[e]=t}function RQ(e){return OQ[e]}var nDt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,a){var i=a.getTheme().get("toolbox"),o=i?i.feature:null;o&&(this._themeFeatureOption=U({},o),i.feature={}),e.prototype.init.call(this,r,n,a),o&&(i.feature=o)},t.prototype.optionUpdated=function(){D(this.option.feature,function(r,n){var a=this._themeFeatureOption,i=RQ(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(this.ecModel)),a&&a[n]&&(wt(r,a[n]),a[n]=null),wt(r,i.defaultOption))},this)},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:V.color.border,borderRadius:0,borderWidth:0,padding:V.size.m,itemSize:15,itemGap:V.size.s,showTitle:!0,iconStyle:{borderColor:V.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:V.color.accent70}},tooltip:{show:!1,position:"bottom"}},t}(Lt);function IQ(e,t){var r=Gd(t.get("padding")),n=t.getItemStyle(["color","opacity"]);n.fill=t.get("backgroundColor");var a=new Et({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1});return a}var aDt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a,i){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},f=this._features||(this._features=nt()),c=[];D(u,function(m,_){c.push(_)}),new Ls(this._featureNames||[],c).add(v).update(v).remove(At(v,null)).execute(),this._featureNames=qt(c,function(m){return f.hasKey(m)});function v(m,_){var S=m!=null&&_==null,b=m!=null&&_!=null,x=m==null,w=S||b?c[m]:c[_],T=u[w],C=S||b?new Ot(T,r,n):null,A=C&&C.get("show"),M;if(S){if(!A)return;if(iDt(w))M={onclick:C.option.onclick,featureName:w};else{var L=RQ(w);if(!L)return;M=new L}f.set(w,M)}else M=f.get(w);if(x||!A){EU(M)&&M.dispose&&M.dispose(n,a),f.removeKey(w);return}i&&i.newTitle!=null&&i.featureName===w&&(T.title=i.newTitle),S&&(M.uid=$c("toolbox-feature")),M.model=C,M.ecModel=n,M.api=a,h(C,M,w),C.setIconStatus=function(E,R){var I=this.option,O=this.iconPaths;I.iconStatus=I.iconStatus||{},I.iconStatus[E]=R,O[E]&&(R==="emphasis"?Ds:Es)(O[E])},EU(M)&&M.render&&M.render(C,n,a,i)}function h(m,_,S){var b=m.getModel("iconStyle"),x=m.getModel(["emphasis","iconStyle"]),w=_ instanceof ho&&_.getIcons?_.getIcons():m.get("icon"),T=m.get("title")||{},C,A;J(w)?(C={},C[S]=w):C=w,J(T)?(A={},A[S]=T):A=T;var M=m.iconPaths={};D(C,function(L,E){var R=Bd(L,{},{x:-s/2,y:-s/2,width:s,height:s});R.setStyle(b.getItemStyle());var I=R.ensureState("emphasis");I.style=x.getItemStyle();var O=new Ht({style:{text:A[E],align:x.get("textAlign"),borderRadius:x.get("textBorderRadius"),padding:x.get("textPadding"),fill:null,font:qI({fontStyle:x.get("textFontStyle"),fontFamily:x.get("textFontFamily"),fontSize:x.get("textFontSize"),fontWeight:x.get("textFontWeight")},n)},ignore:!0});R.setTextContent(O),Us({el:R,componentModel:r,itemName:E,formatterParamsExtra:{title:A[E]}}),R.__title=A[E],R.on("mouseover",function(){var N=x.getItemStyle(),P=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";O.setStyle({fill:x.get("textFill")||N.fill||N.stroke||V.color.neutral99,backgroundColor:x.get("textBackgroundColor")}),R.setTextConfig({position:x.get("textPosition")||P}),O.ignore=!r.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){m.get(["iconStatus",E])!=="emphasis"&&a.leaveEmphasis(this),O.hide()}),(m.get(["iconStatus",E])==="emphasis"?Ds:Es)(R),o.add(R),R.on("click",rt(_.onclick,_,n,a,E)),M[E]=R})}var d=sr(r,a).refContainer,p=r.getBoxLayoutParams(),g=r.get("padding"),y=xe(p,d,g);Pf(r.get("orient"),o,r.get("itemGap"),y.width,y.height),cw(o,p,d,g),o.add(IQ(o.getBoundingRect(),r)),l||o.eachChild(function(m){var _=m.__title,S=m.ensureState("emphasis"),b=S.textConfig||(S.textConfig={}),x=m.getTextContent(),w=x&&x.ensureState("emphasis");if(w&&!ut(w)&&_){var T=w.style||(w.style={}),C=$x(_,Ht.makeFont(T)),A=m.x+o.x,M=m.y+o.y+s,L=!1;M+C.height>a.getHeight()&&(b.position="top",L=!0);var E=L?-5-C.height:s+10;A+C.width/2>a.getWidth()?(b.position=["100%",E],T.align="right"):A-C.width/2<0&&(b.position=[0,E],T.align="left")}})},t.prototype.updateView=function(r,n,a,i){D(this._features,function(o){o&&o instanceof ho&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.dispose=function(r,n){D(this._features,function(a){a&&a instanceof ho&&a.dispose&&a.dispose(r,n)})},t.type="toolbox",t}(fe);function iDt(e){return e.indexOf("my")===0}function EU(e){return e instanceof ho}var oDt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var a=this.model,i=a.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||r.get("backgroundColor")||V.color.neutral00,connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=Vt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),h=v[0].indexOf("base64")>-1,d=o?decodeURIComponent(v[1]):v[1];h&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=a.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',T=window.open();T.document.write(w),T.document.title=i}},t.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:V.color.neutral00,name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(ho),LU="__ec_magicType_stack__",sDt=[["line","bar"],["stack"]],lDt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),a={};return D(r.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(OU[a]){var s={series:[]},l=function(c){var v=c.subType,h=c.id,d=OU[a](v,h,c,i);d&&(dt(d,c.option),s.series.push(d));var p=c.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=c.getReferringComponents(m,ze).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=a==="bar"}}};D(sDt,function(c){St(c,a)>=0&&D(c,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(a,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=wt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(ho),OU={line:function(e,t,r,n){if(e==="bar")return wt({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return wt({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var a=r.get("stack")===LU;if(e==="line"||e==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),wt({id:t,stack:a?"":LU},n.get(["option","stack"])||{},!0)}};bi({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var kw=new Array(60).join("-"),pd=" ";function uDt(e){var t={},r=[],n=[];return e.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=j0t(o);t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else r.push(a)}else r.push(a)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function fDt(e){var t=[];return D(e,function(r,n){var a=r.categoryAxis,i=r.valueAxis,o=i.dim,s=[" "].concat(X(r.series,function(h){return h.name})),l=[a.model.getCategories()];D(r.series,function(h){var d=h.getRawData();l.push(h.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(pd)],f=0;f<l[0].length;f++){for(var c=[],v=0;v<l.length;v++)c.push(l[v][f]);u.push(c.join(pd))}t.push(u.join(`
172
+ `))}),t.join(`
173
+
174
+ `+kw+`
175
+
176
+ `)}function cDt(e){return X(e,function(t){var r=t.getRawData(),n=[t.name],a=[];return r.each(r.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=r.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];n.push((s?s+pd:"")+a.join(pd))}),n.join(`
177
+ `)}).join(`
178
+
179
+ `+kw+`
180
+
181
+ `)}function vDt(e){var t=uDt(e);return{value:qt([fDt(t.seriesGroupByCategoryAxis),cDt(t.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(`
182
+
183
+ `+kw+`
184
+
185
+ `),meta:t.meta}}function Yb(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function hDt(e){var t=e.slice(0,e.indexOf(`
186
+ `));if(t.indexOf(pd)>=0)return!0}var hO=new RegExp("["+pd+"]+","g");function dDt(e){for(var t=e.split(/\n+/g),r=Yb(t.shift()).split(hO),n=[],a=X(r,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=Yb(t[i]).split(hO);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function pDt(e){for(var t=e.split(/\n+/g),r=Yb(t.shift()),n=[],a=0;a<t.length;a++){var i=Yb(t[a]);if(i){var o=i.split(hO),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:r,data:n}}function gDt(e,t){var r=e.split(new RegExp(`
187
+ *`+kw+`
188
+ *`,"g")),n={series:[]};return D(r,function(a,i){if(hDt(a)){var o=dDt(a),s=t[i],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=pDt(a);n.series.push(o)}}),n}var yDt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var a=n.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||V.color.neutral00;var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var c=i.get("optionToContent"),v=i.get("contentToOption"),h=vDt(r);if(ut(c)){var d=c(n.getOption());J(d)?u.innerHTML=d:Qf(d)&&u.appendChild(d)}else{f.readOnly=i.get("readOnly");var p=f.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=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),f.value=h.value,u.appendChild(f)}var g=h.meta,y=document.createElement("div");y.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",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var b=this;function x(){a.removeChild(o),b._dom=null}bE(_,"click",x),bE(S,"click",function(){if(v==null&&c!=null||v!=null&&c==null){x();return}var w;try{ut(v)?w=v(u,n.getOption()):w=gDt(f.value,g)}catch(T){throw x(),new Error("Data view format error "+T)}w&&n.dispatchAction({type:"changeDataView",newOption:w}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},t.prototype.dispose=function(r,n){this._dom&&n.getDom().removeChild(this._dom)},t.getDefaultOption=function(r){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:r.getLocaleModel().get(["toolbox","dataView","title"]),lang:r.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:V.color.background,textColor:V.color.primary,textareaColor:V.color.background,textareaBorderColor:V.color.border,buttonColor:V.color.accent50,buttonTextColor:V.color.neutral00};return n},t}(ho);function mDt(e,t){return X(e,function(r,n){var a=t&&t[n];if(pt(a)&&!Y(a)){var i=pt(r)&&!Y(r);i||(r={value:r});var o=a.name!=null&&r.name==null;return r=dt(r,a),o&&delete r.name,r}else return r})}bi({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var r=[];D(e.newOption.series,function(n){var a=t.getSeriesByName(n.name)[0];if(!a)r.push(U({type:"scatter"},n));else{var i=a.get("data");r.push({name:n.name,data:mDt(n.data,i)})}}),t.mergeOption(dt({series:r},e.newOption))});var PQ=D,NQ=Tt();function _Dt(e,t){var r=ek(e);PQ(t,function(n,a){for(var i=r.length-1;i>=0;i--){var o=r[i];if(o[a])break}if(i<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();r[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),r.push(t)}function SDt(e){var t=ek(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return PQ(r,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function bDt(e){NQ(e).snapshots=null}function xDt(e){return ek(e).length}function ek(e){var t=NQ(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var wDt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){bDt(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(ho);bi({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var TDt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],rk=function(){function e(t,r,n){var a=this;this._targetInfoList=[];var i=RU(r,t);D(CDt,function(o,s){(!n||!n.include||St(n.include,s)>=0)&&o(i,a._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=sM[n.brushType](0,i,a);n.__rangeOffset={offset:kU[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){D(t,function(a){var i=this.findTargetInfo(a,r);i&&i!==!0&&D(i.coordSyses,function(o){var s=sM[a.brushType](1,o,a.range,!0);n(a,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){D(t,function(n){var a=this.findTargetInfo(n,r);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=sM[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?kU[n.brushType](i.values,o.offset,ADt(i.xyMinMax,o.xyMinMax)):i.values}},this)},e.prototype.makePanelOpts=function(t,r){return X(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:HK(a),isTargetByCursor:FK(a,t,n.coordSysModel),getLinearBrushOtherExtent:UK(a)}})},e.prototype.controlSeries=function(t,r,n){var a=this.findTargetInfo(t,n);return a===!0||a&&St(a.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,a=RU(r,t),i=0;i<n.length;i++){var o=n[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<IU.length;l++)if(IU[l](a,o))return o}return!0},e}();function dO(e){return e[0]>e[1]&&e.reverse(),e}function RU(e,t){return wh(e,t,{includeMainTypes:TDt})}var CDt={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,a=e.gridModels,i=nt(),o={},s={};!r&&!n&&!a||(D(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),D(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];D(u.getCartesians(),function(c,v){(St(r,c.getAxis("x").model)>=0||St(n,c.getAxis("y").model)>=0)&&f.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:PU.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){D(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:PU.geo})})}},IU=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,a=e.gridModel;return!a&&r&&(a=r.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],PU={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys.view,t=Gq(null,e);return lj(t,t,Mb(null,e)),t}},sM={lineX:At(NU,0),lineY:At(NU,1),rect:function(e,t,r,n){var a=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),i=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[dO([a[0],i[0]]),dO([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var a=[kr(),kr()],i=X(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function NU(e,t,r,n){var a=r.getAxis(["x","y"][e]),i=dO(X([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[e]=i,o[1-e]=[NaN,NaN],{values:i,xyMinMax:o}}var kU={lineX:At(zU,0),lineY:At(zU,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return X(e,function(n,a){return[n[0]-r[0]*t[a][0],n[1]-r[1]*t[a][1]]})}};function zU(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function ADt(e,t){var r=BU(e),n=BU(t),a=[r[0]/n[0],r[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function BU(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var pO=D,MDt=Oft("toolbox-dataZoom_"),DDt={x:"width",y:"height"},EDt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a,i){this._brushController||(this._brushController=new CN(a.getZr()),this._brushController.on("brush",rt(this._onBrush,this)).mount()),RDt(r,n,this,i,a),ODt(r,n)},t.prototype.onclick=function(r,n,a){LDt[a].call(this)},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new rk(nk(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,f,c){if(c.type==="cartesian2d"){var v=c.master.getRect().clone(),h=u.brushType;h==="rect"?(s("x",c,v,f[0]),s("y",c,v,f[1])):s({lineX:"x",lineY:"y"}[h],c,v,f)}}),_Dt(i,a),this._dispatchZoomAction(a);function s(u,f,c,v){var h=f.getAxis(u),d=h.model,p=l(u,d,i),g=p.findRepresentativeAxisProxy(d).getMinMaxSpan(),y=h.scale.getExtent();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(v=nu(0,v.slice(),y,0,g.minValueSpan,g.maxValueSpan));var m=TI(y,c[DDt[u]],.5);p&&(a[p.id]={dataZoomId:p.id,startValue:isFinite(m)?Yt(v[0],m):v[0],endValue:isFinite(m)?Yt(v[1],m):v[1]})}function l(u,f,c){var v;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var d=h.getAxisModel(u,f.componentIndex);d&&(v=h)}),v}},t.prototype._dispatchZoomAction=function(r){var n=[];pO(r,function(a,i){n.push(st(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:V.color.backgroundTint}};return n},t}(ho),LDt={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(SDt(this.ecModel))}};function nk(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function ODt(e,t){e.setIconStatus("back",xDt(t)>1?"emphasis":"normal")}function RDt(e,t,r,n,a){var i=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=i,e.setIconStatus("zoom",i?"emphasis":"normal");var o=new rk(nk(e),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}_ht("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),a=[],i=nk(n),o=wh(e,i);pO(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),pO(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:MDt+u+c};v[f]=c,a.push(v)}return a});function IDt(e){e.registerComponentModel(nDt),e.registerComponentView(aDt),Vv("saveAsImage",oDt),Vv("magicType",lDt),Vv("dataView",yDt),Vv("dataZoom",EDt),Vv("restore",wDt),Ct(rDt)}var PDt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:V.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:V.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:V.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:V.color.tertiary,fontSize:14}},t}(Lt);function kQ(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function zQ(e){if(Vt.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var BQ=zQ(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),NDt=zQ(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function VQ(e,t){if(!e)return t;t=uP(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function kDt(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var zDt=VQ(NDt,"transition"),ak=VQ(BQ,"transform"),BDt="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Vt.transform3dSupported?"will-change:transform;":"");function VDt(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function GDt(e,t,r){if(!J(r)||r==="inside")return"";var n=e.get("backgroundColor"),a=e.get("borderWidth");t=lc(t);var i=VDt(r),o=Math.max(Math.round(a)*1.5,6),s="",l=ak+":",u;St(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+a,v=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((v-Math.SQRT2*a)/2+Math.SQRT2*a-(v-c)/2)*100)/100;s+=";"+i+":-"+h+"px";var d=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function HDt(e,t,r){var n="cubic-bezier(0.23,1,0.32,1)",a="",i="";return r&&(a=" "+e/2+"s "+n,i="opacity"+a+",visibility"+a),t||(a=" "+e+"s "+n,i+=(i.length?",":"")+(Vt.transformSupported?""+ak+a:",left"+a+",top"+a)),zDt+":"+i}function VU(e,t,r){var n=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!Vt.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Vt.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+ak+":"+o+";":[["top",0],["left",0],[BQ,o]]}function UDt(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont());var a=ot(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+a+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),D(["decoration","align"],function(u){var f=e.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function FDt(e,t,r,n){var a=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),s=e.get("shadowBlur"),l=e.get("shadowColor"),u=e.get("shadowOffsetX"),f=e.get("shadowOffsetY"),c=e.getModel("textStyle"),v=W$(e,"html"),h=u+"px "+f+"px "+s+"px "+l;return a.push("box-shadow:"+h),t&&i>0&&a.push(HDt(i,r,n)),o&&a.push("background-color:"+o),D(["width","color","radius"],function(d){var p="border-"+d,g=uP(p),y=e.get(g);y!=null&&a.push(p+":"+y+(d==="color"?"":"px"))}),a.push(UDt(c)),v!=null&&a.push("padding:"+Gd(v).join("px ")+"px"),a.join(";")+";"}function GU(e,t,r,n,a){var i=t&&t.painter;if(r){var o=i&&i.getViewportRoot();o&&jlt(e,o,r,n,a)}else{e[0]=n,e[1]=a;var s=i&&i.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var YDt=function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Vt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=r.appendTo,o=i&&(J(i)?document.querySelector(i):Qf(i)?i:ut(i)&&i(t.getDom()));GU(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();xa(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=kDt(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=BDt+FDt(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+VU(i[0],i[1],!0)+("border-color:"+lc(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(J(i)&&n.get("trigger")==="item"&&!kQ(n)&&(s=GDt(n,a,i)),J(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Y(t)||(t=[t]);for(var l=0;l<t.length;l++)Qf(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,r){if(this.el){var n=this._styleCoord;if(GU(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var a=this.el.style,i=VU(n[0],n[1]);D(i,function(o){a[o[0]]=o[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",Vt.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(rt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;Xlt(t&&t.painter&&t.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},e}(),jDt=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),UU(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,a,i){var o=this;pt(t)&&Zt(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Ht({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:W$(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),D(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),D(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=HU(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var a=this._styleCoord;UU(a,this._zr,t,r),t=a[0],r=a[1];var i=n.style,o=ol(i.borderWidth||0),s=HU(i);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(rt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function ol(e){return Math.max(0,e)}function HU(e){var t=ol(e.shadowBlur||0),r=ol(e.shadowOffsetX||0),n=ol(e.shadowOffsetY||0);return{left:ol(t-r),right:ol(t+r),top:ol(t-n),bottom:ol(t+n)}}function UU(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var XDt=new Et({shape:{x:-1,y:-1,width:2,height:2}}),$Dt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(Vt.node||!n.getDom())){var a=r.getComponent("tooltip"),i=this._renderMode=Bft(a.get("renderMode"));this._tooltipContent=i==="richText"?new jDt(n):new YDt(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},t.prototype.render=function(r,n,a){if(!(Vt.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Ud(this,"_updatePosition",50,"fixRate"):Ty(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");_Q("itemTooltip",this._api,rt(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,i=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(r,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,a,i){if(!(i.from===this.uid||Vt.node||!a.getDom())){var o=FU(i,a);this._ticket="";var s=i.dataByCoordSys,l=KDt(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=XDt;f.x=i.x,f.y=i.y,f.update(),yt(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,a,i))return;var c=SQ(i,n),v=c.point[0],h=c.point[1];v!=null&&h!=null&&this._tryShow({offsetX:v,offsetY:h,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,i.from!==this.uid&&this._hide(FU(i,a))},t.prototype._manuallyAxisShowTip=function(r,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=Bp([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(r,n){var a=r.target,i=this._tooltipModel;if(i){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(a){var s=yt(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;bf(a,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(yt(f).dataIndex!=null?l=f:yt(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=rt(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Bp([n.tooltipOption],i),l=this._renderMode,u=[],f=Ke("section",{blocks:[],noHeader:!0}),c=[],v=new zC;D(r,function(m){D(m.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value,x=S.axis,w=x.scale.parse(b);if(!(!S||b==null)){var T=gQ(b,x,a,_.seriesDataIndices,_.valueLabelOpt),C=Ke("section",{header:T,noHeader:!ea(T),sortBlocks:!0,blocks:[]});f.blocks.push(C),D(_.seriesDataIndices,function(A){var M=a.getSeriesByIndex(A.seriesIndex),L=A.dataIndexInside,E=M.getDataParams(L);if(!(E.dataIndex<0)){E.axisDim=_.axisDim,E.axisIndex=_.axisIndex,E.axisType=_.axisType,E.axisId=_.axisId,E.axisValue=hb(S.axis,{value:w}),E.axisValueLabel=T,E.marker=v.makeTooltipMarker("item",lc(E.color),l);var R=q5(M.formatTooltip(L,!0,null)),I=R.frag;if(I){var O=Bp([M],i).get("valueFormatter");C.blocks.push(O?U({valueFormatter:O},I):I)}R.text&&c.push(R.text),u.push(E)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,d=s.get("order"),p=rV(f,v,l,d,a.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?`
189
+
190
+ `:"<br/>",y=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,v)})},t.prototype._showSeriesItemTooltip=function(r,n,a){var i=this._ecModel,o=yt(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,v=u.getData(c),h=this._renderMode,d=r.positionDefault,p=Bp([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,c),m=new zC;y.marker=m.makeTooltipMarker("item",lc(y.color),h);var _=q5(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,w=x?rV(b?U({valueFormatter:b},x):x,m,h,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,y,T,r.offsetX,r.offsetY,r.position,r.target,m)}),a({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,a){var i=this._renderMode==="html",o=yt(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(J(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=st(l),l.content=rn(l.content));var c=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&c.push(v),c.push({formatter:l.content});var h=r.positionDefault,d=Bp(c,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",y=new zC;this._showOrMove(d,function(){var m=st(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,r.offsetX,r.offsetY,r.position,n,y)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,a,i,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var v=r.get("formatter");l=l||r.get("position");var h=n,d=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),p=d.color;if(v)if(J(v)){var g=r.ecModel.get("useUTC"),y=Y(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=v,m&&(h=Om(y.axisValue,h,g)),h=fP(h,a,!0)}else if(ut(v)){var _=rt(function(S,b){S===this._ticket&&(c.setContent(b,f,r,p,l),this._updatePosition(r,l,o,s,c,a,u))},this);this._ticket=i,h=v(a,i,_)}else h=v;c.setContent(h,f,r,p,l),c.show(r,p),this._updatePosition(r,l,o,s,c,a,u)}},t.prototype._getNearestPoint=function(r,n,a,i,o){if(a==="axis"||Y(n))return{color:i||o};if(!Y(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),v=r.get("align"),h=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ut(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),Y(n))a=et(n[0],u),i=et(n[1],f);else if(pt(n)){var p=n;p.width=c[0],p.height=c[1];var g=xe(p,{width:u,height:f});a=g.x,i=g.y,v=null,h=null}else if(J(n)&&l){var y=qDt(n,d,c,r.get("borderWidth"));a=y[0],i=y[1]}else{var y=WDt(a,i,o,u,f,v?null:20,h?null:20);a=y[0],i=y[1]}if(v&&(a-=YU(v)?c[0]/2:v==="right"?c[0]:0),h&&(i-=YU(h)?c[1]/2:h==="bottom"?c[1]:0),kQ(r)){var y=ZDt(a,i,o,u,f);a=y[0],i=y[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===r.length;return o&&D(a,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&D(u,function(v,h){var d=c[h]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&D(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&D(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){Vt.node||!n.getDom()||(Ty(this,"_updatePosition"),this._tooltipContent.dispose(),sO("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type="tooltip",t}(fe);function Bp(e,t,r){var n=t.ecModel,a;r?(a=new Ot(r,n,n),a=new Ot(t.option,a,n)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof Ot&&(o=o.get("tooltip",!0)),J(o)&&(o={formatter:o}),o&&(a=new Ot(o,a,n)))}return a}function FU(e,t){return e.dispatchAction||rt(t.dispatchAction,t)}function WDt(e,t,r,n,a,i,o){var s=r.getSize(),l=s[0],u=s[1];return i!=null&&(e+l+i+2>n?e-=l+i:e+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[e,t]}function ZDt(e,t,r,n,a){var i=r.getSize(),o=i[0],s=i[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function qDt(e,t,r,n){var a=r[0],i=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+f+o;break;case"left":s=t.x-a-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function YU(e){return e==="center"||e==="middle"}function KDt(e,t,r){var n=LI(e).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Ld(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=yt(u).tooltipConfig;if(f&&f.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function QDt(e){Ct(Fm),e.registerComponentModel(PDt),e.registerComponentView($Dt),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Pe),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Pe)}var JDt=["rect","polygon","keep","clear"];function t2t(e,t){var r=ue(e?e.brush:[]);if(r.length){var n=[];D(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=e&&e.toolbox;Y(a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),Qx(s,function(l){return l+""},null),t&&!s.length&&s.push.apply(s,JDt)}}var jU=D;function XU(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function gO(e,t,r){var n={};return jU(t,function(i){var o=n[i]=a();jU(e[i],function(s,l){if(dr.isValidType(l)){var u={type:l,visual:s};r&&r(u,i),o[l]=new dr(u),l==="opacity"&&(u=st(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new dr(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function GQ(e,t,r){var n;D(r,function(a){t.hasOwnProperty(a)&&XU(t[a])&&(n=!0)}),n&&D(r,function(a){t.hasOwnProperty(a)&&XU(t[a])?e[a]=st(t[a]):delete e[a]})}function e2t(e,t,r,n,a,i){var o={};D(e,function(c){var v=dr.prepareVisualTypes(t[c]);o[c]=v});var s;function l(c){return SP(r,s,c)}function u(c,v){aW(r,s,c,v)}r.each(f);function f(c,v){s=c;var h=r.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var d=n.call(a,c),p=t[d],g=o[d],y=0,m=g.length;y<m;y++){var _=g[y];p[_]&&p[_].applyVisual(c,l,u)}}}function r2t(e,t,r,n){var a={};return D(e,function(i){var o=dr.prepareVisualTypes(t[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(b){return SP(s,c,b)}function f(b,x){aW(s,c,b,x)}for(var c,v=s.getStore();(c=o.next())!=null;){var h=s.getRawDataItem(c);if(!(h&&h.visualMap===!1))for(var d=n!=null?v.get(l,c):c,p=r(d),g=t[p],y=a[p],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(d,u,f)}}}}}function n2t(e){var t=e.brushType,r={point:function(n){return $U[t].point(n,r,e)},rect:function(n){return $U[t].rect(n,r,e)}};return r}var $U={lineX:WU(0),lineY:WU(1),rect:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])},rect:function(e,t,r){return e&&r.boundingRect.intersect(e)}},polygon:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])&&ff(r.range,e[0],e[1])},rect:function(e,t,r){var n=r.range;if(!e||n.length<=1)return!1;var a=e.x,i=e.y,o=e.width,s=e.height,l=n[0];if(ff(n,a,i)||ff(n,a+o,i)||ff(n,a,i+s)||ff(n,a+o,i+s)||vt.create(e).contain(l[0],l[1])||Qp(a,i,a+o,i,n)||Qp(a,i,a,i+s,n)||Qp(a+o,i,a+o,i+s,n)||Qp(a,i+s,a+o,i+s,n))return!0}}};function WU(e){var t=["x","y"],r=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[e];return Vp(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[t[e]],n[t[e]]+n[r[e]]];return s[1]<s[0]&&s.reverse(),Vp(s[0],o)||Vp(s[1],o)||Vp(o[0],s)||Vp(o[1],s)}}}}function Vp(e,t){return t[0]<=e&&e<=t[1]}var ZU=["inBrush","outOfBrush"],lM="__ecBrushSelect",yO="__ecInBrushSelectEvent";function HQ(e){e.eachComponent({mainType:"brush"},function(t){var r=t.brushTargetManager=new rk(t.option,e);r.setInputRanges(t.areas,e)})}var a2t=Cm(i2t);function i2t(e,t,r){var n=[],a,i;e.eachComponent({mainType:"brush"},function(o){r&&r.type==="takeGlobalCursor"&&o.setBrushOption(r.key==="brush"?r.brushOption:{brushType:!1})}),HQ(e),e.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:st(o.areas),selected:[]};n.push(l);var u=o.option,f=u.brushLink,c=[],v=[],h=[],d=!1;s||(a=u.throttleType,i=u.throttleDelay);var p=X(o.areas,function(b){var x=u2t[b.brushType],w=dt({boundingRect:x?x(b):void 0},b);return w.selectors=n2t(w),w}),g=gO(o.option,ZU,function(b){b.mappingMethod="fixed"});Y(f)&&D(f,function(b){c[b]=1});function y(b){return f==="all"||!!c[b]}function m(b){return!!b.length}e.eachSeries(function(b,x){var w=h[x]=[];b.subType==="parallel"?_(b,x):S(b,x,w)});function _(b,x){var w=b.coordinateSystem;d=d||w.hasAxisBrushed(),y(x)&&w.eachActiveState(b.getData(),function(T,C){T==="active"&&(v[C]=1)})}function S(b,x,w){if(!(!b.brushSelector||l2t(o,x))&&(D(p,function(C){o.brushTargetManager.controlSeries(C,b,e)&&w.push(C),d=d||m(w)}),y(x)&&m(w))){var T=b.getData();T.each(function(C){qU(b,w,T,C)&&(v[C]=1)})}}e.eachSeries(function(b,x){var w={seriesId:b.id,seriesIndex:x,seriesName:b.name,dataIndex:[]};l.selected.push(w);var T=h[x],C=b.getData(),A=y(x)?function(M){return v[M]?(w.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return qU(b,T,C,M)?(w.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"};(y(x)?d:m(T))&&e2t(ZU,g,C,A)})}),o2t(t,a,i,n,r)}function o2t(e,t,r,n,a){if(a){var i=e.getZr();if(!i[yO]){i[lM]||(i[lM]=s2t);var o=Ud(i,lM,r,t);o(e,n)}}}function s2t(e,t){if(!e.isDisposed()){var r=e.getZr();r[yO]=!0,e.dispatchAction({type:"brushSelect",batch:t}),r[yO]=!1}}function qU(e,t,r,n){for(var a=0,i=t.length;a<i;a++){var o=t[a];if(e.brushSelector(n,r,o.selectors,o))return!0}}function l2t(e,t){var r=e.option.seriesIndex;return r!=null&&r!=="all"&&(Y(r)?St(r,t)<0:t!==r)}var u2t={rect:function(e){return KU(e.range)},polygon:function(e){for(var t,r=e.range,n=0,a=r.length;n<a;n++){t=t||[kr(),kr()];var i=r[n];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&KU(t)}};function KU(e){return new vt(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var f2t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new CN(n.getZr())).on("brush",rt(this._onBrush,this)).mount()},t.prototype.render=function(r,n,a,i){this.model=r,this._updateController(r,n,a,i)},t.prototype.updateTransform=function(r,n,a,i){HQ(n),this._updateController(r,n,a,i)},t.prototype.updateVisual=function(r,n,a,i){this.updateTransform(r,n,a,i)},t.prototype.updateView=function(r,n,a,i){this._updateController(r,n,a,i)},t.prototype._updateController=function(r,n,a,i){(!i||i.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(a)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:st(a),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:st(a),$from:n})},t.type="brush",t}(fe),c2t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var a=this.option;!n&&GQ(a,r,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=X(r,function(n){return QU(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=QU(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:V.color.backgroundTint,borderColor:V.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:V.color.disabled},t}(Lt);function QU(e,t){return wt({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Ot(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var v2t=["rect","polygon","lineX","lineY","keep","clear"],h2t=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,D(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,a){this.render(r,n,a)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),a={};return D(r.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},t.prototype.onclick=function(r,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:v2t.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(ho);function d2t(e){e.registerComponentView(f2t),e.registerComponentModel(c2t),e.registerPreprocessor(t2t),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,a2t),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Pe),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Pe),Vv("brush",h2t)}var p2t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:V.size.m,backgroundColor:V.color.transparent,borderColor:V.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:V.color.primary},subtextStyle:{fontSize:12,color:V.color.quaternary}},t}(Lt),g2t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=ot(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Ht({style:se(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=r.get("subtext"),h=new Ht({style:se(s,{text:v,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);f.silent=!d&&!g,h.silent=!p&&!g,d&&f.on("click",function(){tb(d,"_"+r.get("target"))}),p&&h.on("click",function(){tb(p,"_"+r.get("subtarget"))}),yt(f).eventData=yt(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(f),v&&i.add(h);var y=i.getBoundingRect(),m=r.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=sr(r,a),S=xe(m,_.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),h.setStyle(b),y=i.getBoundingRect();var x=S.margin,w=r.getItemStyle(["color","opacity"]);w.fill=r.get("backgroundColor");var T=new Et({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:r.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},t.type="title",t}(fe);function y2t(e){e.registerComponentModel(p2t),e.registerComponentView(g2t)}var JU=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],a=r.axisType,i=this._names=[],o;a==="category"?(o=[],D(n,function(u,f){var c=nr(Ed(u),""),v;pt(u)?(v=st(u),v.value=f):v=f,o.push(v),i.push(c)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new sn([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:V.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:V.color.secondary},data:[]},t}(Lt),UQ=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=yu(JU.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:V.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:V.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:V.color.tertiary},itemStyle:{color:V.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:V.color.accent50,borderColor:V.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:V.color.accent50,borderColor:V.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:V.color.accent60},itemStyle:{color:V.color.accent60,borderColor:V.color.accent60},controlStyle:{color:V.color.accent70,borderColor:V.color.accent70}},progress:{lineStyle:{color:V.color.accent30},itemStyle:{color:V.color.accent40}},data:[]}),t}(JU);We(UQ,hw.prototype);var m2t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(fe),_2t=function(e){G(t,e);function t(r,n,a,i){var o=e.call(this,r,n,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Ka),uM=Math.PI,tF=Tt(),S2t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,a){if(this.model=r,this.api=a,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var i=this._layout(r,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,r);r.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return Ke("nameValue",{noName:!0,value:f})},D(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,r)},this),this._renderAxisLabel(i,s,l,r),this._position(i,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var a=r.get(["label","position"]),i=r.get("orient"),o=b2t(r,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":J(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:uM/2},c=i==="vertical"?o.height:o.width,v=r.getModel("controlStyle"),h=v.get("show",!0),d=h?v.get("itemSize"):0,p=h?v.get("itemGap"):0,g=d+p,y=r.get(["label","rotate"])||0;y=y*uM/180;var m,_,S,b=v.get("position",!0),x=h&&v.get("showPlayBtn",!0),w=h&&v.get("showPrevBtn",!0),T=h&&v.get("showNextBtn",!0),C=0,A=c;b==="left"||b==="bottom"?(x&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[A-d,0],A-=g)):(x&&(m=[A-d,0],A-=g),w&&(_=[0,0],C+=g),T&&(S=[A-d,0],A-=g));var M=[C,A];return r.get("inverse")&&M.reverse(),{viewRect:o,mainLength:c,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[i],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:M,controlSize:d,controlGap:p}},t.prototype._position=function(r,n){var a=this._mainGroup,i=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=we(),l=o.x,u=o.y+o.height;gi(s,s,[-l,-u]),Gs(s,s,-uM/2),gi(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),c=m(a.getBoundingRect()),v=m(i.getBoundingRect()),h=[a.x,a.y],d=[i.x,i.y];d[0]=h[0]=f[0][0];var p=r.labelPosOpt;if(p==null||J(p)){var g=p==="+"?0:1;_(h,c,f,1,g),_(d,v,f,1,1-g)}else{var g=p>=0?0:1;_(h,c,f,1,g),d[1]=h[1]+p}a.setPosition(h),i.setPosition(d),a.rotation=i.rotation=r.rotation,y(a),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,b,x,w,T){S[w]+=x[w][T]-b[w][T]}},t.prototype._createAxis=function(r,n){var a=n.getData(),i=n.get("axisType")||n.get("type");i!=="category"&&i!=="time"&&(i="value");var o=Xd(n,i,!1);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),sZ(o,{fixMinMax:[!0,!0]});var l=new _2t("value",o,r.axisExtent,i);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new ct;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new je({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:U({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new je({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:dt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],D(l,function(u){var f=a.dataToCoord(u.value),c=s.getItemModel(u.value),v=c.getModel("itemStyle"),h=c.getModel(["emphasis","itemStyle"]),d=c.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:rt(o._changeTimeline,o,u.value)},g=eF(c,v,n,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),Gl(g);var y=yt(g);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(r,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],D(u,function(f){if(!f.tick.offInterval){var c=f.tick.value,v=l.getItemModel(c),h=v.getModel("label"),d=v.getModel(["emphasis","label"]),p=v.getModel(["progress","label"]),g=a.dataToCoord(c),y=new Ht({x:g,y:0,rotation:r.labelRotation-r.rotation,onclick:rt(o._changeTimeline,o,c),silent:!1,style:se(h,{text:f.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});y.ensureState("emphasis").style=se(d),y.ensureState("progress").style=se(p),n.add(y),Gl(y),tF(y).dataIndex=c,o._tickLabels.push(y)}})}},t.prototype._renderControl=function(r,n,a,i){var o=r.controlSize,s=r.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),c=i.get("inverse",!0);v(r.nextBtnPosition,"next",rt(this._changeTimeline,this,c?"-":"+")),v(r.prevBtnPosition,"prev",rt(this._changeTimeline,this,c?"+":"-")),v(r.playPosition,f?"stop":"play",rt(this._handlePlayClick,this,!f),!0);function v(h,d,p,g){if(h){var y=mo(ot(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=x2t(i,d+"Icon",m,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,n.add(_),Gl(_)}}},t.prototype._renderCurrentPointer=function(r,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(c){c.draggable=!0,c.drift=rt(u._handlePointerDrag,u),c.ondragend=rt(u._handlePointerDragend,u),rF(c,u._progressLine,s,a,i,!0)},onUpdate:function(c){rF(c,u._progressLine,s,a,i)}};this._currentPointer=eF(l,l,this._mainGroup,{},this._currentPointer,f)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var a=this._toAxisCoord(r)[0],i=this._axis,o=Er(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var r=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=r.model;r._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(r){var n=this._mainGroup.getLocalTransform();return hi(r,n,!0)},t.prototype._findNearestTick=function(r){var n=this.model.getData(),a=1/0,i,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-r);f<a&&(a=f,i=l)}),i},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(r){var n=this.model.getCurrentIndex();r==="+"?r=n+1:r==="-"&&(r=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:r,from:this.uid})},t.prototype._updateTicksStatus=function(){var r=this.model.getCurrentIndex(),n=this._tickSymbols,a=this._tickLabels;if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",i<r);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",tF(a[i]).dataIndex<=r)},t.type="timeline.slider",t}(m2t);function b2t(e,t){return xe(e.getBoxLayoutParams(),sr(e,t).refContainer,e.get("padding"))}function x2t(e,t,r,n){var a=n.style,i=Bd(e.get(["controlStyle",t]),n||{},new vt(r[0],r[1],r[2],r[3]));return a&&i.setStyle(a),i}function eF(e,t,r,n,a,i){var o=t.get("color");if(a)a.setColor(o),r.add(a),i&&i.onUpdate(a);else{var s=e.get("symbol");a=$e(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),r.add(a),i&&i.onCreate(a)}var l=t.getItemStyle(["color"]);a.setStyle(l),n=wt({rectHover:!0,z2:100},n,!0);var u=Yd(e.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var f=qc(e.get("symbolOffset"),u);f&&(n.x=(n.x||0)+f[0],n.y=(n.y||0)+f[1]);var c=e.get("symbolRotate");return n.rotation=(c||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function rF(e,t,r,n,a,i){if(!e.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",r));if(i||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function w2t(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,r,n){var a=r.getComponent("timeline");return a&&t.currentIndex!=null&&(a.setCurrentIndex(t.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),r.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),dt({currentIndex:a.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,r){var n=r.getComponent("timeline");n&&t.playState!=null&&n.setPlayState(t.playState)})}function T2t(e){var t=e&&e.timeline;Y(t)||(t=t?[t]:[]),D(t,function(r){r&&C2t(r)})}function C2t(e){var t=e.type,r={number:"value",time:"time"};if(r[t]&&(e.axisType=r[t],delete e.type),nF(e),hf(e,"controlPosition")){var n=e.controlStyle||(e.controlStyle={});hf(n,"position")||(n.position=e.controlPosition),n.position==="none"&&!hf(n,"show")&&(n.show=!1,delete n.position),delete e.controlPosition}D(e.data||[],function(a){pt(a)&&!Y(a)&&(!hf(a,"value")&&hf(a,"name")&&(a.value=a.name),nF(a))})}function nF(e){var t=e.itemStyle||(e.itemStyle={}),r=t.emphasis||(t.emphasis={}),n=e.label||e.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};D(n,function(o,s){!i[s]&&!hf(a,s)&&(a[s]=o)}),r.label&&!hf(n,"emphasis")&&(n.emphasis=r.label,delete r.label)}function hf(e,t){return e.hasOwnProperty(t)}function A2t(e){e.registerComponentModel(UQ),e.registerComponentView(S2t),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),w2t(e),e.registerPreprocessor(T2t)}function ik(e,t){if(!e)return!1;for(var r=Y(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function E_(e){ec(e,"label",["show"])}var L_=Tt(),Ao=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r.preventAutoZ=!0,r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),this._mergeOption(r,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Vt.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},t.prototype._mergeOption=function(r,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=L_(s)[o];if(!l||!l.data){L_(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&E_(l),D(l.data,function(f){f instanceof Array?(E_(f[0]),E_(f[1])):E_(f)}),u=this.createMarkerModelFromSeries(l,this,n),U(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),L_(s)[o]=u},this)},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return Ke("section",{header:this.name,blocks:[Ke("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.prototype.getDataParams=function(r,n){var a=hw.prototype.getDataParams.call(this,r,n),i=this.__hostSeries;return i&&(a.seriesId=i.id,a.seriesName=i.name,a.seriesType=i.subType),a},t.getMarkerModelFromSeries=function(r,n){return L_(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Lt);We(Ao,hw.prototype);var M2t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(Ao);function mO(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function D2t(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function O_(e,t,r,n,a,i,o){var s=[],l=Os(t,a),u=l?t.getCalculationInfo("stackResultDimension"):a,f=jb(t,u,e),c=t.hostModel,v=c.indicesOfNearest(r,u,f)[0];s[i]=t.get(n,v),s[o]=t.get(u,v);var h=t.get(a,v),d=Zi(t.get(a,v));return d=Math.min(d,20),d>=0&&(s[o]=+s[o].toFixed(d)),[s,h]}var R_={min:At(O_,"min"),max:At(O_,"max"),average:At(O_,"average"),median:At(O_,"median")};function Zy(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,a=n&&n.dimensions;if(!D2t(t)&&!Y(t.coord)&&Y(a)){var i=FQ(t,r,n,e);if(t=st(t),t.type&&R_[t.type]&&i.baseAxis&&i.valueAxis){var o=St(a,i.baseAxis.dim),s=St(a,i.valueAxis.dim),l=R_[t.type](r,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Y(a)){t.coord=[];var u=e.getBaseAxis();if(u&&t.type&&R_[t.type]){var f=n.getOtherAxis(u);f&&(t.value=jb(r,r.mapDimension(f.dim),t.type))}}else for(var c=t.coord,v=0;v<2;v++)R_[c[v]]&&(c[v]=jb(r,r.mapDimension(a[v]),c[v]));return t}}function FQ(e,t,r,n){var a={};return e.valueIndex!=null||e.valueDim!=null?(a.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=r.getAxis(E2t(n,a.valueDataDim)),a.baseAxis=r.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=r.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function E2t(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function qy(e,t){return e&&e.containData&&t.coord&&!mO(t)?e.containData(t.coord):!0}function L2t(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!mO(t)&&!mO(r)?e.containZone(t.coord,r.coord):!0}function YQ(e,t){return e?function(r,n,a,i){var o=i<2?r.coord&&r.coord[i]:r.value;return Hl(o,t[i])}:function(r,n,a,i){return Hl(r.value,t[i])}}function jb(e,t,r){if(r==="average"){var n=0,a=0;return e.each(t,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var fM=Tt(),ok=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=nt()},t.prototype.render=function(r,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){fM(s).keep=!1}),n.eachSeries(function(s){var l=Ao.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!fM(s).keep&&i.group.remove(s.group)}),O2t(n,o,this.type)},t.prototype.markKeep=function(r){fM(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var a=this;D(r,function(i){var o=Ao.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?mX(l):VI(l))})}})},t.type="marker",t}(fe);function O2t(e,t,r){e.eachSeries(function(n){var a=Ao.getMarkerModelFromSeries(n,r),i=t.get(n.id);if(a&&i&&i.group){var o=sc(a),s=o.z,l=o.zlevel;lw(i.group,s,l)}})}function aF(e,t,r){var n=t.coordinateSystem,a=r.getWidth(),i=r.getHeight(),o=n&&n.getArea&&n.getArea();e.each(function(s){var l=e.getItemModel(s),u=l.get("relativeTo")==="coordinate",f=u?o?o.width:0:a,c=u?o?o.height:0:i,v=u&&o?o.x:0,h=u&&o?o.y:0,d,p=et(l.get("x"),f)+v,g=et(l.get("y"),c)+h;if(!isNaN(p)&&!isNaN(g))d=[p,g];else if(t.getMarkerPosition)d=t.getMarkerPosition(e.getValues(e.dimensions,s));else if(n){var y=e.get(n.dimensions[0],s),m=e.get(n.dimensions[1],s);d=n.dataToPoint([y,m])}isNaN(p)||(d[0]=p),isNaN(g)||(d[1]=g),e.setItemLayout(s,d)})}var R2t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=Ao.getMarkerModelFromSeries(i,"markPoint");o&&(aF(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Vm),c=I2t(o,r,n);n.setData(c),aF(n.getData(),r,i),c.each(function(v){var h=c.getItemModel(v),d=h.getShallow("symbol"),p=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),m=h.getShallow("symbolKeepAspect");if(ut(d)||ut(p)||ut(g)||ut(y)){var _=n.getRawValue(v),S=n.getDataParams(v);ut(d)&&(d=d(_,S)),ut(p)&&(p=p(_,S)),ut(g)&&(g=g(_,S)),ut(y)&&(y=y(_,S))}var b=h.getModel("itemStyle").getItemStyle(),x=h.get("z2"),w=Im(l,"color");b.fill||(b.fill=w),c.setItemVisual(v,{z2:ot(x,0),symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(v){v.traverse(function(h){yt(h).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(ok);function I2t(e,t,r){var n;e?n=X(e&&e.dimensions,function(s){var l=t.getData(),u=l.getDimensionInfo(l.mapDimension(s))||{};return U(U({},u),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new sn(n,r),i=X(r.get("data"),At(Zy,t));e&&(i=qt(i,At(qy,e)));var o=YQ(!!e,n);return a.initData(i,null,o),a}function P2t(e){e.registerComponentModel(M2t),e.registerComponentView(R2t),e.registerPreprocessor(function(t){ik(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var N2t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Ao),I_=Tt(),k2t=function(e,t,r,n){var a=e.getData(),i;if(Y(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=nn(n.yAxis,n.xAxis);else{var u=FQ(n,a,t,e);s=u.valueAxis;var f=PP(a,u.valueDataDim);l=jb(a,f,o)}var c=s.dim==="x"?0:1,v=1-c,h=st(n),d={coord:[]};h.type=null,h.coord=[],h.coord[v]=-1/0,d.coord[v]=1/0;var p=r.get("precision");p>=0&&Ut(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[c]=d.coord[c]=l,i=[h,d,{type:o,valueIndex:n.valueIndex,value:l}]}else i=[]}var g=[Zy(e,i[0]),Zy(e,i[1]),U({},i[2])];return g[2].type=g[2].type||null,wt(g[2],g[0]),wt(g[2],g[1]),g};function Xb(e){return!isNaN(e)&&!isFinite(e)}function iF(e,t,r,n){var a=1-e,i=n.dimensions[e];return Xb(t[a])&&Xb(r[a])&&t[e]===r[e]&&n.getAxis(i).containData(t[e])}function z2t(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(iF(1,r,n,e)||iF(0,r,n,e)))return!0}return qy(e,t[0])&&qy(e,t[1])}function cM(e,t,r,n,a){var i=n.coordinateSystem,o=e.getItemModel(t),s,l=et(o.get("x"),a.getWidth()),u=et(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var f=i.dimensions,c=e.get(f[0],t),v=e.get(f[1],t);s=i.dataToPoint([c,v])}if(dc(i,"cartesian2d")){var h=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;Xb(e.get(f[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):Xb(e.get(f[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var B2t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=Ao.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=I_(o).from,u=I_(o).to;l.each(function(f){cM(l,f,!0,i,a),cM(u,f,!1,i,a)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new TN);this.group.add(f.group);var c=V2t(o,r,n),v=c.from,h=c.to,d=c.line;I_(n).from=v,I_(n).to=h,n.setData(d);var p=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");Y(p)||(p=[p,p]),Y(g)||(g=[g,g]),Y(y)||(y=[y,y]),Y(m)||(m=[m,m]),c.from.each(function(S){_(v,S,!0),_(h,S,!1)}),d.each(function(S){var b=d.getItemModel(S),x=b.getModel("lineStyle").getLineStyle();d.setItemLayout(S,[v.getItemLayout(S),h.getItemLayout(S)]);var w=b.get("z2");x.stroke==null&&(x.stroke=v.getItemVisual(S,"style").fill),d.setItemVisual(S,{z2:ot(w,0),fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:x})}),f.updateData(d),c.line.eachItemGraphicEl(function(S){yt(S).dataModel=n,S.traverse(function(b){yt(b).dataModel=n})});function _(S,b,x){var w=S.getItemModel(b);cM(S,b,x,r,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Im(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:ot(w.get("symbolOffset",!0),m[x?0:1]),symbolRotate:ot(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:ot(w.get("symbolSize"),g[x?0:1]),symbol:ot(w.get("symbol",!0),p[x?0:1]),style:T})}this.markKeep(f),f.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(ok);function V2t(e,t,r){var n;e?n=X(e&&e.dimensions,function(u){var f=t.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return U(U({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new sn(n,r),i=new sn(n,r),o=new sn([],r),s=X(r.get("data"),At(k2t,t,e,r));e&&(s=qt(s,At(z2t,e)));var l=YQ(!!e,n);return a.initData(X(s,function(u){return u[0]}),null,l),i.initData(X(s,function(u){return u[1]}),null,l),o.initData(X(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}function G2t(e){e.registerComponentModel(N2t),e.registerComponentView(B2t),e.registerPreprocessor(function(t){ik(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var H2t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Ao),P_=Tt(),U2t=function(e,t,r,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=Zy(e,a),s=Zy(e,i),l=o.coord,u=s.coord;l[0]=nn(l[0],-1/0),l[1]=nn(l[1],-1/0),u[0]=nn(u[0],1/0),u[1]=nn(u[1],1/0);var f=Ux([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function $b(e){return!isNaN(e)&&!isFinite(e)}function oF(e,t,r,n){var a=1-e;return $b(t[a])&&$b(r[a])}function F2t(e,t){var r=t.coord[0],n=t.coord[1],a={coord:r,x:t.x0,y:t.y0},i={coord:n,x:t.x1,y:t.y1};return dc(e,"cartesian2d")?r&&n&&(oF(1,r,n)||oF(0,r,n))?!0:L2t(e,a,i):qy(e,a)||qy(e,i)}function sF(e,t,r,n,a){var i=n.coordinateSystem,o=e.getItemModel(t),s,l=et(o.get(r[0]),a.getWidth()),u=et(o.get(r[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var f=e.getValues(["x0","y0"],t),c=e.getValues(["x1","y1"],t),v=i.clampData(f),h=i.clampData(c),d=[];r[0]==="x0"?d[0]=v[0]>h[0]?c[0]:f[0]:d[0]=v[0]>h[0]?f[0]:c[0],r[1]==="y0"?d[1]=v[1]>h[1]?c[1]:f[1]:d[1]=v[1]>h[1]?f[1]:c[1],s=n.getMarkerPosition(d,r,!0)}else{var p=e.get(r[0],t),g=e.get(r[1],t),y=[p,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(dc(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),p=e.get(r[0],t),g=e.get(r[1],t);$b(p)?s[0]=m.toGlobalCoord(m.getExtent()[r[0]==="x0"?0:1]):$b(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var lF=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Y2t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=Ao.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=X(lF,function(c){return sF(s,l,c,i,a)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new ct});this.group.add(f.group),this.markKeep(f);var c=j2t(o,r,n);n.setData(c),c.each(function(v){var h=X(lF,function(A){return sF(c,v,A,r,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(c.get("x0",v)),d.parse(c.get("x1",v))],_=[p.parse(c.get("y0",v)),p.parse(c.get("y1",v))];Er(m),Er(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),b=!S;c.setItemLayout(v,{points:h,allClipped:b});var x=c.getItemModel(v),w=x.getModel("itemStyle").getItemStyle(),T=x.get("z2"),C=Im(l,"color");w.fill||(w.fill=C,J(w.fill)&&(w.fill=vy(w.fill,.4))),w.stroke||(w.stroke=C),c.setItemVisual(v,"style",w),c.setItemVisual(v,"z2",ot(T,0))}),c.diff(P_(f).data).add(function(v){var h=c.getItemLayout(v),d=c.getItemVisual(v,"z2");if(!h.allClipped){var p=new Zr({z2:ot(d,0),shape:{points:h.points}});c.setItemGraphicEl(v,p),f.group.add(p)}}).update(function(v,h){var d=P_(f).data.getItemGraphicEl(h),p=c.getItemLayout(v),g=c.getItemVisual(v,"z2");p.allClipped?d&&f.group.remove(d):(d?jt(d,{z2:ot(g,0),shape:{points:p.points}},n,v):d=new Zr({shape:{points:p.points}}),c.setItemGraphicEl(v,d),f.group.add(d))}).remove(function(v){var h=P_(f).data.getItemGraphicEl(v);f.group.remove(h)}).execute(),c.eachItemGraphicEl(function(v,h){var d=c.getItemModel(h),p=c.getItemVisual(h,"style");v.useStyle(c.getItemVisual(h,"style")),yr(v,ir(d),{labelFetcher:n,labelDataIndex:h,defaultText:c.getName(h)||"",inheritColor:J(p.fill)?vy(p.fill,1):V.color.neutral99}),ar(v,d),Ae(v,null,null,d.get(["emphasis","disabled"])),yt(v).dataModel=n}),P_(f).data=c,f.group.silent=n.get("silent")||r.get("silent")},t.type="markArea",t}(ok);function j2t(e,t,r){var n,a,i=["x0","y0","x1","y1"];if(e){var o=X(e&&e.dimensions,function(u){var f=t.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return U(U({},c),{name:u,ordinalMeta:null})});a=X(i,function(u,f){return{name:u,type:o[f%2].type}}),n=new sn(a,r)}else a=[{name:"value",type:"float"}],n=new sn(a,r);var s=X(r.get("data"),At(U2t,t,e,r));e&&(s=qt(s,At(F2t,e)));var l=e?function(u,f,c,v){var h=u.coord[Math.floor(v/2)][v%2];return Hl(h,a[v])}:function(u,f,c,v){return Hl(u.value,a[v])};return n.initData(s,null,l),n.hasItemOption=!0,n}function X2t(e){e.registerComponentModel(H2t),e.registerComponentView(Y2t),e.registerPreprocessor(function(t){ik(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var $2t=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},_O=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),Y(n)&&D(n,function(i,o){J(i)&&(i={type:i}),n[o]=wt(i,$2t(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<r.length;a++){var i=r[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],a=[];r.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,v=c.getAllNames();r.isSeriesFiltered(l)||(a=a.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&EI(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=nt(),s=X(i,function(l){return(J(l)||Ut(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ot(l,this,this.ecModel))},this);this._data=qt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;D(i,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;D(r,function(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;D(r,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&St(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:V.size.m,align:"auto",backgroundColor:V.color.transparent,borderColor:V.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:V.color.disabled,inactiveBorderColor:V.color.disabled,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:V.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:V.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:V.color.tertiary,borderWidth:1,borderColor:V.color.border},emphasis:{selectorLabel:{show:!0,color:V.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(Lt),Tv=At,SO=D,N_=ct,jQ=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new N_),this.group.add(this._selectorGroup=new N_),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,a,l,s,u);var f=sr(r,a).refContainer,c=r.getBoxLayoutParams(),v=r.get("padding"),h=xe(c,f,v),d=this.layoutInner(r,o,h,i,l,u),p=xe(dt({width:d.width,height:d.height},c),f,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=IQ(d,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this.getContentGroup(),f=nt(),c=n.get("selectedMode"),v=n.get("triggerEvent"),h=[];a.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),SO(n.getData(),function(d,p){var g=this,y=d.get("name");if(!this.newlineDisabled&&(y===""||y===`
191
+ `)){var m=new N_;m.newline=!0,u.add(m);return}var _=a.getSeriesByName(y)[0];if(!f.get(y))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},x=S.getVisual("legendIcon"),w=S.getVisual("style"),T=this._createItem(_,y,p,d,n,r,b,w,x,c,i);T.on("click",Tv(uF,y,null,i,h)).on("mouseover",Tv(bO,_.name,null,i,h)).on("mouseout",Tv(xO,_.name,null,i,h)),a.ssr&&T.eachChild(function(C){var A=yt(C);A.seriesIndex=_.seriesIndex,A.dataIndex=p,A.ssrType="legend"}),v&&T.eachChild(function(C){g.packEventData(C,n,_,p,y)}),f.set(y,!0)}else a.eachRawSeries(function(C){var A=this;if(!f.get(y)&&C.legendVisualProvider){var M=C.legendVisualProvider;if(!M.containName(y))return;var L=M.indexOfName(y),E=M.getItemVisual(L,"style"),R=M.getItemVisual(L,"legendIcon"),I=on(E.fill);I&&I[3]===0&&(I[3]=.2,E=U(U({},E),{fill:Ga(I,"rgba")}));var O=this._createItem(C,y,p,d,n,r,{},E,R,c,i);O.on("click",Tv(uF,null,y,i,h)).on("mouseover",Tv(bO,null,y,i,h)).on("mouseout",Tv(xO,null,y,i,h)),a.ssr&&O.eachChild(function(N){var P=yt(N);P.seriesIndex=C.seriesIndex,P.dataIndex=p,P.ssrType="legend"}),v&&O.eachChild(function(N){A.packEventData(N,n,C,p,y)}),f.set(y,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype.packEventData=function(r,n,a,i,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:i,value:o,seriesIndex:a.seriesIndex};yt(r).eventData=s},t.prototype._createSelector=function(r,n,a,i,o){var s=this.getSelectorGroup();SO(r,function(u){var f=u.type,c=new Ht({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var v=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);yr(c,{normal:v,emphasis:h},{defaultText:u.title}),Gl(c)})},t.prototype._createItem=function(r,n,a,i,o,s,l,u,f,c,v){var h=r.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=W2t(f,i,l,u,h,g,v),b=new N_,x=i.getModel("textStyle");if(ut(r.getLegendIcon)&&(!_||_==="inherit"))b.add(r.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;b.add(Z2t({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,A=o.get("formatter"),M=n;J(A)&&A?M=A.replace("{name}",n??""):ut(A)&&(M=A(n));var L=g?x.getTextColor():i.get("inactiveColor");b.add(new Ht({style:se(x,{text:M,x:T,y:p/2,fill:L,align:C,verticalAlign:"middle"},{inheritColor:L})}));var E=new Et({shape:b.getBoundingRect(),style:{fill:"transparent"}}),R=i.getModel("tooltip");return R.get("show")&&Us({el:E,componentModel:o,itemName:n,itemTooltipOption:R.option}),b.add(E),b.eachChild(function(I){I.silent=!0}),E.silent=!c,this.getContentGroup().add(b),Gl(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Pf(r.get("orient"),l,r.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Pf("horizontal",u,r.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=f[g]+d:c[p]+=v[g]+d,h[1-p]+=f[y]/2-v[y]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+h[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(fe);function W2t(e,t,r,n,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),SO(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:ad(c,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:r).opacity),s(u,n);var v=t.getModel("lineStyle"),h=v.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function Z2t(e){var t=e.icon||"roundRect",r=$e(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=V.color.neutral00,r.style.lineWidth=2),r}function uF(e,t,r,n){xO(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),bO(e,t,r,n)}function bO(e,t,r,n){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function xO(e,t,r,n){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function Gp(e,t,r){var n=e==="allSelect"||e==="inverseSelect",a={},i=[];r.eachComponent({mainType:"legend",query:t},function(s){n?s[e]():s[e](t.name),fF(s,a),i.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){D(a,function(l,u){s[l?"select":"unSelect"](u)}),fF(s,o)}),n?{selected:o,legendIndex:i}:{name:t.name,selected:o}}function fF(e,t){var r=t||{};return D(e.getData(),function(n){var a=n.get("name");if(!(a===`
192
+ `||a==="")){var i=e.isSelected(a);it(r,a)?r[a]=r[a]&&i:r[a]=i}}),r}function q2t(e){e.registerAction("legendToggleSelect","legendselectchanged",At(Gp,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",At(Gp,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",At(Gp,"inverseSelect")),e.registerAction("legendSelect","legendselected",At(Gp,"select")),e.registerAction("legendUnSelect","legendunselected",At(Gp,"unSelect"))}var K2t=Cm(Q2t);function Q2t(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function XQ(e){e.registerComponentModel(_O),e.registerComponentView(jQ),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,K2t),e.registerSubTypeDefaulter("legend",function(){return"plain"}),q2t(e)}var J2t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,a){var i=Wc(r);e.prototype.init.call(this,r,n,a),cF(this,r,i)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),cF(this,this.option,r)},t.type="legend.scroll",t.defaultOption=yu(_O.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:V.color.accent50,pageIconInactiveColor:V.color.accent10,pageIconSize:15,pageTextStyle:{color:V.color.tertiary},animationDurationUpdate:800}),t}(_O);function cF(e,t,r){var n=e.getOrient(),a=[1,1];a[n.index]=0,wo(t,r,{type:"box",ignoreSize:!!a})}var vF=ct,vM=["width","height"],hM=["x","y"],tEt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new vF),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new vF)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,a,i,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),v=Y(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new Ht({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=Bd(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:rt(u._pageGo,u,y,n,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=p,f.add(m)}},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=vM[u],c=hM[u],v=vM[1-u],h=hM[1-u];o&&Pf("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=st(a);o&&(y[f]=a[f]-p[f]-d);var m=this._layoutContentAndController(r,i,y,u,f,v,h,c);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[c]-=_}m[f]+=p[f]+d,g[1-u]+=m[h]+m[v]/2-p[v]/2,m[v]=Math.max(m[v],p[v]),m[h]=Math.min(m[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(r,n,a,i,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,v=this._controllerGroup;Pf(r.get("orient"),f,r.get("itemGap"),i?a.width:null,i?null:a.height),Pf("horizontal",v,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=h[o]>a[o],g=[-h.x,-h.y];n||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=ot(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var S=r.get("pageButtonPosition",!0);S==="end"?m[i]+=a[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=h[s]/2-d[s]/2,f.setPosition(g),c.setPosition(y),v.setPosition(m);var b={x:0,y:0};if(b[o]=p?a[o]:h[o],b[s]=Math.max(h[s],d[s]),b[l]=Math.min(0,d[l]+m[1-i]),c.__rectSize=a[o],p){var x={x:0,y:0};x[o]=Math.max(a[o]-d[o]-_,0),x[s]=b[s],c.setClipPath(new Et({shape:x})),c.__rectSize=x[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(r);return w.pageIndex!=null&&jt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?r:null),this._updatePageInfoView(r,w),b},t.prototype._pageGo=function(r,n,a){var i=this._getPageInfo(n)[r];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",v=n[c]!=null,h=a.childOfName(f);h&&(h.setStyle("fill",v?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var i=a.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",J(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=vM[o],l=hM[o],u=this._findTargetItemIndex(n),f=a.children(),c=f[u],v=f.length,h=v?1:0,d={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(x){if(x){var w=x.getBoundingRect(),T=w[l]+x[l];return{s:T,e:T+w[s],i:x.__legendDataIndex}}}function b(x,w){return x.e>=w&&x.s<=w+i}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===r&&(n=s)}),n??i},t.type="legend.scroll",t}(jQ);function eEt(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function rEt(e){Ct(XQ),e.registerComponentModel(J2t),e.registerComponentView(tEt),eEt(e)}function nEt(e){Ct(XQ),Ct(rEt)}var aEt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=yu(Wy.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Wy),sk=Tt();function iEt(e,t,r){sk(e).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=r)})}function oEt(e,t){for(var r=sk(e).coordSysRecordMap,n=r.keys(),a=0;a<n.length;a++){var i=n[a],o=r.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||$Q(r,o))}}}function $Q(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function sEt(e,t){var r={model:t,containsPoint:At(uEt,t),dispatchAction:At(lEt,e),dataZoomInfoMap:null,controller:null},n=r.controller=new Jc(e.getZr());return D(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];r.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function lEt(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function uEt(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function fEt(e,t,r){var n,a="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,s,l;return e.each(function(u){var f=u.model,c=f.get("disabled",!0)?!1:f.get("zoomLock",!0)?"move":!0;i[a+c]>i[a+n]&&(n=c),o=o&&f.get("preventDefaultMouseMove",!0),s=ot(f.get("cursorGrab",!0),s),l=ot(f.get("cursorGrabbing",!0),l)}),{controlType:n,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:r,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint},cursorGrab:s,cursorGrabbing:l}}}function cEt(e){e.registerUpdateLifecycle("coordsys:aftercreate",function(t,r){var n=sk(r),a=n.coordSysRecordMap||(n.coordSysRecordMap=nt());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=DQ(i);D(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,sEt(r,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=nt());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){$Q(a,i);return}var f=fEt(l,i,r);o.enable(f.controlType,f.opt),Ud(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var vEt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,a){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),iEt(a,r,{pan:rt(dM.pan,this),zoom:rt(dM.zoom,this),scrollMove:rt(dM.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){oEt(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(JN),dM={zoom:function(e,t,r,n){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=pM[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(nu(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:hF(function(e,t,r,n,a,i){var o=pM[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:hF(function(e,t,r,n,a,i){var o=pM[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,r);return o.signal*(e[1]-e[0])*i.scrollDelta})};function hF(e){return function(t,r,n,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,a);if(nu(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var pM={grid:function(e,t,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],i.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,r,n,a){var i=r.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function WQ(e){tk(e),e.registerComponentModel(aEt),e.registerComponentView(vEt),cEt(e)}var hEt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=yu(Wy.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:V.color.accent10,borderRadius:0,backgroundColor:V.color.transparent,dataBackground:{lineStyle:{color:V.color.accent30,width:.5},areaStyle:{color:V.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:V.color.accent40,width:.5},areaStyle:{color:V.color.accent20,opacity:.3}},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:V.color.neutral00,borderColor:V.color.accent20},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:V.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:V.color.tertiary},brushSelect:!0,brushStyle:{color:V.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:V.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(Wy),Hp=Et,dEt=1,gM=30,pEt=7,Up="horizontal",dF="vertical",gEt=5,yEt=["line","bar","candlestick","scatter"],mEt={easing:"cubicOut",duration:100,delay:0},_Et=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=rt(this._onBrush,this),this._onBrushEnd=rt(this._onBrushEnd,this)},t.prototype.render=function(r,n,a,i){if(e.prototype.render.apply(this,arguments),Ud(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Ty(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new ct;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,a=r.get("brushSelect"),i=a?pEt:0,o=sr(r,n).refContainer,s=this._findCoordRect(),l=r.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Up?{right:o.width-s.x-s.width,top:o.height-gM-l-i,width:s.width,height:gM}:{right:l,top:s.y,width:gM,height:s.height},f=Wc(r.option);D(["right","top","width","height"],function(v){f[v]==="ph"&&(f[v]=u[v])});var c=xe(f,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===dF&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Up&&!o?{scaleY:l?1:-1,scaleX:1}:a===Up&&o?{scaleY:l?1:-1,scaleX:-1}:a===dF&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]),f=isNaN(u.x)?0:u.x,c=isNaN(u.y)?0:u.y;r.x=n.x-f,r.y=n.y-c,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=r.get("brushSelect");a.add(new Hp({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Hp({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:rt(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,a=this._shadowSize||[],i=r.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var c=o.getDataExtent(r.thisDim),v=o.getDataExtent(l),h=(v[1]-v[0])*.3;v=[v[0]-h,v[1]+h];var d=[0,n[1]],p=[0,n[0]],g=[[n[0],0],[0,0]],y=[],m=p[1]/Math.max(1,o.count()-1),_=n[0]/(c[1]-c[0]),S=r.thisAxis.type==="time",b=-m,x=Math.round(o.count()/n[0]),w;o.each([r.thisDim,l],function(L,E,R){if(x>0&&R%x){S||(b+=m);return}b=S?(+L-c[0])*_:b+m;var I=E==null||isNaN(E)||E==="",O=I?0:Xt(E,v,d,!0);I&&!w&&R?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!I&&w&&(g.push([b,0]),y.push([b,0])),I||(g.push([b,O]),y.push([b,O])),w=I}),u=this._shadowPolygonPts=g,f=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var T=this.dataZoomModel;function C(L){var E=T.getModel(L?"selectedDataBackground":"dataBackground"),R=new ct,I=new Zr({shape:{points:u},segmentIgnoreThreshold:1,style:E.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),O=new Or({shape:{points:f},segmentIgnoreThreshold:1,style:E.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return R.add(I),R.add(O),R}for(var A=0;A<3;A++){var M=C(A===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!a&&!(n!==!0&&St(yEt,u.get("type"))<0)){var f=i.getComponent(Cl(o),s).axis,c=SEt(o),v,h=u.coordinateSystem;c!=null&&h.getOtherAxis&&(v=h.getOtherAxis(f).inverse),c=u.getData().mapDimension(c);var d=u.getData().mapDimension(o);a={thisAxis:f,series:u,thisDim:d,otherDim:c,otherAxisInverse:v}}},this)},this),a}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),v=n.filler=new Hp({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new Hp({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:dEt,fill:V.color.transparent}})),D([0,1],function(_){var S=l.get("handleIcon");!nb[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=$e(S,-1,0,2,2,null,!0);b.attr({cursor:bEt(this._orient),draggable:!0,drift:rt(this._onDragMove,this,_),ondragend:rt(this._onDragEnd,this),onmouseover:rt(this._onOverDataInfoTriggerArea,this,!0),onmouseout:rt(this._onOverDataInfoTriggerArea,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=et(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Gl(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(a[_]=b);var C=l.getModel("textStyle"),A=l.get("handleLabel")||{},M=A.show||!1;r.add(i[_]=new Ht({silent:!0,invisible:!M,style:se(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var h=v;if(c){var d=et(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new Et({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=n.moveHandleIcon=$e(l.get("moveHandleIcon"),-g/2,-g/2,g,g,V.color.neutral00,!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));h=n.moveZone=new Et({invisible:!0,shape:{y:s[1]-m,height:d+m}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:"grab",drift:rt(this._onActualMoveZoneDrift,this),ondragstart:rt(this._onActualMoveZoneDragStart,this),ondragend:rt(this._onActualMoveZoneDragEnd,this),onmouseover:rt(this._onOverDataInfoTriggerArea,this,!0),onmouseout:rt(this._onOverDataInfoTriggerArea,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Xt(r[0],[0,100],n,!0),Xt(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];nu(n,i,o,a.get("zoomLock")?"all":r,s.minSpan!=null?Xt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Xt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Er([Xt(i[0],o,l,!0),Xt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(r){var n=this._displayables,a=this._handleEnds,i=Er(a.slice()),o=this._size;D([0,1],function(h){var d=n.handles[h],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:a[h]+(h?-1:1),y:o[1]/2-p/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;f<l.length;f++){var c=l[f],v=c.getClipPath();v||(v=new Et,c.setClipPath(v)),v.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy(),u=l.getAxisModel().axis.scale;if(l){var f=this._range,c;if(r){var v={start:f[0],end:f[1]},h=LQ(n,l);if(h){var d=h.calculateDataWindow(v).percentInverted;v={start:d[0],end:d[1]}}c=l.calculateDataWindow(v)}else c=l.getWindow();s=[pF(n,0,c,u),pF(n,1,c,u)]}}var p=Er(this._handleEnds.slice());g.call(this,0),g.call(this,1);function g(y){var m=If(a.handles[y].parent,this.group),_=sw(y===0?"right":"left",m),S=this._handleWidth/2+gEt,b=hi([p[y]+(y===0?-S:S),this._size[1]/2],m);i[y].setStyle({x:b[0],y:b[1],verticalAlign:o===Up?"middle":_,align:o===Up?_:"center",text:s[y]})}},t.prototype._onOverDataInfoTriggerArea=function(r){this._isOverDataInfoTriggerArea=r,this._showDataInfo(r)},t.prototype._showDataInfo=function(r){var n=this.dataZoomModel.get("handleLabel")||{},a=n.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=r||this._dragging?o:a,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onActualMoveZoneDrift=function(r,n,a){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",r,n,a)},t.prototype._onActualMoveZoneDragStart=function(r){r.target.attr("cursor","grabbing"),this._showDataInfo(!0)},t.prototype._onActualMoveZoneDragEnd=function(r){r.target.attr("cursor","grab"),this._onDragEnd()},t.prototype._onDragMove=function(r,n,a,i){this._dragging=!0,Cs(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=hi([n,a],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,a=r.offsetY;this._brushStart=new gt(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[a.x,a.x+a.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();nu(0,l,o,0,u.minSpan!=null?Xt(u.minSpan,s,o,!0):null,u.maxSpan!=null?Xt(u.maxSpan,s,o,!0):null),this._range=Er([Xt(l[0],o,s,!0),Xt(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(Cs(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Hp({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?mEt:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=DQ(this.dataZoomModel).infoList;if(!r&&n.length){var a=n[0].model.coordinateSystem;r=a.getRect&&a.getRect()}if(!r){var i=this.api.getWidth(),o=this.api.getHeight();r={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(JN);function pF(e,t,r,n){var a=e.get("labelFormatter"),i=e.get("labelPrecision");(i==null||i==="auto")&&(i=r.valuePrecision);var o=r.value[t],s=o==null||isNaN(o)?"":un(n)||Pm(n)?n.getLabel({value:Math.round(o)}):isFinite(i)?Yt(o,i,!0):o+"";return ut(a)?a(o,s):J(a)?a.replace("{value}",s):s}function SEt(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function bEt(e){return e==="vertical"?"ns-resize":"ew-resize"}function ZQ(e){e.registerComponentModel(hEt),e.registerComponentView(_Et),tk(e)}function xEt(e){Ct(WQ),Ct(ZQ)}var qQ={get:function(e,t,r){var n=st((wEt[e]||{})[t]);return r&&Y(n)?n[n.length-1]:n}},wEt={color:{active:["#006edd","#e0ffff"],inactive:[V.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},gF=dr.mapVisual,TEt=dr.eachVisual,CEt=Y,yM=D,AEt=Er,MEt=Xt,Wb=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.optionUpdated=function(r,n){var a=this.option;!n&&GQ(a,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=rt(r,this),this.controllerVisuals=gO(this.option.controller,n,r),this.targetVisuals=gO(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this,n=this.option.seriesTargets;if(n){var a=[];return yM(n,function(l){if(l.seriesIndex!=null)a.push(l.seriesIndex);else if(l.seriesId!=null){var u;r.ecModel.eachSeries(function(f){f.id===l.seriesId&&(u=f)}),u&&a.push(u.componentIndex)}}),a}var i=this.option.seriesId,o=this.option.seriesIndex;o==null&&i==null&&(o="all");var s=Ld(this.ecModel,"series",{index:o,id:i},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return X(s,function(l){return l.componentIndex})},t.prototype.eachTargetSeries=function(r,n){D(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&r.call(n,i)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(a){a===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],Y(r)&&(r=r.slice(),u=!0);var f=n?r:u?[c(r[0]),c(r[1])]:c(r);if(J(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(ut(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?a[0]+" "+f[1]:r[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=AEt([r.min,r.max]);this._dataExtent=n},t.prototype.getDimension=function(r){var n=this,a=this.option.seriesTargets;if(a){var i=Vs(a,function(o){return o.seriesIndex!=null&&o.seriesIndex===r||o.seriesId!=null&&o.seriesId===n.ecModel.getSeriesByIndex(r).id});if(i)return i.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(r){var n=r.hostModel.seriesIndex,a=this.getDimension(n);if(a!=null)return r.getDimensionIndex(a);for(var i=r.dimensions,o=i.length-1;o>=0;o--){var s=i[o],l=r.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});wt(i,a),wt(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(c){CEt(n.color)&&!c.inRange&&(c.inRange={color:n.color.slice().reverse()}),c.inRange=c.inRange||{color:r.get("gradientColor")}}function u(c,v,h){var d=c[v],p=c[h];d&&!p&&(p=c[h]={},yM(d,function(g,y){if(dr.isValidType(y)){var m=qQ.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(c){var v=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,h=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";yM(this.stateList,function(y){var m=this.itemSize,_=c[y];_||(_=c[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=v&&st(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&st(h)||(s?m[0]:[m[0],m[0]])),_.symbol=gF(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;TEt(S,function(x){x>b&&(b=x)}),_.symbolSize=gF(S,function(x){return MEt(x,[0,b],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:V.color.transparent,borderColor:V.color.borderTint,contentColor:V.color.theme[0],inactiveColor:V.color.disabled,borderWidth:0,padding:V.size.m,textGap:10,precision:0,textStyle:{color:V.color.secondary}},t}(Lt),yF=[20,140],DEt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=yF[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=yF[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):Y(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=Er((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]<r[0]&&(n[0]=r[0]),n[1]<r[0]&&(n[1]=r[0]),n},t.prototype.getValueState=function(r){var n=this.option.range,a=this.getExtent(),i=ot(this.option.unboundedRange,!0);return(i&&n[0]<=a[0]||n[0]<=r)&&(i&&n[1]>=a[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(r){var n=mF(this,"outOfRange",this.getExtent()),a=mF(this,"inRange",this.option.range.slice()),i=[];function o(h,d){i.push({value:h,color:r(h,d)})}for(var s=0,l=0,u=a.length,f=n.length;l<f&&(!a.length||n[l]<=a[0]);l++)n[l]<a[s]&&o(n[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var c=1;l<f;l++)(!a.length||a[a.length-1]<n[l])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(n[l],"outOfRange"));var v=i.length;return{stops:i,outerColors:[v?i[0].color:"transparent",v?i[v-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=yu(Wb.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:V.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:V.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:V.color.shadow}}),t}(Wb);function mF(e,t,r){if(r[0]===r[1])return r.slice();for(var n=200,a=(r[1]-r[0])/n,i=r[0],o=[],s=0;s<=n&&i<r[1];s++)o.push(i),i+=a;return o.push(r[1]),o}var KQ=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n},t.prototype.render=function(r,n,a,i){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,n,a,i)},t.prototype.renderBackground=function(r){var n=this.visualMapModel,a=Gd(n.get("padding")||0),i=r.getBoundingRect();r.add(new Et({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(r,n,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function f(h,d){s[h]=d}var c=o.controllerVisuals[i||o.getValueState(r)],v=dr.prepareVisualTypes(c);return D(v,function(h){var d=c[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",d=c.__alphaForOpacity),dr.dependsOn(h,n)&&d&&d.applyVisual(r,u,f)}),s[n]},t.prototype.positionGroup=function(r){var n=this.visualMapModel,a=this.api,i=sr(n,a).refContainer;cw(r,n.getBoxLayoutParams(),i)},t.prototype.doRender=function(r,n,a,i){},t.type="visualMap",t}(fe),_F=[["left","right","width"],["top","bottom","height"]];function QQ(e,t,r){var n=e.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=_F[o],l=[0,null,10],u={},f=0;f<3;f++)u[_F[1-o][f]]=l[f],u[s[f]]=f===2?r[0]:n[s[f]];var c=[["x","width",3],["y","height",0]][o],v=xe(u,i,n.padding);return s[(v.margin[c[2]]||0)+v[c[0]]+v[c[1]]*.5<i[c[1]]*.5?0:1]}function zS(e,t){return D(e||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var ki=Xt,EEt=D,SF=Math.min,mM=Math.max,LEt=12,OEt=6,REt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return t.prototype.init=function(r,n){e.prototype.init.call(this,r,n),this._hoverLinkFromSeriesMouseOver=rt(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=rt(this._hideIndicator,this)},t.prototype.doRender=function(r,n,a,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,n=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(n);var a=r.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(r,n,a){if(n){var i=n[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),c=this._applyTransform(a===0?"bottom":"top",u),v=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Ht({style:se(h,{x:f[0],y:f[1],verticalAlign:h.get("verticalAlign")||(v==="horizontal"?"middle":c),align:h.get("align")||(v==="horizontal"?c:"center"),text:i})}))}},t.prototype._renderBar=function(r){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=QQ(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),f=new ct;u.add(f),f.add(a.outOfRange=bF()),f.add(a.inRange=bF(null,s?wF(this._orient):null,rt(this._dragHandle,this,"all",!1),rt(this._dragHandle,this,"all",!0))),f.setClipPath(new Et({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=n.textStyleModel.getTextRect("国"),v=mM(c.width,c.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,v,o),this._createHandle(n,u,1,i,v,o)),this._createIndicator(n,u,i,v,o),r.add(u)},t.prototype._createHandle=function(r,n,a,i,o,s){var l=rt(this._dragHandle,this,a,!1),u=rt(this._dragHandle,this,a,!0),f=mo(r.get("handleSize"),i[0]),c=$e(r.get("handleIcon"),-f/2,-f/2,f,f,null,!0),v=wF(this._orient);c.attr({cursor:v,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){Cs(y.event)}}),c.x=i[0]/2,c.useStyle(r.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),_f(c,!0),n.add(c);var h=this.visualMapModel.textStyleModel,d=new Ht({cursor:v,draggable:!0,drift:l,onmousemove:function(y){Cs(y.event)},ondragend:u,style:se(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],g=this._shapes;g.handleThumbs[a]=c,g.handleLabelPoints[a]=p,g.handleLabels[a]=d},t.prototype._createIndicator=function(r,n,a,i,o){var s=mo(r.get("indicatorSize"),a[0]),l=$e(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof mr){var f=l.style;l.useStyle(U({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);n.add(l);var c=this.visualMapModel.textStyleModel,v=new Ht({silent:!0,invisible:!0,style:se(c,{x:0,y:0,text:""})});this.group.add(v);var h=[(o==="horizontal"?i/2:OEt)+a[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=v,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(r,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(r,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():xF(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},t.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),a=r.getExtent(),i=[0,r.itemSize[1]];this._handleEnds=[ki(n[0],a,i,!0),ki(n[1],a,i,!0)]},t.prototype._updateInterval=function(r,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];nu(n,i,o,r,0);var s=a.getExtent();this._dataInterval=[ki(i[0],o,s,!0),ki(i[1],o,s,!0)]},t.prototype._updateView=function(r){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(r,n,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new jc(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(r,n){var a=100,i=[],o=(r[1]-r[0])/a;i.push({color:this.getControllerVisual(r[0],"color",n),offset:0});for(var s=1;s<a;s++){var l=r[0]+o*s;if(l>r[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(r,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],r[0]],[a[0],r[0]],[a[0],r[1]],[a[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,a=this.visualMapModel.get("inverse");return new ct(n==="horizontal"&&!a?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",a.mainGroup);EEt([0,1],function(c){var v=o[c];v.setStyle("fill",n.handlesColor[c]),v.y=r[c];var h=ki(r[c],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");v.scaleX=v.scaleY=d/l[0],v.x=l[0]-d/2;var p=hi(a.handleLabelPoints[c],If(v,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var v={convertOpacityToAlpha:!0},h=this.getControllerVisual(r,"color",v),d=this.getControllerVisual(r,"symbolSize"),p=ki(r,s,u,!0),g=l[0]-d/2,y={x:c.x,y:c.y};c.y=p,c.x=g;var m=hi(f.indicatorLabelPoint,If(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:g,y:p,style:{fill:h}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(w,C),_.animateTo(T,C)}else c.attr(w),_.attr(T);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var M=0;M<A.length;M++)this.api.enterBlur(A[M])}},t.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(n){if(r._hovering=!0,!r._dragging){var a=r.visualMapModel.itemSize,i=r._applyTransform([n.offsetX,n.offsetY],r._shapes.mainGroup,!0,!0);i[1]=SF(mM(0,i[1]),a[1]),r._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(r,n){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();r=SF(mM(o[0],r),o[1]);var l=IEt(a,s,o),u=[r-l,r+l],f=ki(r,o,s,!0),c=[ki(u[0],o,s,!0),ki(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),n&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var v=this._hoverLinkDataIndices,h=[];(n||xF(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(c));var d=Pft(v,h);this._dispatchHighDown("downplay",zS(d[0],a)),this._dispatchHighDown("highlight",zS(d[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(bf(r.target,function(l){var u=yt(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a<n.length;a++)this.api.leaveBlur(n[a])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",zS(r,this.visualMapModel)),r.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(r,n,a,i){var o=If(n,i?null:this.group);return Y(r)?hi(r,o,a):sw(r,o,a)},t.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(KQ);function bF(e,t,r,n){return new Zr({shape:{points:e},draggable:!!r,cursor:t,drift:r,onmousemove:function(a){Cs(a.event)},ondragend:n})}function IEt(e,t,r){var n=LEt/2,a=e.get("hoverLinkDataSize");return a&&(n=ki(a,t,r,!0)/2),n}function xF(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function wF(e){return e==="vertical"?"ns-resize":"ew-resize"}var PEt={type:"selectDataRange",event:"dataRangeSelected",update:"update"},NEt=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(r){r.setSelected(e.selected)})},kEt=[{createOnAllSeries:!0,reset:function(e,t){var r=[];return t.eachComponent("visualMap",function(n){var a=e.pipelineContext;!n.isTargetSeries(e)||a&&a.large||r.push(r2t(n.stateList,n.targetVisuals,rt(n.getValueState,n),n.getDataDimensionIndex(e.getData())))}),r}},{createOnAllSeries:!0,reset:function(e,t){var r=e.getData(),n=[];t.eachComponent("visualMap",function(a){if(a.isTargetSeries(e)){var i=a.getVisualMeta(rt(zEt,null,e,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(r);o>=0&&(i.dimension=o,n.push(i))}}),e.getData().setVisual("visualMeta",n)}}];function zEt(e,t,r,n){for(var a=t.targetVisuals[n],i=dr.prepareVisualTypes(a),o={color:Im(e.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=a[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(r,c,v)}return o.color;function c(h){return o[h]}function v(h,d){o[h]=d}}var TF=D;function BEt(e){var t=e&&e.visualMap;Y(t)||(t=t?[t]:[]),TF(t,function(r){if(r){Cv(r,"splitList")&&!Cv(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&Y(n)&&TF(n,function(a){pt(a)&&(Cv(a,"start")&&!Cv(a,"min")&&(a.min=a.start),Cv(a,"end")&&!Cv(a,"max")&&(a.max=a.end))})}})}function Cv(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var CF=!1;function JQ(e){CF||(CF=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(PEt,NEt),D(kEt,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(BEt))}function tJ(e){e.registerComponentModel(DEt),e.registerComponentView(REt),JQ(e)}var VEt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],GEt[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=st(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=X(this._pieceList,function(l){return l=st(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},a=dr.listVisualTypes(),i=this.isCategory();D(r.pieces,function(s){D(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(f){u=u||o(r,f,l)||o(r.target,f,l)},this),!u&&D(this.stateList,function(f){(r[f]||(r[f]={}))[l]=qQ.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var a=this.option,i=this._pieceList,o=(n?a:r).selected||{};if(a.selected=o,D(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;D(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=st(r)},t.prototype.getValueState=function(r){var n=dr.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=dr.findPieceIndex(l,a);f===r&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var a=r.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(f,c){var v=i.getRepresentValue({interval:f});c||(c=i.getValueState(v));var h=r(v,c);f[0]===-1/0?a[0]=h:f[1]===1/0?a[1]=h:n.push({value:f[0],color:h},{value:f[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return D(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:n,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=yu(Wb.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(Wb),GEt={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(r)!==i&&r<5;)r++;t.precision=r,i=+i.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<a;s+=i,o++){var l=o===a-1?n[1]:s+i;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),BE(e),D(e,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;D(t.categories,function(r){e.push({text:this.formatValueText(r,!0),value:r})},this),AF(t,e)},pieces:function(e){var t=this.option;D(t.pieces,function(r,n){pt(r)||(r={value:r});var a={text:"",index:n};if(r.label!=null&&(a.text=r.label),r.hasOwnProperty("value")){var i=a.value=r.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],c=0;c<2;c++){for(var v=[["gte","gt","min"],["lte","lt","max"]][c],h=0;h<3&&o[c]==null;h++)o[c]=r[v[h]],s[c]=l[h],f[c]=h===2;o[c]==null&&(o[c]=u[c])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=dr.retrieveVisuals(r),e.push(a)},this),AF(t,e),BE(e),D(e,function(r){var n=r.close,a=[["<","≤"][n[1]],[">","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,a)},this)}};function AF(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}var HEt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=this._getItemAlign(),s=n.itemSize,l=this._getViewData(),u=l.endsText,f=nn(n.get("showLabel",!0),!u),c=!n.get("selectedMode");u&&this._renderEndsText(r,u[0],s,f,o),D(l.viewPieceList,function(v){var h=v.piece,d=new ct;d.onclick=rt(this._onItemClick,this,h),this._enableHoverLink(d,v.indexInModelPieceList);var p=n.getRepresentValue(h);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],c),f){var g=this.visualMapModel.getValueState(p),y=i.get("align")||o;d.add(new Ht({style:se(i,{x:y==="right"?-a:s[0]+a,y:s[1]/2,text:h.text,verticalAlign:i.get("verticalAlign")||"middle",align:y,opacity:ot(i.get("opacity"),g==="outOfRange"?.5:1)}),silent:c}))}r.add(d)},this),u&&this._renderEndsText(r,u[1],s,f,o),Pf(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var a=this;r.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:zS(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return QQ(r,this.api,r.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(r,n,a,i,o){if(n){var s=new ct,l=this.visualMapModel.textStyleModel;s.add(new Ht({style:se(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=X(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=r.get("text"),i=r.get("orient"),o=r.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(r,n,a,i){var o=$e(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color"));o.silent=i,r.add(o)},t.prototype._onItemClick=function(r){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=st(a.selected),s=n.getSelectedMapKey(r);i==="single"||i===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(KQ);function eJ(e){e.registerComponentModel(VEt),e.registerComponentView(HEt),JQ(e)}function UEt(e){Ct(tJ),Ct(eJ)}var FEt=function(){function e(t){this._thumbnailModel=t}return e.prototype.reset=function(t){this._renderVersion=t.getECUpdateCycleVersion()},e.prototype.renderContent=function(t){var r=t.api.getViewOfComponentModel(this._thumbnailModel);r&&(t.group.silent=!0,r.renderContent({group:t.group,targetTrans:t.targetTrans,z2Range:UX(t.group),roamType:t.roamType,viewportRect:t.viewportRect,renderVersion:this._renderVersion}))},e.prototype.updateWindow=function(t,r){var n=r.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:t,renderVersion:this._renderVersion})},e}(),YEt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventAutoZ=!0,r}return t.prototype.optionUpdated=function(r,n){this._updateBridge()},t.prototype._updateBridge=function(){var r=this._birdge=this._birdge||new FEt(this);if(this._target=null,this.ecModel.eachSeries(function(a){aH(a,null)}),this.shouldShow()){var n=this.getTarget();aH(n.baseMapProvider,r)}},t.prototype.shouldShow=function(){return this.getShallow("show",!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var r=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return r?r.subType!=="graph"&&(r=null):r=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:r},this._target},t.type="thumbnail",t.layoutMode="box",t.dependencies=["series","geo"],t.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:V.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:V.color.neutral30,borderColor:V.color.neutral40,opacity:.3},z:10},t}(Lt),jEt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){if(this._api=a,this._model=r,this._coordSys||(this._coordSys=new Ew),!this._isEnabled()){this._clear();return}this._renderVersion=a.getECUpdateCycleVersion();var i=this.group;i.removeAll();var o=r.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=n.get("backgroundColor")||V.color.neutral00);var l=sr(r,a).refContainer,u=xe(h$(r,!0),l),f=s.lineWidth||0,c=this._contentRect=oc(u.clone(),f/2,!0,!0),v=new ct;i.add(v),v.setClipPath(new Et({shape:c.plain()}));var h=this._targetGroup=new ct;v.add(h);var d=u.plain();d.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new Et({style:s,shape:d,silent:!1,cursor:"grab"}));var p=r.getModel("windowStyle"),g=p.getShallow("borderRadius",!0);v.add(this._windowRect=new Et({shape:{x:0,y:0,width:0,height:0,r:g},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),DF(r,this)},t.prototype.renderContent=function(r){this._bridgeRendered=r,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),DF(this._model,this))},t.prototype._dealRenderContent=function(){var r=this._bridgeRendered;if(!(!r||r.renderVersion!==this._renderVersion)){var n=this._targetGroup,a=this._coordSys,i=this._contentRect;if(n.removeAll(),!!r){var o=r.group,s=o.getBoundingRect();n.add(o),this._bgRect.z2=r.z2Range.min-10,Lw(a,s.x,s.y,s.width,s.height);var l=xe({left:"center",top:"center",aspect:s.width/s.height},i);Db(a,l.x,l.y,l.width,l.height),Gy(o,a,gc),o.dirty(),this._windowRect.z2=r.z2Range.max+10,this._resetRoamController(r.roamType)}}},t.prototype.updateWindow=function(r){var n=this._bridgeRendered;n&&n.renderVersion===r.renderVersion&&(n.targetTrans=r.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var r=this._bridgeRendered;if(!(!r||r.renderVersion!==this._renderVersion)){var n=ca([],r.targetTrans),a=ua([],Mb(null,this._coordSys),n);this._transThisToTarget=ca([],a);var i=r.viewportRect;i?i=i.clone():i=new vt(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(a);var o=this._windowRect,s=o.shape.r;o.setShape(dt({r:s},i))}},t.prototype._resetRoamController=function(r){var n=this,a=this._api,i=this._roamController;if(i||(i=this._roamController=new Jc(a.getZr())),!r||!this._isEnabled()){i.disable();return}i.enable(r,{api:a,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return n._contentRect.contain(s,l)}}}),i.off("pan").off("zoom").on("pan",rt(this._onPan,this)).on("zoom",rt(this._onZoom,this))},t.prototype._onPan=function(r){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=Ne([],[r.oldX,r.oldY],n),i=Ne([],[r.oldX-r.dx,r.oldY-r.dy],n);this._api.dispatchAction(MF(this._model.getTarget().baseMapProvider,{dx:i[0]-a[0],dy:i[1]-a[1]}))}},t.prototype._onZoom=function(r){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=Ne([],[r.originX,r.originY],n);this._api.dispatchAction(MF(this._model.getTarget().baseMapProvider,{zoom:1/r.scale,originX:a[0],originY:a[1]}))}},t.prototype._isEnabled=function(){var r=this._model;if(!r||!r.shouldShow())return!1;var n=r.getTarget().baseMapProvider;return!!n},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type="thumbnail",t}(fe);function MF(e,t){var r=e.mainType==="series"?e.subType+"Roam":e.mainType+"Roam",n={type:r};return n[e.mainType+"Id"]=e.id,U(n,t),n}function DF(e,t){var r=sc(e);lw(t.group,r.z,r.zlevel)}function XEt(e){e.registerComponentModel(YEt),e.registerComponentView(jEt)}var $Et={label:{enabled:!0},decal:{show:!1}},EF=Tt(),LF=Tt(),WEt=Cm(ZEt);function ZEt(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=LF(e).scope||(LF(e).scope={}),a=st($Et);wt(a.label,e.getLocaleModel().get("aria"),!1),wt(r.option,a,!1),i(),o();function i(){var f=r.getModel("decal"),c=f.get("show");if(c){var v=nt();e.eachSeries(function(h){h.isColorBySeries()||(EF(h).scope=v.get(h.type)||v.set(h.type,{}))}),e.eachSeries(function(h){if(ut(h.enableAriaDecal)){h.enableAriaDecal();return}var d=h.getData();if(h.isColorBySeries()){var _=oL(h.ecModel,h.name,n,e.getSeriesCount()),S=d.getVisual("decal");d.setVisual("decal",b(S,_))}else{var p=h.getRawData(),g={},y=EF(h).scope;d.each(function(x){var w=d.getRawIndex(x);g[w]=x});var m=p.count();p.each(function(x){var w=g[x],T=p.getName(x)||x+"",C=oL(h.ecModel,T,y,m),A=d.getItemVisual(w,"decal");d.setItemVisual(w,"decal",b(A,C))})}function b(x,w){var T=x?U(U({},w),x):w;return T.dirty=!0,T}})}}function o(){var f=t.getZr().dom;if(f){var c=e.getLocaleModel().get("aria"),v=r.getModel("label");if(v.option=dt(v.option,c),!!v.get("enabled")){if(f.setAttribute("role","img"),v.get("description")){f.setAttribute("aria-label",v.get("description"));return}var h=e.getSeriesCount(),d=v.get(["data","maxCount"])||10,p=v.get(["series","maxCount"])||10,g=Math.min(h,p),y;if(!(h<1)){var m=l();if(m){var _=v.get(["general","withTitle"]);y=s(_,{title:m})}else y=v.get(["general","withoutTitle"]);var S=[],b=h>1?v.get(["series","multiple","prefix"]):v.get(["series","single","prefix"]);y+=s(b,{seriesCount:h}),e.eachSeries(function(C,A){if(A<g){var M=void 0,L=C.get("name"),E=L?"withName":"withoutName";M=h>1?v.get(["series","multiple",E]):v.get(["series","single",E]),M=s(M,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:u(C.subType)});var R=C.getData();if(R.count()>d){var I=v.get(["data","partialData"]);M+=s(I,{displayCnt:d})}else M+=v.get(["data","allData"]);for(var O=v.get(["data","separator","middle"]),N=v.get(["data","separator","end"]),P=v.get(["data","excludeDimensionId"]),z=[],B=0;B<R.count();B++)if(B<d){var H=R.getName(B),F=P?qt(R.getValues(B),function(j,tt){return St(P,tt)===-1}):R.getValues(B),$=v.get(["data",H?"withName":"withoutName"]);z.push(s($,{name:H,value:F.join(O)}))}M+=z.join(O)+N,S.push(M)}});var x=v.getModel(["series","multiple","separator"]),w=x.get("middle"),T=x.get("end");y+=S.join(w)+T,f.setAttribute("aria-label",y)}}}}function s(f,c){if(!J(f))return f;var v=f;return D(c,function(h,d){v=v.replace(new RegExp("\\{\\s*"+d+"\\s*\\}","g"),h)}),v}function l(){var f=e.get("title");return f&&f.length&&(f=f[0]),f&&f.text}function u(f){var c=e.getLocaleModel().get(["series","typeNames"]);return c[f]||c.chart}}function qEt(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},D(["description","general","series","data"],function(r){t[r]!=null&&(t.label[r]=t[r])})}}function KEt(e){e.registerPreprocessor(qEt),e.registerVisual(e.PRIORITY.VISUAL.ARIA,WEt)}var OF={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},QEt=function(){function e(t){var r=this._condVal=J(t)?new RegExp(t):tj(t)?t:null;if(r==null){var n="";Zt(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return J(r)?this._condVal.test(t):Ut(r)?this._condVal.test(t+""):!1},e}(),JEt=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),tLt=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(!t[r].evaluate())return!1;return!0},e}(),eLt=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(t[r].evaluate())return!0;return!1},e}(),rLt=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),nLt=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),a=t?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?a:n))return!1;return!0},e}();function lk(e,t){if(e===!0||e===!1){var r=new JEt;return r.value=e,r}var n="";return rJ(e)||Zt(n),e.and?RF("and",e,t):e.or?RF("or",e,t):e.not?aLt(e,t):iLt(e,t)}function RF(e,t,r){var n=t[e],a="";Y(n)||Zt(a),n.length||Zt(a);var i=e==="and"?new tLt:new eLt;return i.children=X(n,function(o){return lk(o,r)}),i.children.length||Zt(a),i}function aLt(e,t){var r=e.not,n="";rJ(r)||Zt(n);var a=new rLt;return a.child=lk(r,t),a.child||Zt(n),a}function iLt(e,t){for(var r="",n=t.prepareGetValue(e),a=[],i=kt(e),o=e.parser,s=o?I$(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var f=it(OF,u)?OF[u]:u,c=e[u],v=s?s(c):c,h=tdt(f,v)||f==="reg"&&new QEt(v);h||Zt(r),a.push(h)}}a.length||Zt(r);var d=new nLt;return d.valueGetterParam=n,d.valueParser=s,d.getValue=t.getValue,d.subCondList=a,d}function rJ(e){return pt(e)&&!Xr(e)}var oLt=function(){function e(t,r){this._cond=lk(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function sLt(e,t){return new oLt(e,t)}var lLt={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=sLt(e.config,{valueGetterAttrMap:nt({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;it(s,"dimension")||Zt(l);var f=t.getDimensionInfo(u);return f||Zt(l),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(r,s.dimIdx)}}),a=[],i=0,o=t.count();i<o;i++)r=t.getRawDataItem(i),n.evaluate()&&a.push(r);return{data:a}}},uLt={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",a=ue(r);a.length||Zt(n);var i=[];D(a,function(f){var c=f.dimension,v=f.order,h=f.parser,d=f.incomparable;if(c==null&&Zt(n),v!=="asc"&&v!=="desc"&&Zt(n),d&&d!=="min"&&d!=="max"){var p="";Zt(p)}if(v!=="asc"&&v!=="desc"){var g="";Zt(g)}var y=t.getDimensionInfo(c);y||Zt(n);var m=h?I$(h):null;h&&!m&&Zt(n),i.push({dimIdx:y.index,parser:m,comparator:new N$(v,d)})});var o=t.sourceFormat;o!==Lr&&o!==pa&&Zt(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(f,c){for(var v=0;v<i.length;v++){var h=i[v],d=t.retrieveValueFromItem(f,h.dimIdx),p=t.retrieveValueFromItem(c,h.dimIdx);h.parser&&(d=h.parser(d),p=h.parser(p));var g=h.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function fLt(e){e.registerTransform(lLt),e.registerTransform(uLt)}var cLt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,a){e.prototype.init.call(this,r,n,a),this._sourceManager=new H$(this),tV(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),tV(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:vi},t}(Lt),vLt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(fe);function hLt(e){e.registerComponentModel(cLt),e.registerComponentView(vLt)}var Ii=bo.CMD;function lh(e,t){return Math.abs(e-t)<1e-5}function wO(e){var t=e.data,r=e.len(),n=[],a,i=0,o=0,s=0,l=0;function u(E,R){a&&a.length>2&&n.push(a),a=[E,R]}function f(E,R,I,O){lh(E,I)&&lh(R,O)||a.push(E,R,I,O,I,O)}function c(E,R,I,O,N,P){var z=Math.abs(R-E),B=Math.tan(z/4)*4/3,H=R<E?-1:1,F=Math.cos(E),$=Math.sin(E),j=Math.cos(R),tt=Math.sin(R),mt=F*N+I,Nt=$*P+O,Q=j*N+I,q=tt*P+O,ht=N*B*H,K=P*B*H;a.push(mt-ht*$,Nt+K*F,Q+ht*tt,q-K*j,Q,q)}for(var v,h,d,p,g=0;g<r;){var y=t[g++],m=g===1;switch(m&&(i=t[g],o=t[g+1],s=i,l=o,(y===Ii.L||y===Ii.C||y===Ii.Q)&&(a=[s,l])),y){case Ii.M:i=s=t[g++],o=l=t[g++],u(s,l);break;case Ii.L:v=t[g++],h=t[g++],f(i,o,v,h),i=v,o=h;break;case Ii.C:a.push(t[g++],t[g++],t[g++],t[g++],i=t[g++],o=t[g++]);break;case Ii.Q:v=t[g++],h=t[g++],d=t[g++],p=t[g++],a.push(i+2/3*(v-i),o+2/3*(h-o),d+2/3*(v-d),p+2/3*(h-p),d,p),i=d,o=p;break;case Ii.A:var _=t[g++],S=t[g++],b=t[g++],x=t[g++],w=t[g++],T=t[g++]+w;g+=1;var C=!t[g++];v=Math.cos(w)*b+_,h=Math.sin(w)*x+S,m?(s=v,l=h,u(s,l)):f(i,o,v,h),i=Math.cos(T)*b+_,o=Math.sin(T)*x+S;for(var A=(C?-1:1)*Math.PI/2,M=w;C?M>T:M<T;M+=A){var L=C?Math.max(M+A,T):Math.min(M+A,T);c(M,L,_,S,b,x)}break;case Ii.R:s=i=t[g++],l=o=t[g++],v=s+t[g++],h=l+t[g++],u(v,l),f(v,l,v,h),f(v,h,s,h),f(s,h,s,l),f(s,l,v,l);break;case Ii.Z:a&&f(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function TO(e,t,r,n,a,i,o,s,l,u){if(lh(e,r)&&lh(t,n)&&lh(a,o)&&lh(i,s)){l.push(o,s);return}var f=2/u,c=f*f,v=o-e,h=s-t,d=Math.sqrt(v*v+h*h);v/=d,h/=d;var p=r-e,g=n-t,y=a-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_<c&&S<c){l.push(o,s);return}var b=v*p+h*g,x=-v*y-h*m,w=_-b*b,T=S-x*x;if(w<c&&b>=0&&T<c&&x>=0){l.push(o,s);return}var C=[],A=[];Jl(e,r,a,o,.5,C),Jl(t,n,i,s,.5,A),TO(C[0],A[0],C[1],A[1],C[2],A[2],C[3],A[3],l,u),TO(C[4],A[4],C[5],A[5],C[6],A[6],C[7],A[7],l,u)}function dLt(e,t){var r=wO(e),n=[];t=t||1;for(var a=0;a<r.length;a++){var i=r[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],c=i[u++],v=i[u++],h=i[u++],d=i[u++],p=i[u++];TO(s,l,f,c,v,h,d,p,o,t),s=d,l=p}n.push(o)}return n}function nJ(e,t,r){var n=e[t],a=e[1-t],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,c=r-f;if(c>0)for(var u=0;u<c;u++)l[u%o]+=1;return l}function IF(e,t,r){for(var n=e.r0,a=e.r,i=e.startAngle,o=e.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,f=l>Math.abs(u),c=nJ([l,u],f?0:1,t),v=(f?s:u)/c.length,h=0;h<c.length;h++)for(var d=(f?u:s)/c[h],p=0;p<c[h];p++){var g={};f?(g.startAngle=i+v*h,g.endAngle=i+v*(h+1),g.r0=n+d*p,g.r=n+d*(p+1)):(g.startAngle=i+d*p,g.endAngle=i+d*(p+1),g.r0=n+v*h,g.r=n+v*(h+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,r.push(g)}}function pLt(e,t,r){for(var n=e.width,a=e.height,i=n>a,o=nJ([n,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",c=e[s]/o.length,v=0;v<o.length;v++)for(var h=e[l]/o[v],d=0;d<o[v];d++){var p={};p[u]=v*c,p[f]=d*h,p[s]=c,p[l]=h,p.x+=e.x,p.y+=e.y,r.push(p)}}function PF(e,t,r,n){return e*n-r*t}function gLt(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,f=o-a,c=s-i,v=PF(f,c,l,u);if(Math.abs(v)<1e-6)return null;var h=e-a,d=t-i,p=PF(h,d,f,c)/v;return p<0||p>1?null:new gt(p*l+e,p*u+t)}function yLt(e,t,r){var n=new gt;gt.sub(n,r,t),n.normalize();var a=new gt;gt.sub(a,e,t);var i=a.dot(n);return i}function Av(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function mLt(e,t,r){for(var n=e.length,a=[],i=0;i<n;i++){var o=e[i],s=e[(i+1)%n],l=gLt(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);l&&a.push({projPt:yLt(l,t,r),pt:l,idx:i})}if(a.length<2)return[{points:e},{points:e}];a.sort(function(g,y){return g.projPt-y.projPt});var u=a[0],f=a[a.length-1];if(f.idx<u.idx){var c=u;u=f,f=c}for(var v=[u.pt.x,u.pt.y],h=[f.pt.x,f.pt.y],d=[v],p=[h],i=u.idx+1;i<=f.idx;i++)Av(d,e[i].slice());Av(d,h),Av(d,v);for(var i=f.idx+1;i<=u.idx+n;i++)Av(p,e[i%n].slice());return Av(p,v),Av(p,h),[{points:d},{points:p}]}function NF(e){var t=e.points,r=[],n=[];rw(t,r,n);var a=new vt(r[0],r[1],n[0]-r[0],n[1]-r[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new gt,f=new gt;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),mLt(t,u,f)}function Zb(e,t,r,n){if(r===1)n.push(t);else{var a=Math.floor(r/2),i=e(t);Zb(e,i[0],a,n),Zb(e,i[1],r-a,n)}return n}function _Lt(e,t){for(var r=[],n=0;n<t;n++)r.push(HI(e));return r}function SLt(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function bLt(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function xLt(e,t){var r=[],n=e.shape,a;switch(e.type){case"rect":pLt(n,t,r),a=Et;break;case"sector":IF(n,t,r),a=Wr;break;case"circle":IF({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),a=Wr;break;default:var i=e.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=X(dLt(e.getUpdatedPathProxy(),o),function(y){return bLt(y)}),l=s.length;if(l===0)Zb(NF,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var f=0,c=X(s,function(y){var m=[],_=[];rw(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});c.sort(function(y,m){return m.area-y.area});for(var v=t,u=0;u<l;u++){var h=c[u];if(v<=0)break;var d=u===l-1?v:Math.ceil(h.area/f*t);d<0||(Zb(NF,{points:h.poly},d,r),v-=d)}}a=Zr;break}if(!a)return _Lt(e,t);for(var p=[],u=0;u<r.length;u++){var g=new a;g.setShape(r[u]),SLt(e,g),p.push(g)}return p}function wLt(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var a=[],i=[],o=r<n?e:t,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,c=[o[0],o[1]],v=l,h=2;h<s;){var d=o[h-2],p=o[h-1],g=o[h++],y=o[h++],m=o[h++],_=o[h++],S=o[h++],b=o[h++];if(v<=0){c.push(g,y,m,_,S,b);continue}for(var x=Math.min(v,f-1)+1,w=1;w<=x;w++){var T=w/x;Jl(d,g,m,S,T,a),Jl(p,y,_,b,T,i),d=a[3],p=i[3],c.push(a[1],i[1],a[2],i[2],d,p),g=a[5],y=i[5],m=a[6],_=i[6]}v-=x-1}return o===e?[c,t]:[e,c]}function kF(e,t){for(var r=e.length,n=e[r-2],a=e[r-1],i=[],o=0;o<t.length;)i[o++]=n,i[o++]=a;return i}function TLt(e,t){for(var r,n,a,i=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],f=void 0,c=void 0;l?u?(r=wLt(l,u),f=r[0],c=r[1],n=f,a=c):(c=kF(a||l,l),f=l):(f=kF(n||u,u),c=u),i.push(f),o.push(c)}return[i,o]}function zF(e){for(var t=0,r=0,n=0,a=e.length,i=0,o=a-2;i<a;o=i,i+=2){var s=e[o],l=e[o+1],u=e[i],f=e[i+1],c=s*f-u*l;t+=c,r+=(s+u)*c,n+=(l+f)*c}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function CLt(e,t,r,n){for(var a=(e.length-2)/6,i=1/0,o=0,s=e.length,l=s-2,u=0;u<a;u++){for(var f=u*6,c=0,v=0;v<s;v+=2){var h=v===0?f:(f+v-2)%l+2,d=e[h]-r[0],p=e[h+1]-r[1],g=t[v]-n[0],y=t[v+1]-n[1],m=g-d,_=y-p;c+=m*m+_*_}c<i&&(i=c,o=u)}return o}function ALt(e){for(var t=[],r=e.length,n=0;n<r;n+=2)t[n]=e[r-n-2],t[n+1]=e[r-n-1];return t}function MLt(e,t,r,n){for(var a=[],i,o=0;o<e.length;o++){var s=e[o],l=t[o],u=zF(s),f=zF(l);i==null&&(i=u[2]<0!=f[2]<0);var c=[],v=[],h=0,d=1/0,p=[],g=s.length;i&&(s=ALt(s));for(var y=CLt(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;c[_+2]=s[S]-u[0],c[_+3]=s[S+1]-u[1]}c[0]=s[y]-u[0],c[1]=s[y+1]-u[1];for(var b=n/r,x=-n/2;x<=n/2;x+=b){for(var w=Math.sin(x),T=Math.cos(x),C=0,_=0;_<s.length;_+=2){var A=c[_],M=c[_+1],L=l[_]-f[0],E=l[_+1]-f[1],R=L*T-E*w,I=L*w+E*T;p[_]=R,p[_+1]=I;var O=R-A,N=I-M;C+=O*O+N*N}if(C<d){d=C,h=x;for(var P=0;P<p.length;P++)v[P]=p[P]}}a.push({from:c,to:v,fromCp:u,toCp:f,rotation:-h})}return a}function qb(e){return e.__isCombineMorphing}var aJ="__mOriginal_";function Kb(e,t,r){var n=aJ+t,a=e[n]||e[t];e[n]||(e[n]=e[t]);var i=r.replace,o=r.after,s=r.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function Gg(e,t){var r=aJ+t;e[r]&&(e[t]=e[r],e[r]=null)}function BF(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=t[0]*i+t[2]*o+t[4],n[a++]=t[1]*i+t[3]*o+t[5]}}function iJ(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),a=TLt(wO(r),wO(n)),i=a[0],o=a[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&BF(i,s),l&&BF(o,l),Kb(t,"updateTransform",{replace:u}),t.transform=null;var f=MLt(i,o,10,Math.PI),c=[];Kb(t,"buildPath",{replace:function(v){for(var h=t.__morphT,d=1-h,p=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*h,b=y.fromCp,x=y.toCp,w=Math.sin(S),T=Math.cos(S);Mg(p,b,x,h);for(var C=0;C<m.length;C+=2){var A=m[C],M=m[C+1],L=_[C],E=_[C+1],R=A*d+L*h,I=M*d+E*h;c[C]=R*T-I*w+p[0],c[C+1]=R*w+I*T+p[1]}var O=c[0],N=c[1];v.moveTo(O,N);for(var C=2;C<m.length;){var L=c[C++],E=c[C++],P=c[C++],z=c[C++],B=c[C++],H=c[C++];O===L&&N===E&&P===B&&z===H?v.lineTo(B,H):v.bezierCurveTo(L,E,P,z,B,H),O=B,N=H}}}})}function uk(e,t,r){if(!e||!t)return t;var n=r.done,a=r.during;iJ(e,t),t.__morphT=0;function i(){Gg(t,"buildPath"),Gg(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},dt({during:function(o){t.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},r)),t}function DLt(e,t,r,n,a,i){var o=16;e=a===r?0:Math.round(32767*(e-r)/(a-r)),t=i===n?0:Math.round(32767*(t-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,c=0;(e&u)>0&&(f=1),(t&u)>0&&(c=1),s+=u*u*(3*f^c),c===0&&(f===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function Qb(e){var t=1/0,r=1/0,n=-1/0,a=-1/0,i=X(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),r=Math.min(c,r),n=Math.max(f,n),a=Math.max(c,a),[f,c]}),o=X(i,function(s,l){return{cp:s,z:DLt(s[0],s[1],t,r,n,a),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function oJ(e){return xLt(e.path,e.count)}function CO(){return{fromIndividuals:[],toIndividuals:[],count:0}}function ELt(e,t,r){var n=[];function a(b){for(var x=0;x<b.length;x++){var w=b[x];qb(w)?a(w.childrenRef()):w instanceof Rt&&n.push(w)}}a(e);var i=n.length;if(!i)return CO();var o=r.dividePath||oJ,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),CO();n=Qb(n),s=Qb(s);for(var l=r.done,u=r.during,f=r.individualDelay,c=new Ro,v=0;v<i;v++){var h=n[v],d=s[v];d.parent=t,d.copyTransform(c),f||iJ(h,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(b){for(var x=0;x<s.length;x++)s[x].addSelfToZr(b)}Kb(t,"addSelfToZr",{after:function(b){p(b)}}),Kb(t,"removeSelfFromZr",{after:function(b){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(b)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Gg(t,"addSelfToZr"),Gg(t,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},v=0;v<y;v++){var S=f?dt({delay:(r.delay||0)+f(v,y,n[v],s[v]),done:_},r):r;uk(n[v],s[v],S)}else t.__morphT=0,t.animateTo({__morphT:1},dt({during:function(b){for(var x=0;x<y;x++){var w=s[x];w.__morphT=t.__morphT,w.dirtyShape()}u&&u(b)},done:function(){g();for(var b=0;b<e.length;b++)Gg(e[b],"updateTransform");l&&l()}},r));return t.__zr&&p(t.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function LLt(e,t,r){var n=t.length,a=[],i=r.dividePath||oJ;function o(h){for(var d=0;d<h.length;d++){var p=h[d];qb(p)?o(p.childrenRef()):p instanceof Rt&&a.push(p)}}if(qb(e)){o(e.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(HI(a[l++%s]));a.length=n}else{a=i({path:e,count:n});for(var f=e.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(f);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),CO()}a=Qb(a),t=Qb(t);for(var c=r.individualDelay,u=0;u<n;u++){var v=c?dt({delay:(r.delay||0)+c(u,n,a[u],t[u])},r):r;uk(a[u],t[u],v)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function VF(e){return Y(e[0])}function GF(e,t){for(var r=[],n=e.length,a=0;a<n;a++)r.push({one:e[a],many:[]});for(var a=0;a<t.length;a++){var i=t[a].length,o=void 0;for(o=0;o<i;o++)r[o%n].many.push(t[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!r[a].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var i=l.length,u=Math.ceil(i/2);r[a].many=l.slice(u,i),r[s].many=l.slice(0,u),s++}return r}var OLt={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n<e.count;n++){var a=HI(e.path);a.setStyle("opacity",r),t.push(a)}return t},split:null};function _M(e,t,r,n,a,i){if(!e.length||!t.length)return;var o=kd("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=U({setToFinal:!0},o),u,f;VF(e)&&(u=e,f=t),VF(t)&&(u=t,f=e);function c(y,m,_,S,b){var x=y.many,w=y.one;if(x.length===1&&!b){var T=m?x[0]:w,C=m?w:x[0];if(qb(T))c({many:[T],one:C},!0,_,S,!0);else{var A=s?dt({delay:s(_,S)},l):l;uk(T,C,A),i(T,C,T,C,A)}}else for(var M=dt({dividePath:OLt[r],individualDelay:s&&function(N,P,z,B){return s(N+_,S)}},l),L=m?ELt(x,w,M):LLt(w,x,M),E=L.fromIndividuals,R=L.toIndividuals,I=E.length,O=0;O<I;O++){var A=s?dt({delay:s(O,I)},l):l;i(E[O],R[O],m?x[O]:y.one,m?y.one:x[O],A)}}for(var v=u?u===e:e.length>t.length,h=u?GF(f,u):GF(v?t:e,[v?e:t]),d=0,p=0;p<h.length;p++)d+=h[p].many.length;for(var g=0,p=0;p<h.length;p++)c(h[p],v,g,d),g+=h[p].many.length}function uf(e){if(!e)return[];if(Y(e)){for(var t=[],r=0;r<e.length;r++)t.push(uf(e[r]));return t}var n=[];return e.traverse(function(a){a instanceof Rt&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var sJ=1e4,RLt=0,HF=1,UF=2,ILt=Tt();function PLt(e,t){for(var r=e.dimensions,n=0;n<r.length;n++){var a=e.getDimensionInfo(r[n]);if(a&&a.otherDims[t]===0)return r[n]}}function NLt(e,t,r){var n=e.getDimensionInfo(r),a=n&&n.ordinalMeta;if(n){var i=e.get(n.name,t);return a&&a.categories[i]||i+""}}function FF(e,t,r,n){var a=n?"itemChildGroupId":"itemGroupId",i=PLt(e,a);if(i){var o=NLt(e,t,i);return o}var s=e.getRawDataItem(t),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return r||e.getId(t)}function YF(e){var t=[];return D(e,function(r){var n=r.data,a=r.dataGroupId;if(!(n.count()>sJ))for(var i=n.getIndices(),o=0;o<i.length;o++)t.push({data:n,groupId:FF(n,o,a,!1),childGroupId:FF(n,o,a,!0),divide:r.divide,dataIndex:o})}),t}function SM(e,t,r){e.traverse(function(n){n instanceof Rt&&ye(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function bM(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function Mv(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function kLt(e,t,r){var n=kd("update",r,t);n&&e.traverse(function(a){if(a instanceof $a){var i=Lvt(a);i&&a.animateFrom({style:i},n)}})}function zLt(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var a=e[n],i=t[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function lJ(e,t,r){var n=YF(e),a=YF(t);function i(_,S,b,x,w){(b||_)&&S.animateFrom({style:b&&b!==_?U(U({},b.style),_.style):_.style},w)}var o=!1,s=RLt,l=nt(),u=nt();D(n,function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<a.length;f++){var c=a[f].groupId;if(u.get(c)){s=HF;break}var v=a[f].childGroupId;if(v&&l.get(v)){s=UF;break}}function h(_,S){return function(b){var x=b.data,w=b.dataIndex;return S?x.getId(w):_?s===HF?b.childGroupId:b.groupId:s===UF?b.childGroupId:b.groupId}}var d=zLt(n,a),p={};if(!d)for(var f=0;f<a.length;f++){var g=a[f],y=g.data.getItemGraphicEl(g.dataIndex);y&&(p[y.id]=!0)}function m(_,S){var b=n[S],x=a[_],w=x.data.hostModel,T=b.data.getItemGraphicEl(b.dataIndex),C=x.data.getItemGraphicEl(x.dataIndex);if(T===C){C&&kLt(C,x.dataIndex,w);return}T&&p[T.id]||C&&(Mv(C),T?(Mv(T),bM(T),o=!0,_M(uf(T),uf(C),x.divide,w,_,i)):SM(C,w,_))}new Ls(n,a,h(!0,d),h(!1,d),null,"multiple").update(m).updateManyToOne(function(_,S){var b=a[_],x=b.data,w=x.hostModel,T=x.getItemGraphicEl(b.dataIndex),C=qt(X(S,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==T&&!p[A.id]});T&&(Mv(T),C.length?(D(C,function(A){Mv(A),bM(A)}),o=!0,_M(uf(C),uf(T),b.divide,w,_,i)):SM(T,w,b.dataIndex))}).updateOneToMany(function(_,S){var b=n[S],x=b.data.getItemGraphicEl(b.dataIndex);if(!(x&&p[x.id])){var w=qt(X(_,function(C){return a[C].data.getItemGraphicEl(a[C].dataIndex)}),function(C){return C&&C!==x}),T=a[_[0]].data.hostModel;w.length&&(D(w,function(C){return Mv(C)}),x?(Mv(x),bM(x),o=!0,_M(uf(x),uf(w),b.divide,T,_[0],i)):D(w,function(C){return SM(C,T,_[0])}))}}).updateManyToMany(function(_,S){new Ls(S,_,function(b){return n[b].data.getId(n[b].dataIndex)},function(b){return a[b].data.getId(a[b].dataIndex)}).update(function(b,x){m(_[b],S[x])}).execute()}).execute(),o&&D(t,function(_){var S=_.data,b=S.hostModel,x=b&&r.getViewOfSeriesModel(b),w=kd("update",b,0);x&&b.isAnimationEnabled()&&w&&w.duration>0&&x.group.traverse(function(T){T instanceof Rt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function jF(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function XF(e){return Y(e)?e.sort().join(","):e}function fl(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function BLt(e,t){var r=nt(),n=nt(),a=nt();return D(e.oldSeries,function(i,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=jF(i),f=XF(u);n.set(f,{dataGroupId:s,data:l}),Y(u)&&D(u,function(c){a.set(c,{key:f,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=jF(i),u=XF(l),f=n.get(u);if(f)r.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:fl(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:fl(s),data:s}]});else if(Y(l)){var c=[];D(l,function(d){var p=n.get(d);p.data&&c.push({dataGroupId:p.dataGroupId,divide:fl(p.data),data:p.data})}),c.length&&r.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:fl(s)}]})}else{var v=a.get(l);if(v){var h=r.get(v.key);h||(h={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:fl(v.data)}],newSeries:[]},r.set(v.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:fl(s)})}}}}),r}function $F(e,t){for(var r=0;r<e.length;r++){var n=t.seriesIndex!=null&&t.seriesIndex===e[r].seriesIndex||t.seriesId!=null&&t.seriesId===e[r].id;if(n)return r}}function VLt(e,t,r,n){var a=[],i=[];D(ue(e.from),function(o){var s=$F(t.oldSeries,o);s>=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:fl(t.oldData[s]),groupIdDim:o.dimension})}),D(ue(e.to),function(o){var s=$F(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:fl(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&lJ(a,i,n)}function GLt(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){D(ue(n.seriesTransition),function(a){D(ue(a.to),function(i){for(var o=n.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][ES]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var a=ILt(r);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)D(ue(i),function(h){VLt(h,a,n,r)});else{var o=BLt(a,n);D(o.keys(),function(h){var d=o.get(h);lJ(d.oldSeries,d.newSeries,r)})}D(n.updatedSeries,function(h){h[ES]&&(h[ES]=!1)})}for(var s=t.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],f=a.oldData=[],c=0;c<s.length;c++){var v=s[c].getData();v.count()<sJ&&(l.push(s[c]),u.push(s[c].get("dataGroupId")),f.push(v))}})}var HLt=function(){function e(t,r){kP(this,e.decoratedMethods),this._outOfBrk=SL(null,r),this._linear=SL(null,r),zP(this),this.breaks=t&&t.breaks||[]}return e.prototype.hasBreaks=function(){return!!this.breaks.length},e.prototype.calcNiceTickMultiple=function(t,r){for(var n=0;n<this.breaks.length;n++){var a=this.breaks[n];if(a.vmin<t&&t<a.vmax){var i=r(t,a.vmax);return i}}return 0},e.decoratedMethods={needTransform:function(){return!this.breaks.length},getExtent:function(){return this._outOfBrk.getExtent()},getExtentUnsafe:function(t,r){return r==null||r===fs?this._outOfBrk.getExtentUnsafe(t,null):this._linear.getExtentUnsafe(t,null)},setExtent:function(t,r){this.setExtent2(Nn,t,r)},setExtent2:function(t,r,n){nc(r,n)&&(t===Nn&&FLt(this,[r,n]),this._outOfBrk.setExtent2(t,r,n),this._linear.setExtent2(t,this.transformIn(r,null),this.transformIn(n,null)))},normalize:function(t){return this._linear.normalize(this.transformIn(t,null))},scale:function(t){return this.transformOut(this._linear.scale(t),null)},contain:function(t){return this._outOfBrk.contain(t)},transformIn:function(t,r){if(r&&r.depth===fs)return t;for(var n=WF,a=ZF,i=!0,o=0;o<this.breaks.length;o++){var s=this.breaks[o];if(t<=s.vmax){t>s.vmin?n+=s.vmin-a+(t-s.vmin)/(s.vmax-s.vmin)*s.gapReal:n+=t-a,a=s.vmax,i=!1;break}n+=s.vmin-a+s.gapReal,a=s.vmax}return i&&(n+=t-a),n},transformOut:function(t,r){if(r&&r.depth===fs)return t;for(var n=WF,a=ZF,i=!0,o=0,s=0;s<this.breaks.length;s++){var l=this.breaks[s],u=n+l.vmin-a,f=u+l.gapReal;if(t<=f){t>u?o=l.vmin+(t-u)/(f-u)*(l.vmax-l.vmin):o=a+t-n,a=l.vmax,i=!1;break}n=f,a=l.vmax}return i&&(o=a+t-n),o}},e}();function ULt(e,t){return new HLt(e,t)}var WF=0,ZF=0;function FLt(e,t){var r=0,n={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},a=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},i={S:{tpAbs:a(),tpPrct:a()},E:{tpAbs:a(),tpPrct:a()}};D(e.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(r+=l.val);var u=fk(s,t);if(u){var f=u.vmin!==s.vmin,c=u.vmax!==s.vmax,v=u.vmax-u.vmin;if(!(f&&c))if(f||c){var h=f?"S":"E";i[h][l.type].has=!0,i[h][l.type].span=v,i[h][l.type].inExtFrac=v/(s.vmax-s.vmin),i[h][l.type].val=l.val}else n[l.type].span+=v,n[l.type].val+=l.val}});var o=r*(0+(t[1]-t[0])+(n.tpAbs.val-n.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-n.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-n.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));D(e.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=r!==0?Dt(o,0)*l.val/r:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function YLt(e,t,r,n,a,i){e!=="no"&&D(r,function(o){var s=fk(o,i);if(s)for(var l=t.length-1;l>=0;l--){var u=t[l],f=n(u),c=a*3/4;f>s.vmin-c&&f<s.vmax+c&&(e!=="preserve_extent_bound"||f!==i[0]&&f!==i[1])&&t.splice(l,1)}})}function jLt(e,t,r,n){D(t,function(a){var i=fk(a,r);i&&(e.push({value:i.vmin,break:{type:"vmin",parsedBreak:i},time:n?n(i):void 0}),e.push({value:i.vmax,break:{type:"vmax",parsedBreak:i},time:n?n(i):void 0}))}),t.length&&e.sort(function(a,i){return a.value-i.value})}function fk(e,t){var r=Dt(e.vmin,t[0]),n=te(e.vmax,t[1]);return r<n||r===n&&r>t[0]&&r<t[1]?{vmin:r,vmax:n,breakOption:e.breakOption,gapParsed:e.gapParsed,gapReal:e.gapReal}:null}function AO(e,t,r){var n=[];if(!e)return{breaks:n};function a(o,s){return o>=0&&o<1-1e-5}D(e,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:st(o),vmin:t.parse(o.start),vmax:t.parse(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(J(o.gap)){var u=ea(o.gap);if(u.match(/%$/)){var f=parseFloat(u)/100;a(f)||(f=0),s.gapParsed.type="tpPrct",s.gapParsed.val=f,l=!0}}if(!l){var c=t.parse(o.gap);(!isFinite(c)||c<0)&&(c=0),s.gapParsed.type="tpAbs",s.gapParsed.val=c}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),r&&r.noNegative&&D(["vmin","vmax"],function(h){s[h]<0&&(s[h]=0)}),s.vmin>s.vmax){var v=s.vmax;s.vmax=s.vmin,s.vmin=v}n.push(s)}}),n.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return D(n,function(o,s){i>o.vmin&&(n[s]=null),i=o.vmax}),{breaks:qt(n,function(o){return!!o})}}function ck(e,t){return MO(t)===MO(e)}function MO(e){return e.start+"_\0_"+e.end}function XLt(e,t,r){var n=[];D(e,function(i,o){var s=t(i);s&&s.type==="vmin"&&n.push([o])}),D(e,function(i,o){var s=t(i);if(s&&s.type==="vmax"){var l=Vs(n,function(u){return ck(t(e[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var a=[];return D(n,function(i){i.length===2&&a.push(r?i:[e[i[0]],e[i[1]]])}),a}function $Lt(e,t,r,n){if(t.break){var a=t.break.parsedBreak,i=Vs(r,function(f){return ck(f.breakOption,t.break.parsedBreak.breakOption)}),o={lookup:n,depth:fs},s=e.transformOut(a.vmin,o),l=e.transformOut(a.vmax,o),u={vmin:s,vmax:l,breakOption:a.breakOption,gapParsed:st(i.gapParsed),gapReal:a.gapReal};return{tickVal:u[t.break.type],vBreak:{type:t.break.type,parsedBreak:u}}}}function WLt(e,t,r,n,a){a.original=AO(e,t,r);var i=a.transformed=AO(e,t,r),o=a.lookup;i.breaks=X(i.breaks,function(s,l){var u={depth:fs},f=t.transformIn(s.vmin,u),c=t.transformIn(s.vmax,u),v={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?t.transformIn(s.vmin+s.gapParsed.val,u)-f:s.gapParsed.val};return o.from[n+l]=f,o.to[n+l]=s.vmin,o.from[n+l+1]=c,o.to[n+l+1]=s.vmax,{vmin:f,vmax:c,gapParsed:v,gapReal:s.gapReal,breakOption:s.breakOption}})}var ZLt={vmin:"start",vmax:"end"};function qLt(e,t){return t&&(e=e||{},e.break={type:ZLt[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),e}function KLt(){qvt({createBreakScaleMapper:ULt,pruneTicksByBreak:YLt,addBreaksToTicks:jLt,parseAxisBreakOption:AO,identifyAxisBreak:ck,serializeAxisBreakIdentifier:MO,retrieveAxisBreakPairs:XLt,getTicksBreakOutwardTransform:$Lt,parseAxisBreakOptionInwardTransform:WLt,makeAxisLabelFormatterParamBreak:qLt})}var qF=Tt();function QLt(e,t){var r=Vs(e,function(n){return Xe().identifyAxisBreak(n.parsedBreak.breakOption,t.breakOption)});return r||e.push(r={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),r}function JLt(e){D(e,function(t){return t.shouldRemove=!0})}function tOt(e){for(var t=e.length-1;t>=0;t--)e[t].shouldRemove&&e.splice(t,1)}function eOt(e,t,r,n,a){var i=r.axis;if(i.scale.isBlank()||!Xe())return;var o=Xe().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(C){return C.break},!1);if(!o.length)return;var s=r.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),f=s.get("zigzagMaxSpan");u=Math.max(2,u||0),f=Math.max(u,f||0);var c=s.get("expandOnClick"),v=s.get("zigzagZ"),h=s.getModel("itemStyle"),d=h.getItemStyle(),p=d.stroke,g=d.lineWidth,y=d.lineDash,m=d.fill,_=new ct({ignoreModelZ:!0}),S=i.isHorizontal(),b=qF(t).visualList||(qF(t).visualList=[]);JLt(b);for(var x=function(C){var A=o[C][0].break.parsedBreak,M=[];M[0]=i.toGlobalCoord(i.dataToCoord(A.vmin,!0)),M[1]=i.toGlobalCoord(i.dataToCoord(A.vmax,!0)),M[1]<M[0]&&M.reverse();var L=QLt(b,A);L.shouldRemove=!1;var E=new ct;T(L.zigzagRandomList,E,M[0],M[1],S,A),c&&E.on("click",function(){var R={type:Tw,breaks:[{start:A.breakOption.start,end:A.breakOption.end}]};R[i.dim+"AxisIndex"]=r.componentIndex,a.dispatchAction(R)}),E.silent=!c,_.add(E)},w=0;w<o.length;w++)x(w);e.add(_),tOt(b);function T(C,A,M,L,E,R){var I={stroke:p,lineWidth:g,lineDash:y,fill:"none"},O=E?0:1,N=1-O,P=n[_t[N]]+n[Ge[N]];function z(bt){var Mt=[],zt=[];Mt[O]=zt[O]=bt,Mt[N]=n[_t[N]],zt[N]=P;var $t={x1:Mt[0],y1:Mt[1],x2:zt[0],y2:zt[1]};return aw($t,$t,{lineWidth:1}),Mt[0]=$t.x1,Mt[1]=$t.y1,Mt[O]}M=z(M),L=z(L);for(var B=[],H=[],F=!0,$=n[_t[N]],j=0;;j++){var tt=$===n[_t[N]],mt=$>=P;mt&&($=P);var Nt=[],Q=[];Nt[O]=M,Q[O]=L,!tt&&!mt&&(Nt[O]+=F?-l:l,Q[O]-=F?l:-l),Nt[N]=$,Q[N]=$,B.push(Nt),H.push(Q);var q=void 0;if(j<C.length?q=C[j]:(q=Math.random(),C.push(q)),$+=q*(f-u)+u,F=!F,mt)break}var ht=Xe().serializeAxisBreakIdentifier(R.breakOption);if(A.add(new Or({anid:"break_a_"+ht,shape:{points:B},style:I,z:v})),R.gapReal!==0){A.add(new Or({anid:"break_b_"+ht,shape:{points:H},style:I,z:v}));var K=H.slice();K.reverse();var at=B.concat(K);A.add(new Zr({anid:"break_c_"+ht,shape:{points:at},style:{fill:m,opacity:d.opacity},z:v}))}}}function rOt(e,t,r,n){var a=e.axis,i=r.transform;$r(n.style);var o=a.getExtent();a.inverse&&(o=o.slice(),o.reverse());var s=Xe().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:"only_break"}),function(g){return g.break},!1),l=X(s,function(g){var y=g[0].break.parsedBreak,m=[a.dataToCoord(y.vmin,!0),a.dataToCoord(y.vmax,!0)];return m[0]>m[1]&&m.reverse(),{coordPair:m,brkId:Xe().serializeAxisBreakIdentifier(y.breakOption)}});l.sort(function(g,y){return g.coordPair[0]-y.coordPair[0]});for(var u=o[0],f=null,c=0;c<l.length;c++){var v=l[c],h=Math.max(v.coordPair[0],o[0]),d=Math.min(v.coordPair[1],o[1]);u<=h&&p(u,h,f,v),u=d,f=v}u<=o[1]&&p(u,o[1],f,null);function p(g,y,m,_){function S(M,L){i&&(Ne(M,M,i),Ne(L,L,i))}function b(M,L){var E={x1:M[0],y1:M[1],x2:L[0],y2:L[1]};aw(E,E,n.style),M[0]=E.x1,M[1]=E.y1,L[0]=E.x2,L[1]=E.y2}var x=[g,0],w=[y,0],T=[g,5],C=[y,5];S(x,T),b(x,T),S(w,C),b(w,C),b(x,w);var A=new je(U({shape:{x1:x[0],y1:x[1],x2:w[0],y2:w[1]}},n));t.add(A),A.anid="breakLine_"+(m?m.brkId:"\0")+"_\0_"+(_?_.brkId:"\0")}}function nOt(e,t,r){if(Vs(r,function(m){return!m}))return;var n=new gt;if(!xw(r[0],r[1],n,{direction:-(e?t+Math.PI:t),touchThreshold:0,bidirectional:!1}))return;var a=we();Gs(a,a,-t);var i=X(r,function(m){return m.transform?ua(we(),a,m.transform):a});function o(m){var _=r[0].localRect,S=new gt(_[Ge[m]]*i[0][0],_[Ge[m]]*i[0][1]);return Math.abs(S.y)<1e-5}var s=.5;if(o(0)||o(1)){var l=X(r,function(m,_){var S=m.localRect.clone();return S.applyTransform(i[_]),S}),u=new gt;u.copy(r[0].label).add(r[1].label).scale(.5),u.transform(a);var f=n.clone().transform(a),c=l[0].x+l[1].x+(f.x>=0?l[0].width:l[1].width),v=(c+f.x)/2-u.x,h=Math.min(v,v-f.x),d=Math.max(v,v-f.x),p=d<0?d:h>0?h:0;s=(v-p)/f.x}var g=new gt,y=new gt;gt.scale(g,n,-s),gt.scale(y,n,1-s),AL(r[0],g),AL(r[1],y)}function aOt(e,t){var r={breaks:[]};return D(t.breaks,function(n){if(n){var a=Vs(e.get("breaks",!0),function(s){return Xe().identifyAxisBreak(s,n)});if(a){var i=t.type,o={isExpanded:!!a.isExpanded};a.isExpanded=i===Tw?!0:i===JZ?!1:i===tq?!a.isExpanded:a.isExpanded,r.breaks.push({start:a.start,end:a.end,isExpanded:!!a.isExpanded,old:o})}}}),r}function iOt(){b0t({adjustBreakLabelPair:nOt,buildAxisBreakLine:rOt,rectCoordBuildBreakAxis:eOt,updateModelAxisBreak:aOt})}function oOt(e){C0t(e),KLt(),iOt()}function sOt(){H_t(lOt)}function lOt(e,t){D(e,function(r){if(!r.model.get(["axisLabel","inside"])){var n=uOt(r);if(n){var a=r.isHorizontal()?"height":"width",i=r.model.get(["axisLabel","margin"]);t[a]-=n[a]+i,r.position==="top"?t.y+=n.height+i:r.position==="left"&&(t.x+=n.width+i)}}})}function uOt(e){var t=e.model,r=e.scale;if(!t.get(["axisLabel","show"])||r.isBlank())return;var n,a,i=r.getExtent();r instanceof Ey?a=r.count():(n=r.getTicks(),a=n.length);var o=e.getLabelModel(),s=km(e),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var c=n?n[f]:{value:i[0]+f},v=s(c,f),h=o.getTextRect(v),d=p(h,o.get("rotate")||0);l?l.union(d):l=d}return l;function p(g,y){var m=y*Math.PI/180,_=g.width,S=g.height,b=_*Math.abs(Math.cos(m))+Math.abs(S*Math.sin(m)),x=_*Math.abs(Math.sin(m))+Math.abs(S*Math.cos(m)),w=new vt(g.x,g.y,b,x);return w}}Ct([Jmt]);Ct([Xmt]);Ct([S0t,p_t,A_t,sSt,SSt,w1t,K1t,Pbt,sxt,pxt,bxt,Lxt,bwt,$wt,oTt,TTt,DTt,BTt,jTt,rCt,uCt,bCt,iAt]);Ct(TAt);Ct(JAt);Ct(nK);Ct(cMt);Ct(YK);Ct(pMt);Ct(NMt);Ct(YMt);Ct(IDt);Ct(QDt);Ct(Fm);Ct(d2t);Ct(y2t);Ct(A2t);Ct(P2t);Ct(G2t);Ct(X2t);Ct(nEt);Ct(xEt);Ct(WQ);Ct(ZQ);Ct(UEt);Ct(tJ);Ct(eJ);Ct(XEt);Ct(KEt);Ct(fLt);Ct(hLt);Ct(GLt);Ct(cmt);Ct(oOt);Ct(sOt);Ct(lSt);const fOt=Object.freeze(Object.defineProperty({__proto__:null,Axis:Ka,ChartView:ee,ComponentModel:Lt,ComponentView:fe,List:sn,Model:Ot,PRIORITY:_W,SeriesModel:ne,color:Eut,connect:$pt,dataTool:egt,dependencies:Ept,disConnect:Wpt,disconnect:MW,dispose:Zpt,env:Vt,extendChartView:qyt,extendComponentModel:$yt,extendComponentView:Wyt,extendSeriesModel:Zyt,format:Eyt,getCoordinateSystemDimensions:Kpt,getInstanceByDom:AP,getInstanceById:qpt,getMap:tgt,graphic:Dyt,helper:Syt,init:Xpt,innerDrawElementOnCanvas:xP,matrix:nut,number:Ayt,parseGeoJSON:TL,parseGeoJson:TL,registerAction:bi,registerCoordinateSystem:LW,registerCustomSeries:Qpt,registerLayout:OW,registerLoading:OP,registerLocale:JI,registerMap:RW,registerPostInit:DW,registerPostUpdate:EW,registerPreprocessor:DP,registerProcessor:EP,registerTheme:MP,registerTransform:IW,registerUpdateLifecycle:yw,registerVisual:mu,setCanvasCreator:Jpt,setPlatformAPI:Z9,throttle:dw,time:Myt,use:Ct,util:Lyt,vector:Ult,version:Dpt,zrUtil:Nlt,zrender:cft},Symbol.toStringTag,{value:"Module"}));var Bf={},jl={},uJ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=1;e.default=function(){return"".concat(t++)}})(uJ);var zw={},Bw={},vk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,a=null;return function(){for(var i=this,o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];clearTimeout(a),a=setTimeout(function(){r.apply(i,s)},n)}}})(vk);var po={};Object.defineProperty(po,"__esModule",{value:!0});po.SizeSensorId=po.SensorTabIndex=po.SensorClassName=void 0;po.SizeSensorId="size-sensor-id";po.SensorClassName="size-sensor-object";po.SensorTabIndex="-1";Object.defineProperty(Bw,"__esModule",{value:!0});Bw.createSensor=void 0;var cOt=vOt(vk),xM=po;function vOt(e){return e&&e.__esModule?e:{default:e}}Bw.createSensor=function(t,r){var n=void 0,a=[],i=function(){getComputedStyle(t).position==="static"&&(t.style.position="relative");var c=document.createElement("object");return c.onload=function(){c.contentDocument.defaultView.addEventListener("resize",o),o()},c.style.display="block",c.style.position="absolute",c.style.top="0",c.style.left="0",c.style.height="100%",c.style.width="100%",c.style.overflow="hidden",c.style.pointerEvents="none",c.style.zIndex="-1",c.style.opacity="0",c.setAttribute("class",xM.SensorClassName),c.setAttribute("tabindex",xM.SensorTabIndex),c.type="text/html",t.appendChild(c),c.data="about:blank",c},o=(0,cOt.default)(function(){a.forEach(function(f){f(t)})}),s=function(c){n||(n=i()),a.indexOf(c)===-1&&a.push(c)},l=function(){n&&n.parentNode&&(n.contentDocument&&n.contentDocument.defaultView.removeEventListener("resize",o),n.parentNode.removeChild(n),t.removeAttribute(xM.SizeSensorId),n=void 0,a=[],r&&r())},u=function(c){var v=a.indexOf(c);v!==-1&&a.splice(v,1),a.length===0&&n&&l()};return{element:t,bind:s,destroy:l,unbind:u}};var Vw={};Object.defineProperty(Vw,"__esModule",{value:!0});Vw.createSensor=void 0;var hOt=po,dOt=pOt(vk);function pOt(e){return e&&e.__esModule?e:{default:e}}Vw.createSensor=function(t,r){var n=void 0,a=[],i=(0,dOt.default)(function(){a.forEach(function(f){f(t)})}),o=function(){var c=new ResizeObserver(i);return c.observe(t),i(),c},s=function(c){n||(n=o()),a.indexOf(c)===-1&&a.push(c)},l=function(){n&&n.disconnect(),a=[],n=void 0,t.removeAttribute(hOt.SizeSensorId),r&&r()},u=function(c){var v=a.indexOf(c);v!==-1&&a.splice(v,1),a.length===0&&n&&l()};return{element:t,bind:s,destroy:l,unbind:u}};Object.defineProperty(zw,"__esModule",{value:!0});zw.createSensor=void 0;var gOt=Bw,yOt=Vw;zw.createSensor=typeof ResizeObserver<"u"?yOt.createSensor:gOt.createSensor;Object.defineProperty(jl,"__esModule",{value:!0});jl.removeSensor=jl.getSensor=jl.Sensors=void 0;var mOt=SOt(uJ),_Ot=zw,DO=po;function SOt(e){return e&&e.__esModule?e:{default:e}}var Hg=jl.Sensors={};function fJ(e){e&&Hg[e]&&delete Hg[e]}jl.getSensor=function(t){var r=t.getAttribute(DO.SizeSensorId);if(r&&Hg[r])return Hg[r];var n=(0,mOt.default)();t.setAttribute(DO.SizeSensorId,n);var a=(0,_Ot.createSensor)(t,function(){return fJ(n)});return Hg[n]=a,a};jl.removeSensor=function(t){var r=t.element.getAttribute(DO.SizeSensorId);t.destroy(),fJ(r)};var hk,dk;Object.defineProperty(Bf,"__esModule",{value:!0});Bf.ver=dk=Bf.clear=hk=Bf.bind=void 0;var EO=jl;hk=Bf.bind=function(t,r){var n=(0,EO.getSensor)(t);return n.bind(r),function(){n.unbind(r)}};dk=Bf.clear=function(t){var r=(0,EO.getSensor)(t);(0,EO.removeSensor)(r)};Bf.ver="1.0.3";function KF(e,t){var r={};return t.forEach(function(n){r[n]=e[n]}),r}function wM(e){return typeof e=="function"}function bOt(e){return typeof e=="string"}var xOt=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,a,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=n;a--!==0;){var o=i[a];if(!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r};const Dv=uu(xOt);var wOt=function(e){$9(t,e);function t(r){var n=e.call(this,r)||this;return n.echarts=r.echarts,n.ele=null,n.isInitialResize=!0,n.eventHandlerRefs={},n}return t.prototype.componentDidMount=function(){this.renderNewEcharts()},t.prototype.componentDidUpdate=function(r){var n=this.props.shouldSetOption;if(!(wM(n)&&!n(r,this.props))){if(!Dv(r.theme,this.props.theme)||!Dv(r.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var a=this.getEchartsInstance();Dv(r.onEvents,this.props.onEvents)||(this.unbindEvents(a),this.bindEvents(a,this.props.onEvents));var i=["option","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption"];Dv(KF(this.props,i),KF(r,i))||this.updateEChartsOption(),(!Dv(r.style,this.props.style)||!Dv(r.className,this.props.className))&&this.resize()}},t.prototype.componentWillUnmount=function(){this.dispose()},t.prototype.initEchartsInstance=function(){return s3(this,void 0,void 0,function(){var r=this;return l3(this,function(n){return[2,new Promise(function(a){r.echarts.init(r.ele,r.props.theme,r.props.opts);var i=r.getEchartsInstance();i.on("finished",function(){var o=r.ele.clientWidth,s=r.ele.clientHeight;r.echarts.dispose(r.ele);var l=Qn({width:o,height:s},r.props.opts);a(r.echarts.init(r.ele,r.props.theme,l))})})]})})},t.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},t.prototype.dispose=function(){if(this.ele){try{dk(this.ele)}catch(r){console.warn(r)}this.echarts.dispose(this.ele)}},t.prototype.renderNewEcharts=function(){return s3(this,void 0,void 0,function(){var r,n,a,i,o,s,l=this;return l3(this,function(u){switch(u.label){case 0:return r=this.props,n=r.onEvents,a=r.onChartReady,i=r.autoResize,o=i===void 0?!0:i,[4,this.initEchartsInstance()];case 1:return u.sent(),s=this.updateEChartsOption(),this.bindEvents(s,n||{}),wM(a)&&a(s),this.ele&&o&&hk(this.ele,function(){l.resize()}),[2]}})})},t.prototype.bindEvents=function(r,n){var a=this,i=function(s,l){if(bOt(s)&&wM(l)){var u=function(f){l(f,r)};r.on(s,u),a.eventHandlerRefs[s]=u}};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&i(o,n[o])},t.prototype.unbindEvents=function(r){for(var n=0,a=Object.entries(this.eventHandlerRefs);n<a.length;n++){var i=a[n],o=i[0],s=i[1];r.off(o,s)}this.eventHandlerRefs={}},t.prototype.updateEChartsOption=function(){var r=this.props,n=r.option,a=r.notMerge,i=a===void 0?!1:a,o=r.replaceMerge,s=o===void 0?null:o,l=r.lazyUpdate,u=l===void 0?!1:l,f=r.showLoading,c=r.loadingOption,v=c===void 0?null:c,h=this.getEchartsInstance();return h.setOption(n,{notMerge:i,replaceMerge:s,lazyUpdate:u}),f?h.showLoading(v):h.hideLoading(),h},t.prototype.resize=function(){var r=this.getEchartsInstance();if(!this.isInitialResize)try{r.resize({width:"auto",height:"auto"})}catch(n){console.warn(n)}this.isInitialResize=!1},t.prototype.render=function(){var r=this,n=this.props,a=n.style,i=n.className,o=i===void 0?"":i;n.echarts,n.option,n.theme,n.notMerge,n.replaceMerge,n.lazyUpdate,n.showLoading,n.loadingOption,n.opts,n.onChartReady,n.onEvents,n.shouldSetOption,n.autoResize;var s=cI(n,["style","className","echarts","option","theme","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption","opts","onChartReady","onEvents","shouldSetOption","autoResize"]),l=Qn({height:300},a);return US.createElement("div",Qn({ref:function(u){r.ele=u},style:l,className:"echarts-for-react ".concat(o)},s))},t}(k.PureComponent),TOt=function(e){$9(t,e);function t(r){var n=e.call(this,r)||this;return n.echarts=fOt,n}return t}(wOt);const COt=om(()=>{const{t:e,i18n:t}=px(),{usageData:r}=Be,[n,a]=k.useState(null),i=k.useMemo(()=>{if(!r||!r.byDay||r.byDay.length===0)return null;const l=Y9(t.language),u=r.byDay.map(p=>j9(p.date,l)),f=r.byDay.map(p=>p.date),c=r.byDay.map(p=>p.inputTokens),v=r.byDay.map(p=>p.outputTokens),h=r.byDay.map(p=>p.totalTokens),d=r.byDay.map(p=>p.sessionCount);return{dates:u,rawDates:f,inputTokens:c,outputTokens:v,totalTokens:h,sessionCounts:d}},[r,t.language]);k.useEffect(()=>{a(null)},[r]);const o=l=>{const u=Array.isArray(l==null?void 0:l.batch)?l.batch[0]:l,f=typeof(u==null?void 0:u.start)=="number"?u.start:null,c=typeof(u==null?void 0:u.end)=="number"?u.end:null;if(!(f==null||c==null||!i)&&(a({start:f,end:c}),i.rawDates.length>0)){const v=i.rawDates.length,h=Math.floor(f/100*v),d=Math.min(Math.ceil(c/100*v)-1,v-1),p=i.rawDates[h],g=i.rawDates[d];Be.setDateRange(p,g)}};if(!i)return Z.jsx("div",{className:yn("p-8 flex justify-center items-center"),children:Z.jsx("div",{className:"inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]",style:{borderColor:`${xt.chart.spinner} transparent ${xt.chart.spinner} transparent`},role:"status",children:Z.jsx("span",{className:"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]",children:e("loading")})})});const s={backgroundColor:"transparent",color:xt.chart.colors,tooltip:{trigger:"axis",backgroundColor:xt.chart.tooltip.background,borderColor:xt.chart.tooltip.border,textStyle:{color:xt.chart.tooltip.text},formatter:l=>{let u=`<div style="font-weight: 600; margin-bottom: 4px;">${l[0].axisValue}</div>`;return l.forEach(f=>{u+=`<div style="margin: 2px 0;">${f.marker} ${f.seriesName}: ${gf(f.value)}</div>`}),u}},grid:{left:60,right:60,top:30,bottom:80},dataZoom:[{type:"inside",xAxisIndex:0,start:n==null?void 0:n.start,end:n==null?void 0:n.end},{type:"slider",xAxisIndex:0,height:24,bottom:20,borderColor:xt.chart.zoom.border,fillerColor:xt.chart.zoom.filler,handleStyle:{color:xt.chart.zoom.handle},start:n==null?void 0:n.start,end:n==null?void 0:n.end}],xAxis:{type:"category",data:i.dates,axisLabel:{hideOverlap:!0,color:xt.chart.axis.label},axisLine:{lineStyle:{color:xt.chart.axis.line}}},yAxis:[{type:"value",name:e("tokens"),position:"left",axisLabel:{color:xt.chart.axis.label,formatter:l=>gf(l)},splitLine:{lineStyle:{color:xt.chart.axis.split}}},{type:"value",name:e("sessionCount"),position:"right",axisLabel:{color:xt.chart.axis.label,formatter:l=>gf(l)},splitLine:{show:!1}}],series:[Be.seriesVisibility.inputTokens&&{name:e("inputTokens"),type:"line",smooth:!0,data:i.inputTokens,yAxisIndex:0,itemStyle:{color:xt.chart.colors[0]},lineStyle:{color:xt.chart.colors[0]}},Be.seriesVisibility.outputTokens&&{name:e("outputTokens"),type:"line",smooth:!0,data:i.outputTokens,yAxisIndex:0,itemStyle:{color:xt.chart.colors[1]},lineStyle:{color:xt.chart.colors[1]}},Be.seriesVisibility.totalTokens&&{name:e("totalTokens"),type:"line",smooth:!0,data:i.totalTokens,yAxisIndex:0,itemStyle:{color:xt.chart.colors[2]},lineStyle:{color:xt.chart.colors[2]}},Be.seriesVisibility.sessionCount&&{name:e("sessionCount"),type:"line",smooth:!0,data:i.sessionCounts,yAxisIndex:1,itemStyle:{color:xt.chart.colors[3]},lineStyle:{color:xt.chart.colors[3]}}].filter(Boolean)};return Z.jsx("div",{children:Z.jsx(TOt,{style:{height:400},onEvents:{dataZoom:o},option:s,notMerge:!0,lazyUpdate:!0})})});var AOt=Object.defineProperty,MOt=(e,t)=>AOt(e,"name",{value:t,configurable:!0});function LO(e,[t,r]){return Math.min(r,Math.max(t,e))}MOt(LO,"clamp");var DOt=Object.defineProperty,Qd=(e,t)=>DOt(e,"name",{value:t,configurable:!0}),cJ=!!(typeof window<"u"&&window.document&&window.document.createElement);function Tr(e,t,{checkForDefaultPrevented:r=!0}={}){return Qd(function(a){if(e==null||e(a),r===!1||!a||!a.defaultPrevented)return t==null?void 0:t(a)},"handleEvent")}Qd(Tr,"composeEventHandlers");function EOt(e){var t;if(!cJ)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}Qd(EOt,"getOwnerWindow");function OO(e){if(!cJ)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}Qd(OO,"getOwnerDocument");function vJ(e,t=!1){const{activeElement:r}=OO(e);if(!(r!=null&&r.nodeName))return null;if(hJ(r)&&r.contentDocument)return vJ(r.contentDocument.body,t);if(t){const n=r.getAttribute("aria-activedescendant");if(n){const a=OO(r).getElementById(n);if(a)return a}}return r}Qd(vJ,"getActiveElement");function hJ(e){return e.tagName==="IFRAME"}Qd(hJ,"isFrame");var LOt=Object.defineProperty,ka=(e,t)=>LOt(e,"name",{value:t,configurable:!0});function OOt(e,t){const r=k.createContext(t);r.displayName=e+"Context";const n=ka(i=>{const{children:o,...s}=i,l=k.useMemo(()=>s,Object.values(s));return Z.jsx(r.Provider,{value:l,children:o})},"Provider");n.displayName=e+"Provider";function a(i,o={}){const{optional:s=!1}=o,l=k.useContext(r);if(l)return l;if(t!==void 0)return t;if(!s)throw new Error(`\`${i}\` must be used within \`${e}\``)}return ka(a,"useContext"),[n,a]}ka(OOt,"createContext");function Ym(e,t=[]){let r=[];function n(i,o){const s=k.createContext(o);s.displayName=i+"Context";const l=r.length;r=[...r,o];const u=ka(c=>{var y;const{scope:v,children:h,...d}=c,p=((y=v==null?void 0:v[e])==null?void 0:y[l])||s,g=k.useMemo(()=>d,Object.values(d));return Z.jsx(p.Provider,{value:g,children:h})},"Provider");u.displayName=i+"Provider";function f(c,v,h={}){var y;const{optional:d=!1}=h,p=((y=v==null?void 0:v[e])==null?void 0:y[l])||s,g=k.useContext(p);if(g)return g;if(o!==void 0)return o;if(!d)throw new Error(`\`${c}\` must be used within \`${i}\``)}return ka(f,"useContext"),[u,f]}ka(n,"createContext");const a=ka(()=>{const i=r.map(o=>k.createContext(o));return ka(function(s){const l=(s==null?void 0:s[e])||i;return k.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])},"useScope")},"createScope");return a.scopeName=e,[n,dJ(a,...t)]}ka(Ym,"createContextScope");function dJ(...e){const t=e[0];if(e.length===1)return t;const r=ka(()=>{const n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return ka(function(i){const o=n.reduce((s,{useScope:l,scopeName:u})=>{const c=l(i)[`__scope${u}`];return{...s,...c}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}ka(dJ,"composeContextScopes");var ROt=Object.defineProperty,pk=(e,t)=>ROt(e,"name",{value:t,configurable:!0});function RO(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}pk(RO,"setRef");function pJ(...e){return t=>{let r=!1;const n=e.map(a=>{const i=RO(a,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let a=0;a<n.length;a++){const i=n[a];typeof i=="function"?i():RO(e[a],null)}}}}pk(pJ,"composeRefs");function pr(...e){return k.useCallback(pJ(...e),e)}pk(pr,"useComposedRefs");var IOt=Object.defineProperty,wi=(e,t)=>IOt(e,"name",{value:t,configurable:!0});function wc(e){const t=k.forwardRef((r,n)=>{let{children:a,...i}=r,o=null,s=!1;const l=[];IO(a)&&typeof k_=="function"&&(a=k_(a._payload)),k.Children.forEach(a,v=>{var h;if(_J(v)){s=!0;const d=v;let p="child"in d.props?d.props.child:d.props.children;IO(p)&&typeof k_=="function"&&(p=k_(p._payload)),o=NOt(d,p),l.push((h=o==null?void 0:o.props)==null?void 0:h.children)}else l.push(v)}),o?o=k.cloneElement(o,void 0,l):!s&&k.Children.count(a)===1&&k.isValidElement(a)&&(o=a);const u=o?mJ(o):void 0,f=pr(n,u);if(!o){if(a||a===0)throw new Error(s?BOt(e):zOt(e));return a}const c=yJ(i,o.props??{});return o.type!==k.Fragment&&(c.ref=n?f:u),k.cloneElement(o,c)});return t.displayName=`${e}.Slot`,t}wi(wc,"createSlot");var gJ=Symbol.for("radix.slottable");function POt(e){const t=wi(r=>"child"in r?r.children(r.child):r.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=gJ,t}wi(POt,"createSlottable");var NOt=wi((e,t)=>{if("child"in e.props){const r=e.props.child;return k.isValidElement(r)?k.cloneElement(r,void 0,e.props.children(r.props.children)):null}return k.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function yJ(e,t){const r={...t};for(const n in t){const a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...s)=>{const l=i(...s);return a(...s),l}:a&&(r[n]=a):n==="style"?r[n]={...a,...i}:n==="className"&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}wi(yJ,"mergeProps");function mJ(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}wi(mJ,"getElementRef");function _J(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gJ}wi(_J,"isSlottable");var kOt=Symbol.for("react.lazy");function IO(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===kOt&&"_payload"in e&&SJ(e._payload)}wi(IO,"isLazyComponent");function SJ(e){return typeof e=="object"&&e!==null&&"then"in e}wi(SJ,"isPromiseLike");var zOt=wi(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),BOt=wi(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),k_=Jy[" use ".trim().toString()],VOt=Object.defineProperty,Mr=(e,t)=>VOt(e,"name",{value:t,configurable:!0});function bJ(e){const t=e+"CollectionProvider",[r,n]=Ym(t),[a,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=Mr(p=>{const{scope:g,children:y}=p,m=k.useRef(null),_=k.useRef(new Map).current;return Z.jsx(a,{scope:g,itemMap:_,collectionRef:m,children:y})},"CollectionProvider");o.displayName=t;const s=e+"CollectionSlot",l=wc(s),u=k.forwardRef((p,g)=>{const{scope:y,children:m}=p,_=i(s,y),S=pr(g,_.collectionRef);return Z.jsx(l,{ref:S,children:m})});u.displayName=s;const f=e+"CollectionItemSlot",c="data-radix-collection-item",v=wc(f),h=k.forwardRef((p,g)=>{const{scope:y,children:m,..._}=p,S=k.useRef(null),b=pr(g,S),x=i(f,y);return k.useEffect(()=>(x.itemMap.set(S,{ref:S,..._}),()=>void x.itemMap.delete(S))),Z.jsx(v,{[c]:"",ref:b,children:m})});h.displayName=f;function d(p){const g=i(e+"CollectionConsumer",p);return k.useCallback(()=>{const m=g.collectionRef.current;if(!m)return[];const _=Array.from(m.querySelectorAll(`[${c}]`));return Array.from(g.itemMap.values()).sort((x,w)=>_.indexOf(x.ref.current)-_.indexOf(w.ref.current))},[g.collectionRef,g.itemMap])}return Mr(d,"useCollection"),[{Provider:o,Slot:u,ItemSlot:h},d,n]}Mr(bJ,"createCollection");var QF=new WeakMap,Je,jn,TM=(jn=class extends Map{constructor(r){super(r);Pk(this,Je);Zw(this,Je,[...super.keys()]),QF.set(this,!0)}set(r,n){return QF.get(this)&&(this.has(r)?Qr(this,Je)[Qr(this,Je).indexOf(r)]=r:Qr(this,Je).push(r)),super.set(r,n),this}insert(r,n,a){const i=this.has(n),o=Qr(this,Je).length,s=gk(r);let l=s>=0?s:o+s;const u=l<0||l>=o?-1:l;if(u===this.size||i&&u===this.size-1||u===-1)return this.set(n,a),this;const f=this.size+(i?0:1);s<0&&l++;const c=[...Qr(this,Je)];let v,h=!1;for(let d=l;d<f;d++)if(l===d){let p=c[d];c[d]===n&&(p=c[d+1]),i&&this.delete(n),v=this.get(p),this.set(n,a)}else{!h&&c[d-1]===n&&(h=!0);const p=c[h?d:d-1],g=v;v=this.get(p),this.delete(p),this.set(p,g)}return this}with(r,n,a){const i=new jn(this);return i.insert(r,n,a),i}before(r){const n=Qr(this,Je).indexOf(r)-1;if(!(n<0))return this.entryAt(n)}setBefore(r,n,a){const i=Qr(this,Je).indexOf(r);return i===-1?this:this.insert(i,n,a)}after(r){let n=Qr(this,Je).indexOf(r);if(n=n===-1||n===this.size-1?-1:n+1,n!==-1)return this.entryAt(n)}setAfter(r,n,a){const i=Qr(this,Je).indexOf(r);return i===-1?this:this.insert(i+1,n,a)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Zw(this,Je,[]),super.clear()}delete(r){const n=super.delete(r);return n&&Qr(this,Je).splice(Qr(this,Je).indexOf(r),1),n}deleteAt(r){const n=this.keyAt(r);return n!==void 0?this.delete(n):!1}at(r){const n=BS(Qr(this,Je),r);if(n!==void 0)return this.get(n)}entryAt(r){const n=BS(Qr(this,Je),r);if(n!==void 0)return[n,this.get(n)]}indexOf(r){return Qr(this,Je).indexOf(r)}keyAt(r){return BS(Qr(this,Je),r)}from(r,n){const a=this.indexOf(r);if(a===-1)return;let i=a+n;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.at(i)}keyFrom(r,n){const a=this.indexOf(r);if(a===-1)return;let i=a+n;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.keyAt(i)}find(r,n){let a=0;for(const i of this){if(Reflect.apply(r,n,[i,a,this]))return i;a++}}findIndex(r,n){let a=0;for(const i of this){if(Reflect.apply(r,n,[i,a,this]))return a;a++}return-1}filter(r,n){const a=[];let i=0;for(const o of this)Reflect.apply(r,n,[o,i,this])&&a.push(o),i++;return new jn(a)}map(r,n){const a=[];let i=0;for(const o of this)a.push([o[0],Reflect.apply(r,n,[o,i,this])]),i++;return new jn(a)}reduce(...r){const[n,a]=r;let i=0,o=a??this.at(0);for(const s of this)i===0&&r.length===1?o=s:o=Reflect.apply(n,this,[o,s,i,this]),i++;return o}reduceRight(...r){const[n,a]=r;let i=a??this.at(-1);for(let o=this.size-1;o>=0;o--){const s=this.at(o);o===this.size-1&&r.length===1?i=s:i=Reflect.apply(n,this,[i,s,o,this])}return i}toSorted(r){const n=[...this.entries()].sort(r);return new jn(n)}toReversed(){const r=new jn;for(let n=this.size-1;n>=0;n--){const a=this.keyAt(n),i=this.get(a);r.set(a,i)}return r}toSpliced(...r){const n=[...this.entries()];return n.splice(...r),new jn(n)}slice(r,n){const a=new jn;let i=this.size-1;if(r===void 0)return a;r<0&&(r=r+this.size),n!==void 0&&n>0&&(i=n-1);for(let o=r;o<=i;o++){const s=this.keyAt(o),l=this.get(s);a.set(s,l)}return a}every(r,n){let a=0;for(const i of this){if(!Reflect.apply(r,n,[i,a,this]))return!1;a++}return!0}some(r,n){let a=0;for(const i of this){if(Reflect.apply(r,n,[i,a,this]))return!0;a++}return!1}},Je=new WeakMap,Mr(jn,"OrderedDict"),jn);function BS(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const r=xJ(e,t);return r===-1?void 0:e[r]}Mr(BS,"at");function xJ(e,t){const r=e.length,n=gk(t),a=n>=0?n:r+n;return a<0||a>=r?-1:a}Mr(xJ,"toSafeIndex");function gk(e){return e!==e||e===0?0:Math.trunc(e)}Mr(gk,"toSafeInteger");function GOt(e){const t=e+"CollectionProvider",[r,n]=Ym(t),[a,i]=r(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new TM,setItemMap:Mr(()=>{},"setItemMap")}),o=Mr(({state:_,...S})=>_?Z.jsx(l,{...S,state:_}):Z.jsx(s,{...S}),"CollectionProvider");o.displayName=t;const s=Mr(_=>{const S=g();return Z.jsx(l,{..._,state:S})},"CollectionInit");s.displayName=t+"Init";const l=Mr(_=>{const{scope:S,children:b,state:x}=_,w=k.useRef(null),[T,C]=k.useState(null),A=pr(w,C),[M,L]=x;return k.useEffect(()=>{if(!T)return;const E=CJ(()=>{});return E.observe(T,{childList:!0,subtree:!0}),()=>{E.disconnect()}},[T]),Z.jsx(a,{scope:S,itemMap:M,setItemMap:L,collectionRef:A,collectionRefObject:w,collectionElement:T,children:b})},"CollectionProviderImpl");l.displayName=t+"Impl";const u=e+"CollectionSlot",f=wc(u),c=k.forwardRef((_,S)=>{const{scope:b,children:x}=_,w=i(u,b),T=pr(S,w.collectionRef);return Z.jsx(f,{ref:T,children:x})});c.displayName=u;const v=e+"CollectionItemSlot",h="data-radix-collection-item",d=wc(v),p=k.forwardRef((_,S)=>{const{scope:b,children:x,...w}=_,T=k.useRef(null),[C,A]=k.useState(null),M=pr(S,T,A),L=i(v,b),{setItemMap:E}=L,R=k.useRef(w);wJ(R.current,w)||(R.current=w);const I=R.current;return k.useEffect(()=>{const O=I;return E(N=>C?N.has(C)?N.set(C,{...O,element:C}).toSorted(PO):(N.set(C,{...O,element:C}),N.toSorted(PO)):N),()=>{E(N=>!C||!N.has(C)?N:(N.delete(C),new TM(N)))}},[C,I,E]),Z.jsx(d,{[h]:"",ref:M,children:x})});p.displayName=v;function g(){return k.useState(new TM)}Mr(g,"useInitCollection");function y(_){const{itemMap:S}=i(e+"CollectionConsumer",_);return S}return Mr(y,"useCollection"),[{Provider:o,Slot:c,ItemSlot:p},{createCollectionScope:n,useCollection:y,useInitCollection:g}]}Mr(GOt,"createCollection");function wJ(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r)if(!Object.prototype.hasOwnProperty.call(t,a)||e[a]!==t[a])return!1;return!0}Mr(wJ,"shallowEqual");function TJ(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Mr(TJ,"isElementPreceding");function PO(e,t){return!e[1].element||!t[1].element?0:TJ(e[1].element,t[1].element)?-1:1}Mr(PO,"sortByDocumentPosition");function CJ(e){return new MutationObserver(r=>{for(const n of r)if(n.type==="childList"){e();return}})}Mr(CJ,"getChildListObserver");var HOt=Object.defineProperty,UOt=(e,t)=>HOt(e,"name",{value:t,configurable:!0}),FOt=k.createContext(void 0);function AJ(e){const t=k.useContext(FOt);return e||t||"ltr"}UOt(AJ,"useDirection");var YOt=Object.defineProperty,jOt=(e,t)=>YOt(e,"name",{value:t,configurable:!0}),XOt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Hn=XOt.reduce((e,t)=>{const r=wc(`Primitive.${t}`),n=k.forwardRef((a,i)=>{const{asChild:o,...s}=a,l=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Z.jsx(l,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function MJ(e,t){e&&Oc.flushSync(()=>e.dispatchEvent(t))}jOt(MJ,"dispatchDiscreteCustomEvent");var $Ot=Object.defineProperty,WOt=(e,t)=>$Ot(e,"name",{value:t,configurable:!0});function Mo(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e}),k.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}WOt(Mo,"useCallbackRef");var ZOt=Object.defineProperty,Cr=(e,t)=>ZOt(e,"name",{value:t,configurable:!0}),NO="dismissableLayer.update",qOt="dismissableLayer.pointerDownOutside",KOt="dismissableLayer.focusOutside",JF,DJ=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),QOt=k.forwardRef(Cr(function(t,r){const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:a=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...f}=t,c=k.useContext(DJ),[v,h]=k.useState(null),d=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=k.useState({}),g=pr(r,h),y=Array.from(c.layers),[m]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),_=m?y.indexOf(m):-1,S=v?y.indexOf(v):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,x=S>=_,w=k.useRef(!1),T=EJ(L=>{o==null||o(L),l==null||l(L),L.defaultPrevented||u==null||u()},{ownerDocument:d,deferPointerDownOutside:a,isDeferredPointerDownOutsideRef:w,dismissableSurfaces:c.dismissableSurfaces,shouldHandlePointerDownOutside:k.useCallback(L=>{if(!(L instanceof Node))return!1;const E=[...c.branches].some(R=>R.contains(L));return x&&!E},[c.branches,x])}),C=LJ(L=>{if(a&&w.current)return;const E=L.target;[...c.branches].some(I=>I.contains(E))||(s==null||s(L),l==null||l(L),L.defaultPrevented||u==null||u())},d),A=v?S===y.length-1:!1,M=Mo(L=>{L.key==="Escape"&&(i==null||i(L),!L.defaultPrevented&&u&&(L.preventDefault(),u()))});return k.useEffect(()=>{if(A)return d.addEventListener("keydown",M,{capture:!0}),()=>d.removeEventListener("keydown",M,{capture:!0})},[d,A,M]),k.useEffect(()=>{if(v)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(JF=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(v)),c.layers.add(v),kO(),()=>{n&&(c.layersWithOutsidePointerEventsDisabled.delete(v),c.layersWithOutsidePointerEventsDisabled.size===0&&(d.body.style.pointerEvents=JF))}},[v,d,n,c]),k.useEffect(()=>()=>{v&&(c.layers.delete(v),c.layersWithOutsidePointerEventsDisabled.delete(v),kO())},[v,c]),k.useEffect(()=>{const L=Cr(()=>p({}),"handleUpdate");return document.addEventListener(NO,L),()=>document.removeEventListener(NO,L)},[]),Z.jsx(Hn.div,{...f,ref:g,style:{pointerEvents:b?x?"auto":"none":void 0,...t.style},onFocusCapture:Tr(t.onFocusCapture,C.onFocusCapture),onBlurCapture:Tr(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Tr(t.onPointerDownCapture,T.onPointerDownCapture)})},"DismissableLayer"));function JOt(){const e=k.useContext(DJ),[t,r]=k.useState(null);return k.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),r}Cr(JOt,"useDismissableLayerSurface");var tRt=Cr(()=>!0,"IS_TRUE");function EJ(e,t){const{ownerDocument:r=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:n=!1,isDeferredPointerDownOutsideRef:a,dismissableSurfaces:i,shouldHandlePointerDownOutside:o=tRt}=t,s=Mo(e),l=k.useRef(!1),u=k.useRef(!1),f=k.useRef(new Map),c=k.useRef(()=>{});return k.useEffect(()=>{function v(){u.current=!1,a.current=!1,f.current.clear()}Cr(v,"resetOutsideInteraction");function h(){return Array.from(f.current.values()).some(Boolean)}Cr(h,"isOutsideInteractionIntercepted");function d(_){if(!u.current)return;const S=_.target;S instanceof Node&&[...i].some(x=>x.contains(S))||f.current.set(_.type,!0),_.type==="click"&&window.setTimeout(()=>{u.current&&c.current()},0)}Cr(d,"handleInteractionCapture");function p(_){u.current&&f.current.set(_.type,!1)}Cr(p,"handleInteractionBubble");const g=Cr(_=>{if(_.target&&!l.current){let S=function(){r.removeEventListener("click",c.current);const x=h();v(),x||yk(qOt,s,b,{discrete:!0})};if(Cr(S,"handleAndDispatchPointerDownOutsideEvent"),!o(_.target)){r.removeEventListener("click",c.current),v(),l.current=!1;return}const b={originalEvent:_};u.current=!0,a.current=n&&_.button===0,f.current.clear(),!n||_.button!==0?S():(r.removeEventListener("click",c.current),c.current=S,r.addEventListener("click",c.current,{once:!0}))}else r.removeEventListener("click",c.current),v();l.current=!1},"handlePointerDown"),y=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const _ of y)r.addEventListener(_,d,!0),r.addEventListener(_,p);const m=window.setTimeout(()=>{r.addEventListener("pointerdown",g)},0);return()=>{window.clearTimeout(m),r.removeEventListener("pointerdown",g),r.removeEventListener("click",c.current);for(const _ of y)r.removeEventListener(_,d,!0),r.removeEventListener(_,p)}},[r,s,n,a,i,o]),{onPointerDownCapture:Cr(()=>l.current=!0,"onPointerDownCapture")}}Cr(EJ,"usePointerDownOutside");function LJ(e,t=globalThis==null?void 0:globalThis.document){const r=Mo(e),n=k.useRef(!1);return k.useEffect(()=>{const a=Cr(i=>{i.target&&!n.current&&yk(KOt,r,{originalEvent:i},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:Cr(()=>n.current=!0,"onFocusCapture"),onBlurCapture:Cr(()=>n.current=!1,"onBlurCapture")}}Cr(LJ,"useFocusOutside");function kO(){const e=new CustomEvent(NO);document.dispatchEvent(e)}Cr(kO,"dispatchUpdate");function yk(e,t,r,{discrete:n}){const a=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?MJ(a,i):a.dispatchEvent(i)}Cr(yk,"handleAndDispatchCustomEvent");var eRt=Object.defineProperty,mk=(e,t)=>eRt(e,"name",{value:t,configurable:!0}),z_=0,Pi=null;function rRt(e){return _k(),e.children}mk(rRt,"FocusGuards");function _k(){k.useEffect(()=>{Pi||(Pi={start:zO(),end:zO()});const{start:e,end:t}=Pi;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),z_++,()=>{z_===1&&(Pi==null||Pi.start.remove(),Pi==null||Pi.end.remove(),Pi=null),z_=Math.max(0,z_-1)}},[])}mk(_k,"useFocusGuards");function zO(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}mk(zO,"createFocusGuard");var nRt=Object.defineProperty,Sn=(e,t)=>nRt(e,"name",{value:t,configurable:!0}),CM="focusScope.autoFocusOnMount",AM="focusScope.autoFocusOnUnmount",t6={bubbles:!1,cancelable:!0},aRt=k.forwardRef(Sn(function(t,r){const{loop:n=!1,trapped:a=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=t,[l,u]=k.useState(null),f=Mo(i),c=Mo(o),v=k.useRef(null),h=pr(r,u),d=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(a){let g=function(S){if(d.paused||!l)return;const b=S.target;l.contains(b)?v.current=b:Xo(v.current,{select:!0})},y=function(S){if(d.paused||!l)return;const b=S.relatedTarget;b!==null&&(l.contains(b)||Xo(v.current,{select:!0}))},m=function(S){if(document.activeElement===document.body)for(const x of S)x.removedNodes.length>0&&Xo(l)};Sn(g,"handleFocusIn"),Sn(y,"handleFocusOut"),Sn(m,"handleMutations"),document.addEventListener("focusin",g),document.addEventListener("focusout",y);const _=new MutationObserver(m);return l&&_.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",y),_.disconnect()}}},[a,l,d.paused]),k.useEffect(()=>{if(l){e6.add(d);const g=document.activeElement;if(!l.contains(g)){const m=new CustomEvent(CM,t6);l.addEventListener(CM,f),l.dispatchEvent(m),m.defaultPrevented||(OJ(kJ(Sk(l)),{select:!0}),document.activeElement===g&&Xo(l))}return()=>{l.removeEventListener(CM,f),setTimeout(()=>{const m=new CustomEvent(AM,t6);l.addEventListener(AM,c),l.dispatchEvent(m),m.defaultPrevented||Xo(g??document.body,{select:!0}),l.removeEventListener(AM,c),e6.remove(d)},0)}}},[l,f,c,d]);const p=k.useCallback(g=>{if(!n&&!a||d.paused)return;const y=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,m=document.activeElement;if(y&&m){const _=g.currentTarget,[S,b]=RJ(_);S&&b?!g.shiftKey&&m===b?(g.preventDefault(),n&&Xo(S,{select:!0})):g.shiftKey&&m===S&&(g.preventDefault(),n&&Xo(b,{select:!0})):m===_&&g.preventDefault()}},[n,a,d.paused]);return Z.jsx(Hn.div,{tabIndex:-1,...s,ref:h,onKeyDown:p})},"FocusScope"));function OJ(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Xo(n,{select:t}),document.activeElement!==r)return}Sn(OJ,"focusFirst");function RJ(e){const t=Sk(e),r=BO(t,e),n=BO(t.reverse(),e);return[r,n]}Sn(RJ,"getTabbableEdges");function Sk(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Sn(n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;r.nextNode();)t.push(r.currentNode);return t}Sn(Sk,"getTabbableCandidates");function BO(e,t){const r=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const n of e)if(!(r?!n.checkVisibility({checkVisibilityCSS:!0}):IJ(n,{upTo:t})))return n}Sn(BO,"findVisible");function IJ(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}Sn(IJ,"isHidden");function PJ(e){return e instanceof HTMLInputElement&&"select"in e}Sn(PJ,"isSelectableInput");function Xo(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&PJ(e)&&t&&e.select()}}Sn(Xo,"focus");var e6=NJ();function NJ(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=VO(e,t),e.unshift(t)},remove(t){var r;e=VO(e,t),(r=e[0])==null||r.resume()}}}Sn(NJ,"createFocusScopesStack");function VO(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}Sn(VO,"arrayRemove");function kJ(e){return e.filter(t=>t.tagName!=="A")}Sn(kJ,"removeLinks");var xn=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},iRt=Object.defineProperty,oRt=(e,t)=>iRt(e,"name",{value:t,configurable:!0}),sRt=Jy[" useId ".trim().toString()]||(()=>{}),lRt=0;function bk(e){const[t,r]=k.useState(sRt());return xn(()=>{e||r(n=>n??String(lRt++))},[e]),e||(t?`radix-${t}`:"")}oRt(bk,"useId");const uRt=["top","right","bottom","left"],su=Math.min,ds=Math.max,Jb=Math.round,B_=Math.floor,ps=e=>({x:e,y:e}),fRt={left:"right",right:"left",bottom:"top",top:"bottom"};function zJ(e,t,r){return ds(e,su(t,r))}function Ps(e,t){return typeof e=="function"?e(t):e}function lu(e){return e.split("-")[0]}function Jd(e){return e.split("-")[1]}function xk(e){return e==="x"?"y":"x"}function wk(e){return e==="y"?"height":"width"}function to(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Tk(e){return xk(to(e))}function cRt(e,t,r){r===void 0&&(r=!1);const n=Jd(e),a=Tk(e),i=wk(a);let o=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=tx(o)),[o,tx(o)]}function vRt(e){const t=tx(e);return[GO(e),t,GO(t)]}function GO(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const r6=["left","right"],n6=["right","left"],hRt=["top","bottom"],dRt=["bottom","top"];function pRt(e,t,r){switch(e){case"top":case"bottom":return r?t?n6:r6:t?r6:n6;case"left":case"right":return t?hRt:dRt;default:return[]}}function gRt(e,t,r,n){const a=Jd(e);let i=pRt(lu(e),r==="start",n);return a&&(i=i.map(o=>o+"-"+a),t&&(i=i.concat(i.map(GO)))),i}function tx(e){const t=lu(e);return fRt[t]+e.slice(t.length)}function yRt(e){var t,r,n,a;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(n=e.bottom)!=null?n:0,left:(a=e.left)!=null?a:0}}function BJ(e){return typeof e!="number"?yRt(e):{top:e,right:e,bottom:e,left:e}}function ex(e){const{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function a6(e,t,r){let{reference:n,floating:a}=e;const i=to(t),o=Tk(t),s=wk(o),l=lu(t),u=i==="y",f=n.x+n.width/2-a.width/2,c=n.y+n.height/2-a.height/2,v=n[s]/2-a[s]/2;let h;switch(l){case"top":h={x:f,y:n.y-a.height};break;case"bottom":h={x:f,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:c};break;case"left":h={x:n.x-a.width,y:c};break;default:h={x:n.x,y:n.y}}const d=Jd(t);return d&&(h[o]+=v*(d==="end"?1:-1)*(r&&u?-1:1)),h}async function mRt(e,t){var r;t===void 0&&(t={});const{x:n,y:a,platform:i,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:v=!1,padding:h=0}=Ps(t,e),d=BJ(h),g=s[v?c==="floating"?"reference":"floating":c],y=ex(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(g)))==null||r?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:l})),m=c==="floating"?{x:n,y:a,width:o.floating.width,height:o.floating.height}:o.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),S=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},b=ex(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:_,strategy:l}):m);return{top:(y.top-b.top+d.top)/S.y,bottom:(b.bottom-y.bottom+d.bottom)/S.y,left:(y.left-b.left+d.left)/S.x,right:(b.right-y.right+d.right)/S.x}}const _Rt=50,SRt=async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:o}=r,s=o.detectOverflow?o:{...o,detectOverflow:mRt},l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:f,y:c}=a6(u,n,l),v=n,h=0;const d={};for(let p=0;p<i.length;p++){const g=i[p];if(!g)continue;const{name:y,fn:m}=g,{x:_,y:S,data:b,reset:x}=await m({x:f,y:c,initialPlacement:n,placement:v,strategy:a,middlewareData:d,rects:u,platform:s,elements:{reference:e,floating:t}});f=_??f,c=S??c,d[y]={...d[y],...b},x&&h<_Rt&&(h++,typeof x=="object"&&(x.placement&&(v=x.placement),x.rects&&(u=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):x.rects),{x:f,y:c}=a6(u,v,l)),p=-1)}return{x:f,y:c,placement:v,strategy:a,middlewareData:d}},bRt=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:a,rects:i,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:f=0}=Ps(e,t)||{};if(u==null)return{};const c=BJ(f),v={x:r,y:n},h=Tk(a),d=wk(h),p=await o.getDimensions(u),g=h==="y",y=g?"top":"left",m=g?"bottom":"right",_=g?"clientHeight":"clientWidth",S=i.reference[d]+i.reference[h]-v[h]-i.floating[d],b=v[h]-i.reference[h],x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let w=x?x[_]:0;(!w||!await(o.isElement==null?void 0:o.isElement(x)))&&(w=s.floating[_]||i.floating[d]);const T=S/2-b/2,C=w/2-p[d]/2-1,A=su(c[y],C),M=su(c[m],C),L=w-p[d]-M,E=w/2-p[d]/2+T,R=zJ(A,E,L),I=!l.arrow&&Jd(a)!=null&&E!==R&&i.reference[d]/2-(E<A?A:M)-p[d]/2<0,O=I?E<A?E-A:E-L:0;return{[h]:v[h]+O,data:{[h]:R,centerOffset:E-R-O,...I&&{alignmentOffset:O}},reset:I}}}),xRt=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:a,middlewareData:i,rects:o,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:v,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:p=!0,...g}=Ps(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const y=lu(a),m=to(s),_=lu(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=v||(_||!p?[tx(s)]:vRt(s)),x=d!=="none";!v&&x&&b.push(...gRt(s,p,d,S));const w=[s,...b],T=await l.detectOverflow(t,g),C=[];let A=((n=i.flip)==null?void 0:n.overflows)||[];if(f&&C.push(T[y]),c){const R=cRt(a,o,S);C.push(T[R[0]],T[R[1]])}if(A=[...A,{placement:a,overflows:C}],!C.every(R=>R<=0)){var M,L;const R=(((M=i.flip)==null?void 0:M.index)||0)+1,I=w[R];if(I&&(!(c==="alignment"?m!==to(I):!1)||A.every(P=>to(P.placement)===m?P.overflows[0]>0:!0)))return{data:{index:R,overflows:A},reset:{placement:I}};let O=(L=A.filter(N=>N.overflows[0]<=0).sort((N,P)=>N.overflows[1]-P.overflows[1])[0])==null?void 0:L.placement;if(!O)switch(h){case"bestFit":{var E;const N=(E=A.filter(P=>{if(x){const z=to(P.placement);return z===m||z==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(z=>z>0).reduce((z,B)=>z+B,0)]).sort((P,z)=>P[1]-z[1])[0])==null?void 0:E[0];N&&(O=N);break}case"initialPlacement":O=s;break}if(a!==O)return{reset:{placement:O}}}return{}}}};function i6(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function o6(e){return uRt.some(t=>e[t]>=0)}const wRt=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:a="referenceHidden",...i}=Ps(e,t);switch(a){case"referenceHidden":{const o=await n.detectOverflow(t,{...i,elementContext:"reference"}),s=i6(o,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:o6(s)}}}case"escaped":{const o=await n.detectOverflow(t,{...i,altBoundary:!0}),s=i6(o,r.floating);return{data:{escapedOffsets:s,escaped:o6(s)}}}default:return{}}}}},VJ=new Set(["left","top"]);async function TRt(e,t){const{placement:r,platform:n,elements:a}=e,i=await(n.isRTL==null?void 0:n.isRTL(a.floating)),o=lu(r),s=Jd(r),l=to(r)==="y",u=VJ.has(o)?-1:1,f=i&&l?-1:1,c=Ps(t,e);let{mainAxis:v,crossAxis:h,alignmentAxis:d}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof d=="number"&&(h=s==="end"?d*-1:d),l?{x:h*f,y:v*u}:{x:v*u,y:h*f}}const CRt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:a,y:i,placement:o,middlewareData:s}=t,l=await TRt(t,e);return o===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:o}}}}},ARt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a,platform:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:m=>{let{x:_,y:S}=m;return{x:_,y:S}}},...u}=Ps(e,t),f={x:r,y:n},c=await i.detectOverflow(t,u),v=to(a),h=xk(v);let d=f[h],p=f[v];const g=(m,_)=>zJ(_+c[m==="y"?"top":"left"],_,_-c[m==="y"?"bottom":"right"]);o&&(d=g(h,d)),s&&(p=g(v,p));const y=l.fn({...t,[h]:d,[v]:p});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[h]:o,[v]:s}}}}}},MRt=function(e){return e===void 0&&(e={}),{options:e,fn(t){var r,n;const{x:a,y:i,placement:o,rects:s,middlewareData:l}=t,{offset:u=0,mainAxis:f=!0,crossAxis:c=!0}=Ps(e,t),v={x:a,y:i},h=to(o),d=xk(h);let p=v[d],g=v[h];const y=Ps(u,t),m=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:(r=y.mainAxis)!=null?r:0,crossAxis:(n=y.crossAxis)!=null?n:0};if(f){const b=d==="y"?"height":"width",x=s.reference[d]-s.floating[b]+m.mainAxis,w=s.reference[d]+s.reference[b]-m.mainAxis;p<x?p=x:p>w&&(p=w)}if(c){var _,S;const b=d==="y"?"width":"height",x=VJ.has(lu(o)),w=s.reference[h]-s.floating[b]+(x&&((_=l.offset)==null?void 0:_[h])||0)+(x?0:m.crossAxis),T=s.reference[h]+s.reference[b]+(x?0:((S=l.offset)==null?void 0:S[h])||0)-(x?m.crossAxis:0);g<w?g=w:g>T&&(g=T)}return{[d]:p,[h]:g}}}},DRt=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:a,elements:i}=t,{apply:o=()=>{},...s}=Ps(e,t),l=await a.detectOverflow(t,s),u=lu(r),f=Jd(r),c=to(r)==="y",{width:v,height:h}=n.floating;let d,p;u==="top"||u==="bottom"?(d=u,p=f===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(p=u,d=f==="end"?"top":"bottom");const g=h-l.top-l.bottom,y=v-l.left-l.right,m=su(h-l[d],g),_=su(v-l[p],y),S=t.middlewareData.shift,b=!S;let x=m,w=_;S!=null&&S.enabled.x&&(w=y),S!=null&&S.enabled.y&&(x=g),b&&!f&&(c?w=v-2*ds(l.left,l.right):x=h-2*ds(l.top,l.bottom)),await o({...t,availableWidth:w,availableHeight:x});const T=await a.getDimensions(i.floating);return v!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Gw(){return typeof window<"u"}function tp(e){return GJ(e)?(e.nodeName||"").toLowerCase():"#document"}function Bn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fs(e){var t;return(t=(GJ(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function GJ(e){return Gw()?e instanceof Node||e instanceof Bn(e).Node:!1}function Do(e){return Gw()?e instanceof Element||e instanceof Bn(e).Element:!1}function _u(e){return Gw()?e instanceof HTMLElement||e instanceof Bn(e).HTMLElement:!1}function s6(e){return!Gw()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Bn(e).ShadowRoot}function Hw(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=Eo(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&a!=="inline"&&a!=="contents"}function ERt(e){return/^(table|td|th)$/.test(tp(e))}function Uw(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const LRt=/transform|translate|scale|rotate|perspective|filter/,ORt=/paint|layout|strict|content/,Qu=e=>!!e&&e!=="none";let MM;function Ck(e){const t=Do(e)?Eo(e):e;return Qu(t.transform)||Qu(t.translate)||Qu(t.scale)||Qu(t.rotate)||Qu(t.perspective)||!Ak()&&(Qu(t.backdropFilter)||Qu(t.filter))||LRt.test(t.willChange||"")||ORt.test(t.contain||"")}function RRt(e){let t=Tc(e);for(;_u(t)&&!Ky(t);){if(Ck(t))return t;if(Uw(t))return null;t=Tc(t)}return null}function Ak(){return MM==null&&(MM=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),MM}function Ky(e){return/^(html|body|#document)$/.test(tp(e))}function Eo(e){return Bn(e).getComputedStyle(e)}function Fw(e){return Do(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Tc(e){if(tp(e)==="html")return e;const t=e.assignedSlot||e.parentNode||s6(e)&&e.host||Fs(e);return s6(t)?t.host:t}function HJ(e){const t=Tc(e);return Ky(t)?(e.ownerDocument||e).body:_u(t)&&Hw(t)?t:HJ(t)}function Qy(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=HJ(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),o=Bn(a);if(i){const s=HO(o);return t.concat(o,o.visualViewport||[],Hw(a)?a:[],s&&r?Qy(s):[])}else return t.concat(a,Qy(a,[],r))}function HO(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function UJ(e){const t=Eo(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=_u(e),i=a?e.offsetWidth:r,o=a?e.offsetHeight:n,s=Jb(r)!==i||Jb(n)!==o;return s&&(r=i,n=o),{width:r,height:n,$:s}}function Mk(e){return Do(e)?e:e.contextElement}function Oh(e){const t=Mk(e);if(!_u(t))return ps(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:i}=UJ(t);let o=(i?Jb(r.width):r.width)/n,s=(i?Jb(r.height):r.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const IRt=ps(0);function FJ(e){const t=Bn(e);return!Ak()||!t.visualViewport?IRt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function PRt(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===Bn(e)}function Cc(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),i=Mk(e);let o=ps(1);t&&(n?Do(n)&&(o=Oh(n)):o=Oh(e));const s=PRt(i,r,n)?FJ(i):ps(0);let l=(a.left+s.x)/o.x,u=(a.top+s.y)/o.y,f=a.width/o.x,c=a.height/o.y;if(i&&n){const v=Bn(i),h=Do(n)?Bn(n):n;let d=v,p=HO(d);for(;p&&h!==d;){const g=Oh(p),y=p.getBoundingClientRect(),m=Eo(p),_=y.left+(p.clientLeft+parseFloat(m.paddingLeft))*g.x,S=y.top+(p.clientTop+parseFloat(m.paddingTop))*g.y;l*=g.x,u*=g.y,f*=g.x,c*=g.y,l+=_,u+=S,d=Bn(p),p=HO(d)}}return ex({width:f,height:c,x:l,y:u})}function Yw(e,t){const r=Fw(e).scrollLeft;return t?t.left+r:Cc(Fs(e)).left+r}function YJ(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Yw(e,r),a=r.top+t.scrollTop;return{x:n,y:a}}function NRt(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const i=a==="fixed",o=Fs(n),s=t?Uw(t.floating):!1;if(n===o||s&&i)return r;let l={scrollLeft:0,scrollTop:0},u=ps(1);const f=ps(0),c=_u(n);if((c||!i)&&((tp(n)!=="body"||Hw(o))&&(l=Fw(n)),c)){const h=Cc(n);u=Oh(n),f.x=h.x+n.clientLeft,f.y=h.y+n.clientTop}const v=o&&!c&&!i?YJ(o,l):ps(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+f.x+v.x,y:r.y*u.y-l.scrollTop*u.y+f.y+v.y}}function kRt(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function zRt(e){const t=Fw(e),r=e.ownerDocument.body,n=ds(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=ds(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let i=-t.scrollLeft+Yw(e);const o=-t.scrollTop;return Eo(r).direction==="rtl"&&(i+=ds(e.clientWidth,r.clientWidth)-n),{width:n,height:a,x:i,y:o}}const BRt=25;function VRt(e,t,r){r===void 0&&(r="viewport");const n=r==="layoutViewport",a=Bn(e),i=Fs(e),o=a.visualViewport;let s=i.clientWidth,l=i.clientHeight,u=0,f=0;if(o){const v=!Ak()||t==="fixed";n?v||(u=-o.offsetLeft,f=-o.offsetTop):(s=o.width,l=o.height,v&&(u=o.offsetLeft,f=o.offsetTop))}if(Yw(i)<=0){const v=i.ownerDocument,h=v.body,d=getComputedStyle(h),p=v.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,g=Math.abs(i.clientWidth-h.clientWidth-p),y=getComputedStyle(i).scrollbarGutter==="stable both-edges"?g/2:g;y<=BRt&&(s-=y)}return{width:s,height:l,x:u,y:f}}function GRt(e,t){const r=Cc(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=Oh(e),o=e.clientWidth*i.x,s=e.clientHeight*i.y,l=a*i.x,u=n*i.y;return{width:o,height:s,x:l,y:u}}function l6(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=VRt(e,r,t);else if(t==="document")n=zRt(Fs(e));else if(Do(t))n=GRt(t,r);else{const a=FJ(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return ex(n)}function HRt(e,t){const r=t.get(e);if(r)return r;let n=Qy(e,[],!1).filter(s=>Do(s)&&tp(s)!=="body"),a=null;const i=Eo(e).position==="fixed";let o=i?Tc(e):e;for(;Do(o)&&!Ky(o);){const s=Eo(o),l=Ck(o),u=a?a.position:i?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&s.position==="static")?n=n.filter(c=>c!==o):a=s,o=Tc(o)}return t.set(e,n),n}function URt(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const o=[...r==="clippingAncestors"?Uw(t)?[]:HRt(t,this._c):[].concat(r),n],s=l6(t,o[0],a);let l=s.top,u=s.right,f=s.bottom,c=s.left;for(let v=1;v<o.length;v++){const h=l6(t,o[v],a);l=ds(h.top,l),u=su(h.right,u),f=su(h.bottom,f),c=ds(h.left,c)}return{width:u-c,height:f-l,x:c,y:l}}function FRt(e){const{width:t,height:r}=UJ(e);return{width:t,height:r}}function YRt(e,t,r){const n=_u(t),a=Fs(t),i=r==="fixed",o=Cc(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=ps(0);if((n||!i)&&((tp(t)!=="body"||Hw(a))&&(s=Fw(t)),n)){const v=Cc(t,!0,i,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}!n&&a&&(l.x=Yw(a));const u=a&&!n&&!i?YJ(a,s):ps(0),f=o.left+s.scrollLeft-l.x-u.x,c=o.top+s.scrollTop-l.y-u.y;return{x:f,y:c,width:o.width,height:o.height}}function DM(e){return Eo(e).position==="static"}function u6(e,t){if(!_u(e)||Eo(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Fs(e)===r&&(r=r.ownerDocument.body),r}function jJ(e,t){const r=Bn(e);if(Uw(e))return r;if(!_u(e)){let a=Tc(e);for(;a&&!Ky(a);){if(Do(a)&&!DM(a))return a;a=Tc(a)}return r}let n=u6(e,t);for(;n&&ERt(n)&&DM(n);)n=u6(n,t);return n&&Ky(n)&&DM(n)&&!Ck(n)?r:n||RRt(e)||r}const jRt=async function(e){const t=this.getOffsetParent||jJ,r=this.getDimensions,n=await r(e.floating);return{reference:YRt(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function XRt(e){return Eo(e).direction==="rtl"}const $Rt={convertOffsetParentRelativeRectToViewportRelativeRect:NRt,getDocumentElement:Fs,getClippingRect:URt,getOffsetParent:jJ,getElementRects:jRt,getClientRects:kRt,getDimensions:FRt,getScale:Oh,isElement:Do,isRTL:XRt};function XJ(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function WRt(e,t,r){let n=null,a;const i=Fs(e);function o(){var f;clearTimeout(a),(f=n)==null||f.disconnect(),n=null}function s(f,c){f===void 0&&(f=!1),c===void 0&&(c=1),o();const v=e.getBoundingClientRect(),{left:h,top:d,width:p,height:g}=v;if(f||t(),!p||!g)return;const y=B_(d),m=B_(i.clientWidth-(h+p)),_=B_(i.clientHeight-(d+g)),S=B_(h),x={rootMargin:-y+"px "+-m+"px "+-_+"px "+-S+"px",threshold:ds(0,su(1,c))||1};let w=!0;function T(C){const A=C[0].intersectionRatio;if(!XJ(v,e.getBoundingClientRect()))return s();if(A!==c){if(!w)return s();A?s(!1,A):a=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(T,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(T,x)}n.observe(e)}const l=Bn(e),u=()=>s(r);return l.addEventListener("resize",u),s(!0),()=>{l.removeEventListener("resize",u),o()}}function ZRt(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=Mk(e),f=a||i?[...u?Qy(u):[],...t?Qy(t):[]]:[];f.forEach(y=>{a&&y.addEventListener("scroll",r),i&&y.addEventListener("resize",r)});const c=u&&s?WRt(u,r,i):null;let v=-1,h=null;o&&(h=new ResizeObserver(y=>{let[m]=y;m&&m.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var _;(_=h)==null||_.observe(t)})),r()}),u&&!l&&h.observe(u),t&&h.observe(t));let d,p=l?Cc(e):null;l&&g();function g(){const y=Cc(e);p&&!XJ(p,y)&&r(),p=y,d=requestAnimationFrame(g)}return r(),()=>{var y;f.forEach(m=>{a&&m.removeEventListener("scroll",r),i&&m.removeEventListener("resize",r)}),c==null||c(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(d)}}const qRt=CRt,KRt=ARt,QRt=xRt,JRt=DRt,tIt=wRt,f6=bRt,eIt=MRt,rIt=(e,t,r)=>{const n=new Map,a=r??{},i={...$Rt,...a.platform,_c:n};return SRt(e,t,{...a,platform:i})};var nIt=typeof document<"u",aIt=function(){},VS=nIt?k.useLayoutEffect:aIt;function rx(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!rx(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){const i=a[n];if(!(i==="_owner"&&e.$$typeof)&&!rx(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function $J(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function c6(e,t){const r=$J(e);return Math.round(t*r)/r}function EM(e){const t=k.useRef(e);return VS(()=>{t.current=e}),t}function iIt(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:i,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[f,c]=k.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[v,h]=k.useState(n);rx(v,n)||h(n);const[d,p]=k.useState(null),[g,y]=k.useState(null),m=k.useCallback(P=>{P!==x.current&&(x.current=P,p(P))},[]),_=k.useCallback(P=>{P!==w.current&&(w.current=P,y(P))},[]),S=i||d,b=o||g,x=k.useRef(null),w=k.useRef(null),T=k.useRef(f),C=l!=null,A=EM(l),M=EM(a),L=EM(u),E=k.useCallback(()=>{if(!x.current||!w.current)return;const P={placement:t,strategy:r,middleware:v};M.current&&(P.platform=M.current),rIt(x.current,w.current,P).then(z=>{const B={...z,isPositioned:L.current!==!1};R.current&&!rx(T.current,B)&&(T.current=B,Oc.flushSync(()=>{c(B)}))})},[v,t,r,M,L]);VS(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,c(P=>({...P,isPositioned:!1})))},[u]);const R=k.useRef(!1);VS(()=>(R.current=!0,()=>{R.current=!1}),[]),VS(()=>{if(S&&(x.current=S),b&&(w.current=b),S&&b){if(A.current)return A.current(S,b,E);E()}},[S,b,E,A,C]);const I=k.useMemo(()=>({reference:x,floating:w,setReference:m,setFloating:_}),[m,_]),O=k.useMemo(()=>({reference:S,floating:b}),[S,b]),N=k.useMemo(()=>{const P={position:r,left:0,top:0};if(!O.floating)return P;const z=c6(O.floating,f.x),B=c6(O.floating,f.y);return s?{...P,transform:"translate("+z+"px, "+B+"px)",...$J(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:z,top:B}},[r,s,O.floating,f.x,f.y]);return k.useMemo(()=>({...f,update:E,refs:I,elements:O,floatingStyles:N}),[f,E,I,O,N])}const oIt=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:a}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?f6({element:n.current,padding:a}).fn(r):{}:n?f6({element:n,padding:a}).fn(r):{}}}},sIt=(e,t)=>{const r=qRt(e);return{name:r.name,fn:r.fn,options:[e,t]}},lIt=(e,t)=>{const r=KRt(e);return{name:r.name,fn:r.fn,options:[e,t]}},uIt=(e,t)=>({fn:eIt(e).fn,options:[e,t]}),fIt=(e,t)=>{const r=QRt(e);return{name:r.name,fn:r.fn,options:[e,t]}},cIt=(e,t)=>{const r=JRt(e);return{name:r.name,fn:r.fn,options:[e,t]}},vIt=(e,t)=>{const r=tIt(e);return{name:r.name,fn:r.fn,options:[e,t]}},hIt=(e,t)=>{const r=oIt(e);return{name:r.name,fn:r.fn,options:[e,t]}};var dIt=Object.defineProperty,pIt=(e,t)=>dIt(e,"name",{value:t,configurable:!0});function WJ(e){const[t,r]=k.useState(void 0);return xn(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let o,s;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,s=u.blockSize}else o=e.offsetWidth,s=e.offsetHeight;r({width:o,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}pIt(WJ,"useSize");var gIt=Object.defineProperty,Xl=(e,t)=>gIt(e,"name",{value:t,configurable:!0}),ZJ="Popper",[qJ,KJ]=Ym(ZJ),[yIt,QJ]=qJ(ZJ),mIt=Xl(e=>{const{__scopePopper:t,children:r}=e,[n,a]=k.useState(null),[i,o]=k.useState(void 0);return Z.jsx(yIt,{scope:t,anchor:n,onAnchorChange:a,placementState:i,setPlacementState:o,children:r})},"Popper"),_It="PopperAnchor",SIt=k.forwardRef(Xl(function(t,r){const{__scopePopper:n,virtualRef:a,...i}=t,o=QJ(_It,n),s=k.useRef(null),l=o.onAnchorChange,u=k.useCallback(p=>{s.current=p,p&&l(p)},[l]),f=pr(r,u),c=k.useRef(null);k.useEffect(()=>{if(!a)return;const p=c.current;c.current=a.current,p!==c.current&&l(c.current)});const v=o.placementState&&jw(o.placementState),h=v==null?void 0:v[0],d=v==null?void 0:v[1];return a?null:Z.jsx(Hn.div,{"data-radix-popper-side":h,"data-radix-popper-align":d,...i,ref:f})},"PopperAnchor")),JJ="PopperContent",[bIt,DNt]=qJ(JJ),xIt=k.forwardRef(Xl(function(t,r){var q,ht,K,at,bt,Mt,zt;const{__scopePopper:n,side:a="bottom",sideOffset:i=0,align:o="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:f=[],collisionPadding:c=0,sticky:v="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:p,...g}=t,y=QJ(JJ,n),[m,_]=k.useState(null),S=pr(r,_),[b,x]=k.useState(null),w=WJ(b),T=(w==null?void 0:w.width)??0,C=(w==null?void 0:w.height)??0,A=a+(o!=="center"?"-"+o:""),M=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},L=Array.isArray(f)?f:[f],E=L.length>0,R={padding:M,boundary:L.filter(ttt),altBoundary:E},{refs:I,floatingStyles:O,placement:N,isPositioned:P,middlewareData:z}=iIt({strategy:"fixed",placement:A,whileElementsMounted:Xl((...$t)=>ZRt(...$t,{animationFrame:d==="always"}),"whileElementsMounted"),elements:{reference:y.anchor},middleware:[sIt({mainAxis:i+C,alignmentAxis:s}),u&&lIt({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?uIt():void 0,...R}),u&&fIt({...R}),cIt({...R,apply:Xl(({elements:$t,rects:me,availableWidth:lr,availableHeight:Kr})=>{const{width:ko,height:Ys}=me.reference,js=$t.floating.style;js.setProperty("--radix-popper-available-width",`${lr}px`),js.setProperty("--radix-popper-available-height",`${Kr}px`),js.setProperty("--radix-popper-anchor-width",`${ko}px`),js.setProperty("--radix-popper-anchor-height",`${Ys}px`)},"apply")}),b&&hIt({element:b,padding:l}),wIt({arrowWidth:T,arrowHeight:C}),h&&vIt({strategy:"referenceHidden",...R,boundary:E?R.boundary:void 0})]}),B=y.setPlacementState;xn(()=>(B(N),()=>{B(void 0)}),[N,B]);const[H,F]=jw(N),$=Mo(p);xn(()=>{P&&($==null||$())},[P,$]);const j=(q=z.arrow)==null?void 0:q.x,tt=(ht=z.arrow)==null?void 0:ht.y,mt=((K=z.arrow)==null?void 0:K.centerOffset)!==0,[Nt,Q]=k.useState();return xn(()=>{m&&Q(window.getComputedStyle(m).zIndex)},[m]),Z.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...O,transform:P?O.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Nt,"--radix-popper-transform-origin":[(at=z.transformOrigin)==null?void 0:at.x,(bt=z.transformOrigin)==null?void 0:bt.y].join(" "),...((Mt=z.hide)==null?void 0:Mt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:Z.jsx(bIt,{scope:n,placedSide:H,placedAlign:F,onArrowChange:x,arrowX:j,arrowY:tt,shouldHideArrow:mt,children:Z.jsx(Hn.div,{"data-side":H,"data-align":F,...g,ref:S,style:{...g.style,animation:P?(zt=g.style)==null?void 0:zt.animation:"none"}})})})},"PopperContent"));function ttt(e){return e!==null}Xl(ttt,"isNotNull");var wIt=Xl(e=>({name:"transformOrigin",options:e,fn(t){var g,y,m;const{placement:r,rects:n,middlewareData:a}=t,o=((g=a.arrow)==null?void 0:g.centerOffset)!==0,s=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[u,f]=jw(r),c={start:"0%",center:"50%",end:"100%"}[f],v=(((y=a.arrow)==null?void 0:y.x)??0)+s/2,h=(((m=a.arrow)==null?void 0:m.y)??0)+l/2;let d="",p="";return u==="bottom"?(d=o?c:`${v}px`,p=`${-l}px`):u==="top"?(d=o?c:`${v}px`,p=`${n.floating.height+l}px`):u==="right"?(d=`${-l}px`,p=o?c:`${h}px`):u==="left"&&(d=`${n.floating.width+l}px`,p=o?c:`${h}px`),{data:{x:d,y:p}}}}),"transformOrigin");function jw(e){const[t,r="center"]=e.split("-");return[t,r]}Xl(jw,"getSideAndAlignFromPlacement");var TIt=mIt,CIt=SIt,AIt=xIt,MIt=Object.defineProperty,DIt=(e,t)=>MIt(e,"name",{value:t,configurable:!0}),EIt=k.forwardRef(DIt(function(t,r){var l;const{container:n,...a}=t,[i,o]=k.useState(!1);xn(()=>o(!0),[]);const s=n||i&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?Oc.createPortal(Z.jsx(Hn.div,{...a,ref:r}),s):null},"Portal")),LIt=Object.defineProperty,Ns=(e,t)=>LIt(e,"name",{value:t,configurable:!0});function ett(e,t){return k.useReducer((r,n)=>t[r][n]??r,e)}Ns(ett,"useStateMachine");var OIt=Ns(e=>{const{present:t,children:r}=e,n=rtt(t),a=typeof r=="function"?r({present:n.isPresent}):k.Children.only(r),i=ntt(n.ref,att(a));return typeof r=="function"||n.isPresent?k.cloneElement(a,{ref:i}):null},"Presence");function rtt(e){const[t,r]=k.useState(),n=k.useRef(null),a=k.useRef(e),i=k.useRef("none"),o=k.useRef(void 0),s=e?"mounted":"unmounted",[l,u]=ett(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{l==="mounted"?(i.current=o.current??Gv(n.current),o.current=void 0):i.current="none"},[l]),xn(()=>{const f=n.current,c=a.current;if(c!==e){const h=i.current,d=Gv(f);e?(o.current=d,u("MOUNT")):d==="none"||(f==null?void 0:f.display)==="none"?u("UNMOUNT"):u(c&&h!==d?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,u]),xn(()=>{if(t){let f;const c=t.ownerDocument.defaultView??window,v=Ns(d=>{const g=Gv(n.current).includes(CSS.escape(d.animationName));if(d.target===t&&g&&(u("ANIMATION_END"),!a.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",f=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},"handleAnimationEnd"),h=Ns(d=>{d.target===t&&(i.current=Gv(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{c.clearTimeout(f),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:k.useCallback(f=>{if(f){const c=getComputedStyle(f);n.current=c,o.current=Gv(c)}else n.current=null;r(f)},[])}}Ns(rtt,"usePresence");function UO(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Ns(UO,"setRef");function ntt(...e){const t=k.useRef(e);return t.current=e,k.useCallback(r=>{const n=t.current;let a=!1;const i=n.map(o=>{const s=UO(o,r);return!a&&typeof s=="function"&&(a=!0),s});if(a)return()=>{for(let o=0;o<i.length;o++){const s=i[o];typeof s=="function"?s():UO(n[o],null)}}},[])}Ns(ntt,"useStableComposedRefs");function Gv(e){return(e==null?void 0:e.animationName)||"none"}Ns(Gv,"getAnimationName");function att(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}Ns(att,"getElementRef");var RIt=Object.defineProperty,IIt=(e,t)=>RIt(e,"name",{value:t,configurable:!0}),v6=Jy[" useEffectEvent ".trim().toString()],h6=Jy[" useInsertionEffect ".trim().toString()];function itt(e){if(typeof v6=="function")return v6(e);const t=k.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof h6=="function"?h6(()=>{t.current=e}):xn(()=>{t.current=e}),k.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}IIt(itt,"useEffectEvent");var PIt=Object.defineProperty,jm=(e,t)=>PIt(e,"name",{value:t,configurable:!0}),NIt=Jy[" useInsertionEffect ".trim().toString()]||xn;function FO({prop:e,defaultProp:t,onChange:r=jm(()=>{},"onChange"),caller:n}){const[a,i,o]=ott({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:a,u=k.useCallback(f=>{var c;if(s){const v=stt(f)?f(e):f;v!==e&&((c=o.current)==null||c.call(o,v))}else i(f)},[s,e,i,o]);return[l,u]}jm(FO,"useControllableState");function ott({defaultProp:e,onChange:t}){const[r,n]=k.useState(e),a=k.useRef(r),i=k.useRef(t);return NIt(()=>{i.current=t},[t]),k.useEffect(()=>{var o;a.current!==r&&((o=i.current)==null||o.call(i,r),a.current=r)},[r,a]),[r,n,i]}jm(ott,"useUncontrolledState");function stt(e){return typeof e=="function"}jm(stt,"isFunction");var d6=Symbol("RADIX:SYNC_STATE");function kIt(e,t,r,n){const{prop:a,defaultProp:i,onChange:o,caller:s}=t,l=a!==void 0,u=itt(o),f=[{...r,state:i}];n&&f.push(n);const[c,v]=k.useReducer((g,y)=>{if(y.type===d6)return{...g,state:y.state};const m=e(g,y);return l&&!Object.is(m.state,g.state)&&u(m.state),m},...f),h=c.state,d=k.useRef(h);k.useEffect(()=>{d.current!==h&&(d.current=h,l||u(h))},[h,d,l]);const p=k.useMemo(()=>a!==void 0?{...c,state:a}:c,[c,a]);return k.useEffect(()=>{l&&!Object.is(a,c.state)&&v({type:d6,state:a})},[a,c.state,l]),[p,v]}jm(kIt,"useControllableStateReducer");var zIt=Object.defineProperty,BIt=(e,t)=>zIt(e,"name",{value:t,configurable:!0});function ltt(e){const t=k.useRef({value:e,previous:e});return k.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}BIt(ltt,"usePrevious");var VIt=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),GIt=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ev=new WeakMap,V_=new WeakMap,G_={},LM=0,utt=function(e){return e&&(e.host||utt(e.parentNode))},HIt=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=utt(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},UIt=function(e,t,r,n){var a=HIt(t,Array.isArray(e)?e:[e]);G_[r]||(G_[r]=new WeakMap);var i=G_[r],o=[],s=new Set,l=new Set(a),u=function(c){!c||s.has(c)||(s.add(c),u(c.parentNode))};a.forEach(u);var f=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(v){if(s.has(v))f(v);else try{var h=v.getAttribute(n),d=h!==null&&h!=="false",p=(Ev.get(v)||0)+1,g=(i.get(v)||0)+1;Ev.set(v,p),i.set(v,g),o.push(v),p===1&&d&&V_.set(v,!0),g===1&&v.setAttribute(r,"true"),d||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return f(t),s.clear(),LM++,function(){o.forEach(function(c){var v=Ev.get(c)-1,h=i.get(c)-1;Ev.set(c,v),i.set(c,h),v||(V_.has(c)||c.removeAttribute(n),V_.delete(c)),h||c.removeAttribute(r)}),LM--,LM||(Ev=new WeakMap,Ev=new WeakMap,V_=new WeakMap,G_={})}},FIt=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=GIt(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live], script"))),UIt(n,a,r,"aria-hidden")):function(){return null}},GS="right-scroll-bar-position",HS="width-before-scroll-bar",YIt="with-scroll-bars-hidden",jIt="--removed-body-scroll-bar-size";function OM(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function XIt(e,t){var r=k.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}var $It=typeof window<"u"?k.useLayoutEffect:k.useEffect,p6=new WeakMap;function WIt(e,t){var r=XIt(null,function(n){return e.forEach(function(a){return OM(a,n)})});return $It(function(){var n=p6.get(r);if(n){var a=new Set(n),i=new Set(e),o=r.current;a.forEach(function(s){i.has(s)||OM(s,null)}),i.forEach(function(s){a.has(s)||OM(s,o)})}p6.set(r,e)},[e]),r}function ZIt(e){return e}function qIt(e,t){t===void 0&&(t=ZIt);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var o=t(i,n);return r.push(o),function(){r=r.filter(function(s){return s!==o})}},assignSyncMedium:function(i){for(n=!0;r.length;){var o=r;r=[],o.forEach(i)}r={push:function(s){return i(s)},filter:function(){return r}}},assignMedium:function(i){n=!0;var o=[];if(r.length){var s=r;r=[],s.forEach(i),o=r}var l=function(){var f=o;o=[],f.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),r={push:function(f){o.push(f),u()},filter:function(f){return o=o.filter(f),r}}}};return a}function KIt(e){e===void 0&&(e={});var t=qIt(null);return t.options=Qn({async:!0,ssr:!1},e),t}var ftt=function(e){var t=e.sideCar,r=cI(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return k.createElement(n,Qn({},r))};ftt.isSideCarExport=!0;function QIt(e,t){return e.useMedium(t),ftt}var ctt=KIt(),RM=function(){},Xw=k.forwardRef(function(e,t){var r=k.useRef(null),n=k.useState({onScrollCapture:RM,onWheelCapture:RM,onTouchMoveCapture:RM}),a=n[0],i=n[1],o=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,c=e.shards,v=e.sideCar,h=e.noRelative,d=e.noIsolation,p=e.inert,g=e.allowPinchZoom,y=e.as,m=y===void 0?"div":y,_=e.gapMode,S=cI(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=v,x=WIt([r,t]),w=Qn(Qn({},S),a);return k.createElement(k.Fragment,null,f&&k.createElement(b,{sideCar:ctt,removeScrollBar:u,shards:c,noRelative:h,noIsolation:d,inert:p,setCallbacks:i,allowPinchZoom:!!g,lockRef:r,gapMode:_}),o?k.cloneElement(k.Children.only(s),Qn(Qn({},w),{ref:x})):k.createElement(m,Qn({},w,{className:l,ref:x}),s))});Xw.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Xw.classNames={fullWidth:HS,zeroRight:GS};var JIt=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function tPt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=JIt();return t&&e.setAttribute("nonce",t),e}function ePt(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function rPt(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var nPt=function(){var e=0,t=null;return{add:function(r){e==0&&(t=tPt())&&(ePt(t,r),rPt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},aPt=function(){var e=nPt();return function(t,r){k.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},vtt=function(){var e=aPt(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},iPt={left:0,top:0,right:0,gap:0},IM=function(e){return parseInt(e||"",10)||0},oPt=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[IM(r),IM(n),IM(a)]},sPt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return iPt;var t=oPt(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},lPt=vtt(),Rh="data-scroll-locked",uPt=function(e,t,r,n){var a=e.left,i=e.top,o=e.right,s=e.gap;return r===void 0&&(r="margin"),`
193
+ .`.concat(YIt,` {
194
+ overflow: hidden `).concat(n,`;
195
+ padding-right: `).concat(s,"px ").concat(n,`;
196
+ }
197
+ body[`).concat(Rh,`] {
198
+ overflow: hidden `).concat(n,`;
199
+ overscroll-behavior: contain;
200
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
201
+ padding-left: `.concat(a,`px;
202
+ padding-top: `).concat(i,`px;
203
+ padding-right: `).concat(o,`px;
204
+ margin-left:0;
205
+ margin-top:0;
206
+ margin-right: `).concat(s,"px ").concat(n,`;
207
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
208
+ }
209
+
210
+ .`).concat(GS,` {
211
+ right: `).concat(s,"px ").concat(n,`;
212
+ }
213
+
214
+ .`).concat(HS,` {
215
+ margin-right: `).concat(s,"px ").concat(n,`;
216
+ }
217
+
218
+ .`).concat(GS," .").concat(GS,` {
219
+ right: 0 `).concat(n,`;
220
+ }
221
+
222
+ .`).concat(HS," .").concat(HS,` {
223
+ margin-right: 0 `).concat(n,`;
224
+ }
225
+
226
+ body[`).concat(Rh,`] {
227
+ `).concat(jIt,": ").concat(s,`px;
228
+ }
229
+ `)},g6=function(){var e=parseInt(document.body.getAttribute(Rh)||"0",10);return isFinite(e)?e:0},fPt=function(){k.useEffect(function(){return document.body.setAttribute(Rh,(g6()+1).toString()),function(){var e=g6()-1;e<=0?document.body.removeAttribute(Rh):document.body.setAttribute(Rh,e.toString())}},[])},cPt=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n;fPt();var i=k.useMemo(function(){return sPt(a)},[a]);return k.createElement(lPt,{styles:uPt(i,!t,a,r?"":"!important")})},YO=!1;if(typeof window<"u")try{var H_=Object.defineProperty({},"passive",{get:function(){return YO=!0,!0}});window.addEventListener("test",H_,H_),window.removeEventListener("test",H_,H_)}catch{YO=!1}var Lv=YO?{passive:!1}:!1,vPt=function(e){return e.tagName==="TEXTAREA"},htt=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!vPt(e)&&r[t]==="visible")},hPt=function(e){return htt(e,"overflowY")},dPt=function(e){return htt(e,"overflowX")},y6=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var a=dtt(e,n);if(a){var i=ptt(e,n),o=i[1],s=i[2];if(o>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},pPt=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},gPt=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},dtt=function(e,t){return e==="v"?hPt(t):dPt(t)},ptt=function(e,t){return e==="v"?pPt(t):gPt(t)},yPt=function(e,t){return e==="h"&&t==="rtl"?-1:1},mPt=function(e,t,r,n,a){var i=yPt(e,window.getComputedStyle(t).direction),o=i*n,s=r.target,l=t.contains(s),u=!1,f=o>0,c=0,v=0;do{if(!s)break;var h=ptt(e,s),d=h[0],p=h[1],g=h[2],y=p-g-i*d;(d||y)&&dtt(e,s)&&(c+=y,v+=d);var m=s.parentNode;s=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(f&&Math.abs(c)<1||!f&&Math.abs(v)<1)&&(u=!0),u},U_=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},m6=function(e){return[e.deltaX,e.deltaY]},_6=function(e){return e&&"current"in e?e.current:e},_Pt=function(e,t){return e[0]===t[0]&&e[1]===t[1]},SPt=function(e){return`
230
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
231
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
232
+ `)},bPt=0,Ov=[];function xPt(e){var t=k.useRef([]),r=k.useRef([0,0]),n=k.useRef(),a=k.useState(bPt++)[0],i=k.useState(vtt)[0],o=k.useRef(e);k.useEffect(function(){o.current=e},[e]),k.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var p=ylt([e.lockRef.current],(e.shards||[]).map(_6),!0).filter(Boolean);return p.forEach(function(g){return g.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),p.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=k.useCallback(function(p,g){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var y=U_(p),m=r.current,_="deltaX"in p?p.deltaX:m[0]-y[0],S="deltaY"in p?p.deltaY:m[1]-y[1],b,x=p.target,w=Math.abs(_)>Math.abs(S)?"h":"v";if("touches"in p&&w==="h"&&x.type==="range")return!1;var T=window.getSelection(),C=T&&T.anchorNode,A=C?C===x||C.contains(x):!1;if(A)return!1;var M=y6(w,x);if(!M)return!0;if(M?b=w:(b=w==="v"?"h":"v",M=y6(w,x)),!M)return!1;if(!n.current&&"changedTouches"in p&&(_||S)&&(n.current=b),!b)return!0;var L=n.current||b;return mPt(L,g,p,L==="h"?_:S)},[]),l=k.useCallback(function(p){var g=p;if(!(!Ov.length||Ov[Ov.length-1]!==i)){var y="deltaY"in g?m6(g):U_(g),m=t.current.filter(function(b){return b.name===g.type&&(b.target===g.target||g.target===b.shadowParent)&&_Pt(b.delta,y)})[0];if(m&&m.should){g.cancelable&&g.preventDefault();return}if(!m){var _=(o.current.shards||[]).map(_6).filter(Boolean).filter(function(b){return b.contains(g.target)}),S=_.length>0?s(g,_[0]):!o.current.noIsolation;S&&g.cancelable&&g.preventDefault()}}},[]),u=k.useCallback(function(p,g,y,m){var _={name:p,delta:g,target:y,should:m,shadowParent:wPt(y)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(S){return S!==_})},1)},[]),f=k.useCallback(function(p){r.current=U_(p),n.current=void 0},[]),c=k.useCallback(function(p){u(p.type,m6(p),p.target,s(p,e.lockRef.current))},[]),v=k.useCallback(function(p){u(p.type,U_(p),p.target,s(p,e.lockRef.current))},[]);k.useEffect(function(){return Ov.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:v}),document.addEventListener("wheel",l,Lv),document.addEventListener("touchmove",l,Lv),document.addEventListener("touchstart",f,Lv),function(){Ov=Ov.filter(function(p){return p!==i}),document.removeEventListener("wheel",l,Lv),document.removeEventListener("touchmove",l,Lv),document.removeEventListener("touchstart",f,Lv)}},[]);var h=e.removeScrollBar,d=e.inert;return k.createElement(k.Fragment,null,d?k.createElement(i,{styles:SPt(a)}):null,h?k.createElement(cPt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function wPt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const TPt=QIt(ctt,xPt);var gtt=k.forwardRef(function(e,t){return k.createElement(Xw,Qn({},e,{ref:t,sideCar:TPt}))});gtt.classNames=Xw.classNames;var CPt=Object.defineProperty,Se=(e,t)=>CPt(e,"name",{value:t,configurable:!0}),APt=[" ","Enter","ArrowUp","ArrowDown"],MPt=[" ","Enter"],gd="Select",[$w,Dk,DPt]=bJ(gd),[tv,ENt]=Ym(gd,[DPt,KJ]),Ek=KJ(),[EPt,Su]=tv(gd),[LPt,OPt]=tv(gd);function ytt(e){const{__scopeSelect:t,children:r,open:n,defaultOpen:a,onOpenChange:i,value:o,defaultValue:s,onValueChange:l,dir:u,name:f,autoComplete:c,disabled:v,required:h,form:d,internal_do_not_use_render:p}=e,g=Ek(t),[y,m]=k.useState(null),[_,S]=k.useState(null),[b,x]=k.useState(!1),w=AJ(u),[T,C]=FO({prop:n,defaultProp:a??!1,onChange:i,caller:gd}),[A,M]=FO({prop:o,defaultProp:s,onChange:l,caller:gd}),L=k.useRef(null),E=k.useRef(A);k.useEffect(()=>{const F=d?y==null?void 0:y.ownerDocument.getElementById(d):y==null?void 0:y.form;if(F instanceof HTMLFormElement){const $=Se(()=>M(E.current),"reset");return F.addEventListener("reset",$),()=>F.removeEventListener("reset",$)}},[d,y,M]);const R=y?!!d||!!y.closest("form"):!0,[I,O]=k.useState(new Set),N=bk(),P=Array.from(I).map(F=>F.props.value).join(";"),z=k.useCallback(F=>{O($=>new Set($).add(F))},[]),B=k.useCallback(F=>{O($=>{const j=new Set($);return j.delete(F),j})},[]),H={required:h,trigger:y,onTriggerChange:m,valueNode:_,onValueNodeChange:S,valueNodeHasChildren:b,onValueNodeHasChildrenChange:x,contentId:N,value:A,onValueChange:M,open:T,onOpenChange:C,dir:w,triggerPointerDownPosRef:L,disabled:v,name:f,autoComplete:c,form:d,nativeOptions:I,nativeSelectKey:P,isFormControl:R};return Z.jsx(TIt,{...g,children:Z.jsx(EPt,{scope:t,...H,children:Z.jsx($w.Provider,{scope:t,children:Z.jsx(LPt,{scope:t,onNativeOptionAdd:z,onNativeOptionRemove:B,children:Stt(p)?p(H):r})})})})}Se(ytt,"SelectProvider");var RPt=Se(e=>{const{__scopeSelect:t,children:r,...n}=e;return Z.jsx(ytt,{__scopeSelect:t,...n,internal_do_not_use_render:({isFormControl:a})=>Z.jsxs(Z.Fragment,{children:[r,a?Z.jsx(nNt,{__scopeSelect:t}):null]})})},"Select"),IPt="SelectTrigger",PPt=k.forwardRef(Se(function(t,r){const{__scopeSelect:n,disabled:a=!1,...i}=t,o=Ek(n),s=Su(IPt,n),l=s.disabled||a,u=pr(r,s.onTriggerChange),f=Dk(n),c=k.useRef("touch"),[v,h,d]=Lk(g=>{const y=f().filter(S=>!S.disabled),m=y.find(S=>S.value===s.value),_=Ok(y,g,m);_!==void 0&&s.onValueChange(_.value)}),p=Se(g=>{l||(s.onOpenChange(!0),d()),g&&(s.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})},"handleOpen");return Z.jsx(CIt,{asChild:!0,...o,children:Z.jsx(Hn.button,{type:"button",role:"combobox","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Xm(s.value)?"":void 0,...i,ref:u,onClick:Tr(i.onClick,g=>{g.currentTarget.focus(),c.current!=="mouse"&&p(g)}),onPointerDown:Tr(i.onPointerDown,g=>{c.current=g.pointerType;const y=g.target;y.hasPointerCapture(g.pointerId)&&y.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(p(g),g.preventDefault())}),onKeyDown:Tr(i.onKeyDown,g=>{const y=v.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&h(g.key),!(y&&g.key===" ")&&APt.includes(g.key)&&(p(),g.preventDefault())})})})},"SelectTrigger")),NPt="SelectValue",kPt=k.forwardRef(Se(function(t,r){const{__scopeSelect:n,className:a,style:i,children:o,placeholder:s="",...l}=t,u=Su(NPt,n),{onValueNodeHasChildrenChange:f}=u,c=o!==void 0,v=pr(r,u.onValueNodeChange);xn(()=>{f(c)},[f,c]);const h=Xm(u.value);return Z.jsx(Hn.span,{...l,asChild:h?!1:l.asChild,ref:v,style:{pointerEvents:"none"},children:Z.jsx(k.Fragment,{children:h?s:o},h?"placeholder":"value")})},"SelectValue")),zPt=k.forwardRef(Se(function(t,r){const{__scopeSelect:n,children:a,...i}=t;return Z.jsx(Hn.span,{"aria-hidden":!0,...i,ref:r,children:a||"▼"})},"SelectIcon")),BPt="SelectPortal",[VPt,GPt]=tv(BPt,{forceMount:void 0}),HPt=Se(e=>{const{__scopeSelect:t,forceMount:r,...n}=e;return Z.jsx(VPt,{scope:e.__scopeSelect,forceMount:r,children:Z.jsx(EIt,{asChild:!0,...n})})},"SelectPortal"),Ac="SelectContent",UPt=k.forwardRef(Se(function(t,r){const n=GPt(Ac,t.__scopeSelect),{forceMount:a=n.forceMount,...i}=t,o=Su(Ac,t.__scopeSelect),[s,l]=k.useState();return xn(()=>{l(new DocumentFragment)},[]),Z.jsx(OIt,{present:a||o.open,children:({present:u})=>u?Z.jsx(jPt,{...i,ref:r}):Z.jsx(FPt,{...i,fragment:s})})},"SelectContent")),FPt=k.forwardRef(Se(function(t,r){const{__scopeSelect:n,children:a,fragment:i}=t;return i?Oc.createPortal(Z.jsx(mtt,{scope:n,children:Z.jsx($w.Slot,{scope:n,children:Z.jsx("div",{ref:r,children:a})})}),i):null},"SelectContentFragment")),ni=10,[mtt,Ww]=tv(Ac),YPt=wc("SelectContent.RemoveScroll"),jPt=k.forwardRef(Se(function(t,r){const{__scopeSelect:n}=t,{position:a="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:s,side:l,sideOffset:u,align:f,alignOffset:c,arrowPadding:v,collisionBoundary:h,collisionPadding:d,sticky:p,hideWhenDetached:g,avoidCollisions:y,...m}=t,_=Su(Ac,n),[S,b]=k.useState(null),[x,w]=k.useState(null),T=pr(r,b),[C,A]=k.useState(null),[M,L]=k.useState(null),E=Dk(n),[R,I]=k.useState(!1),O=k.useRef(!1);k.useEffect(()=>{if(S)return FIt(S)},[S]),_k();const N=k.useCallback(Q=>{const[q,...ht]=E().map(bt=>bt.ref.current),[K]=ht.slice(-1),at=document.activeElement;for(const bt of Q)if(bt===at||(bt==null||bt.scrollIntoView({block:"nearest"}),bt===q&&x&&(x.scrollTop=0),bt===K&&x&&(x.scrollTop=x.scrollHeight),bt==null||bt.focus(),document.activeElement!==at))return},[E,x]),P=k.useCallback(()=>N([C,S]),[N,C,S]);k.useEffect(()=>{R&&P()},[R,P]);const{onOpenChange:z,triggerPointerDownPosRef:B}=_;k.useEffect(()=>{if(S){let Q={x:0,y:0};const q=Se(K=>{var at,bt;Q={x:Math.abs(Math.round(K.pageX)-(((at=B.current)==null?void 0:at.x)??0)),y:Math.abs(Math.round(K.pageY)-(((bt=B.current)==null?void 0:bt.y)??0))}},"handlePointerMove"),ht=Se(K=>{Q.x<=10&&Q.y<=10?K.preventDefault():K.composedPath().includes(S)||z(!1),document.removeEventListener("pointermove",q),B.current=null},"handlePointerUp");return B.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",ht,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",ht,{capture:!0})}}},[S,z,B]),k.useEffect(()=>{const Q=Se(()=>z(!1),"close");return window.addEventListener("blur",Q),window.addEventListener("resize",Q),()=>{window.removeEventListener("blur",Q),window.removeEventListener("resize",Q)}},[z]);const[H,F]=Lk(Q=>{const q=E().filter(at=>!at.disabled),ht=q.find(at=>at.ref.current===document.activeElement),K=Ok(q,Q,ht);K&&setTimeout(()=>{var at;return(at=K.ref.current)==null?void 0:at.focus()})}),$=k.useCallback((Q,q,ht)=>{const K=!O.current&&!ht;(_.value!==void 0&&_.value===q||K)&&(A(Q),K&&(O.current=!0))},[_.value]),j=k.useCallback(()=>S==null?void 0:S.focus(),[S]),tt=k.useCallback((Q,q,ht)=>{const K=!O.current&&!ht;(_.value!==void 0&&_.value===q||K)&&L(Q)},[_.value]),mt=a==="popper"?S6:XPt,Nt=mt===S6?{side:l,sideOffset:u,align:f,alignOffset:c,arrowPadding:v,collisionBoundary:h,collisionPadding:d,sticky:p,hideWhenDetached:g,avoidCollisions:y}:{};return Z.jsx(mtt,{scope:n,content:S,viewport:x,onViewportChange:w,itemRefCallback:$,selectedItem:C,onItemLeave:j,itemTextRefCallback:tt,focusSelectedItem:P,selectedItemText:M,position:a,isPositioned:R,searchRef:H,children:Z.jsx(gtt,{as:YPt,allowPinchZoom:!0,children:Z.jsx(aRt,{asChild:!0,trapped:_.open,onMountAutoFocus:Q=>{Q.preventDefault()},onUnmountAutoFocus:Tr(i,Q=>{var q;(q=_.trigger)==null||q.focus({preventScroll:!0}),Q.preventDefault()}),children:Z.jsx(QOt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:Q=>Q.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:Z.jsx(mt,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:Q=>Q.preventDefault(),...m,...Nt,onPlaced:()=>I(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...m.style},onKeyDown:Tr(m.onKeyDown,Q=>{const q=Q.ctrlKey||Q.altKey||Q.metaKey;if(Q.key==="Tab"&&Q.preventDefault(),!q&&Q.key.length===1&&F(Q.key),["ArrowUp","ArrowDown","Home","End"].includes(Q.key)){let K=E().filter(at=>!at.disabled).map(at=>at.ref.current);if(["ArrowUp","End"].includes(Q.key)&&(K=K.slice().reverse()),["ArrowUp","ArrowDown"].includes(Q.key)){const at=Q.target,bt=K.indexOf(at);K=K.slice(bt+1)}setTimeout(()=>N(K)),Q.preventDefault()}})})})})})})},"SelectContentImpl")),XPt=k.forwardRef(Se(function(t,r){const{__scopeSelect:n,onPlaced:a,...i}=t,o=Su(Ac,n),s=Ww(Ac,n),[l,u]=k.useState(null),[f,c]=k.useState(null),v=pr(r,c),h=Dk(n),d=k.useRef(!1),p=k.useRef(!0),{viewport:g,selectedItem:y,selectedItemText:m,focusSelectedItem:_}=s,S=k.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&f&&g&&y&&m){const T=o.trigger.getBoundingClientRect(),C=f.getBoundingClientRect(),A=o.valueNode.getBoundingClientRect(),M=m.getBoundingClientRect();if(o.dir!=="rtl"){const at=M.left-C.left,bt=A.left-at,Mt=T.left-bt,zt=T.width+Mt,$t=Math.max(zt,C.width),me=window.innerWidth-ni,lr=LO(bt,[ni,Math.max(ni,me-$t)]);l.style.minWidth=zt+"px",l.style.left=lr+"px"}else{const at=C.right-M.right,bt=window.innerWidth-A.right-at,Mt=window.innerWidth-T.right-bt,zt=T.width+Mt,$t=Math.max(zt,C.width),me=window.innerWidth-ni,lr=LO(bt,[ni,Math.max(ni,me-$t)]);l.style.minWidth=zt+"px",l.style.right=lr+"px"}const L=h(),E=window.innerHeight-ni*2,R=g.scrollHeight,I=window.getComputedStyle(f),O=parseInt(I.borderTopWidth,10),N=parseInt(I.paddingTop,10),P=parseInt(I.borderBottomWidth,10),z=parseInt(I.paddingBottom,10),B=O+N+R+z+P,H=Math.min(y.offsetHeight*5,B),F=window.getComputedStyle(g),$=parseInt(F.paddingTop,10),j=parseInt(F.paddingBottom,10),tt=T.top+T.height/2-ni,mt=E-tt,Nt=y.offsetHeight/2,Q=y.offsetTop+Nt,q=O+N+Q,ht=B-q;if(q<=tt){const at=L.length>0&&y===L[L.length-1].ref.current;l.style.bottom="0px";const bt=f.clientHeight-g.offsetTop-g.offsetHeight,Mt=Math.max(mt,Nt+(at?j:0)+bt+P),zt=q+Mt;l.style.height=zt+"px"}else{const at=L.length>0&&y===L[0].ref.current;l.style.top="0px";const Mt=Math.max(tt,O+g.offsetTop+(at?$:0)+Nt)+ht;l.style.height=Mt+"px",g.scrollTop=q-tt+g.offsetTop}l.style.margin=`${ni}px 0`,l.style.minHeight=H+"px",l.style.maxHeight=E+"px",a==null||a(),requestAnimationFrame(()=>d.current=!0)}},[h,o.trigger,o.valueNode,l,f,g,y,m,o.dir,a]);xn(()=>S(),[S]);const[b,x]=k.useState();xn(()=>{f&&x(window.getComputedStyle(f).zIndex)},[f]);const w=k.useCallback(T=>{T&&p.current===!0&&(S(),_==null||_(),p.current=!1)},[S,_]);return Z.jsx($Pt,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:d,onScrollButtonChange:w,children:Z.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b},children:Z.jsx(Hn.div,{...i,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})},"SelectItemAlignedPosition")),S6=k.forwardRef(Se(function(t,r){const{__scopeSelect:n,align:a="start",collisionPadding:i=ni,...o}=t,s=Ek(n);return Z.jsx(AIt,{...s,...o,ref:r,align:a,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[$Pt,WPt]=tv(Ac,{}),b6="SelectViewport",ZPt=k.forwardRef(Se(function(t,r){const{__scopeSelect:n,nonce:a,...i}=t,o=Ww(b6,n),s=WPt(b6,n),l=pr(r,o.onViewportChange),u=k.useRef(0);return Z.jsxs(Z.Fragment,{children:[Z.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),Z.jsx($w.Slot,{scope:n,children:Z.jsx(Hn.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:Tr(i.onScroll,f=>{const c=f.currentTarget,{contentWrapper:v,shouldExpandOnScrollRef:h}=s;if(h!=null&&h.current&&v){const d=Math.abs(u.current-c.scrollTop);if(d>0){const p=window.innerHeight-ni*2,g=parseFloat(v.style.minHeight),y=parseFloat(v.style.height),m=Math.max(g,y);if(m<p){const _=m+d,S=Math.min(p,_),b=_-S;v.style.height=S+"px",v.style.bottom==="0px"&&(c.scrollTop=b>0?b:0,v.style.justifyContent="flex-end")}}}u.current=c.scrollTop})})})]})},"SelectViewport")),qPt="SelectGroup",[LNt,ONt]=tv(qPt),jO="SelectItem",[KPt,_tt]=tv(jO),QPt=k.forwardRef(Se(function(t,r){const{__scopeSelect:n,value:a,disabled:i=!1,textValue:o,...s}=t,l=Su(jO,n),u=Ww(jO,n),f=l.value===a,[c,v]=k.useState(o??""),[h,d]=k.useState(!1),p=Mo(S=>{var b;return(b=u.itemRefCallback)==null?void 0:b.call(u,S,a,i)}),g=pr(r,p),y=bk(),m=k.useRef("touch"),_=Se(()=>{i||(l.onValueChange(a),l.onOpenChange(!1))},"handleSelect");return Z.jsx(KPt,{scope:n,value:a,disabled:i,textId:y,isSelected:f,onItemTextChange:k.useCallback(S=>{v(b=>b||((S==null?void 0:S.textContent)??"").trim())},[]),children:Z.jsx($w.ItemSlot,{scope:n,value:a,disabled:i,textValue:c,children:Z.jsx(Hn.div,{role:"option","aria-labelledby":y,"data-highlighted":h?"":void 0,"aria-selected":f&&h,"data-state":f?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...s,ref:g,onFocus:Tr(s.onFocus,()=>d(!0)),onBlur:Tr(s.onBlur,()=>d(!1)),onClick:Tr(s.onClick,()=>{m.current!=="mouse"&&_()}),onPointerUp:Tr(s.onPointerUp,()=>{m.current==="mouse"&&_()}),onPointerDown:Tr(s.onPointerDown,S=>{m.current=S.pointerType}),onPointerMove:Tr(s.onPointerMove,S=>{var b;m.current=S.pointerType,i?(b=u.onItemLeave)==null||b.call(u):m.current==="mouse"&&S.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Tr(s.onPointerLeave,S=>{var b;S.currentTarget===document.activeElement&&((b=u.onItemLeave)==null||b.call(u))}),onKeyDown:Tr(s.onKeyDown,S=>{var x;i||S.target!==S.currentTarget||((x=u.searchRef)==null?void 0:x.current)!==""&&S.key===" "||(MPt.includes(S.key)&&_(),S.key===" "&&S.preventDefault())})})})})},"SelectItem")),F_="SelectItemText",JPt=k.forwardRef(Se(function(t,r){const{__scopeSelect:n,className:a,style:i,...o}=t,s=Su(F_,n),l=Ww(F_,n),u=_tt(F_,n),f=OPt(F_,n),[c,v]=k.useState(null),h=Mo(_=>{var S;return(S=l.itemTextRefCallback)==null?void 0:S.call(l,_,u.value,u.disabled)}),d=pr(r,v,u.onItemTextChange,h),p=c==null?void 0:c.textContent,g=k.useMemo(()=>Z.jsx("option",{value:u.value,disabled:u.disabled,children:p},u.value),[u.disabled,u.value,p]),{onNativeOptionAdd:y,onNativeOptionRemove:m}=f;return xn(()=>(y(g),()=>m(g)),[y,m,g]),Z.jsxs(Z.Fragment,{children:[Z.jsx(Hn.span,{id:u.textId,...o,ref:d}),u.isSelected&&s.valueNode&&!s.valueNodeHasChildren&&!Xm(s.value)?Oc.createPortal(o.children,s.valueNode):null]})},"SelectItemText")),tNt="SelectItemIndicator",eNt=k.forwardRef(Se(function(t,r){const{__scopeSelect:n,...a}=t;return _tt(tNt,n).isSelected?Z.jsx(Hn.span,{"aria-hidden":!0,...a,ref:r}):null},"SelectItemIndicator")),rNt="SelectBubbleInput",nNt=k.forwardRef(Se(function({__scopeSelect:t,...r},n){const a=Su(rNt,t),{value:i,onValueChange:o,required:s,disabled:l,name:u,autoComplete:f,form:c}=a,{nativeOptions:v,nativeSelectKey:h}=a,d=k.useRef(null),p=pr(n,d),g=i??"",y=ltt(g),m=Array.from(v).some(_=>(_.props.value??"")==="");return k.useEffect(()=>{const _=d.current;if(!_)return;const S=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(S,"value").set;if(y!==g&&x){const w=new Event("change",{bubbles:!0});x.call(_,g),_.dispatchEvent(w)}},[y,g]),Z.jsxs(Hn.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:u,autoComplete:f,disabled:l,form:c,onChange:_=>o(_.target.value),...r,style:{...VIt,...r.style},ref:p,defaultValue:g,children:[Xm(i)&&!m?Z.jsx("option",{value:""}):null,Array.from(v)]},h)},"SelectBubbleInput"));function Stt(e){return typeof e=="function"}Se(Stt,"isFunction");function Xm(e){return e===""||e===void 0}Se(Xm,"shouldShowPlaceholder");function Lk(e){const t=Mo(e),r=k.useRef(""),n=k.useRef(0),a=k.useCallback(o=>{const s=r.current+o;t(s),Se(function l(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>l(""),1e3))},"updateSearch")(s)},[t]),i=k.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return k.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,a,i]}Se(Lk,"useTypeaheadSearch");function Ok(e,t,r){const a=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let o=btt(e,Math.max(i,0));a.length===1&&(o=o.filter(u=>u!==r));const l=o.find(u=>u.textValue.toLowerCase().startsWith(a.toLowerCase()));return l!==r?l:void 0}Se(Ok,"findNextItem");function btt(e,t){return e.map((r,n)=>e[(t+n)%e.length])}Se(btt,"wrapArray");const aNt=[{value:"claude-code",labelKey:"claudeCode"},{value:"codex",labelKey:"codex"}],iNt=om(()=>{const{t:e}=px();return Z.jsxs(RPt,{value:Be.dataSource,onValueChange:t=>Be.switchDataSource(t),disabled:Be.loading,children:[Z.jsxs(PPt,{className:yn(xt.select.trigger.base,xt.select.trigger.background,xt.text.primary,xt.select.trigger.border,xt.select.trigger.hover,xt.select.trigger.focus,xt.select.trigger.disabled),children:[Z.jsx(kPt,{}),Z.jsx(zPt,{children:Z.jsx(flt,{className:"w-4 h-4"})})]}),Z.jsx(HPt,{children:Z.jsx(UPt,{className:yn(xt.select.content.base,xt.select.content.background,xt.select.content.border),position:"popper",sideOffset:4,children:Z.jsx(ZPt,{className:"p-1",children:aNt.map(({value:t,labelKey:r})=>Z.jsxs(QPt,{value:t,className:yn(xt.select.item.base,xt.text.primary,xt.select.item.highlighted),children:[Z.jsx(eNt,{className:"absolute left-2",children:Z.jsx(llt,{className:"w-4 h-4"})}),Z.jsx(JPt,{children:e(r)})]},t))})})})]})}),oNt="input tokens",sNt="output tokens",lNt="total tokens",uNt="sessions",fNt="Error loading data",cNt="Claude Code",vNt="Codex",hNt="tokens",dNt="Loading...",pNt={inputTokens:oNt,outputTokens:sNt,totalTokens:lNt,sessionCount:uNt,errorTitle:fNt,claudeCode:cNt,codex:vNt,tokens:hNt,loading:dNt},gNt="输入 token",yNt="输出 token",mNt="总 token",_Nt="会话数",SNt="加载数据失败",bNt="Claude Code",xNt="Codex",wNt="token",TNt="加载中...",CNt={inputTokens:gNt,outputTokens:yNt,totalTokens:mNt,sessionCount:_Nt,errorTitle:SNt,claudeCode:bNt,codex:xNt,tokens:wNt,loading:TNt},ANt=om(()=>{const{t:e,i18n:t}=px(),{usageData:r,dateRange:n,filteredStats:a}=Be;k.useEffect(()=>{Be.loadUsageData()},[]);const i=()=>{if(!n)return"";const o=Y9(t.language),s=l=>j9(l,o,{year:"numeric"});return n.start===n.end?s(n.start):`${s(n.start)} - ${s(n.end)}`};return Z.jsx("div",{className:yn("min-h-screen py-2 px-4",xt.background.primary),children:Z.jsxs("div",{className:"mx-auto max-w-6xl",children:[Z.jsx("header",{className:"mb-2",children:Z.jsxs("div",{className:"grid grid-cols-3 items-center gap-3",children:[Z.jsx("div",{className:"flex justify-start",children:Z.jsx(iNt,{})}),Z.jsx("div",{className:yn("text-sm font-medium text-center",xt.text.secondary),children:n&&i()}),Z.jsx("div",{className:"flex justify-end",children:Z.jsx(glt,{})})]})}),Z.jsx(plt,{}),r&&!Be.error&&a&&Z.jsxs(Z.Fragment,{children:[Z.jsxs("div",{className:"grid grid-cols-4 gap-2 mb-4",children:[Z.jsx(g0,{label:e("inputTokens"),value:gf(a.inputTokens),color:"blue",isActive:Be.seriesVisibility.inputTokens,onClick:()=>Be.toggleSeriesVisibility("inputTokens")}),Z.jsx(g0,{label:e("outputTokens"),value:gf(a.outputTokens),color:"green",isActive:Be.seriesVisibility.outputTokens,onClick:()=>Be.toggleSeriesVisibility("outputTokens")}),Z.jsx(g0,{label:e("totalTokens"),value:gf(a.totalTokens),color:"purple",isActive:Be.seriesVisibility.totalTokens,onClick:()=>Be.toggleSeriesVisibility("totalTokens")}),Z.jsx(g0,{label:e("sessionCount"),value:gf(a.sessionCount),color:"orange",isActive:Be.seriesVisibility.sessionCount,onClick:()=>Be.toggleSeriesVisibility("sessionCount")})]}),Z.jsx("div",{children:Z.jsx(COt,{})})]})]})})});(async()=>(await aat(()=>typeof tokenUsage<"u"),await vst(ANt,{"en-US":pNt,"zh-CN":CNt})))();