????
Current Path : C:/inetpub/vhost/tracnghiem.gdtsolutions.vn/wwwroot/assets/ |
Current File : C:/inetpub/vhost/tracnghiem.gdtsolutions.vn/wwwroot/assets/index-9bcd78a9.js |
var Iue=Object.defineProperty;var Pue=(t,e,r)=>e in t?Iue(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var bt=(t,e,r)=>(Pue(t,typeof e!="symbol"?e+"":e,r),r);function Lue(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in t)){const i=Object.getOwnPropertyDescriptor(n,a);i&&Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.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)}})();var Pv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xS(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Oue(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){if(this instanceof n){var a=[null];a.push.apply(a,arguments);var i=Function.bind.apply(e,a);return new i}return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}),r}var re={},kue={get exports(){return re},set exports(t){re=t}},VX={},Y={},Nue={get exports(){return Y},set exports(t){Y=t}},UX={};/* object-assign (c) Sindre Sorhus @license MIT */var XH=Object.getOwnPropertySymbols,Bue=Object.prototype.hasOwnProperty,zue=Object.prototype.propertyIsEnumerable;function $ue(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function Fue(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(e).map(function(i){return e[i]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(i){a[i]=i}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var FM=Fue()?Object.assign:function(t,e){for(var r,n=$ue(t),a,i=1;i<arguments.length;i++){r=Object(arguments[i]);for(var o in r)Bue.call(r,o)&&(n[o]=r[o]);if(XH){a=XH(r);for(var s=0;s<a.length;s++)zue.call(r,a[s])&&(n[a[s]]=r[a[s]])}}return n};/** @license React v17.0.2 * react.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */(function(t){(function(){var e=FM,r="17.0.2",n=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var i=60109,o=60110,s=60112;t.Suspense=60113;var l=60120,u=60115,c=60116,d=60121,p=60122,v=60117,g=60129,m=60131;if(typeof Symbol=="function"&&Symbol.for){var x=Symbol.for;n=x("react.element"),a=x("react.portal"),t.Fragment=x("react.fragment"),t.StrictMode=x("react.strict_mode"),t.Profiler=x("react.profiler"),i=x("react.provider"),o=x("react.context"),s=x("react.forward_ref"),t.Suspense=x("react.suspense"),l=x("react.suspense_list"),u=x("react.memo"),c=x("react.lazy"),d=x("react.block"),p=x("react.server.block"),v=x("react.fundamental"),x("react.scope"),x("react.opaque.id"),g=x("react.debug_trace_mode"),x("react.offscreen"),m=x("react.legacy_hidden")}var _=typeof Symbol=="function"&&Symbol.iterator,w="@@iterator";function T(Z){if(Z===null||typeof Z!="object")return null;var pe=_&&Z[_]||Z[w];return typeof pe=="function"?pe:null}var A={current:null},M={transition:0},D={current:null},P={},O=null;function k(Z){O=Z}P.setExtraStackFrame=function(Z){O=Z},P.getCurrentStack=null,P.getStackAddendum=function(){var Z="";O&&(Z+=O);var pe=P.getCurrentStack;return pe&&(Z+=pe()||""),Z};var N={current:!1},$={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:M,ReactCurrentOwner:D,IsSomeRendererActing:N,assign:e};$.ReactDebugCurrentFrame=P;function H(Z){{for(var pe=arguments.length,Re=new Array(pe>1?pe-1:0),He=1;He<pe;He++)Re[He-1]=arguments[He];W("warn",Z,Re)}}function F(Z){{for(var pe=arguments.length,Re=new Array(pe>1?pe-1:0),He=1;He<pe;He++)Re[He-1]=arguments[He];W("error",Z,Re)}}function W(Z,pe,Re){{var He=$.ReactDebugCurrentFrame,pt=He.getStackAddendum();pt!==""&&(pe+="%s",Re=Re.concat([pt]));var Jt=Re.map(function(Yt){return""+Yt});Jt.unshift("Warning: "+pe),Function.prototype.apply.call(console[Z],console,Jt)}}var j={};function X(Z,pe){{var Re=Z.constructor,He=Re&&(Re.displayName||Re.name)||"ReactClass",pt=He+"."+pe;if(j[pt])return;F("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",pe,He),j[pt]=!0}}var te={isMounted:function(Z){return!1},enqueueForceUpdate:function(Z,pe,Re){X(Z,"forceUpdate")},enqueueReplaceState:function(Z,pe,Re,He){X(Z,"replaceState")},enqueueSetState:function(Z,pe,Re,He){X(Z,"setState")}},J={};Object.freeze(J);function ie(Z,pe,Re){this.props=Z,this.context=pe,this.refs=J,this.updater=Re||te}ie.prototype.isReactComponent={},ie.prototype.setState=function(Z,pe){if(!(typeof Z=="object"||typeof Z=="function"||Z==null))throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Z,pe,"setState")},ie.prototype.forceUpdate=function(Z){this.updater.enqueueForceUpdate(this,Z,"forceUpdate")};{var se={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},le=function(Z,pe){Object.defineProperty(ie.prototype,Z,{get:function(){H("%s(...) is deprecated in plain JavaScript React classes. %s",pe[0],pe[1])}})};for(var be in se)se.hasOwnProperty(be)&&le(be,se[be])}function Me(){}Me.prototype=ie.prototype;function Se(Z,pe,Re){this.props=Z,this.context=pe,this.refs=J,this.updater=Re||te}var Ue=Se.prototype=new Me;Ue.constructor=Se,e(Ue,ie.prototype),Ue.isPureReactComponent=!0;function Xe(){var Z={current:null};return Object.seal(Z),Z}function st(Z,pe,Re){var He=pe.displayName||pe.name||"";return Z.displayName||(He!==""?Re+"("+He+")":Re)}function $e(Z){return Z.displayName||"Context"}function Be(Z){if(Z==null)return null;if(typeof Z.tag=="number"&&F("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof Z=="function")return Z.displayName||Z.name||null;if(typeof Z=="string")return Z;switch(Z){case t.Fragment:return"Fragment";case a:return"Portal";case t.Profiler:return"Profiler";case t.StrictMode:return"StrictMode";case t.Suspense:return"Suspense";case l:return"SuspenseList"}if(typeof Z=="object")switch(Z.$$typeof){case o:var pe=Z;return $e(pe)+".Consumer";case i:var Re=Z;return $e(Re._context)+".Provider";case s:return st(Z,Z.render,"ForwardRef");case u:return Be(Z.type);case d:return Be(Z._render);case c:{var He=Z,pt=He._payload,Jt=He._init;try{return Be(Jt(pt))}catch{return null}}}return null}var et=Object.prototype.hasOwnProperty,de={key:!0,ref:!0,__self:!0,__source:!0},xe,xt,Ie;Ie={};function Ct(Z){if(et.call(Z,"ref")){var pe=Object.getOwnPropertyDescriptor(Z,"ref").get;if(pe&&pe.isReactWarning)return!1}return Z.ref!==void 0}function Ot(Z){if(et.call(Z,"key")){var pe=Object.getOwnPropertyDescriptor(Z,"key").get;if(pe&&pe.isReactWarning)return!1}return Z.key!==void 0}function jt(Z,pe){var Re=function(){xe||(xe=!0,F("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",pe))};Re.isReactWarning=!0,Object.defineProperty(Z,"key",{get:Re,configurable:!0})}function nr(Z,pe){var Re=function(){xt||(xt=!0,F("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",pe))};Re.isReactWarning=!0,Object.defineProperty(Z,"ref",{get:Re,configurable:!0})}function Tr(Z){if(typeof Z.ref=="string"&&D.current&&Z.__self&&D.current.stateNode!==Z.__self){var pe=Be(D.current.type);Ie[pe]||(F('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',pe,Z.ref),Ie[pe]=!0)}}var Er=function(Z,pe,Re,He,pt,Jt,Yt){var Vt={$$typeof:n,type:Z,key:pe,ref:Re,props:Yt,_owner:Jt};return Vt._store={},Object.defineProperty(Vt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Vt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:He}),Object.defineProperty(Vt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:pt}),Object.freeze&&(Object.freeze(Vt.props),Object.freeze(Vt)),Vt};function Xt(Z,pe,Re){var He,pt={},Jt=null,Yt=null,Vt=null,Wr=null;if(pe!=null){Ct(pe)&&(Yt=pe.ref,Tr(pe)),Ot(pe)&&(Jt=""+pe.key),Vt=pe.__self===void 0?null:pe.__self,Wr=pe.__source===void 0?null:pe.__source;for(He in pe)et.call(pe,He)&&!de.hasOwnProperty(He)&&(pt[He]=pe[He])}var Jr=arguments.length-2;if(Jr===1)pt.children=Re;else if(Jr>1){for(var En=Array(Jr),zn=0;zn<Jr;zn++)En[zn]=arguments[zn+2];Object.freeze&&Object.freeze(En),pt.children=En}if(Z&&Z.defaultProps){var Ua=Z.defaultProps;for(He in Ua)pt[He]===void 0&&(pt[He]=Ua[He])}if(Jt||Yt){var Wa=typeof Z=="function"?Z.displayName||Z.name||"Unknown":Z;Jt&&jt(pt,Wa),Yt&&nr(pt,Wa)}return Er(Z,Jt,Yt,Vt,Wr,D.current,pt)}function Sn(Z,pe){var Re=Er(Z.type,pe,Z.ref,Z._self,Z._source,Z._owner,Z.props);return Re}function zr(Z,pe,Re){if(Z==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+Z+".");var He,pt=e({},Z.props),Jt=Z.key,Yt=Z.ref,Vt=Z._self,Wr=Z._source,Jr=Z._owner;if(pe!=null){Ct(pe)&&(Yt=pe.ref,Jr=D.current),Ot(pe)&&(Jt=""+pe.key);var En;Z.type&&Z.type.defaultProps&&(En=Z.type.defaultProps);for(He in pe)et.call(pe,He)&&!de.hasOwnProperty(He)&&(pe[He]===void 0&&En!==void 0?pt[He]=En[He]:pt[He]=pe[He])}var zn=arguments.length-2;if(zn===1)pt.children=Re;else if(zn>1){for(var Ua=Array(zn),Wa=0;Wa<zn;Wa++)Ua[Wa]=arguments[Wa+2];pt.children=Ua}return Er(Z.type,Jt,Yt,Vt,Wr,Jr,pt)}function ge(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===n}var Ee=".",ke=":";function Ge(Z){var pe=/[=:]/g,Re={"=":"=0",":":"=2"},He=Z.replace(pe,function(pt){return Re[pt]});return"$"+He}var Ke=!1,ft=/\/+/g;function We(Z){return Z.replace(ft,"$&/")}function Ae(Z,pe){return typeof Z=="object"&&Z!==null&&Z.key!=null?Ge(""+Z.key):pe.toString(36)}function Pe(Z,pe,Re,He,pt){var Jt=typeof Z;(Jt==="undefined"||Jt==="boolean")&&(Z=null);var Yt=!1;if(Z===null)Yt=!0;else switch(Jt){case"string":case"number":Yt=!0;break;case"object":switch(Z.$$typeof){case n:case a:Yt=!0}}if(Yt){var Vt=Z,Wr=pt(Vt),Jr=He===""?Ee+Ae(Vt,0):He;if(Array.isArray(Wr)){var En="";Jr!=null&&(En=We(Jr)+"/"),Pe(Wr,pe,En,"",function(Wh){return Wh})}else Wr!=null&&(ge(Wr)&&(Wr=Sn(Wr,Re+(Wr.key&&(!Vt||Vt.key!==Wr.key)?We(""+Wr.key)+"/":"")+Jr)),pe.push(Wr));return 1}var zn,Ua,Wa=0,Ci=He===""?Ee:He+ke;if(Array.isArray(Z))for(var Fr=0;Fr<Z.length;Fr++)zn=Z[Fr],Ua=Ci+Ae(zn,Fr),Wa+=Pe(zn,pe,Re,Ua,pt);else{var Hr=T(Z);if(typeof Hr=="function"){var Vh=Z;Hr===Vh.entries&&(Ke||H("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ke=!0);for(var cb=Hr.call(Vh),Uh,fb=0;!(Uh=cb.next()).done;)zn=Uh.value,Ua=Ci+Ae(zn,fb++),Wa+=Pe(zn,pe,Re,Ua,pt)}else if(Jt==="object"){var kf=""+Z;throw Error("Objects are not valid as a React child (found: "+(kf==="[object Object]"?"object with keys {"+Object.keys(Z).join(", ")+"}":kf)+"). If you meant to render a collection of children, use an array instead.")}}return Wa}function rt(Z,pe,Re){if(Z==null)return Z;var He=[],pt=0;return Pe(Z,He,"","",function(Jt){return pe.call(Re,Jt,pt++)}),He}function gt(Z){var pe=0;return rt(Z,function(){pe++}),pe}function cr(Z,pe,Re){rt(Z,function(){pe.apply(this,arguments)},Re)}function $r(Z){return rt(Z,function(pe){return pe})||[]}function Rr(Z){if(!ge(Z))throw Error("React.Children.only expected to receive a single React element child.");return Z}function Un(Z,pe){pe===void 0?pe=null:pe!==null&&typeof pe!="function"&&F("createContext: Expected the optional second argument to be a function. Instead received: %s",pe);var Re={$$typeof:o,_calculateChangedBits:pe,_currentValue:Z,_currentValue2:Z,_threadCount:0,Provider:null,Consumer:null};Re.Provider={$$typeof:i,_context:Re};var He=!1,pt=!1,Jt=!1;{var Yt={$$typeof:o,_context:Re,_calculateChangedBits:Re._calculateChangedBits};Object.defineProperties(Yt,{Provider:{get:function(){return pt||(pt=!0,F("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),Re.Provider},set:function(Vt){Re.Provider=Vt}},_currentValue:{get:function(){return Re._currentValue},set:function(Vt){Re._currentValue=Vt}},_currentValue2:{get:function(){return Re._currentValue2},set:function(Vt){Re._currentValue2=Vt}},_threadCount:{get:function(){return Re._threadCount},set:function(Vt){Re._threadCount=Vt}},Consumer:{get:function(){return He||(He=!0,F("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),Re.Consumer}},displayName:{get:function(){return Re.displayName},set:function(Vt){Jt||(H("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Vt),Jt=!0)}}}),Re.Consumer=Yt}return Re._currentRenderer=null,Re._currentRenderer2=null,Re}var Dr=-1,da=0,ho=1,$o=2;function ml(Z){if(Z._status===Dr){var pe=Z._result,Re=pe(),He=Z;He._status=da,He._result=Re,Re.then(function(pt){if(Z._status===da){var Jt=pt.default;Jt===void 0&&F(`lazy: Expected the result of a dynamic import() call. Instead received: %s Your code should look like: const MyComponent = lazy(() => import('./MyComponent'))`,pt);var Yt=Z;Yt._status=ho,Yt._result=Jt}},function(pt){if(Z._status===da){var Jt=Z;Jt._status=$o,Jt._result=pt}})}if(Z._status===ho)return Z._result;throw Z._result}function iu(Z){var pe={_status:-1,_result:Z},Re={$$typeof:c,_payload:pe,_init:ml};{var He,pt;Object.defineProperties(Re,{defaultProps:{configurable:!0,get:function(){return He},set:function(Jt){F("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),He=Jt,Object.defineProperty(Re,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return pt},set:function(Jt){F("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),pt=Jt,Object.defineProperty(Re,"propTypes",{enumerable:!0})}}})}return Re}function Fo(Z){Z!=null&&Z.$$typeof===u?F("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof Z!="function"?F("forwardRef requires a render function but was given %s.",Z===null?"null":typeof Z):Z.length!==0&&Z.length!==2&&F("forwardRef render functions accept exactly two parameters: props and ref. %s",Z.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),Z!=null&&(Z.defaultProps!=null||Z.propTypes!=null)&&F("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var pe={$$typeof:s,render:Z};{var Re;Object.defineProperty(pe,"displayName",{enumerable:!1,configurable:!0,get:function(){return Re},set:function(He){Re=He,Z.displayName==null&&(Z.displayName=He)}})}return pe}var Vo=!1;function po(Z){return!!(typeof Z=="string"||typeof Z=="function"||Z===t.Fragment||Z===t.Profiler||Z===g||Z===t.StrictMode||Z===t.Suspense||Z===l||Z===m||Vo||typeof Z=="object"&&Z!==null&&(Z.$$typeof===c||Z.$$typeof===u||Z.$$typeof===i||Z.$$typeof===o||Z.$$typeof===s||Z.$$typeof===v||Z.$$typeof===d||Z[0]===p))}function ms(Z,pe){po(Z)||F("memo: The first argument must be a component. Instead received: %s",Z===null?"null":typeof Z);var Re={$$typeof:u,type:Z,compare:pe===void 0?null:pe};{var He;Object.defineProperty(Re,"displayName",{enumerable:!1,configurable:!0,get:function(){return He},set:function(pt){He=pt,Z.displayName==null&&(Z.displayName=pt)}})}return Re}function Wn(){var Z=A.current;if(Z===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Z}function ou(Z,pe){var Re=Wn();if(pe!==void 0&&F("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",pe,typeof pe=="number"&&Array.isArray(arguments[2])?` Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks`:""),Z._context!==void 0){var He=Z._context;He.Consumer===Z?F("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):He.Provider===Z&&F("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return Re.useContext(Z,pe)}function ue(Z){var pe=Wn();return pe.useState(Z)}function Je(Z,pe,Re){var He=Wn();return He.useReducer(Z,pe,Re)}function dt(Z){var pe=Wn();return pe.useRef(Z)}function Nt(Z,pe){var Re=Wn();return Re.useEffect(Z,pe)}function Ir(Z,pe){var Re=Wn();return Re.useLayoutEffect(Z,pe)}function Zt(Z,pe){var Re=Wn();return Re.useCallback(Z,pe)}function Cr(Z,pe){var Re=Wn();return Re.useMemo(Z,pe)}function br(Z,pe,Re){var He=Wn();return He.useImperativeHandle(Z,pe,Re)}function An(Z,pe){{var Re=Wn();return Re.useDebugValue(Z,pe)}}var kr=0,wn,Va,vo,su,li,Bh,zh;function $h(){}$h.__reactDisabledLog=!0;function ui(){{if(kr===0){wn=console.log,Va=console.info,vo=console.warn,su=console.error,li=console.group,Bh=console.groupCollapsed,zh=console.groupEnd;var Z={configurable:!0,enumerable:!0,value:$h,writable:!0};Object.defineProperties(console,{info:Z,log:Z,warn:Z,error:Z,group:Z,groupCollapsed:Z,groupEnd:Z})}kr++}}function go(){{if(kr--,kr===0){var Z={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:e({},Z,{value:wn}),info:e({},Z,{value:Va}),warn:e({},Z,{value:vo}),error:e({},Z,{value:su}),group:e({},Z,{value:li}),groupCollapsed:e({},Z,{value:Bh}),groupEnd:e({},Z,{value:zh})})}kr<0&&F("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ys=$.ReactCurrentDispatcher,yc;function Gi(Z,pe,Re){{if(yc===void 0)try{throw Error()}catch(pt){var He=pt.stack.trim().match(/\n( *(at )?)/);yc=He&&He[1]||""}return` `+yc+Z}}var bc=!1,bs;{var Dg=typeof WeakMap=="function"?WeakMap:Map;bs=new Dg}function xc(Z,pe){if(!Z||bc)return"";{var Re=bs.get(Z);if(Re!==void 0)return Re}var He;bc=!0;var pt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Jt;Jt=ys.current,ys.current=null,ui();try{if(pe){var Yt=function(){throw Error()};if(Object.defineProperty(Yt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Yt,[])}catch(Ci){He=Ci}Reflect.construct(Z,[],Yt)}else{try{Yt.call()}catch(Ci){He=Ci}Z.call(Yt.prototype)}}else{try{throw Error()}catch(Ci){He=Ci}Z()}}catch(Ci){if(Ci&&He&&typeof Ci.stack=="string"){for(var Vt=Ci.stack.split(` `),Wr=He.stack.split(` `),Jr=Vt.length-1,En=Wr.length-1;Jr>=1&&En>=0&&Vt[Jr]!==Wr[En];)En--;for(;Jr>=1&&En>=0;Jr--,En--)if(Vt[Jr]!==Wr[En]){if(Jr!==1||En!==1)do if(Jr--,En--,En<0||Vt[Jr]!==Wr[En]){var zn=` `+Vt[Jr].replace(" at new "," at ");return typeof Z=="function"&&bs.set(Z,zn),zn}while(Jr>=1&&En>=0);break}}}finally{bc=!1,ys.current=Jt,go(),Error.prepareStackTrace=pt}var Ua=Z?Z.displayName||Z.name:"",Wa=Ua?Gi(Ua):"";return typeof Z=="function"&&bs.set(Z,Wa),Wa}function Ig(Z,pe,Re){return xc(Z,!1)}function _c(Z){var pe=Z.prototype;return!!(pe&&pe.isReactComponent)}function Df(Z,pe,Re){if(Z==null)return"";if(typeof Z=="function")return xc(Z,_c(Z));if(typeof Z=="string")return Gi(Z);switch(Z){case t.Suspense:return Gi("Suspense");case l:return Gi("SuspenseList")}if(typeof Z=="object")switch(Z.$$typeof){case s:return Ig(Z.render);case u:return Df(Z.type,pe,Re);case d:return Ig(Z._render);case c:{var He=Z,pt=He._payload,Jt=He._init;try{return Df(Jt(pt),pe,Re)}catch{}}}return""}var If={},Fh=$.ReactDebugCurrentFrame;function lu(Z){if(Z){var pe=Z._owner,Re=Df(Z.type,Z._source,pe?pe.type:null);Fh.setExtraStackFrame(Re)}else Fh.setExtraStackFrame(null)}function Pg(Z,pe,Re,He,pt){{var Jt=Function.call.bind(Object.prototype.hasOwnProperty);for(var Yt in Z)if(Jt(Z,Yt)){var Vt=void 0;try{if(typeof Z[Yt]!="function"){var Wr=Error((He||"React class")+": "+Re+" type `"+Yt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof Z[Yt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Wr.name="Invariant Violation",Wr}Vt=Z[Yt](pe,Yt,He,Re,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Jr){Vt=Jr}Vt&&!(Vt instanceof Error)&&(lu(pt),F("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",He||"React class",Re,Yt,typeof Vt),lu(null)),Vt instanceof Error&&!(Vt.message in If)&&(If[Vt.message]=!0,lu(pt),F("Failed %s type: %s",Re,Vt.message),lu(null))}}}function Uo(Z){if(Z){var pe=Z._owner,Re=Df(Z.type,Z._source,pe?pe.type:null);k(Re)}else k(null)}var ht;ht=!1;function Pf(){if(D.current){var Z=Be(D.current.type);if(Z)return` Check the render method of \``+Z+"`."}return""}function ha(Z){if(Z!==void 0){var pe=Z.fileName.replace(/^.*[\\\/]/,""),Re=Z.lineNumber;return` Check your code at `+pe+":"+Re+"."}return""}function yl(Z){return Z!=null?ha(Z.__source):""}var uu={};function Lg(Z){var pe=Pf();if(!pe){var Re=typeof Z=="string"?Z:Z.displayName||Z.name;Re&&(pe=` Check the top-level render call using <`+Re+">.")}return pe}function Sa(Z,pe){if(!(!Z._store||Z._store.validated||Z.key!=null)){Z._store.validated=!0;var Re=Lg(pe);if(!uu[Re]){uu[Re]=!0;var He="";Z&&Z._owner&&Z._owner!==D.current&&(He=" It was passed a child from "+Be(Z._owner.type)+"."),Uo(Z),F('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Re,He),Uo(null)}}}function Bn(Z,pe){if(typeof Z=="object"){if(Array.isArray(Z))for(var Re=0;Re<Z.length;Re++){var He=Z[Re];ge(He)&&Sa(He,pe)}else if(ge(Z))Z._store&&(Z._store.validated=!0);else if(Z){var pt=T(Z);if(typeof pt=="function"&&pt!==Z.entries)for(var Jt=pt.call(Z),Yt;!(Yt=Jt.next()).done;)ge(Yt.value)&&Sa(Yt.value,pe)}}}function ji(Z){{var pe=Z.type;if(pe==null||typeof pe=="string")return;var Re;if(typeof pe=="function")Re=pe.propTypes;else if(typeof pe=="object"&&(pe.$$typeof===s||pe.$$typeof===u))Re=pe.propTypes;else return;if(Re){var He=Be(pe);Pg(Re,Z.props,"prop",He,Z)}else if(pe.PropTypes!==void 0&&!ht){ht=!0;var pt=Be(pe);F("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",pt||"Unknown")}typeof pe.getDefaultProps=="function"&&!pe.getDefaultProps.isReactClassApproved&&F("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Og(Z){{for(var pe=Object.keys(Z.props),Re=0;Re<pe.length;Re++){var He=pe[Re];if(He!=="children"&&He!=="key"){Uo(Z),F("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",He),Uo(null);break}}Z.ref!==null&&(Uo(Z),F("Invalid attribute `ref` supplied to `React.Fragment`."),Uo(null))}}function Pa(Z,pe,Re){var He=po(Z);if(!He){var pt="";(Z===void 0||typeof Z=="object"&&Z!==null&&Object.keys(Z).length===0)&&(pt+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Jt=yl(pe);Jt?pt+=Jt:pt+=Pf();var Yt;Z===null?Yt="null":Array.isArray(Z)?Yt="array":Z!==void 0&&Z.$$typeof===n?(Yt="<"+(Be(Z.type)||"Unknown")+" />",pt=" Did you accidentally export a JSX literal instead of a component?"):Yt=typeof Z,F("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Yt,pt)}var Vt=Xt.apply(this,arguments);if(Vt==null)return Vt;if(He)for(var Wr=2;Wr<arguments.length;Wr++)Bn(arguments[Wr],Z);return Z===t.Fragment?Og(Vt):ji(Vt),Vt}var Yi=!1;function cu(Z){var pe=Pa.bind(null,Z);return pe.type=Z,Yi||(Yi=!0,H("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(pe,"type",{enumerable:!1,get:function(){return H("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:Z}),Z}}),pe}function Lf(Z,pe,Re){for(var He=zr.apply(this,arguments),pt=2;pt<arguments.length;pt++)Bn(arguments[pt],He.type);return ji(He),He}try{var Of=Object.freeze({})}catch{}var kg=Pa,Ng=Lf,Bg=cu,zg={map:rt,forEach:cr,count:gt,toArray:$r,only:Rr};t.Children=zg,t.Component=ie,t.PureComponent=Se,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$,t.cloneElement=Ng,t.createContext=Un,t.createElement=kg,t.createFactory=Bg,t.createRef=Xe,t.forwardRef=Fo,t.isValidElement=ge,t.lazy=iu,t.memo=ms,t.useCallback=Zt,t.useContext=ou,t.useDebugValue=An,t.useEffect=Nt,t.useImperativeHandle=br,t.useLayoutEffect=Ir,t.useMemo=Cr,t.useReducer=Je,t.useRef=dt,t.useState=ue,t.version=r})()})(UX);(function(t){t.exports=UX})(Nue);const bi=xS(Y),rg=Lue({__proto__:null,default:bi},[Y]);/** @license React v17.0.2 * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */(function(t){(function(){var e=Y,r=FM,n=60103,a=60106;t.Fragment=60107;var i=60108,o=60114,s=60109,l=60110,u=60112,c=60113,d=60120,p=60115,v=60116,g=60121,m=60122,x=60117,_=60129,w=60131;if(typeof Symbol=="function"&&Symbol.for){var T=Symbol.for;n=T("react.element"),a=T("react.portal"),t.Fragment=T("react.fragment"),i=T("react.strict_mode"),o=T("react.profiler"),s=T("react.provider"),l=T("react.context"),u=T("react.forward_ref"),c=T("react.suspense"),d=T("react.suspense_list"),p=T("react.memo"),v=T("react.lazy"),g=T("react.block"),m=T("react.server.block"),x=T("react.fundamental"),T("react.scope"),T("react.opaque.id"),_=T("react.debug_trace_mode"),T("react.offscreen"),w=T("react.legacy_hidden")}var A=typeof Symbol=="function"&&Symbol.iterator,M="@@iterator";function D(ue){if(ue===null||typeof ue!="object")return null;var Je=A&&ue[A]||ue[M];return typeof Je=="function"?Je:null}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(ue){{for(var Je=arguments.length,dt=new Array(Je>1?Je-1:0),Nt=1;Nt<Je;Nt++)dt[Nt-1]=arguments[Nt];k("error",ue,dt)}}function k(ue,Je,dt){{var Nt=P.ReactDebugCurrentFrame,Ir=Nt.getStackAddendum();Ir!==""&&(Je+="%s",dt=dt.concat([Ir]));var Zt=dt.map(function(Cr){return""+Cr});Zt.unshift("Warning: "+Je),Function.prototype.apply.call(console[ue],console,Zt)}}var N=!1;function $(ue){return!!(typeof ue=="string"||typeof ue=="function"||ue===t.Fragment||ue===o||ue===_||ue===i||ue===c||ue===d||ue===w||N||typeof ue=="object"&&ue!==null&&(ue.$$typeof===v||ue.$$typeof===p||ue.$$typeof===s||ue.$$typeof===l||ue.$$typeof===u||ue.$$typeof===x||ue.$$typeof===g||ue[0]===m))}function H(ue,Je,dt){var Nt=Je.displayName||Je.name||"";return ue.displayName||(Nt!==""?dt+"("+Nt+")":dt)}function F(ue){return ue.displayName||"Context"}function W(ue){if(ue==null)return null;if(typeof ue.tag=="number"&&O("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof ue=="function")return ue.displayName||ue.name||null;if(typeof ue=="string")return ue;switch(ue){case t.Fragment:return"Fragment";case a:return"Portal";case o:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof ue=="object")switch(ue.$$typeof){case l:var Je=ue;return F(Je)+".Consumer";case s:var dt=ue;return F(dt._context)+".Provider";case u:return H(ue,ue.render,"ForwardRef");case p:return W(ue.type);case g:return W(ue._render);case v:{var Nt=ue,Ir=Nt._payload,Zt=Nt._init;try{return W(Zt(Ir))}catch{return null}}}return null}var j=0,X,te,J,ie,se,le,be;function Me(){}Me.__reactDisabledLog=!0;function Se(){{if(j===0){X=console.log,te=console.info,J=console.warn,ie=console.error,se=console.group,le=console.groupCollapsed,be=console.groupEnd;var ue={configurable:!0,enumerable:!0,value:Me,writable:!0};Object.defineProperties(console,{info:ue,log:ue,warn:ue,error:ue,group:ue,groupCollapsed:ue,groupEnd:ue})}j++}}function Ue(){{if(j--,j===0){var ue={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:r({},ue,{value:X}),info:r({},ue,{value:te}),warn:r({},ue,{value:J}),error:r({},ue,{value:ie}),group:r({},ue,{value:se}),groupCollapsed:r({},ue,{value:le}),groupEnd:r({},ue,{value:be})})}j<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Xe=P.ReactCurrentDispatcher,st;function $e(ue,Je,dt){{if(st===void 0)try{throw Error()}catch(Ir){var Nt=Ir.stack.trim().match(/\n( *(at )?)/);st=Nt&&Nt[1]||""}return` `+st+ue}}var Be=!1,et;{var de=typeof WeakMap=="function"?WeakMap:Map;et=new de}function xe(ue,Je){if(!ue||Be)return"";{var dt=et.get(ue);if(dt!==void 0)return dt}var Nt;Be=!0;var Ir=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Zt;Zt=Xe.current,Xe.current=null,Se();try{if(Je){var Cr=function(){throw Error()};if(Object.defineProperty(Cr.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Cr,[])}catch(li){Nt=li}Reflect.construct(ue,[],Cr)}else{try{Cr.call()}catch(li){Nt=li}ue.call(Cr.prototype)}}else{try{throw Error()}catch(li){Nt=li}ue()}}catch(li){if(li&&Nt&&typeof li.stack=="string"){for(var br=li.stack.split(` `),An=Nt.stack.split(` `),kr=br.length-1,wn=An.length-1;kr>=1&&wn>=0&&br[kr]!==An[wn];)wn--;for(;kr>=1&&wn>=0;kr--,wn--)if(br[kr]!==An[wn]){if(kr!==1||wn!==1)do if(kr--,wn--,wn<0||br[kr]!==An[wn]){var Va=` `+br[kr].replace(" at new "," at ");return typeof ue=="function"&&et.set(ue,Va),Va}while(kr>=1&&wn>=0);break}}}finally{Be=!1,Xe.current=Zt,Ue(),Error.prepareStackTrace=Ir}var vo=ue?ue.displayName||ue.name:"",su=vo?$e(vo):"";return typeof ue=="function"&&et.set(ue,su),su}function xt(ue,Je,dt){return xe(ue,!1)}function Ie(ue){var Je=ue.prototype;return!!(Je&&Je.isReactComponent)}function Ct(ue,Je,dt){if(ue==null)return"";if(typeof ue=="function")return xe(ue,Ie(ue));if(typeof ue=="string")return $e(ue);switch(ue){case c:return $e("Suspense");case d:return $e("SuspenseList")}if(typeof ue=="object")switch(ue.$$typeof){case u:return xt(ue.render);case p:return Ct(ue.type,Je,dt);case g:return xt(ue._render);case v:{var Nt=ue,Ir=Nt._payload,Zt=Nt._init;try{return Ct(Zt(Ir),Je,dt)}catch{}}}return""}var Ot={},jt=P.ReactDebugCurrentFrame;function nr(ue){if(ue){var Je=ue._owner,dt=Ct(ue.type,ue._source,Je?Je.type:null);jt.setExtraStackFrame(dt)}else jt.setExtraStackFrame(null)}function Tr(ue,Je,dt,Nt,Ir){{var Zt=Function.call.bind(Object.prototype.hasOwnProperty);for(var Cr in ue)if(Zt(ue,Cr)){var br=void 0;try{if(typeof ue[Cr]!="function"){var An=Error((Nt||"React class")+": "+dt+" type `"+Cr+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof ue[Cr]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw An.name="Invariant Violation",An}br=ue[Cr](Je,Cr,Nt,dt,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(kr){br=kr}br&&!(br instanceof Error)&&(nr(Ir),O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Nt||"React class",dt,Cr,typeof br),nr(null)),br instanceof Error&&!(br.message in Ot)&&(Ot[br.message]=!0,nr(Ir),O("Failed %s type: %s",dt,br.message),nr(null))}}}var Er=P.ReactCurrentOwner,Xt=Object.prototype.hasOwnProperty,Sn={key:!0,ref:!0,__self:!0,__source:!0},zr,ge,Ee;Ee={};function ke(ue){if(Xt.call(ue,"ref")){var Je=Object.getOwnPropertyDescriptor(ue,"ref").get;if(Je&&Je.isReactWarning)return!1}return ue.ref!==void 0}function Ge(ue){if(Xt.call(ue,"key")){var Je=Object.getOwnPropertyDescriptor(ue,"key").get;if(Je&&Je.isReactWarning)return!1}return ue.key!==void 0}function Ke(ue,Je){if(typeof ue.ref=="string"&&Er.current&&Je&&Er.current.stateNode!==Je){var dt=W(Er.current.type);Ee[dt]||(O('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',W(Er.current.type),ue.ref),Ee[dt]=!0)}}function ft(ue,Je){{var dt=function(){zr||(zr=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Je))};dt.isReactWarning=!0,Object.defineProperty(ue,"key",{get:dt,configurable:!0})}}function We(ue,Je){{var dt=function(){ge||(ge=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Je))};dt.isReactWarning=!0,Object.defineProperty(ue,"ref",{get:dt,configurable:!0})}}var Ae=function(ue,Je,dt,Nt,Ir,Zt,Cr){var br={$$typeof:n,type:ue,key:Je,ref:dt,props:Cr,_owner:Zt};return br._store={},Object.defineProperty(br._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(br,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Nt}),Object.defineProperty(br,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ir}),Object.freeze&&(Object.freeze(br.props),Object.freeze(br)),br};function Pe(ue,Je,dt,Nt,Ir){{var Zt,Cr={},br=null,An=null;dt!==void 0&&(br=""+dt),Ge(Je)&&(br=""+Je.key),ke(Je)&&(An=Je.ref,Ke(Je,Ir));for(Zt in Je)Xt.call(Je,Zt)&&!Sn.hasOwnProperty(Zt)&&(Cr[Zt]=Je[Zt]);if(ue&&ue.defaultProps){var kr=ue.defaultProps;for(Zt in kr)Cr[Zt]===void 0&&(Cr[Zt]=kr[Zt])}if(br||An){var wn=typeof ue=="function"?ue.displayName||ue.name||"Unknown":ue;br&&ft(Cr,wn),An&&We(Cr,wn)}return Ae(ue,br,An,Ir,Nt,Er.current,Cr)}}var rt=P.ReactCurrentOwner,gt=P.ReactDebugCurrentFrame;function cr(ue){if(ue){var Je=ue._owner,dt=Ct(ue.type,ue._source,Je?Je.type:null);gt.setExtraStackFrame(dt)}else gt.setExtraStackFrame(null)}var $r;$r=!1;function Rr(ue){return typeof ue=="object"&&ue!==null&&ue.$$typeof===n}function Un(){{if(rt.current){var ue=W(rt.current.type);if(ue)return` Check the render method of \``+ue+"`."}return""}}function Dr(ue){{if(ue!==void 0){var Je=ue.fileName.replace(/^.*[\\\/]/,""),dt=ue.lineNumber;return` Check your code at `+Je+":"+dt+"."}return""}}var da={};function ho(ue){{var Je=Un();if(!Je){var dt=typeof ue=="string"?ue:ue.displayName||ue.name;dt&&(Je=` Check the top-level render call using <`+dt+">.")}return Je}}function $o(ue,Je){{if(!ue._store||ue._store.validated||ue.key!=null)return;ue._store.validated=!0;var dt=ho(Je);if(da[dt])return;da[dt]=!0;var Nt="";ue&&ue._owner&&ue._owner!==rt.current&&(Nt=" It was passed a child from "+W(ue._owner.type)+"."),cr(ue),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',dt,Nt),cr(null)}}function ml(ue,Je){{if(typeof ue!="object")return;if(Array.isArray(ue))for(var dt=0;dt<ue.length;dt++){var Nt=ue[dt];Rr(Nt)&&$o(Nt,Je)}else if(Rr(ue))ue._store&&(ue._store.validated=!0);else if(ue){var Ir=D(ue);if(typeof Ir=="function"&&Ir!==ue.entries)for(var Zt=Ir.call(ue),Cr;!(Cr=Zt.next()).done;)Rr(Cr.value)&&$o(Cr.value,Je)}}}function iu(ue){{var Je=ue.type;if(Je==null||typeof Je=="string")return;var dt;if(typeof Je=="function")dt=Je.propTypes;else if(typeof Je=="object"&&(Je.$$typeof===u||Je.$$typeof===p))dt=Je.propTypes;else return;if(dt){var Nt=W(Je);Tr(dt,ue.props,"prop",Nt,ue)}else if(Je.PropTypes!==void 0&&!$r){$r=!0;var Ir=W(Je);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ir||"Unknown")}typeof Je.getDefaultProps=="function"&&!Je.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Fo(ue){{for(var Je=Object.keys(ue.props),dt=0;dt<Je.length;dt++){var Nt=Je[dt];if(Nt!=="children"&&Nt!=="key"){cr(ue),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Nt),cr(null);break}}ue.ref!==null&&(cr(ue),O("Invalid attribute `ref` supplied to `React.Fragment`."),cr(null))}}function Vo(ue,Je,dt,Nt,Ir,Zt){{var Cr=$(ue);if(!Cr){var br="";(ue===void 0||typeof ue=="object"&&ue!==null&&Object.keys(ue).length===0)&&(br+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var An=Dr(Ir);An?br+=An:br+=Un();var kr;ue===null?kr="null":Array.isArray(ue)?kr="array":ue!==void 0&&ue.$$typeof===n?(kr="<"+(W(ue.type)||"Unknown")+" />",br=" Did you accidentally export a JSX literal instead of a component?"):kr=typeof ue,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",kr,br)}var wn=Pe(ue,Je,dt,Ir,Zt);if(wn==null)return wn;if(Cr){var Va=Je.children;if(Va!==void 0)if(Nt)if(Array.isArray(Va)){for(var vo=0;vo<Va.length;vo++)ml(Va[vo],ue);Object.freeze&&Object.freeze(Va)}else O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ml(Va,ue)}return ue===t.Fragment?Fo(wn):iu(wn),wn}}function po(ue,Je,dt){return Vo(ue,Je,dt,!0)}function ms(ue,Je,dt){return Vo(ue,Je,dt,!1)}var Wn=ms,ou=po;t.jsx=Wn,t.jsxs=ou})()})(VX);(function(t){t.exports=VX})(kue);/*! ***************************************************************************** Copyright (C) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */var ZH;(function(t){(function(e){var r=typeof Pv=="object"?Pv:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),n=a(t);typeof r.Reflect>"u"?r.Reflect=t:n=a(r.Reflect,n),e(n);function a(i,o){return function(s,l){typeof i[s]!="function"&&Object.defineProperty(i,s,{configurable:!0,writable:!0,value:l}),o&&o(s,l)}}})(function(e){var r=Object.prototype.hasOwnProperty,n=typeof Symbol=="function",a=n&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",i=n&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",o=typeof Object.create=="function",s={__proto__:[]}instanceof Array,l=!o&&!s,u={create:o?function(){return zr(Object.create(null))}:s?function(){return zr({__proto__:null})}:function(){return zr({})},has:l?function(ge,Ee){return r.call(ge,Ee)}:function(ge,Ee){return Ee in ge},get:l?function(ge,Ee){return r.call(ge,Ee)?ge[Ee]:void 0}:function(ge,Ee){return ge[Ee]}},c=Object.getPrototypeOf(Function),d=typeof process=="object"&&{}&&{}.REFLECT_METADATA_USE_MAP_POLYFILL==="true",p=!d&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Er(),v=!d&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Xt(),g=!d&&typeof WeakMap=="function"?WeakMap:Sn(),m=new g;function x(ge,Ee,ke,Ge){if(le(ke)){if(!et(ge))throw new TypeError;if(!xe(Ee))throw new TypeError;return N(ge,Ee)}else{if(!et(ge))throw new TypeError;if(!Se(Ee))throw new TypeError;if(!Se(Ge)&&!le(Ge)&&!be(Ge))throw new TypeError;return be(Ge)&&(Ge=void 0),ke=Be(ke),$(ge,Ee,ke,Ge)}}e("decorate",x);function _(ge,Ee){function ke(Ge,Ke){if(!Se(Ge))throw new TypeError;if(!le(Ke)&&!xt(Ke))throw new TypeError;te(ge,Ee,Ge,Ke)}return ke}e("metadata",_);function w(ge,Ee,ke,Ge){if(!Se(ke))throw new TypeError;return le(Ge)||(Ge=Be(Ge)),te(ge,Ee,ke,Ge)}e("defineMetadata",w);function T(ge,Ee,ke){if(!Se(Ee))throw new TypeError;return le(ke)||(ke=Be(ke)),F(ge,Ee,ke)}e("hasMetadata",T);function A(ge,Ee,ke){if(!Se(Ee))throw new TypeError;return le(ke)||(ke=Be(ke)),W(ge,Ee,ke)}e("hasOwnMetadata",A);function M(ge,Ee,ke){if(!Se(Ee))throw new TypeError;return le(ke)||(ke=Be(ke)),j(ge,Ee,ke)}e("getMetadata",M);function D(ge,Ee,ke){if(!Se(Ee))throw new TypeError;return le(ke)||(ke=Be(ke)),X(ge,Ee,ke)}e("getOwnMetadata",D);function P(ge,Ee){if(!Se(ge))throw new TypeError;return le(Ee)||(Ee=Be(Ee)),J(ge,Ee)}e("getMetadataKeys",P);function O(ge,Ee){if(!Se(ge))throw new TypeError;return le(Ee)||(Ee=Be(Ee)),ie(ge,Ee)}e("getOwnMetadataKeys",O);function k(ge,Ee,ke){if(!Se(Ee))throw new TypeError;le(ke)||(ke=Be(ke));var Ge=H(Ee,ke,!1);if(le(Ge)||!Ge.delete(ge))return!1;if(Ge.size>0)return!0;var Ke=m.get(Ee);return Ke.delete(ke),Ke.size>0||m.delete(Ee),!0}e("deleteMetadata",k);function N(ge,Ee){for(var ke=ge.length-1;ke>=0;--ke){var Ge=ge[ke],Ke=Ge(Ee);if(!le(Ke)&&!be(Ke)){if(!xe(Ke))throw new TypeError;Ee=Ke}}return Ee}function $(ge,Ee,ke,Ge){for(var Ke=ge.length-1;Ke>=0;--Ke){var ft=ge[Ke],We=ft(Ee,ke,Ge);if(!le(We)&&!be(We)){if(!Se(We))throw new TypeError;Ge=We}}return Ge}function H(ge,Ee,ke){var Ge=m.get(ge);if(le(Ge)){if(!ke)return;Ge=new p,m.set(ge,Ge)}var Ke=Ge.get(Ee);if(le(Ke)){if(!ke)return;Ke=new p,Ge.set(Ee,Ke)}return Ke}function F(ge,Ee,ke){var Ge=W(ge,Ee,ke);if(Ge)return!0;var Ke=Tr(Ee);return be(Ke)?!1:F(ge,Ke,ke)}function W(ge,Ee,ke){var Ge=H(Ee,ke,!1);return le(Ge)?!1:st(Ge.has(ge))}function j(ge,Ee,ke){var Ge=W(ge,Ee,ke);if(Ge)return X(ge,Ee,ke);var Ke=Tr(Ee);if(!be(Ke))return j(ge,Ke,ke)}function X(ge,Ee,ke){var Ge=H(Ee,ke,!1);if(!le(Ge))return Ge.get(ge)}function te(ge,Ee,ke,Ge){var Ke=H(ke,Ge,!0);Ke.set(ge,Ee)}function J(ge,Ee){var ke=ie(ge,Ee),Ge=Tr(ge);if(Ge===null)return ke;var Ke=J(Ge,Ee);if(Ke.length<=0)return ke;if(ke.length<=0)return Ke;for(var ft=new v,We=[],Ae=0,Pe=ke;Ae<Pe.length;Ae++){var rt=Pe[Ae],gt=ft.has(rt);gt||(ft.add(rt),We.push(rt))}for(var cr=0,$r=Ke;cr<$r.length;cr++){var rt=$r[cr],gt=ft.has(rt);gt||(ft.add(rt),We.push(rt))}return We}function ie(ge,Ee){var ke=[],Ge=H(ge,Ee,!1);if(le(Ge))return ke;for(var Ke=Ge.keys(),ft=Ct(Ke),We=0;;){var Ae=jt(ft);if(!Ae)return ke.length=We,ke;var Pe=Ot(Ae);try{ke[We]=Pe}catch(rt){try{nr(ft)}finally{throw rt}}We++}}function se(ge){if(ge===null)return 1;switch(typeof ge){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return ge===null?1:6;default:return 6}}function le(ge){return ge===void 0}function be(ge){return ge===null}function Me(ge){return typeof ge=="symbol"}function Se(ge){return typeof ge=="object"?ge!==null:typeof ge=="function"}function Ue(ge,Ee){switch(se(ge)){case 0:return ge;case 1:return ge;case 2:return ge;case 3:return ge;case 4:return ge;case 5:return ge}var ke=Ee===3?"string":Ee===5?"number":"default",Ge=Ie(ge,a);if(Ge!==void 0){var Ke=Ge.call(ge,ke);if(Se(Ke))throw new TypeError;return Ke}return Xe(ge,ke==="default"?"number":ke)}function Xe(ge,Ee){if(Ee==="string"){var ke=ge.toString;if(de(ke)){var Ge=ke.call(ge);if(!Se(Ge))return Ge}var Ke=ge.valueOf;if(de(Ke)){var Ge=Ke.call(ge);if(!Se(Ge))return Ge}}else{var Ke=ge.valueOf;if(de(Ke)){var Ge=Ke.call(ge);if(!Se(Ge))return Ge}var ft=ge.toString;if(de(ft)){var Ge=ft.call(ge);if(!Se(Ge))return Ge}}throw new TypeError}function st(ge){return!!ge}function $e(ge){return""+ge}function Be(ge){var Ee=Ue(ge,3);return Me(Ee)?Ee:$e(Ee)}function et(ge){return Array.isArray?Array.isArray(ge):ge instanceof Object?ge instanceof Array:Object.prototype.toString.call(ge)==="[object Array]"}function de(ge){return typeof ge=="function"}function xe(ge){return typeof ge=="function"}function xt(ge){switch(se(ge)){case 3:return!0;case 4:return!0;default:return!1}}function Ie(ge,Ee){var ke=ge[Ee];if(ke!=null){if(!de(ke))throw new TypeError;return ke}}function Ct(ge){var Ee=Ie(ge,i);if(!de(Ee))throw new TypeError;var ke=Ee.call(ge);if(!Se(ke))throw new TypeError;return ke}function Ot(ge){return ge.value}function jt(ge){var Ee=ge.next();return Ee.done?!1:Ee}function nr(ge){var Ee=ge.return;Ee&&Ee.call(ge)}function Tr(ge){var Ee=Object.getPrototypeOf(ge);if(typeof ge!="function"||ge===c||Ee!==c)return Ee;var ke=ge.prototype,Ge=ke&&Object.getPrototypeOf(ke);if(Ge==null||Ge===Object.prototype)return Ee;var Ke=Ge.constructor;return typeof Ke!="function"||Ke===ge?Ee:Ke}function Er(){var ge={},Ee=[],ke=function(){function We(Ae,Pe,rt){this._index=0,this._keys=Ae,this._values=Pe,this._selector=rt}return We.prototype["@@iterator"]=function(){return this},We.prototype[i]=function(){return this},We.prototype.next=function(){var Ae=this._index;if(Ae>=0&&Ae<this._keys.length){var Pe=this._selector(this._keys[Ae],this._values[Ae]);return Ae+1>=this._keys.length?(this._index=-1,this._keys=Ee,this._values=Ee):this._index++,{value:Pe,done:!1}}return{value:void 0,done:!0}},We.prototype.throw=function(Ae){throw this._index>=0&&(this._index=-1,this._keys=Ee,this._values=Ee),Ae},We.prototype.return=function(Ae){return this._index>=0&&(this._index=-1,this._keys=Ee,this._values=Ee),{value:Ae,done:!0}},We}();return function(){function We(){this._keys=[],this._values=[],this._cacheKey=ge,this._cacheIndex=-2}return Object.defineProperty(We.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),We.prototype.has=function(Ae){return this._find(Ae,!1)>=0},We.prototype.get=function(Ae){var Pe=this._find(Ae,!1);return Pe>=0?this._values[Pe]:void 0},We.prototype.set=function(Ae,Pe){var rt=this._find(Ae,!0);return this._values[rt]=Pe,this},We.prototype.delete=function(Ae){var Pe=this._find(Ae,!1);if(Pe>=0){for(var rt=this._keys.length,gt=Pe+1;gt<rt;gt++)this._keys[gt-1]=this._keys[gt],this._values[gt-1]=this._values[gt];return this._keys.length--,this._values.length--,Ae===this._cacheKey&&(this._cacheKey=ge,this._cacheIndex=-2),!0}return!1},We.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=ge,this._cacheIndex=-2},We.prototype.keys=function(){return new ke(this._keys,this._values,Ge)},We.prototype.values=function(){return new ke(this._keys,this._values,Ke)},We.prototype.entries=function(){return new ke(this._keys,this._values,ft)},We.prototype["@@iterator"]=function(){return this.entries()},We.prototype[i]=function(){return this.entries()},We.prototype._find=function(Ae,Pe){return this._cacheKey!==Ae&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=Ae)),this._cacheIndex<0&&Pe&&(this._cacheIndex=this._keys.length,this._keys.push(Ae),this._values.push(void 0)),this._cacheIndex},We}();function Ge(We,Ae){return We}function Ke(We,Ae){return Ae}function ft(We,Ae){return[We,Ae]}}function Xt(){return function(){function ge(){this._map=new p}return Object.defineProperty(ge.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),ge.prototype.has=function(Ee){return this._map.has(Ee)},ge.prototype.add=function(Ee){return this._map.set(Ee,Ee),this},ge.prototype.delete=function(Ee){return this._map.delete(Ee)},ge.prototype.clear=function(){this._map.clear()},ge.prototype.keys=function(){return this._map.keys()},ge.prototype.values=function(){return this._map.values()},ge.prototype.entries=function(){return this._map.entries()},ge.prototype["@@iterator"]=function(){return this.keys()},ge.prototype[i]=function(){return this.keys()},ge}()}function Sn(){var ge=16,Ee=u.create(),ke=Ge();return function(){function Pe(){this._key=Ge()}return Pe.prototype.has=function(rt){var gt=Ke(rt,!1);return gt!==void 0?u.has(gt,this._key):!1},Pe.prototype.get=function(rt){var gt=Ke(rt,!1);return gt!==void 0?u.get(gt,this._key):void 0},Pe.prototype.set=function(rt,gt){var cr=Ke(rt,!0);return cr[this._key]=gt,this},Pe.prototype.delete=function(rt){var gt=Ke(rt,!1);return gt!==void 0?delete gt[this._key]:!1},Pe.prototype.clear=function(){this._key=Ge()},Pe}();function Ge(){var Pe;do Pe="@@WeakMap@@"+Ae();while(u.has(Ee,Pe));return Ee[Pe]=!0,Pe}function Ke(Pe,rt){if(!r.call(Pe,ke)){if(!rt)return;Object.defineProperty(Pe,ke,{value:u.create()})}return Pe[ke]}function ft(Pe,rt){for(var gt=0;gt<rt;++gt)Pe[gt]=Math.random()*255|0;return Pe}function We(Pe){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(Pe)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(Pe)):ft(new Uint8Array(Pe),Pe):ft(new Array(Pe),Pe)}function Ae(){var Pe=We(ge);Pe[6]=Pe[6]&79|64,Pe[8]=Pe[8]&191|128;for(var rt="",gt=0;gt<ge;++gt){var cr=Pe[gt];(gt===4||gt===6||gt===8)&&(rt+="-"),cr<16&&(rt+="0"),rt+=cr.toString(16).toLowerCase()}return rt}}function zr(ge){return ge.__=void 0,delete ge.__,ge}})})(ZH||(ZH={}));const Vue={black:"#000",white:"#fff"},I1=Vue,Uue={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},xv=Uue,Wue={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ly=Wue,Hue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},uy=Hue,Gue={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},cy=Gue,jue={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},fy=jue,Yue={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},u_=Yue,que={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Xue=que;function Th(t,e){return function(...n){return t(...n)||e(...n)}}function oe(){return oe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},oe.apply(this,arguments)}function Lv(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function WX(t){if(!Lv(t))return t;const e={};return Object.keys(t).forEach(r=>{e[r]=WX(t[r])}),e}function ls(t,e,r={clone:!0}){const n=r.clone?oe({},t):t;return Lv(t)&&Lv(e)&&Object.keys(e).forEach(a=>{a!=="__proto__"&&(Lv(e[a])&&a in t&&Lv(t[a])?n[a]=ls(t[a],e[a],r):r.clone?n[a]=Lv(e[a])?WX(e[a]):e[a]:n[a]=e[a])}),n}var E={},Zue={get exports(){return E},set exports(t){E=t}},P1={},Kue={get exports(){return P1},set exports(t){P1=t}},mn={};/** @license React v16.13.1 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */(function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,_=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function T(xe){return typeof xe=="string"||typeof xe=="function"||xe===n||xe===u||xe===i||xe===a||xe===d||xe===p||typeof xe=="object"&&xe!==null&&(xe.$$typeof===g||xe.$$typeof===v||xe.$$typeof===o||xe.$$typeof===s||xe.$$typeof===c||xe.$$typeof===x||xe.$$typeof===_||xe.$$typeof===w||xe.$$typeof===m)}function A(xe){if(typeof xe=="object"&&xe!==null){var xt=xe.$$typeof;switch(xt){case e:var Ie=xe.type;switch(Ie){case l:case u:case n:case i:case a:case d:return Ie;default:var Ct=Ie&&Ie.$$typeof;switch(Ct){case s:case c:case g:case v:case o:return Ct;default:return xt}}case r:return xt}}}var M=l,D=u,P=s,O=o,k=e,N=c,$=n,H=g,F=v,W=r,j=i,X=a,te=d,J=!1;function ie(xe){return J||(J=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),se(xe)||A(xe)===l}function se(xe){return A(xe)===u}function le(xe){return A(xe)===s}function be(xe){return A(xe)===o}function Me(xe){return typeof xe=="object"&&xe!==null&&xe.$$typeof===e}function Se(xe){return A(xe)===c}function Ue(xe){return A(xe)===n}function Xe(xe){return A(xe)===g}function st(xe){return A(xe)===v}function $e(xe){return A(xe)===r}function Be(xe){return A(xe)===i}function et(xe){return A(xe)===a}function de(xe){return A(xe)===d}mn.AsyncMode=M,mn.ConcurrentMode=D,mn.ContextConsumer=P,mn.ContextProvider=O,mn.Element=k,mn.ForwardRef=N,mn.Fragment=$,mn.Lazy=H,mn.Memo=F,mn.Portal=W,mn.Profiler=j,mn.StrictMode=X,mn.Suspense=te,mn.isAsyncMode=ie,mn.isConcurrentMode=se,mn.isContextConsumer=le,mn.isContextProvider=be,mn.isElement=Me,mn.isForwardRef=Se,mn.isFragment=Ue,mn.isLazy=Xe,mn.isMemo=st,mn.isPortal=$e,mn.isProfiler=Be,mn.isStrictMode=et,mn.isSuspense=de,mn.isValidElementType=T,mn.typeOf=A})();(function(t){t.exports=mn})(Kue);var Que="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",HX=Que,GX=Function.call.bind(Object.prototype.hasOwnProperty),Ez=function(){};{var Jue=HX,Rz={},ece=GX;Ez=function(t){var e="Warning: "+t;typeof console<"u"&&console.error(e);try{throw new Error(e)}catch{}}}function jX(t,e,r,n,a){for(var i in t)if(ece(t,i)){var o;try{if(typeof t[i]!="function"){var s=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}o=t[i](e,i,n,r,null,Jue)}catch(u){o=u}if(o&&!(o instanceof Error)&&Ez((n||"React class")+": type specification of "+r+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof o+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),o instanceof Error&&!(o.message in Rz)){Rz[o.message]=!0;var l=a?a():"";Ez("Failed "+r+" type: "+o.message+(l??""))}}}jX.resetWarningCache=function(){Rz={}};var tce=jX,rce=P1,nce=FM,dy=HX,fk=GX,KH=tce,Uy=function(){};Uy=function(t){var e="Warning: "+t;typeof console<"u"&&console.error(e);try{throw new Error(e)}catch{}};function AA(){return null}var ace=function(t,e){var r=typeof Symbol=="function"&&Symbol.iterator,n="@@iterator";function a(F){var W=F&&(r&&F[r]||F[n]);if(typeof W=="function")return W}var i="<<anonymous>>",o={array:c("array"),bigint:c("bigint"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:d(),arrayOf:p,element:v(),elementType:g(),instanceOf:m,node:T(),objectOf:_,oneOf:x,oneOfType:w,shape:M,exact:D};function s(F,W){return F===W?F!==0||1/F===1/W:F!==F&&W!==W}function l(F,W){this.message=F,this.data=W&&typeof W=="object"?W:{},this.stack=""}l.prototype=Error.prototype;function u(F){var W={},j=0;function X(J,ie,se,le,be,Me,Se){if(le=le||i,Me=Me||se,Se!==dy){if(e){var Ue=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Ue.name="Invariant Violation",Ue}else if(typeof console<"u"){var Xe=le+":"+se;!W[Xe]&&j<3&&(Uy("You are manually calling a React.PropTypes validation function for the `"+Me+"` prop on `"+le+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),W[Xe]=!0,j++)}}return ie[se]==null?J?ie[se]===null?new l("The "+be+" `"+Me+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new l("The "+be+" `"+Me+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:F(ie,se,le,be,Me)}var te=X.bind(null,!1);return te.isRequired=X.bind(null,!0),te}function c(F){function W(j,X,te,J,ie,se){var le=j[X],be=k(le);if(be!==F){var Me=N(le);return new l("Invalid "+J+" `"+ie+"` of type "+("`"+Me+"` supplied to `"+te+"`, expected ")+("`"+F+"`."),{expectedType:F})}return null}return u(W)}function d(){return u(AA)}function p(F){function W(j,X,te,J,ie){if(typeof F!="function")return new l("Property `"+ie+"` of component `"+te+"` has invalid PropType notation inside arrayOf.");var se=j[X];if(!Array.isArray(se)){var le=k(se);return new l("Invalid "+J+" `"+ie+"` of type "+("`"+le+"` supplied to `"+te+"`, expected an array."))}for(var be=0;be<se.length;be++){var Me=F(se,be,te,J,ie+"["+be+"]",dy);if(Me instanceof Error)return Me}return null}return u(W)}function v(){function F(W,j,X,te,J){var ie=W[j];if(!t(ie)){var se=k(ie);return new l("Invalid "+te+" `"+J+"` of type "+("`"+se+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return u(F)}function g(){function F(W,j,X,te,J){var ie=W[j];if(!rce.isValidElementType(ie)){var se=k(ie);return new l("Invalid "+te+" `"+J+"` of type "+("`"+se+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return u(F)}function m(F){function W(j,X,te,J,ie){if(!(j[X]instanceof F)){var se=F.name||i,le=H(j[X]);return new l("Invalid "+J+" `"+ie+"` of type "+("`"+le+"` supplied to `"+te+"`, expected ")+("instance of `"+se+"`."))}return null}return u(W)}function x(F){if(!Array.isArray(F))return arguments.length>1?Uy("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):Uy("Invalid argument supplied to oneOf, expected an array."),AA;function W(j,X,te,J,ie){for(var se=j[X],le=0;le<F.length;le++)if(s(se,F[le]))return null;var be=JSON.stringify(F,function(Se,Ue){var Xe=N(Ue);return Xe==="symbol"?String(Ue):Ue});return new l("Invalid "+J+" `"+ie+"` of value `"+String(se)+"` "+("supplied to `"+te+"`, expected one of "+be+"."))}return u(W)}function _(F){function W(j,X,te,J,ie){if(typeof F!="function")return new l("Property `"+ie+"` of component `"+te+"` has invalid PropType notation inside objectOf.");var se=j[X],le=k(se);if(le!=="object")return new l("Invalid "+J+" `"+ie+"` of type "+("`"+le+"` supplied to `"+te+"`, expected an object."));for(var be in se)if(fk(se,be)){var Me=F(se,be,te,J,ie+"."+be,dy);if(Me instanceof Error)return Me}return null}return u(W)}function w(F){if(!Array.isArray(F))return Uy("Invalid argument supplied to oneOfType, expected an instance of array."),AA;for(var W=0;W<F.length;W++){var j=F[W];if(typeof j!="function")return Uy("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+$(j)+" at index "+W+"."),AA}function X(te,J,ie,se,le){for(var be=[],Me=0;Me<F.length;Me++){var Se=F[Me],Ue=Se(te,J,ie,se,le,dy);if(Ue==null)return null;Ue.data&&fk(Ue.data,"expectedType")&&be.push(Ue.data.expectedType)}var Xe=be.length>0?", expected one of type ["+be.join(", ")+"]":"";return new l("Invalid "+se+" `"+le+"` supplied to "+("`"+ie+"`"+Xe+"."))}return u(X)}function T(){function F(W,j,X,te,J){return P(W[j])?null:new l("Invalid "+te+" `"+J+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return u(F)}function A(F,W,j,X,te){return new l((F||"React class")+": "+W+" type `"+j+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+te+"`.")}function M(F){function W(j,X,te,J,ie){var se=j[X],le=k(se);if(le!=="object")return new l("Invalid "+J+" `"+ie+"` of type `"+le+"` "+("supplied to `"+te+"`, expected `object`."));for(var be in F){var Me=F[be];if(typeof Me!="function")return A(te,J,ie,be,N(Me));var Se=Me(se,be,te,J,ie+"."+be,dy);if(Se)return Se}return null}return u(W)}function D(F){function W(j,X,te,J,ie){var se=j[X],le=k(se);if(le!=="object")return new l("Invalid "+J+" `"+ie+"` of type `"+le+"` "+("supplied to `"+te+"`, expected `object`."));var be=nce({},j[X],F);for(var Me in be){var Se=F[Me];if(fk(F,Me)&&typeof Se!="function")return A(te,J,ie,Me,N(Se));if(!Se)return new l("Invalid "+J+" `"+ie+"` key `"+Me+"` supplied to `"+te+"`.\nBad object: "+JSON.stringify(j[X],null," ")+` Valid keys: `+JSON.stringify(Object.keys(F),null," "));var Ue=Se(se,Me,te,J,ie+"."+Me,dy);if(Ue)return Ue}return null}return u(W)}function P(F){switch(typeof F){case"number":case"string":case"undefined":return!0;case"boolean":return!F;case"object":if(Array.isArray(F))return F.every(P);if(F===null||t(F))return!0;var W=a(F);if(W){var j=W.call(F),X;if(W!==F.entries){for(;!(X=j.next()).done;)if(!P(X.value))return!1}else for(;!(X=j.next()).done;){var te=X.value;if(te&&!P(te[1]))return!1}}else return!1;return!0;default:return!1}}function O(F,W){return F==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function k(F){var W=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":O(W,F)?"symbol":W}function N(F){if(typeof F>"u"||F===null)return""+F;var W=k(F);if(W==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return W}function $(F){var W=N(F);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function H(F){return!F.constructor||!F.constructor.name?i:F.constructor.name}return o.checkPropTypes=KH,o.resetWarningCache=KH.resetWarningCache,o.PropTypes=o,o};{var ice=P1,oce=!0;Zue.exports=ace(ice.isElement,oce)}function sce(t){const{prototype:e={}}=t;return Boolean(e.isReactComponent)}function YX(t,e,r,n,a){const i=t[e],o=a||e;if(i==null||typeof window>"u")return null;let s;const l=i.type;return typeof l=="function"&&!sce(l)&&(s="Did you accidentally use a plain function component for an element instead?"),s!==void 0?new Error(`Invalid ${n} \`${o}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const qX=Th(E.element,YX);qX.isRequired=Th(E.element.isRequired,YX);const _S=qX;function lce(t){const{prototype:e={}}=t;return Boolean(e.isReactComponent)}function uce(t,e,r,n,a){const i=t[e],o=a||e;if(i==null||typeof window>"u")return null;let s;return typeof i=="function"&&!lce(i)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${n} \`${o}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const eF=Th(E.elementType,uce),cce="exact-prop: ";function VM(t){return oe({},t,{[cce]:e=>{const r=Object.keys(e).filter(n=>!t.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}})}var ng={},fce={get exports(){return ng},set exports(t){ng=t}},yn={};/** * @license React * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */(function(){var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),g=!1,m=!1,x=!1,_=!1,w=!1,T;T=Symbol.for("react.module.reference");function A(Ie){return!!(typeof Ie=="string"||typeof Ie=="function"||Ie===r||Ie===a||w||Ie===n||Ie===u||Ie===c||_||Ie===v||g||m||x||typeof Ie=="object"&&Ie!==null&&(Ie.$$typeof===p||Ie.$$typeof===d||Ie.$$typeof===i||Ie.$$typeof===o||Ie.$$typeof===l||Ie.$$typeof===T||Ie.getModuleId!==void 0))}function M(Ie){if(typeof Ie=="object"&&Ie!==null){var Ct=Ie.$$typeof;switch(Ct){case t:var Ot=Ie.type;switch(Ot){case r:case a:case n:case u:case c:return Ot;default:var jt=Ot&&Ot.$$typeof;switch(jt){case s:case o:case l:case p:case d:case i:return jt;default:return Ct}}case e:return Ct}}}var D=o,P=i,O=t,k=l,N=r,$=p,H=d,F=e,W=a,j=n,X=u,te=c,J=!1,ie=!1;function se(Ie){return J||(J=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function le(Ie){return ie||(ie=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function be(Ie){return M(Ie)===o}function Me(Ie){return M(Ie)===i}function Se(Ie){return typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===t}function Ue(Ie){return M(Ie)===l}function Xe(Ie){return M(Ie)===r}function st(Ie){return M(Ie)===p}function $e(Ie){return M(Ie)===d}function Be(Ie){return M(Ie)===e}function et(Ie){return M(Ie)===a}function de(Ie){return M(Ie)===n}function xe(Ie){return M(Ie)===u}function xt(Ie){return M(Ie)===c}yn.ContextConsumer=D,yn.ContextProvider=P,yn.Element=O,yn.ForwardRef=k,yn.Fragment=N,yn.Lazy=$,yn.Memo=H,yn.Portal=F,yn.Profiler=W,yn.StrictMode=j,yn.Suspense=X,yn.SuspenseList=te,yn.isAsyncMode=se,yn.isConcurrentMode=le,yn.isContextConsumer=be,yn.isContextProvider=Me,yn.isElement=Se,yn.isForwardRef=Ue,yn.isFragment=Xe,yn.isLazy=st,yn.isMemo=$e,yn.isPortal=Be,yn.isProfiler=et,yn.isStrictMode=de,yn.isSuspense=xe,yn.isSuspenseList=xt,yn.isValidElementType=A,yn.typeOf=M})();(function(t){t.exports=yn})(fce);const dce=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function hce(t){const e=`${t}`.match(dce);return e&&e[1]||""}function XX(t,e=""){return t.displayName||t.name||hce(t)||e}function QH(t,e,r){const n=XX(e);return t.displayName||(n!==""?`${r}(${n})`:r)}function pce(t){if(t!=null){if(typeof t=="string")return t;if(typeof t=="function")return XX(t,"Component");if(typeof t=="object")switch(t.$$typeof){case ng.ForwardRef:return QH(t,t.render,"ForwardRef");case ng.Memo:return QH(t,t.type,"memo");default:return}}}function g0(t,e,r,n,a){const i=t[e],o=a||e;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${n} \`${o}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}const vce=E.oneOfType([E.func,E.object]),Cf=vce;function zt(t){if(typeof t!="string")throw new Error("MUI: `capitalize(string)` expects a string argument.");return t.charAt(0).toUpperCase()+t.slice(1)}function JH(...t){return t.reduce((e,r)=>r==null?e:function(...a){e.apply(this,a),r.apply(this,a)},()=>{})}function ZX(t,e=166){let r;function n(...a){const i=()=>{t.apply(this,a)};clearTimeout(r),r=setTimeout(i,e)}return n.clear=()=>{clearTimeout(r)},n}function dk(t,e){return Y.isValidElement(t)&&e.indexOf(t.type.muiName)!==-1}function us(t){return t&&t.ownerDocument||document}function ag(t){return us(t).defaultView||window}function gce(t,e){const r=e?oe({},e.propTypes):null;return a=>(i,o,s,l,u,...c)=>{const d=u||o,p=r==null?void 0:r[d];if(p){const v=p(i,o,s,l,u,...c);if(v)return v}return typeof i[o]<"u"&&!i[a]?new Error(`The prop \`${d}\` of \`${t}\` can only be used together with the \`${a}\` prop.`):null}}function Mz(t,e){typeof t=="function"?t(e):t&&(t.current=e)}const mce=typeof window<"u"?Y.useLayoutEffect:Y.useEffect,m0=mce;let e4=0;function yce(t){const[e,r]=Y.useState(t),n=t||e;return Y.useEffect(()=>{e==null&&(e4+=1,r(`mui-${e4}`))},[e]),n}const t4=rg["useId"];function bce(t){if(t4!==void 0){const e=t4();return t??e}return yce(t)}function r4({controlled:t,default:e,name:r,state:n="value"}){const{current:a}=Y.useRef(t!==void 0),[i,o]=Y.useState(e),s=a?t:i;{Y.useEffect(()=>{a!==(t!==void 0)&&console.error([`MUI: A component is changing the ${a?"":"un"}controlled ${n} state of ${r} to be ${a?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(` `))},[n,r,t]);const{current:u}=Y.useRef(e);Y.useEffect(()=>{!a&&u!==e&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(` `))},[JSON.stringify(e)])}const l=Y.useCallback(u=>{a||o(u)},[]);return[s,l]}function Zy(t){const e=Y.useRef(t);return m0(()=>{e.current=t}),Y.useCallback((...r)=>(0,e.current)(...r),[])}function Bo(...t){return Y.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(r=>{Mz(r,e)})},t)}let UM=!0,Dz=!1,n4;const xce={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function _ce(t){const{type:e,tagName:r}=t;return!!(r==="INPUT"&&xce[e]&&!t.readOnly||r==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function Sce(t){t.metaKey||t.altKey||t.ctrlKey||(UM=!0)}function hk(){UM=!1}function wce(){this.visibilityState==="hidden"&&Dz&&(UM=!0)}function Tce(t){t.addEventListener("keydown",Sce,!0),t.addEventListener("mousedown",hk,!0),t.addEventListener("pointerdown",hk,!0),t.addEventListener("touchstart",hk,!0),t.addEventListener("visibilitychange",wce,!0)}function Cce(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch{}return UM||_ce(e)}function Ace(){const t=Y.useCallback(a=>{a!=null&&Tce(a.ownerDocument)},[]),e=Y.useRef(!1);function r(){return e.current?(Dz=!0,window.clearTimeout(n4),n4=window.setTimeout(()=>{Dz=!1},100),e.current=!1,!0):!1}function n(a){return Cce(a)?(e.current=!0,!0):!1}return{isFocusVisibleRef:e,onFocus:n,onBlur:r,ref:t}}function KX(t){const e=t.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}function Ece(t){const e=typeof t;switch(e){case"number":return Number.isNaN(t)?"NaN":Number.isFinite(t)?t!==Math.floor(t)?"float":"number":"Infinity";case"object":return t===null?"null":t.constructor.name;default:return e}}function Rce(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}const Mce=Number.isInteger||Rce;function QX(t,e,r,n){const a=t[e];if(a==null||!Mce(a)){const i=Ece(a);return new RangeError(`Invalid ${n} \`${e}\` of type \`${i}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function JX(t,e,...r){return t[e]===void 0?null:QX(t,e,...r)}function a4(){return null}JX.isRequired=QX;a4.isRequired=a4;const eZ=JX;function tF(t,e){const r=oe({},e);return Object.keys(t).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=oe({},t[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=t[n]||{},i=e[n];r[n]={},!i||!Object.keys(i)?r[n]=a:!a||!Object.keys(a)?r[n]=i:(r[n]=oe({},i),Object.keys(a).forEach(o=>{r[n][o]=tF(a[o],i[o])}))}else r[n]===void 0&&(r[n]=t[n])}),r}function _n(t,e,r=void 0){const n={};return Object.keys(t).forEach(a=>{n[a]=t[a].reduce((i,o)=>{if(o){const s=e(o);s!==""&&i.push(s),r&&r[o]&&i.push(r[o])}return i},[]).join(" ")}),n}const i4=t=>t,Dce=()=>{let t=i4;return{configure(e){t=e},generate(e){return t(e)},reset(){t=i4}}},Ice=Dce(),tZ=Ice,Pce={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function nn(t,e,r="Mui"){const n=Pce[e];return n?`${r}-${n}`:`${tZ.generate(t)}-${e}`}function fn(t,e,r="Mui"){const n={};return e.forEach(a=>{n[a]=nn(t,a,r)}),n}function Gt(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function rZ(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var Lce=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Oce=rZ(function(t){return Lce.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function kce(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Nce(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Bce=function(){function t(r){var n=this;this._insertTag=function(a){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,i),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!1:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Nce(this));var a=this.tags[this.tags.length-1];{var i=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;i&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule: `+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!i}if(this.isSpeedy){var o=kce(a);try{o.insertRule(n,o.cssRules.length)}catch(s){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)||console.error('There was a problem inserting the following rule: "'+n+'"',s)}}else a.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},t}(),zi="-ms-",hR="-moz-",rn="-webkit-",rF="comm",nF="rule",aF="decl",zce="@import",nZ="@keyframes",$ce=Math.abs,WM=String.fromCharCode,Fce=Object.assign;function Vce(t,e){return yi(t,0)^45?(((e<<2^yi(t,0))<<2^yi(t,1))<<2^yi(t,2))<<2^yi(t,3):0}function aZ(t){return t.trim()}function Uce(t,e){return(t=e.exec(t))?t[0]:t}function un(t,e,r){return t.replace(e,r)}function Iz(t,e){return t.indexOf(e)}function yi(t,e){return t.charCodeAt(e)|0}function L1(t,e,r){return t.slice(e,r)}function qu(t){return t.length}function iF(t){return t.length}function EA(t,e){return e.push(t),t}function Wce(t,e){return t.map(e).join("")}var HM=1,y0=1,iZ=0,zo=0,Ma=0,k0="";function GM(t,e,r,n,a,i,o){return{value:t,root:e,parent:r,type:n,props:a,children:i,line:HM,column:y0,length:o,return:""}}function c_(t,e){return Fce(GM("",null,null,"",null,null,0),t,{length:-t.length},e)}function Hce(){return Ma}function Gce(){return Ma=zo>0?yi(k0,--zo):0,y0--,Ma===10&&(y0=1,HM--),Ma}function cs(){return Ma=zo<iZ?yi(k0,zo++):0,y0++,Ma===10&&(y0=1,HM++),Ma}function ic(){return yi(k0,zo)}function $E(){return zo}function SS(t,e){return L1(k0,t,e)}function O1(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function oZ(t){return HM=y0=1,iZ=qu(k0=t),zo=0,[]}function sZ(t){return k0="",t}function FE(t){return aZ(SS(zo-1,Pz(t===91?t+2:t===40?t+1:t)))}function jce(t){for(;(Ma=ic())&&Ma<33;)cs();return O1(t)>2||O1(Ma)>3?"":" "}function Yce(t,e){for(;--e&&cs()&&!(Ma<48||Ma>102||Ma>57&&Ma<65||Ma>70&&Ma<97););return SS(t,$E()+(e<6&&ic()==32&&cs()==32))}function Pz(t){for(;cs();)switch(Ma){case t:return zo;case 34:case 39:t!==34&&t!==39&&Pz(Ma);break;case 40:t===41&&Pz(t);break;case 92:cs();break}return zo}function qce(t,e){for(;cs()&&t+Ma!==47+10;)if(t+Ma===42+42&&ic()===47)break;return"/*"+SS(e,zo-1)+"*"+WM(t===47?t:cs())}function Xce(t){for(;!O1(ic());)cs();return SS(t,zo)}function Zce(t){return sZ(VE("",null,null,null,[""],t=oZ(t),0,[0],t))}function VE(t,e,r,n,a,i,o,s,l){for(var u=0,c=0,d=o,p=0,v=0,g=0,m=1,x=1,_=1,w=0,T="",A=a,M=i,D=n,P=T;x;)switch(g=w,w=cs()){case 40:if(g!=108&&yi(P,d-1)==58){Iz(P+=un(FE(w),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:P+=FE(w);break;case 9:case 10:case 13:case 32:P+=jce(g);break;case 92:P+=Yce($E()-1,7);continue;case 47:switch(ic()){case 42:case 47:EA(Kce(qce(cs(),$E()),e,r),l);break;default:P+="/"}break;case 123*m:s[u++]=qu(P)*_;case 125*m:case 59:case 0:switch(w){case 0:case 125:x=0;case 59+c:v>0&&qu(P)-d&&EA(v>32?s4(P+";",n,r,d-1):s4(un(P," ","")+";",n,r,d-2),l);break;case 59:P+=";";default:if(EA(D=o4(P,e,r,u,c,a,s,T,A=[],M=[],d),i),w===123)if(c===0)VE(P,e,D,D,A,i,d,s,M);else switch(p===99&&yi(P,3)===110?100:p){case 100:case 109:case 115:VE(t,D,D,n&&EA(o4(t,D,D,0,0,a,s,T,a,A=[],d),M),a,M,d,s,n?A:M);break;default:VE(P,D,D,D,[""],M,0,s,M)}}u=c=v=0,m=_=1,T=P="",d=o;break;case 58:d=1+qu(P),v=g;default:if(m<1){if(w==123)--m;else if(w==125&&m++==0&&Gce()==125)continue}switch(P+=WM(w),w*m){case 38:_=c>0?1:(P+="\f",-1);break;case 44:s[u++]=(qu(P)-1)*_,_=1;break;case 64:ic()===45&&(P+=FE(cs())),p=ic(),c=d=qu(T=P+=Xce($E())),w++;break;case 45:g===45&&qu(P)==2&&(m=0)}}return i}function o4(t,e,r,n,a,i,o,s,l,u,c){for(var d=a-1,p=a===0?i:[""],v=iF(p),g=0,m=0,x=0;g<n;++g)for(var _=0,w=L1(t,d+1,d=$ce(m=o[g])),T=t;_<v;++_)(T=aZ(m>0?p[_]+" "+w:un(w,/&\f/g,p[_])))&&(l[x++]=T);return GM(t,e,r,a===0?nF:s,l,u,c)}function Kce(t,e,r){return GM(t,e,r,rF,WM(Hce()),L1(t,2,-2),0)}function s4(t,e,r,n){return GM(t,e,r,aF,L1(t,0,n),L1(t,n+1,-1),n)}function n0(t,e){for(var r="",n=iF(t),a=0;a<n;a++)r+=e(t[a],a,t,e)||"";return r}function Qce(t,e,r,n){switch(t.type){case zce:case aF:return t.return=t.return||t.value;case rF:return"";case nZ:return t.return=t.value+"{"+n0(t.children,n)+"}";case nF:t.value=t.props.join(",")}return qu(r=n0(t.children,n))?t.return=t.value+"{"+r+"}":""}function Jce(t){var e=iF(t);return function(r,n,a,i){for(var o="",s=0;s<e;s++)o+=t[s](r,n,a,i)||"";return o}}var efe=function(e,r,n){for(var a=0,i=0;a=i,i=ic(),a===38&&i===12&&(r[n]=1),!O1(i);)cs();return SS(e,zo)},tfe=function(e,r){var n=-1,a=44;do switch(O1(a)){case 0:a===38&&ic()===12&&(r[n]=1),e[n]+=efe(zo-1,r,n);break;case 2:e[n]+=FE(a);break;case 4:if(a===44){e[++n]=ic()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=WM(a)}while(a=cs());return e},rfe=function(e,r){return sZ(tfe(oZ(e),r))},l4=new WeakMap,nfe=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,a=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!l4.get(n))&&!a){l4.set(e,!0);for(var i=[],o=rfe(r,i),s=n.props,l=0,u=0;l<o.length;l++)for(var c=0;c<s.length;c++,u++)e.props[u]=i[l]?o[l].replace(/&\f/g,s[c]):s[c]+" "+o[l]}}},afe=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}},ife="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",ofe=function(e){return e.type==="comm"&&e.children.indexOf(ife)>-1},sfe=function(e){return function(r,n,a){if(!(r.type!=="rule"||e.compat)){var i=r.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var o=r.parent===a[0],s=o?a[0].children:a,l=s.length-1;l>=0;l--){var u=s[l];if(u.line<r.line)break;if(u.column<r.column){if(ofe(u))return;break}}i.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},lZ=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},lfe=function(e,r){for(var n=e-1;n>=0;n--)if(!lZ(r[n]))return!0;return!1},u4=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},ufe=function(e,r,n){lZ(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),u4(e)):lfe(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),u4(e)))};function uZ(t,e){switch(Vce(t,e)){case 5103:return rn+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return rn+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return rn+t+hR+t+zi+t+t;case 6828:case 4268:return rn+t+zi+t+t;case 6165:return rn+t+zi+"flex-"+t+t;case 5187:return rn+t+un(t,/(\w+).+(:[^]+)/,rn+"box-$1$2"+zi+"flex-$1$2")+t;case 5443:return rn+t+zi+"flex-item-"+un(t,/flex-|-self/,"")+t;case 4675:return rn+t+zi+"flex-line-pack"+un(t,/align-content|flex-|-self/,"")+t;case 5548:return rn+t+zi+un(t,"shrink","negative")+t;case 5292:return rn+t+zi+un(t,"basis","preferred-size")+t;case 6060:return rn+"box-"+un(t,"-grow","")+rn+t+zi+un(t,"grow","positive")+t;case 4554:return rn+un(t,/([^-])(transform)/g,"$1"+rn+"$2")+t;case 6187:return un(un(un(t,/(zoom-|grab)/,rn+"$1"),/(image-set)/,rn+"$1"),t,"")+t;case 5495:case 3959:return un(t,/(image-set\([^]*)/,rn+"$1$`$1");case 4968:return un(un(t,/(.+:)(flex-)?(.*)/,rn+"box-pack:$3"+zi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+rn+t+t;case 4095:case 3583:case 4068:case 2532:return un(t,/(.+)-inline(.+)/,rn+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(qu(t)-1-e>6)switch(yi(t,e+1)){case 109:if(yi(t,e+4)!==45)break;case 102:return un(t,/(.+:)(.+)-([^]+)/,"$1"+rn+"$2-$3$1"+hR+(yi(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Iz(t,"stretch")?uZ(un(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(yi(t,e+1)!==115)break;case 6444:switch(yi(t,qu(t)-3-(~Iz(t,"!important")&&10))){case 107:return un(t,":",":"+rn)+t;case 101:return un(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+rn+(yi(t,14)===45?"inline-":"")+"box$3$1"+rn+"$2$3$1"+zi+"$2box$3")+t}break;case 5936:switch(yi(t,e+11)){case 114:return rn+t+zi+un(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return rn+t+zi+un(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return rn+t+zi+un(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return rn+t+zi+t+t}return t}var cfe=function(e,r,n,a){if(e.length>-1&&!e.return)switch(e.type){case aF:e.return=uZ(e.value,e.length);break;case nZ:return n0([c_(e,{value:un(e.value,"@","@"+rn)})],a);case nF:if(e.length)return Wce(e.props,function(i){switch(Uce(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return n0([c_(e,{props:[un(i,/:(read-\w+)/,":"+hR+"$1")]})],a);case"::placeholder":return n0([c_(e,{props:[un(i,/:(plac\w+)/,":"+rn+"input-$1")]}),c_(e,{props:[un(i,/:(plac\w+)/,":"+hR+"$1")]}),c_(e,{props:[un(i,/:(plac\w+)/,zi+"input-$1")]})],a)}return""})}},ffe=[cfe],dfe=function(e){var r=e.key;if(!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var x=m.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var a=e.stylisPlugins||ffe;if(/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var i={},o,s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var x=m.getAttribute("data-emotion").split(" "),_=1;_<x.length;_++)i[x[_]]=!0;s.push(m)});var l,u=[nfe,afe];u.push(sfe({get compat(){return g.compat}}),ufe);{var c,d=[Qce,function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==rF&&c.insert(m.value+"{}"))}],p=Jce(u.concat(a,d)),v=function(x){return n0(Zce(x),p)};l=function(x,_,w,T){c=w,_.map!==void 0&&(c={insert:function(M){w.insert(M+_.map)}}),v(x?x+"{"+_.styles+"}":_.styles),T&&(g.inserted[_.name]=!0)}}var g={key:r,sheet:new Bce({key:r,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:l};return g.sheet.hydrate(s),g};const cZ=dfe;var oF=P1,hfe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},pfe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vfe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fZ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},sF={};sF[oF.ForwardRef]=vfe;sF[oF.Memo]=fZ;function c4(t){return oF.isMemo(t)?fZ:sF[t.$$typeof]||hfe}var gfe=Object.defineProperty,mfe=Object.getOwnPropertyNames,f4=Object.getOwnPropertySymbols,yfe=Object.getOwnPropertyDescriptor,bfe=Object.getPrototypeOf,d4=Object.prototype;function dZ(t,e,r){if(typeof e!="string"){if(d4){var n=bfe(e);n&&n!==d4&&dZ(t,n,r)}var a=mfe(e);f4&&(a=a.concat(f4(e)));for(var i=c4(t),o=c4(e),s=0;s<a.length;++s){var l=a[s];if(!pfe[l]&&!(r&&r[l])&&!(o&&o[l])&&!(i&&i[l])){var u=yfe(e,l);try{gfe(t,l,u)}catch{}}}}return t}var H6e=dZ,xfe=!0;function lF(t,e,r){var n="";return r.split(" ").forEach(function(a){t[a]!==void 0?e.push(t[a]+";"):n+=a+" "}),n}var jM=function(e,r,n){var a=e.key+"-"+r.name;(n===!1||xfe===!1)&&e.registered[a]===void 0&&(e.registered[a]=r.styles)},YM=function(e,r,n){jM(e,r,n);var a=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var i=r;do e.insert(r===i?"."+a:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};function _fe(t){for(var e=0,r,n=0,a=t.length;a>=4;++n,a-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(a){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Sfe={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},h4=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". You can read more about this here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,wfe="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Tfe=/[A-Z]|^ms/g,hZ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,uF=function(e){return e.charCodeAt(1)===45},p4=function(e){return e!=null&&typeof e!="boolean"},pk=rZ(function(t){return uF(t)?t:t.replace(Tfe,"-$&").toLowerCase()}),pR=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(hZ,function(n,a,i){return Xu={name:a,styles:i,next:Xu},a})}return Sfe[e]!==1&&!uF(e)&&typeof r=="number"&&r!==0?r+"px":r};{var Cfe=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Afe=["normal","none","initial","inherit","unset"],Efe=pR,Rfe=/^-ms-/,Mfe=/-(.)/g,v4={};pR=function(e,r){if(e==="content"&&(typeof r!="string"||Afe.indexOf(r)===-1&&!Cfe.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var n=Efe(e,r);return n!==""&&!uF(e)&&e.indexOf("-")!==-1&&v4[e]===void 0&&(v4[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Rfe,"ms-").replace(Mfe,function(a,i){return i.toUpperCase()})+"?")),n}}var pZ="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function k1(t,e,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(pZ);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Xu={name:r.name,styles:r.styles,next:Xu},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Xu={name:n.name,styles:n.styles,next:Xu},n=n.next;var a=r.styles+";";return r.map!==void 0&&(a+=r.map),a}return Dfe(t,e,r)}case"function":{if(t!==void 0){var i=Xu,o=r(t);return Xu=i,k1(t,e,o)}else console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":{var s=[],l=r.replace(hZ,function(c,d,p){var v="animation"+s.length;return s.push("const "+v+" = keyframes`"+p.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+v+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+l+"`"]).join(` `)+` You should wrap it with \`css\` like this: `+("css`"+l+"`"))}break}if(e==null)return r;var u=e[r];return u!==void 0?u:r}function Dfe(t,e,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=k1(t,e,r[a])+";";else for(var i in r){var o=r[i];if(typeof o!="object")e!=null&&e[o]!==void 0?n+=i+"{"+e[o]+"}":p4(o)&&(n+=pk(i)+":"+pR(i,o)+";");else{if(i==="NO_COMPONENT_SELECTOR")throw new Error(pZ);if(Array.isArray(o)&&typeof o[0]=="string"&&(e==null||e[o[0]]===void 0))for(var s=0;s<o.length;s++)p4(o[s])&&(n+=pk(i)+":"+pR(i,o[s])+";");else{var l=k1(t,e,o);switch(i){case"animation":case"animationName":{n+=pk(i)+":"+l+";";break}default:i==="undefined"&&console.error(wfe),n+=i+"{"+l+"}"}}}}return n}var g4=/label:\s*([^\s;\n{]+)\s*(;|$)/g,vZ;vZ=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;var Xu,b0=function(e,r,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,i="";Xu=void 0;var o=e[0];o==null||o.raw===void 0?(a=!1,i+=k1(n,r,o)):(o[0]===void 0&&console.error(h4),i+=o[0]);for(var s=1;s<e.length;s++)i+=k1(n,r,e[s]),a&&(o[s]===void 0&&console.error(h4),i+=o[s]);var l;i=i.replace(vZ,function(p){return l=p,""}),g4.lastIndex=0;for(var u="",c;(c=g4.exec(i))!==null;)u+="-"+c[1];var d=_fe(i)+u;return{name:d,styles:i,map:l,next:Xu,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}},Ife=function(e){return e()},gZ=rg["useInsertionEffect"]?rg["useInsertionEffect"]:!1,cF=gZ||Ife,m4=gZ||Y.useLayoutEffect,fF={}.hasOwnProperty,dF=Y.createContext(typeof HTMLElement<"u"?cZ({key:"css"}):null);dF.displayName="EmotionCacheContext";var Pfe=dF.Provider,qM=function(e){return Y.forwardRef(function(r,n){var a=Y.useContext(dF);return e(r,a,n)})},bg=Y.createContext({});bg.displayName="EmotionThemeContext";var G6e=function(){return Y.useContext(bg)},y4=function(e){var r=e.split(".");return r[r.length-1]},Lfe=function(e){var r=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);if(r||(r=/^([A-Za-z0-9$.]+)@/.exec(e),r))return y4(r[1])},Ofe=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),kfe=function(e){return e.replace(/\$/g,"-")},Nfe=function(e){if(e)for(var r=e.split(` `),n=0;n<r.length;n++){var a=Lfe(r[n]);if(a){if(Ofe.has(a))break;if(/^[A-Z]/.test(a))return kfe(a)}}},Lz="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Oz="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Bfe=function(e,r){if(typeof r.css=="string"&&r.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+r.css+"`");var n={};for(var a in r)fF.call(r,a)&&(n[a]=r[a]);if(n[Lz]=e,r.css&&(typeof r.css!="object"||typeof r.css.name!="string"||r.css.name.indexOf("-")===-1)){var i=Nfe(new Error().stack);i&&(n[Oz]=i)}return n},zfe=function(e){var r=e.cache,n=e.serialized,a=e.isStringTag;return jM(r,n,a),cF(function(){return YM(r,n,a)}),null},mZ=qM(function(t,e,r){var n=t.css;typeof n=="string"&&e.registered[n]!==void 0&&(n=e.registered[n]);var a=t[Lz],i=[n],o="";typeof t.className=="string"?o=lF(e.registered,i,t.className):t.className!=null&&(o=t.className+" ");var s=b0(i,void 0,Y.useContext(bg));if(s.name.indexOf("-")===-1){var l=t[Oz];l&&(s=b0([s,"label:"+l+";"]))}o+=e.key+"-"+s.name;var u={};for(var c in t)fF.call(t,c)&&c!=="css"&&c!==Lz&&c!==Oz&&(u[c]=t[c]);return u.ref=r,u.className=o,Y.createElement(Y.Fragment,null,Y.createElement(zfe,{cache:e,serialized:s,isStringTag:typeof a=="string"}),Y.createElement(a,u))});mZ.displayName="EmotionCssPropInternal";var $fe={name:"@emotion/react",version:"11.10.5",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":"./macro.js"},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.js","macro.d.ts","macro.js.flow"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.10.5","@emotion/cache":"^11.10.5","@emotion/serialize":"^1.1.1","@emotion/use-insertion-effect-with-fallbacks":"^1.0.0","@emotion/utils":"^1.2.0","@emotion/weak-memoize":"^0.3.0","hoist-non-react-statics":"^3.3.1"},peerDependencies:{"@babel/core":"^7.0.0",react:">=16.8.0"},peerDependenciesMeta:{"@babel/core":{optional:!0},"@types/react":{optional:!0}},devDependencies:{"@babel/core":"^7.18.5","@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.10.5","@emotion/css-prettifier":"1.1.1","@emotion/server":"11.10.0","@emotion/styled":"11.10.5","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":"./macro.js"}}}},j6e=function(e,r){var n=arguments;if(r==null||!fF.call(r,"css"))return Y.createElement.apply(void 0,n);var a=n.length,i=new Array(a);i[0]=mZ,i[1]=Bfe(e,r);for(var o=2;o<a;o++)i[o]=n[o];return Y.createElement.apply(null,i)},b4=!1,yZ=qM(function(t,e){!b4&&(t.className||t.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),b4=!0);var r=t.styles,n=b0([r],void 0,Y.useContext(bg)),a=Y.useRef();return m4(function(){var i=e.key+"-global",o=new e.sheet.constructor({key:i,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return e.sheet.tags.length&&(o.before=e.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",i),o.hydrate([l])),a.current=[o,s],function(){o.flush()}},[e]),m4(function(){var i=a.current,o=i[0],s=i[1];if(s){i[1]=!1;return}if(n.next!==void 0&&YM(e,n.next,!0),o.tags.length){var l=o.tags[o.tags.length-1].nextElementSibling;o.before=l,o.flush()}e.insert("",n,o,!1)},[e,n.name]),null});yZ.displayName="EmotionGlobal";function N0(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return b0(e)}var Ch=function(){var e=N0.apply(void 0,arguments),r="animation-"+e.name;return{name:r,styles:"@keyframes "+r+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Ffe=function t(e){for(var r=e.length,n=0,a="";n<r;n++){var i=e[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=t(i);else{i.styles!==void 0&&i.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),o="";for(var s in i)i[s]&&s&&(o&&(o+=" "),o+=s)}break}default:o=i}o&&(a&&(a+=" "),a+=o)}}return a};function Vfe(t,e,r){var n=[],a=lF(t,n,r);return n.length<2?r:a+e(n)}var Ufe=function(e){var r=e.cache,n=e.serializedArr;return cF(function(){for(var a=0;a<n.length;a++)YM(r,n[a],!1)}),null},Wfe=qM(function(t,e){var r=!1,n=[],a=function(){if(r)throw new Error("css can only be used during render");for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];var p=b0(c,e.registered);return n.push(p),jM(e,p,!1),e.key+"-"+p.name},i=function(){if(r)throw new Error("cx can only be used during render");for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];return Vfe(e.registered,a,Ffe(c))},o={css:a,cx:i,theme:Y.useContext(bg)},s=t.children(o);return r=!0,Y.createElement(Y.Fragment,null,Y.createElement(Ufe,{cache:e,serializedArr:n}),s)});Wfe.displayName="EmotionClassNames";{var x4=!0,Hfe=typeof jest<"u"||typeof vi<"u";if(x4&&!Hfe){var _4=typeof globalThis<"u"?globalThis:x4?window:global,S4="__EMOTION_REACT_"+$fe.version.split(".")[0]+"__";_4[S4]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),_4[S4]=!0}}var Gfe=Oce,jfe=function(e){return e!=="theme"},w4=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?Gfe:jfe},T4=function(e,r,n){var a;if(r){var i=r.shouldForwardProp;a=e.__emotion_forwardProp&&i?function(o){return e.__emotion_forwardProp(o)&&i(o)}:i}return typeof a!="function"&&n&&(a=e.__emotion_forwardProp),a},C4=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". You can read more about this here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Yfe=function(e){var r=e.cache,n=e.serialized,a=e.isStringTag;return jM(r,n,a),cF(function(){return YM(r,n,a)}),null},qfe=function t(e,r){if(e===void 0)throw new Error(`You are trying to create a styled element with an undefined component. You may have forgotten to import it.`);var n=e.__emotion_real===e,a=n&&e.__emotion_base||e,i,o;r!==void 0&&(i=r.label,o=r.target);var s=T4(e,r,n),l=s||w4(a),u=!l("as");return function(){var c=arguments,d=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{c[0][0]===void 0&&console.error(C4),d.push(c[0][0]);for(var p=c.length,v=1;v<p;v++)c[0][v]===void 0&&console.error(C4),d.push(c[v],c[0][v])}var g=qM(function(m,x,_){var w=u&&m.as||a,T="",A=[],M=m;if(m.theme==null){M={};for(var D in m)M[D]=m[D];M.theme=Y.useContext(bg)}typeof m.className=="string"?T=lF(x.registered,A,m.className):m.className!=null&&(T=m.className+" ");var P=b0(d.concat(A),x.registered,M);T+=x.key+"-"+P.name,o!==void 0&&(T+=" "+o);var O=u&&s===void 0?w4(w):l,k={};for(var N in m)u&&N==="as"||O(N)&&(k[N]=m[N]);return k.className=T,k.ref=_,Y.createElement(Y.Fragment,null,Y.createElement(Yfe,{cache:x,serialized:P,isStringTag:typeof w=="string"}),Y.createElement(w,k))});return g.displayName=i!==void 0?i:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",g.defaultProps=e.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=d,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return o===void 0?"NO_COMPONENT_SELECTOR":"."+o}}),g.withComponent=function(m,x){return t(m,oe({},r,x,{shouldForwardProp:T4(g,x,!0)})).apply(void 0,d)},g}};const Xfe=qfe;var Zfe=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],kz=Xfe.bind();Zfe.forEach(function(t){kz[t]=kz(t)});const Kfe=kz,Qfe=cZ({key:"css",prepend:!0});function bZ(t){const{injectFirst:e,children:r}=t;return e?re.jsx(Pfe,{value:Qfe,children:r}):r}bZ.propTypes={children:E.node,injectFirst:E.bool};function Jfe(t){return t==null||Object.keys(t).length===0}function xZ(t){const{styles:e,defaultTheme:r={}}=t,n=typeof e=="function"?a=>e(Jfe(a)?r:a):e;return re.jsx(yZ,{styles:n})}xZ.propTypes={defaultTheme:E.object,styles:E.oneOfType([E.string,E.object,E.func])};/** @license MUI v5.11.0 * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */function _Z(t,e){const r=Kfe(t,e);return(...n)=>{const a=typeof t=="string"?`"${t}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${a})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(` `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${a})(...args) API requires all its args to be defined.`),r(...n)}}const ede=(t,e)=>{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))},tde=E.oneOfType([E.number,E.string,E.object,E.array]),Ah=tde;function l1(t,e){return e?ls(t,e,{clone:!1}):t}const hF={xs:0,sm:600,md:900,lg:1200,xl:1536},A4={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${hF[t]}px)`};function ol(t,e,r){const n=t.theme||{};if(Array.isArray(e)){const i=n.breakpoints||A4;return e.reduce((o,s,l)=>(o[i.up(i.keys[l])]=r(e[l]),o),{})}if(typeof e=="object"){const i=n.breakpoints||A4;return Object.keys(e).reduce((o,s)=>{if(Object.keys(i.values||hF).indexOf(s)!==-1){const l=i.up(s);o[l]=r(e[s],s)}else{const l=s;o[l]=e[l]}return o},{})}return r(e)}function SZ(t={}){var e;return((e=t.keys)==null?void 0:e.reduce((n,a)=>{const i=t.up(a);return n[i]={},n},{}))||{}}function wZ(t,e){return t.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},e)}function Y6e(t,...e){const r=SZ(t),n=[r,...e].reduce((a,i)=>ls(a,i),{});return wZ(Object.keys(r),n)}function rde(t,e){if(typeof t!="object")return{};const r={},n=Object.keys(e);return Array.isArray(t)?n.forEach((a,i)=>{i<t.length&&(r[a]=!0)}):n.forEach(a=>{t[a]!=null&&(r[a]=!0)}),r}function XM({values:t,breakpoints:e,base:r}){const n=r||rde(t,e),a=Object.keys(n);if(a.length===0)return t;let i;return a.reduce((o,s,l)=>(Array.isArray(t)?(o[s]=t[l]!=null?t[l]:t[i],i=l):typeof t=="object"?(o[s]=t[s]!=null?t[s]:t[i],i=s):o[s]=t,o),{})}function ZM(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){const n=`vars.${e}`.split(".").reduce((a,i)=>a&&a[i]?a[i]:null,t);if(n!=null)return n}return e.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,t)}function vR(t,e,r,n=r){let a;return typeof t=="function"?a=t(r):Array.isArray(t)?a=t[r]||n:a=ZM(t,r)||n,e&&(a=e(a,n,t)),a}function dn(t){const{prop:e,cssProperty:r=t.prop,themeKey:n,transform:a}=t,i=o=>{if(o[e]==null)return null;const s=o[e],l=o.theme,u=ZM(l,n)||{};return ol(o,s,d=>{let p=vR(u,a,d);return d===p&&typeof d=="string"&&(p=vR(u,a,`${e}${d==="default"?"":zt(d)}`,d)),r===!1?p:{[r]:p}})};return i.propTypes={[e]:Ah},i.filterProps=[e],i}function KM(...t){const e=t.reduce((n,a)=>(a.filterProps.forEach(i=>{n[i]=a}),n),{}),r=n=>Object.keys(n).reduce((a,i)=>e[i]?l1(a,e[i](n)):a,{});return r.propTypes=t.reduce((n,a)=>Object.assign(n,a.propTypes),{}),r.filterProps=t.reduce((n,a)=>n.concat(a.filterProps),[]),r}function nde(t){const e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}const ade={m:"margin",p:"padding"},ide={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},E4={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ode=nde(t=>{if(t.length>2)if(E4[t])t=E4[t];else return[t];const[e,r]=t.split(""),n=ade[e],a=ide[r]||"";return Array.isArray(a)?a.map(i=>n+i):[n+a]}),QM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],JM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],sde=[...QM,...JM];function wS(t,e,r,n){var a;const i=(a=ZM(t,e,!1))!=null?a:r;return typeof i=="number"?o=>typeof o=="string"?o:(typeof o!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${o}.`),i*o):Array.isArray(i)?o=>typeof o=="string"?o:(Number.isInteger(o)?o>i.length-1&&console.error([`MUI: The value provided (${o}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${o} > ${i.length-1}, you need to add the missing values.`].join(` `)):console.error([`MUI: The \`theme.${e}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${e}\` as a number.`].join(` `)),i[o]):typeof i=="function"?i:(console.error([`MUI: The \`theme.${e}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(` `)),()=>{})}function TZ(t){return wS(t,"spacing",8,"spacing")}function TS(t,e){if(typeof e=="string"||e==null)return e;const r=Math.abs(e),n=t(r);return e>=0?n:typeof n=="number"?-n:`-${n}`}function lde(t,e){return r=>t.reduce((n,a)=>(n[a]=TS(e,r),n),{})}function ude(t,e,r,n){if(e.indexOf(r)===-1)return null;const a=ode(r),i=lde(a,n),o=t[r];return ol(t,o,i)}function CZ(t,e){const r=TZ(t.theme);return Object.keys(t).map(n=>ude(t,e,n,r)).reduce(l1,{})}function oa(t){return CZ(t,QM)}oa.propTypes=QM.reduce((t,e)=>(t[e]=Ah,t),{});oa.filterProps=QM;function sa(t){return CZ(t,JM)}sa.propTypes=JM.reduce((t,e)=>(t[e]=Ah,t),{});sa.filterProps=JM;sde.reduce((t,e)=>(t[e]=Ah,t),{});function Zu(t){return typeof t!="number"?t:`${t}px solid`}const cde=dn({prop:"border",themeKey:"borders",transform:Zu}),fde=dn({prop:"borderTop",themeKey:"borders",transform:Zu}),dde=dn({prop:"borderRight",themeKey:"borders",transform:Zu}),hde=dn({prop:"borderBottom",themeKey:"borders",transform:Zu}),pde=dn({prop:"borderLeft",themeKey:"borders",transform:Zu}),vde=dn({prop:"borderColor",themeKey:"palette"}),gde=dn({prop:"borderTopColor",themeKey:"palette"}),mde=dn({prop:"borderRightColor",themeKey:"palette"}),yde=dn({prop:"borderBottomColor",themeKey:"palette"}),bde=dn({prop:"borderLeftColor",themeKey:"palette"}),eD=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=wS(t.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:TS(e,n)});return ol(t,t.borderRadius,r)}return null};eD.propTypes={borderRadius:Ah};eD.filterProps=["borderRadius"];KM(cde,fde,dde,hde,pde,vde,gde,mde,yde,bde,eD);const tD=t=>{if(t.gap!==void 0&&t.gap!==null){const e=wS(t.theme,"spacing",8,"gap"),r=n=>({gap:TS(e,n)});return ol(t,t.gap,r)}return null};tD.propTypes={gap:Ah};tD.filterProps=["gap"];const rD=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=wS(t.theme,"spacing",8,"columnGap"),r=n=>({columnGap:TS(e,n)});return ol(t,t.columnGap,r)}return null};rD.propTypes={columnGap:Ah};rD.filterProps=["columnGap"];const nD=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=wS(t.theme,"spacing",8,"rowGap"),r=n=>({rowGap:TS(e,n)});return ol(t,t.rowGap,r)}return null};nD.propTypes={rowGap:Ah};nD.filterProps=["rowGap"];const xde=dn({prop:"gridColumn"}),_de=dn({prop:"gridRow"}),Sde=dn({prop:"gridAutoFlow"}),wde=dn({prop:"gridAutoColumns"}),Tde=dn({prop:"gridAutoRows"}),Cde=dn({prop:"gridTemplateColumns"}),Ade=dn({prop:"gridTemplateRows"}),Ede=dn({prop:"gridTemplateAreas"}),Rde=dn({prop:"gridArea"});KM(tD,rD,nD,xde,_de,Sde,wde,Tde,Cde,Ade,Ede,Rde);function a0(t,e){return e==="grey"?e:t}const Mde=dn({prop:"color",themeKey:"palette",transform:a0}),Dde=dn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:a0}),Ide=dn({prop:"backgroundColor",themeKey:"palette",transform:a0});KM(Mde,Dde,Ide);function as(t){return t<=1&&t!==0?`${t*100}%`:t}const Pde=dn({prop:"width",transform:as}),pF=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=r=>{var n,a,i;return{maxWidth:((n=t.theme)==null||(a=n.breakpoints)==null||(i=a.values)==null?void 0:i[r])||hF[r]||as(r)}};return ol(t,t.maxWidth,e)}return null};pF.filterProps=["maxWidth"];const Lde=dn({prop:"minWidth",transform:as}),Ode=dn({prop:"height",transform:as}),kde=dn({prop:"maxHeight",transform:as}),Nde=dn({prop:"minHeight",transform:as});dn({prop:"size",cssProperty:"width",transform:as});dn({prop:"size",cssProperty:"height",transform:as});const Bde=dn({prop:"boxSizing"});KM(Pde,pF,Lde,Ode,kde,Nde,Bde);const zde={border:{themeKey:"borders",transform:Zu},borderTop:{themeKey:"borders",transform:Zu},borderRight:{themeKey:"borders",transform:Zu},borderBottom:{themeKey:"borders",transform:Zu},borderLeft:{themeKey:"borders",transform:Zu},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:eD},color:{themeKey:"palette",transform:a0},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:a0},backgroundColor:{themeKey:"palette",transform:a0},p:{style:sa},pt:{style:sa},pr:{style:sa},pb:{style:sa},pl:{style:sa},px:{style:sa},py:{style:sa},padding:{style:sa},paddingTop:{style:sa},paddingRight:{style:sa},paddingBottom:{style:sa},paddingLeft:{style:sa},paddingX:{style:sa},paddingY:{style:sa},paddingInline:{style:sa},paddingInlineStart:{style:sa},paddingInlineEnd:{style:sa},paddingBlock:{style:sa},paddingBlockStart:{style:sa},paddingBlockEnd:{style:sa},m:{style:oa},mt:{style:oa},mr:{style:oa},mb:{style:oa},ml:{style:oa},mx:{style:oa},my:{style:oa},margin:{style:oa},marginTop:{style:oa},marginRight:{style:oa},marginBottom:{style:oa},marginLeft:{style:oa},marginX:{style:oa},marginY:{style:oa},marginInline:{style:oa},marginInlineStart:{style:oa},marginInlineEnd:{style:oa},marginBlock:{style:oa},marginBlockStart:{style:oa},marginBlockEnd:{style:oa},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:tD},rowGap:{style:nD},columnGap:{style:rD},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:as},maxWidth:{style:pF},minWidth:{transform:as},height:{transform:as},maxHeight:{transform:as},minHeight:{transform:as},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},aD=zde;function $de(...t){const e=t.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(e);return t.every(n=>r.size===Object.keys(n).length)}function Fde(t,e){return typeof t=="function"?t(e):t}function Vde(){function t(r,n,a,i){const o={[r]:n,theme:a},s=i[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:c,style:d}=s;if(n==null)return null;const p=ZM(a,u)||{};return d?d(o):ol(o,n,g=>{let m=vR(p,c,g);return g===m&&typeof g=="string"&&(m=vR(p,c,`${r}${g==="default"?"":zt(g)}`,g)),l===!1?m:{[l]:m}})}function e(r){var n;const{sx:a,theme:i={}}=r||{};if(!a)return null;const o=(n=i.unstable_sxConfig)!=null?n:aD;function s(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=SZ(i.breakpoints),d=Object.keys(c);let p=c;return Object.keys(u).forEach(v=>{const g=Fde(u[v],i);if(g!=null)if(typeof g=="object")if(o[v])p=l1(p,t(v,g,i,o));else{const m=ol({theme:i},g,x=>({[v]:x}));$de(m,g)?p[v]=e({sx:g,theme:i}):p=l1(p,m)}else p=l1(p,t(v,g,i,o))}),wZ(d,p)}return Array.isArray(a)?a.map(s):s(a)}return e}const AZ=Vde();AZ.filterProps=["sx"];const iD=AZ,Ude=["sx"],Wde=t=>{var e,r;const n={systemProps:{},otherProps:{}},a=(e=t==null||(r=t.theme)==null?void 0:r.unstable_sxConfig)!=null?e:aD;return Object.keys(t).forEach(i=>{a[i]?n.systemProps[i]=t[i]:n.otherProps[i]=t[i]}),n};function vF(t){const{sx:e}=t,r=Gt(t,Ude),{systemProps:n,otherProps:a}=Wde(r);let i;return Array.isArray(e)?i=[n,...e]:typeof e=="function"?i=(...o)=>{const s=e(...o);return Lv(s)?oe({},n,s):n}:i=oe({},n,e),oe({},a,{sx:i})}function EZ(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(r=EZ(t[e]))&&(n&&(n+=" "),n+=r);else for(e in t)t[e]&&(n&&(n+=" "),n+=e);return n}function ar(){for(var t,e,r=0,n="";r<arguments.length;)(t=arguments[r++])&&(e=EZ(t))&&(n&&(n+=" "),n+=e);return n}const Hde=["values","unit","step"],Gde=t=>{const e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,n)=>r.val-n.val),e.reduce((r,n)=>oe({},r,{[n.key]:n.val}),{})};function jde(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=t,a=Gt(t,Hde),i=Gde(e),o=Object.keys(i);function s(p){return`@media (min-width:${typeof e[p]=="number"?e[p]:p}${r})`}function l(p){return`@media (max-width:${(typeof e[p]=="number"?e[p]:p)-n/100}${r})`}function u(p,v){const g=o.indexOf(v);return`@media (min-width:${typeof e[p]=="number"?e[p]:p}${r}) and (max-width:${(g!==-1&&typeof e[o[g]]=="number"?e[o[g]]:v)-n/100}${r})`}function c(p){return o.indexOf(p)+1<o.length?u(p,o[o.indexOf(p)+1]):s(p)}function d(p){const v=o.indexOf(p);return v===0?s(o[1]):v===o.length-1?l(o[v]):u(p,o[o.indexOf(p)+1]).replace("@media","@media not all and")}return oe({keys:o,values:i,up:s,down:l,between:u,only:c,not:d,unit:r},a)}const Yde={borderRadius:4},qde=Yde;function Xde(t=8){if(t.mui)return t;const e=TZ({spacing:t}),r=(...n)=>(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`),(n.length===0?[1]:n).map(i=>{const o=e(i);return typeof o=="number"?`${o}px`:o}).join(" "));return r.mui=!0,r}const Zde=["breakpoints","palette","spacing","shape"];function gF(t={},...e){const{breakpoints:r={},palette:n={},spacing:a,shape:i={}}=t,o=Gt(t,Zde),s=jde(r),l=Xde(a);let u=ls({breakpoints:s,direction:"ltr",components:{},palette:oe({mode:"light"},n),spacing:l,shape:oe({},qde,i)},o);return u=e.reduce((c,d)=>ls(c,d),u),u.unstable_sxConfig=oe({},aD,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(d){return iD({sx:d,theme:this})},u}const RZ=Y.createContext(null);RZ.displayName="ThemeContext";const MZ=RZ;function DZ(){const t=Y.useContext(MZ);return Y.useDebugValue(t),t}const Kde=typeof Symbol=="function"&&Symbol.for,Qde=Kde?Symbol.for("mui.nested"):"__THEME_NESTED__";function Jde(t,e){if(typeof e=="function"){const r=e(t);return r||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(` `)),r}return oe({},t,e)}function gR(t){const{children:e,theme:r}=t,n=DZ();n===null&&typeof r=="function"&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(` `));const a=Y.useMemo(()=>{const i=n===null?r:Jde(n,r);return i!=null&&(i[Qde]=n!==null),i},[r,n]);return re.jsx(MZ.Provider,{value:a,children:e})}gR.propTypes={children:E.node,theme:E.oneOfType([E.object,E.func]).isRequired};gR.propTypes=VM(gR.propTypes);function ehe(t){return Object.keys(t).length===0}function the(t=null){const e=DZ();return!e||ehe(e)?t:e}const rhe=gF();function B0(t=rhe){return the(t)}const nhe=["className","component"];function IZ(t={}){const{defaultTheme:e,defaultClassName:r="MuiBox-root",generateClassName:n}=t,a=_Z("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(iD);return Y.forwardRef(function(s,l){const u=B0(e),c=vF(s),{className:d,component:p="div"}=c,v=Gt(c,nhe);return re.jsx(a,oe({as:p,ref:l,className:ar(d,n?n(r):r),theme:u},v))})}const PZ=IZ();PZ.propTypes={children:E.node,component:E.elementType,sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object])};const oD=PZ,ahe=["variant"];function R4(t){return t.length===0}function LZ(t){const{variant:e}=t,r=Gt(t,ahe);let n=e||"";return Object.keys(r).sort().forEach(a=>{a==="color"?n+=R4(n)?t[a]:zt(t[a]):n+=`${R4(n)?a:zt(a)}${zt(t[a].toString())}`}),n}const ihe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],ohe=["theme"],she=["theme"];function f_(t){return Object.keys(t).length===0}function lhe(t){return typeof t=="string"&&t.charCodeAt(0)>96}const uhe=(t,e)=>e.components&&e.components[t]&&e.components[t].styleOverrides?e.components[t].styleOverrides:null,che=(t,e)=>{let r=[];e&&e.components&&e.components[t]&&e.components[t].variants&&(r=e.components[t].variants);const n={};return r.forEach(a=>{const i=LZ(a.props);n[i]=a.style}),n},fhe=(t,e,r,n)=>{var a,i;const{ownerState:o={}}=t,s=[],l=r==null||(a=r.components)==null||(i=a[n])==null?void 0:i.variants;return l&&l.forEach(u=>{let c=!0;Object.keys(u.props).forEach(d=>{o[d]!==u.props[d]&&t[d]!==u.props[d]&&(c=!1)}),c&&s.push(e[LZ(u.props)])}),s};function u1(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const dhe=gF(),hhe=t=>t.charAt(0).toLowerCase()+t.slice(1);function OZ(t={}){const{defaultTheme:e=dhe,rootShouldForwardProp:r=u1,slotShouldForwardProp:n=u1}=t,a=i=>{const o=f_(i.theme)?e:i.theme;return iD(oe({},i,{theme:o}))};return a.__mui_systemSx=!0,(i,o={})=>{ede(i,T=>T.filter(A=>!(A!=null&&A.__mui_systemSx)));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d}=o,p=Gt(o,ihe),v=u!==void 0?u:l&&l!=="Root"||!1,g=c||!1;let m;s&&(m=`${s}-${hhe(l||"Root")}`);let x=u1;l==="Root"?x=r:l?x=n:lhe(i)&&(x=void 0);const _=_Z(i,oe({shouldForwardProp:x,label:m},p)),w=(T,...A)=>{const M=A?A.map(k=>typeof k=="function"&&k.__emotion_real!==k?N=>{let{theme:$}=N,H=Gt(N,ohe);return k(oe({theme:f_($)?e:$},H))}:k):[];let D=T;s&&d&&M.push(k=>{const N=f_(k.theme)?e:k.theme,$=uhe(s,N);if($){const H={};return Object.entries($).forEach(([F,W])=>{H[F]=typeof W=="function"?W(oe({},k,{theme:N})):W}),d(k,H)}return null}),s&&!v&&M.push(k=>{const N=f_(k.theme)?e:k.theme;return fhe(k,che(s,N),N,s)}),g||M.push(a);const P=M.length-A.length;if(Array.isArray(T)&&P>0){const k=new Array(P).fill("");D=[...T,...k],D.raw=[...T.raw,...k]}else typeof T=="function"&&T.__emotion_real!==T&&(D=k=>{let{theme:N}=k,$=Gt(k,she);return T(oe({theme:f_(N)?e:N},$))});const O=_(D,...M);{let k;s&&(k=`${s}${l||""}`),k===void 0&&(k=`Styled(${pce(i)})`),O.displayName=k}return O};return _.withConfig&&(w.withConfig=_.withConfig),w}}const phe=OZ(),fl=phe;function vhe(t){const{theme:e,name:r,props:n}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?n:tF(e.components[r].defaultProps,n)}function ghe({props:t,name:e,defaultTheme:r}){const n=B0(r);return vhe({theme:n,name:e,props:t})}function mF(t,e=0,r=1){return(t<e||t>r)&&console.error(`MUI: The value provided ${t} is out of range [${e}, ${r}].`),Math.min(Math.max(e,t),r)}function mhe(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let r=t.match(e);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function ig(t){if(t.type)return t;if(t.charAt(0)==="#")return ig(mhe(t));const e=t.indexOf("("),r=t.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(`MUI: Unsupported \`${t}\` color. The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`);let n=t.substring(e+1,t.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error(`MUI: unsupported \`${a}\` color space. The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`)}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:a}}function sD(t){const{type:e,colorSpace:r}=t;let{values:n}=t;return e.indexOf("rgb")!==-1?n=n.map((a,i)=>i<3?parseInt(a,10):a):e.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function yhe(t){t=ig(t);const{values:e}=t,r=e[0],n=e[1]/100,a=e[2]/100,i=n*Math.min(a,1-a),o=(u,c=(u+r/30)%12)=>a-i*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return t.type==="hsla"&&(s+="a",l.push(e[3])),sD({type:s,values:l})}function Nz(t){t=ig(t);let e=t.type==="hsl"||t.type==="hsla"?ig(yhe(t)).values:t.values;return e=e.map(r=>(t.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function M4(t,e){const r=Nz(t),n=Nz(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function af(t,e){return t=ig(t),e=mF(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,sD(t)}function yF(t,e){if(t=ig(t),e=mF(e),t.type.indexOf("hsl")!==-1)t.values[2]*=1-e;else if(t.type.indexOf("rgb")!==-1||t.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)t.values[r]*=1-e;return sD(t)}function bF(t,e){if(t=ig(t),e=mF(e),t.type.indexOf("hsl")!==-1)t.values[2]+=(100-t.values[2])*e;else if(t.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;else if(t.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)t.values[r]+=(1-t.values[r])*e;return sD(t)}function q6e(t,e=.15){return Nz(t)>.5?yF(t,e):bF(t,e)}const bhe={};function kZ(t){const e=B0();return re.jsx(bg.Provider,{value:typeof e=="object"?e:bhe,children:t.children})}kZ.propTypes={children:E.node};function N1(t){const{children:e,theme:r}=t;return re.jsx(gR,{theme:r,children:re.jsx(kZ,{children:e})})}N1.propTypes={children:E.node,theme:E.oneOfType([E.func,E.object]).isRequired};N1.propTypes=VM(N1.propTypes);function xhe(t,e){return oe({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},e)}const _he=["mode","contrastThreshold","tonalOffset"],D4={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:I1.white,default:I1.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},vk={text:{primary:I1.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:I1.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function I4(t,e,r,n){const a=n.light||n,i=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=bF(t.main,a):e==="dark"&&(t.dark=yF(t.main,i)))}function She(t="light"){return t==="dark"?{main:uy[200],light:uy[50],dark:uy[400]}:{main:uy[700],light:uy[400],dark:uy[800]}}function whe(t="light"){return t==="dark"?{main:ly[200],light:ly[50],dark:ly[400]}:{main:ly[500],light:ly[300],dark:ly[700]}}function The(t="light"){return t==="dark"?{main:xv[500],light:xv[300],dark:xv[700]}:{main:xv[700],light:xv[400],dark:xv[800]}}function Che(t="light"){return t==="dark"?{main:cy[400],light:cy[300],dark:cy[700]}:{main:cy[700],light:cy[500],dark:cy[900]}}function Ahe(t="light"){return t==="dark"?{main:fy[400],light:fy[300],dark:fy[700]}:{main:fy[800],light:fy[500],dark:fy[900]}}function Ehe(t="light"){return t==="dark"?{main:u_[400],light:u_[300],dark:u_[700]}:{main:"#ed6c02",light:u_[500],dark:u_[900]}}function Rhe(t){const{mode:e="light",contrastThreshold:r=3,tonalOffset:n=.2}=t,a=Gt(t,_he),i=t.primary||She(e),o=t.secondary||whe(e),s=t.error||The(e),l=t.info||Che(e),u=t.success||Ahe(e),c=t.warning||Ehe(e);function d(m){const x=M4(m,vk.text.primary)>=r?vk.text.primary:D4.text.primary;{const _=M4(m,x);_<3&&console.error([`MUI: The contrast ratio of ${_}:1 for ${x} on ${m}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(` `))}return x}const p=({color:m,name:x,mainShade:_=500,lightShade:w=300,darkShade:T=700})=>{if(m=oe({},m),!m.main&&m[_]&&(m.main=m[_]),!m.hasOwnProperty("main"))throw new Error(`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid. The color object needs to have a \`main\` property or a \`${_}\` property.`);if(typeof m.main!="string")throw new Error(`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid. \`color.main\` should be a string, but \`${JSON.stringify(m.main)}\` was provided instead. Did you intend to use one of the following approaches? import { green } from "@mui/material/colors"; const theme1 = createTheme({ palette: { primary: green, } }); const theme2 = createTheme({ palette: { primary: { main: green[500] }, } });`);return I4(m,"light",w,n),I4(m,"dark",T,n),m.contrastText||(m.contrastText=d(m.main)),m},v={dark:vk,light:D4};return v[e]||console.error(`MUI: The palette mode \`${e}\` is not supported.`),ls(oe({common:oe({},I1),mode:e,primary:p({color:i,name:"primary"}),secondary:p({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Xue,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},v[e]),a)}const Mhe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Dhe(t){return Math.round(t*1e5)/1e5}const P4={textTransform:"uppercase"},L4='"Roboto", "Helvetica", "Arial", sans-serif';function Ihe(t,e){const r=typeof e=="function"?e(t):e,{fontFamily:n=L4,fontSize:a=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Gt(r,Mhe);typeof a!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number.");const v=a/14,g=d||(_=>`${_/u*v}rem`),m=(_,w,T,A,M)=>oe({fontFamily:n,fontWeight:_,fontSize:g(w),lineHeight:T},n===L4?{letterSpacing:`${Dhe(A/w)}em`}:{},M,c),x={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(o,48,1.167,0),h4:m(o,34,1.235,.25),h5:m(o,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(o,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(o,16,1.5,.15),body2:m(o,14,1.43,.15),button:m(s,14,1.75,.4,P4),caption:m(o,12,1.66,.4),overline:m(o,12,2.66,1,P4)};return ls(oe({htmlFontSize:u,pxToRem:g,fontFamily:n,fontSize:a,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},x),p,{clone:!1})}const Phe=.2,Lhe=.14,Ohe=.12;function Yn(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${Phe})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${Lhe})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${Ohe})`].join(",")}const khe=["none",Yn(0,2,1,-1,0,1,1,0,0,1,3,0),Yn(0,3,1,-2,0,2,2,0,0,1,5,0),Yn(0,3,3,-2,0,3,4,0,0,1,8,0),Yn(0,2,4,-1,0,4,5,0,0,1,10,0),Yn(0,3,5,-1,0,5,8,0,0,1,14,0),Yn(0,3,5,-1,0,6,10,0,0,1,18,0),Yn(0,4,5,-2,0,7,10,1,0,2,16,1),Yn(0,5,5,-3,0,8,10,1,0,3,14,2),Yn(0,5,6,-3,0,9,12,1,0,3,16,2),Yn(0,6,6,-3,0,10,14,1,0,4,18,3),Yn(0,6,7,-4,0,11,15,1,0,4,20,3),Yn(0,7,8,-4,0,12,17,2,0,5,22,4),Yn(0,7,8,-4,0,13,19,2,0,5,24,4),Yn(0,7,9,-4,0,14,21,2,0,5,26,4),Yn(0,8,9,-5,0,15,22,2,0,6,28,5),Yn(0,8,10,-5,0,16,24,2,0,6,30,5),Yn(0,8,11,-5,0,17,26,2,0,6,32,5),Yn(0,9,11,-5,0,18,28,2,0,7,34,6),Yn(0,9,12,-6,0,19,29,2,0,7,36,6),Yn(0,10,13,-6,0,20,31,3,0,8,38,7),Yn(0,10,13,-6,0,21,33,3,0,8,40,7),Yn(0,10,14,-6,0,22,35,3,0,8,42,7),Yn(0,11,14,-7,0,23,36,3,0,9,44,8),Yn(0,11,15,-7,0,24,38,3,0,9,46,8)],Nhe=khe,Bhe=["duration","easing","delay"],zhe={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},$he={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function O4(t){return`${Math.round(t)}ms`}function Fhe(t){if(!t)return 0;const e=t/36;return Math.round((4+15*e**.25+e/5)*10)}function Vhe(t){const e=oe({},zhe,t.easing),r=oe({},$he,t.duration);return oe({getAutoHeightDuration:Fhe,create:(a=["all"],i={})=>{const{duration:o=r.standard,easing:s=e.easeInOut,delay:l=0}=i,u=Gt(i,Bhe);{const c=p=>typeof p=="string",d=p=>!isNaN(parseFloat(p));!c(a)&&!Array.isArray(a)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(o)&&!c(o)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),c(s)||console.error('MUI: Argument "easing" must be a string.'),!d(l)&&!c(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(a)?a:[a]).map(c=>`${c} ${typeof o=="string"?o:O4(o)} ${s} ${typeof l=="string"?l:O4(l)}`).join(",")}},t,{easing:e,duration:r})}const Uhe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Whe=Uhe,Hhe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function xF(t={},...e){const{mixins:r={},palette:n={},transitions:a={},typography:i={}}=t,o=Gt(t,Hhe);if(t.vars)throw new Error("MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.");const s=Rhe(n),l=gF(t);let u=ls(l,{mixins:xhe(l.breakpoints,r),palette:s,shadows:Nhe.slice(),typography:Ihe(s,i),transitions:Vhe(a),zIndex:oe({},Whe)});u=ls(u,o),u=e.reduce((c,d)=>ls(c,d),u);{const c=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],d=(p,v)=>{let g;for(g in p){const m=p[g];if(c.indexOf(g)!==-1&&Object.keys(m).length>0){{const x=nn("",g);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${g}\` internal state.`,"You can not override it like this: ",JSON.stringify(p,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:m}},null,2),"","https://mui.com/r/state-classes-guide"].join(` `))}p[g]={}}}};Object.keys(u.components).forEach(p=>{const v=u.components[p].styleOverrides;v&&p.indexOf("Mui")===0&&d(v,p)})}return u.unstable_sxConfig=oe({},aD,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(d){return iD({sx:d,theme:this})},u}const Ghe=xF(),lD=Ghe;function Eh(){const t=B0(lD);return Y.useDebugValue(t),t}function hn({props:t,name:e}){return ghe({props:t,name:e,defaultTheme:lD})}const Af=t=>u1(t)&&t!=="classes",jhe=u1,Yhe=OZ({defaultTheme:lD,rootShouldForwardProp:Af}),nt=Yhe,qhe=t=>{let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,(e/100).toFixed(2)},k4=qhe;function mR(t){return typeof t=="string"}function Xhe(t,e,r){return t===void 0||mR(t)?e:oe({},e,{ownerState:oe({},e.ownerState,r)})}function Zhe(t,e=[]){if(t===void 0)return{};const r={};return Object.keys(t).filter(n=>n.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!e.includes(n)).forEach(n=>{r[n]=t[n]}),r}function Bz(t,e){return typeof t=="function"?t(e):t}function N4(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>!(r.match(/^on[A-Z]/)&&typeof t[r]=="function")).forEach(r=>{e[r]=t[r]}),e}function Khe(t){const{getSlotProps:e,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:i}=t;if(!e){const v=ar(a==null?void 0:a.className,n==null?void 0:n.className,i,r==null?void 0:r.className),g=oe({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),m=oe({},r,a,n);return v.length>0&&(m.className=v),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:void 0}}const o=Zhe(oe({},a,n)),s=N4(n),l=N4(a),u=e(o),c=ar(u==null?void 0:u.className,r==null?void 0:r.className,i,a==null?void 0:a.className,n==null?void 0:n.className),d=oe({},u==null?void 0:u.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),p=oe({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}const Qhe=["elementType","externalSlotProps","ownerState"];function B4(t){var e;const{elementType:r,externalSlotProps:n,ownerState:a}=t,i=Gt(t,Qhe),o=Bz(n,a),{props:s,internalRef:l}=Khe(oe({},i,{externalSlotProps:o})),u=Bo(l,o==null?void 0:o.ref,(e=t.additionalProps)==null?void 0:e.ref);return Xhe(r,oe({},s,{ref:u}),a)}const Jhe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function epe(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function tpe(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=n=>t.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=e(`[name="${t.name}"]:checked`);return r||(r=e(`[name="${t.name}"]`)),r!==t}function rpe(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||tpe(t))}function npe(t){const e=[],r=[];return Array.from(t.querySelectorAll(Jhe)).forEach((n,a)=>{const i=epe(n);i===-1||!rpe(n)||(i===0?e.push(n):r.push({documentOrder:a,tabIndex:i,node:n}))}),r.sort((n,a)=>n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex).map(n=>n.node).concat(e)}function ape(){return!0}function yR(t){const{children:e,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:i=npe,isEnabled:o=ape,open:s}=t,l=Y.useRef(!1),u=Y.useRef(null),c=Y.useRef(null),d=Y.useRef(null),p=Y.useRef(null),v=Y.useRef(!1),g=Y.useRef(null),m=Bo(e.ref,g),x=Y.useRef(null);Y.useEffect(()=>{!s||!g.current||(v.current=!r)},[r,s]),Y.useEffect(()=>{if(!s||!g.current)return;const T=us(g.current);return g.current.contains(T.activeElement)||(g.current.hasAttribute("tabIndex")||(console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(` `)),g.current.setAttribute("tabIndex","-1")),v.current&&g.current.focus()),()=>{a||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),Y.useEffect(()=>{if(!s||!g.current)return;const T=us(g.current),A=P=>{const{current:O}=g;if(O!==null){if(!T.hasFocus()||n||!o()||l.current){l.current=!1;return}if(!O.contains(T.activeElement)){if(P&&p.current!==P.target||T.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!v.current)return;let $=[];if((T.activeElement===u.current||T.activeElement===c.current)&&($=i(g.current)),$.length>0){var k,N;const H=Boolean(((k=x.current)==null?void 0:k.shiftKey)&&((N=x.current)==null?void 0:N.key)==="Tab"),F=$[0],W=$[$.length-1];typeof F!="string"&&typeof W!="string"&&(H?W.focus():F.focus())}else O.focus()}}},M=P=>{x.current=P,!(n||!o()||P.key!=="Tab")&&T.activeElement===g.current&&P.shiftKey&&(l.current=!0,c.current&&c.current.focus())};T.addEventListener("focusin",A),T.addEventListener("keydown",M,!0);const D=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&A(null)},50);return()=>{clearInterval(D),T.removeEventListener("focusin",A),T.removeEventListener("keydown",M,!0)}},[r,n,a,o,s,i]);const _=T=>{d.current===null&&(d.current=T.relatedTarget),v.current=!0,p.current=T.target;const A=e.props.onFocus;A&&A(T)},w=T=>{d.current===null&&(d.current=T.relatedTarget),v.current=!0};return re.jsxs(Y.Fragment,{children:[re.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:u,"data-testid":"sentinelStart"}),Y.cloneElement(e,{ref:m,onFocus:_}),re.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:c,"data-testid":"sentinelEnd"})]})}yR.propTypes={children:_S,disableAutoFocus:E.bool,disableEnforceFocus:E.bool,disableRestoreFocus:E.bool,getTabbable:E.func,isEnabled:E.func,open:E.bool.isRequired};yR["propTypes"]=VM(yR.propTypes);var x0={},ipe={get exports(){return x0},set exports(t){x0=t}},Hs={},zz={},ope={get exports(){return zz},set exports(t){zz=t}},NZ={};/** @license React v0.20.2 * scheduler.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */(function(t){(function(){var e=!1,r=!1,n,a,i,o,s=typeof performance=="object"&&typeof performance.now=="function";if(s){var l=performance;t.unstable_now=function(){return l.now()}}else{var u=Date,c=u.now();t.unstable_now=function(){return u.now()-c}}if(typeof window>"u"||typeof MessageChannel!="function"){var d=null,p=null,v=function(){if(d!==null)try{var Ae=t.unstable_now(),Pe=!0;d(Pe,Ae),d=null}catch(rt){throw setTimeout(v,0),rt}};n=function(Ae){d!==null?setTimeout(n,0,Ae):(d=Ae,setTimeout(v,0))},a=function(Ae,Pe){p=setTimeout(Ae,Pe)},i=function(){clearTimeout(p)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var g=window.setTimeout,m=window.clearTimeout;if(typeof console<"u"){var x=window.requestAnimationFrame,_=window.cancelAnimationFrame;typeof x!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof _!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var w=!1,T=null,A=-1,M=5,D=0;t.unstable_shouldYield=function(){return t.unstable_now()>=D},o=function(){},t.unstable_forceFrameRate=function(Ae){if(Ae<0||Ae>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Ae>0?M=Math.floor(1e3/Ae):M=5};var P=function(){if(T!==null){var Ae=t.unstable_now();D=Ae+M;var Pe=!0;try{var rt=T(Pe,Ae);rt?k.postMessage(null):(w=!1,T=null)}catch(gt){throw k.postMessage(null),gt}}else w=!1},O=new MessageChannel,k=O.port2;O.port1.onmessage=P,n=function(Ae){T=Ae,w||(w=!0,k.postMessage(null))},a=function(Ae,Pe){A=g(function(){Ae(t.unstable_now())},Pe)},i=function(){m(A),A=-1}}function N(Ae,Pe){var rt=Ae.length;Ae.push(Pe),F(Ae,Pe,rt)}function $(Ae){var Pe=Ae[0];return Pe===void 0?null:Pe}function H(Ae){var Pe=Ae[0];if(Pe!==void 0){var rt=Ae.pop();return rt!==Pe&&(Ae[0]=rt,W(Ae,rt,0)),Pe}else return null}function F(Ae,Pe,rt){for(var gt=rt;;){var cr=gt-1>>>1,$r=Ae[cr];if($r!==void 0&&j($r,Pe)>0)Ae[cr]=Pe,Ae[gt]=$r,gt=cr;else return}}function W(Ae,Pe,rt){for(var gt=rt,cr=Ae.length;gt<cr;){var $r=(gt+1)*2-1,Rr=Ae[$r],Un=$r+1,Dr=Ae[Un];if(Rr!==void 0&&j(Rr,Pe)<0)Dr!==void 0&&j(Dr,Rr)<0?(Ae[gt]=Dr,Ae[Un]=Pe,gt=Un):(Ae[gt]=Rr,Ae[$r]=Pe,gt=$r);else if(Dr!==void 0&&j(Dr,Pe)<0)Ae[gt]=Dr,Ae[Un]=Pe,gt=Un;else return}}function j(Ae,Pe){var rt=Ae.sortIndex-Pe.sortIndex;return rt!==0?rt:Ae.id-Pe.id}var X=1,te=2,J=3,ie=4,se=5;function le(Ae,Pe){}var be=1073741823,Me=-1,Se=250,Ue=5e3,Xe=1e4,st=be,$e=[],Be=[],et=1,de=null,xe=J,xt=!1,Ie=!1,Ct=!1;function Ot(Ae){for(var Pe=$(Be);Pe!==null;){if(Pe.callback===null)H(Be);else if(Pe.startTime<=Ae)H(Be),Pe.sortIndex=Pe.expirationTime,N($e,Pe);else return;Pe=$(Be)}}function jt(Ae){if(Ct=!1,Ot(Ae),!Ie)if($($e)!==null)Ie=!0,n(nr);else{var Pe=$(Be);Pe!==null&&a(jt,Pe.startTime-Ae)}}function nr(Ae,Pe){Ie=!1,Ct&&(Ct=!1,i()),xt=!0;var rt=xe;try{var gt;if(!r)return Tr(Ae,Pe)}finally{de=null,xe=rt,xt=!1}}function Tr(Ae,Pe){var rt=Pe;for(Ot(rt),de=$($e);de!==null&&!e&&!(de.expirationTime>rt&&(!Ae||t.unstable_shouldYield()));){var gt=de.callback;if(typeof gt=="function"){de.callback=null,xe=de.priorityLevel;var cr=de.expirationTime<=rt,$r=gt(cr);rt=t.unstable_now(),typeof $r=="function"?de.callback=$r:de===$($e)&&H($e),Ot(rt)}else H($e);de=$($e)}if(de!==null)return!0;var Rr=$(Be);return Rr!==null&&a(jt,Rr.startTime-rt),!1}function Er(Ae,Pe){switch(Ae){case X:case te:case J:case ie:case se:break;default:Ae=J}var rt=xe;xe=Ae;try{return Pe()}finally{xe=rt}}function Xt(Ae){var Pe;switch(xe){case X:case te:case J:Pe=J;break;default:Pe=xe;break}var rt=xe;xe=Pe;try{return Ae()}finally{xe=rt}}function Sn(Ae){var Pe=xe;return function(){var rt=xe;xe=Pe;try{return Ae.apply(this,arguments)}finally{xe=rt}}}function zr(Ae,Pe,rt){var gt=t.unstable_now(),cr;if(typeof rt=="object"&&rt!==null){var $r=rt.delay;typeof $r=="number"&&$r>0?cr=gt+$r:cr=gt}else cr=gt;var Rr;switch(Ae){case X:Rr=Me;break;case te:Rr=Se;break;case se:Rr=st;break;case ie:Rr=Xe;break;case J:default:Rr=Ue;break}var Un=cr+Rr,Dr={id:et++,callback:Pe,priorityLevel:Ae,startTime:cr,expirationTime:Un,sortIndex:-1};return cr>gt?(Dr.sortIndex=cr,N(Be,Dr),$($e)===null&&Dr===$(Be)&&(Ct?i():Ct=!0,a(jt,cr-gt))):(Dr.sortIndex=Un,N($e,Dr),!Ie&&!xt&&(Ie=!0,n(nr))),Dr}function ge(){}function Ee(){!Ie&&!xt&&(Ie=!0,n(nr))}function ke(){return $($e)}function Ge(Ae){Ae.callback=null}function Ke(){return xe}var ft=o,We=null;t.unstable_IdlePriority=se,t.unstable_ImmediatePriority=X,t.unstable_LowPriority=ie,t.unstable_NormalPriority=J,t.unstable_Profiling=We,t.unstable_UserBlockingPriority=te,t.unstable_cancelCallback=Ge,t.unstable_continueExecution=Ee,t.unstable_getCurrentPriorityLevel=Ke,t.unstable_getFirstCallbackNode=ke,t.unstable_next=Xt,t.unstable_pauseExecution=ge,t.unstable_requestPaint=ft,t.unstable_runWithPriority=Er,t.unstable_scheduleCallback=zr,t.unstable_wrapCallback=Sn})()})(NZ);(function(t){t.exports=NZ})(ope);var $z={},spe={get exports(){return $z},set exports(t){$z=t}},BZ={};/** @license React v0.20.2 * scheduler-tracing.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */(function(t){(function(){var e=0,r=0,n=0;t.__interactionsRef=null,t.__subscriberRef=null,t.__interactionsRef={current:new Set},t.__subscriberRef={current:null};function a(w){var T=t.__interactionsRef.current;t.__interactionsRef.current=new Set;try{return w()}finally{t.__interactionsRef.current=T}}function i(){return t.__interactionsRef.current}function o(){return++n}function s(w,T,A){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:e,D={__count:1,id:r++,name:w,timestamp:T},P=t.__interactionsRef.current,O=new Set(P);O.add(D),t.__interactionsRef.current=O;var k=t.__subscriberRef.current,N;try{k!==null&&k.onInteractionTraced(D)}finally{try{k!==null&&k.onWorkStarted(O,M)}finally{try{N=A()}finally{t.__interactionsRef.current=P;try{k!==null&&k.onWorkStopped(O,M)}finally{D.__count--,k!==null&&D.__count===0&&k.onInteractionScheduledWorkCompleted(D)}}}}return N}function l(w){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,A=t.__interactionsRef.current,M=t.__subscriberRef.current;M!==null&&M.onWorkScheduled(A,T),A.forEach(function(O){O.__count++});var D=!1;function P(){var O=t.__interactionsRef.current;t.__interactionsRef.current=A,M=t.__subscriberRef.current;try{var k;try{M!==null&&M.onWorkStarted(A,T)}finally{try{k=w.apply(void 0,arguments)}finally{t.__interactionsRef.current=O,M!==null&&M.onWorkStopped(A,T)}}return k}finally{D||(D=!0,A.forEach(function(N){N.__count--,M!==null&&N.__count===0&&M.onInteractionScheduledWorkCompleted(N)}))}}return P.cancel=function(){M=t.__subscriberRef.current;try{M!==null&&M.onWorkCanceled(A,T)}finally{A.forEach(function(k){k.__count--,M&&k.__count===0&&M.onInteractionScheduledWorkCompleted(k)})}},P}var u=null;u=new Set;function c(w){u.add(w),u.size===1&&(t.__subscriberRef.current={onInteractionScheduledWorkCompleted:v,onInteractionTraced:p,onWorkCanceled:_,onWorkScheduled:g,onWorkStarted:m,onWorkStopped:x})}function d(w){u.delete(w),u.size===0&&(t.__subscriberRef.current=null)}function p(w){var T=!1,A=null;if(u.forEach(function(M){try{M.onInteractionTraced(w)}catch(D){T||(T=!0,A=D)}}),T)throw A}function v(w){var T=!1,A=null;if(u.forEach(function(M){try{M.onInteractionScheduledWorkCompleted(w)}catch(D){T||(T=!0,A=D)}}),T)throw A}function g(w,T){var A=!1,M=null;if(u.forEach(function(D){try{D.onWorkScheduled(w,T)}catch(P){A||(A=!0,M=P)}}),A)throw M}function m(w,T){var A=!1,M=null;if(u.forEach(function(D){try{D.onWorkStarted(w,T)}catch(P){A||(A=!0,M=P)}}),A)throw M}function x(w,T){var A=!1,M=null;if(u.forEach(function(D){try{D.onWorkStopped(w,T)}catch(P){A||(A=!0,M=P)}}),A)throw M}function _(w,T){var A=!1,M=null;if(u.forEach(function(D){try{D.onWorkCanceled(w,T)}catch(P){A||(A=!0,M=P)}}),A)throw M}t.unstable_clear=a,t.unstable_getCurrent=i,t.unstable_getThreadID=o,t.unstable_subscribe=c,t.unstable_trace=s,t.unstable_unsubscribe=d,t.unstable_wrap=l})()})(BZ);(function(t){t.exports=BZ})(spe);/** @license React v17.0.2 * react-dom.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */(function(){var t=Y,e=FM,r=zz,n=$z,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function i(f){{for(var h=arguments.length,b=new Array(h>1?h-1:0),C=1;C<h;C++)b[C-1]=arguments[C];s("warn",f,b)}}function o(f){{for(var h=arguments.length,b=new Array(h>1?h-1:0),C=1;C<h;C++)b[C-1]=arguments[C];s("error",f,b)}}function s(f,h,b){{var C=a.ReactDebugCurrentFrame,R=C.getStackAddendum();R!==""&&(h+="%s",b=b.concat([R]));var L=b.map(function(z){return""+z});L.unshift("Warning: "+h),Function.prototype.apply.call(console[f],console,L)}}if(!t)throw Error("ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.");var l=0,u=1,c=2,d=3,p=4,v=5,g=6,m=7,x=8,_=9,w=10,T=11,A=12,M=13,D=14,P=15,O=16,k=17,N=18,$=19,H=20,F=21,W=22,j=23,X=24,te=!0,J=!1,ie=!1,se=!1,le=new Set,be={},Me={};function Se(f,h){Ue(f,h),Ue(f+"Capture",h)}function Ue(f,h){be[f]&&o("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",f),be[f]=h;{var b=f.toLowerCase();Me[b]=f,f==="onDoubleClick"&&(Me.ondblclick=f)}for(var C=0;C<h.length;C++)le.add(h[C])}var Xe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",st=0,$e=1,Be=2,et=3,de=4,xe=5,xt=6,Ie=":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",Ct=Ie+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ot="data-reactroot",jt=new RegExp("^["+Ie+"]["+Ct+"]*$"),nr=Object.prototype.hasOwnProperty,Tr={},Er={};function Xt(f){return nr.call(Er,f)?!0:nr.call(Tr,f)?!1:jt.test(f)?(Er[f]=!0,!0):(Tr[f]=!0,o("Invalid attribute name: `%s`",f),!1)}function Sn(f,h,b){return h!==null?h.type===st:b?!1:f.length>2&&(f[0]==="o"||f[0]==="O")&&(f[1]==="n"||f[1]==="N")}function zr(f,h,b,C){if(b!==null&&b.type===st)return!1;switch(typeof h){case"function":case"symbol":return!0;case"boolean":{if(C)return!1;if(b!==null)return!b.acceptsBooleans;var R=f.toLowerCase().slice(0,5);return R!=="data-"&&R!=="aria-"}default:return!1}}function ge(f,h,b,C){if(h===null||typeof h>"u"||zr(f,h,b,C))return!0;if(C)return!1;if(b!==null)switch(b.type){case et:return!h;case de:return h===!1;case xe:return isNaN(h);case xt:return isNaN(h)||h<1}return!1}function Ee(f){return Ge.hasOwnProperty(f)?Ge[f]:null}function ke(f,h,b,C,R,L,z){this.acceptsBooleans=h===Be||h===et||h===de,this.attributeName=C,this.attributeNamespace=R,this.mustUseProperty=b,this.propertyName=f,this.type=h,this.sanitizeURL=L,this.removeEmptyString=z}var Ge={},Ke=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Ke.forEach(function(f){Ge[f]=new ke(f,st,!1,f,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(f){var h=f[0],b=f[1];Ge[h]=new ke(h,$e,!1,b,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(f){Ge[f]=new ke(f,Be,!1,f.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(f){Ge[f]=new ke(f,Be,!1,f,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(f){Ge[f]=new ke(f,et,!1,f.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(f){Ge[f]=new ke(f,et,!0,f,null,!1,!1)}),["capture","download"].forEach(function(f){Ge[f]=new ke(f,de,!1,f,null,!1,!1)}),["cols","rows","size","span"].forEach(function(f){Ge[f]=new ke(f,xt,!1,f,null,!1,!1)}),["rowSpan","start"].forEach(function(f){Ge[f]=new ke(f,xe,!1,f.toLowerCase(),null,!1,!1)});var ft=/[\-\:]([a-z])/g,We=function(f){return f[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(f){var h=f.replace(ft,We);Ge[h]=new ke(h,$e,!1,f,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(f){var h=f.replace(ft,We);Ge[h]=new ke(h,$e,!1,f,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(f){var h=f.replace(ft,We);Ge[h]=new ke(h,$e,!1,f,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(f){Ge[f]=new ke(f,$e,!1,f.toLowerCase(),null,!1,!1)});var Ae="xlinkHref";Ge[Ae]=new ke("xlinkHref",$e,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(f){Ge[f]=new ke(f,$e,!1,f.toLowerCase(),null,!0,!0)});var Pe=/^[\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,rt=!1;function gt(f){!rt&&Pe.test(f)&&(rt=!0,o("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(f)))}function cr(f,h,b,C){if(C.mustUseProperty){var R=C.propertyName;return f[R]}else{C.sanitizeURL&>(""+b);var L=C.attributeName,z=null;if(C.type===de){if(f.hasAttribute(L)){var U=f.getAttribute(L);return U===""?!0:ge(h,b,C,!1)?U:U===""+b?b:U}}else if(f.hasAttribute(L)){if(ge(h,b,C,!1))return f.getAttribute(L);if(C.type===et)return b;z=f.getAttribute(L)}return ge(h,b,C,!1)?z===null?b:z:z===""+b?b:z}}function $r(f,h,b){{if(!Xt(h))return;if(JT(b))return b;if(!f.hasAttribute(h))return b===void 0?void 0:null;var C=f.getAttribute(h);return C===""+b?b:C}}function Rr(f,h,b,C){var R=Ee(h);if(!Sn(h,R,C)){if(ge(h,b,R,C)&&(b=null),C||R===null){if(Xt(h)){var L=h;b===null?f.removeAttribute(L):f.setAttribute(L,""+b)}return}var z=R.mustUseProperty;if(z){var U=R.propertyName;if(b===null){var q=R.type;f[U]=q===et?!1:""}else f[U]=b;return}var ee=R.attributeName,ne=R.attributeNamespace;if(b===null)f.removeAttribute(ee);else{var _e=R.type,fe;_e===et||_e===de&&b===!0?fe="":(fe=""+b,R.sanitizeURL&>(fe.toString())),ne?f.setAttributeNS(ne,ee,fe):f.setAttribute(ee,fe)}}}var Un=60103,Dr=60106,da=60107,ho=60108,$o=60114,ml=60109,iu=60110,Fo=60112,Vo=60113,po=60120,ms=60115,Wn=60116,ou=60121,ue=60119,Je=60128,dt=60129,Nt=60130,Ir=60131;if(typeof Symbol=="function"&&Symbol.for){var Zt=Symbol.for;Un=Zt("react.element"),Dr=Zt("react.portal"),da=Zt("react.fragment"),ho=Zt("react.strict_mode"),$o=Zt("react.profiler"),ml=Zt("react.provider"),iu=Zt("react.context"),Fo=Zt("react.forward_ref"),Vo=Zt("react.suspense"),po=Zt("react.suspense_list"),ms=Zt("react.memo"),Wn=Zt("react.lazy"),ou=Zt("react.block"),Zt("react.server.block"),Zt("react.fundamental"),ue=Zt("react.scope"),Je=Zt("react.opaque.id"),dt=Zt("react.debug_trace_mode"),Nt=Zt("react.offscreen"),Ir=Zt("react.legacy_hidden")}var Cr=typeof Symbol=="function"&&Symbol.iterator,br="@@iterator";function An(f){if(f===null||typeof f!="object")return null;var h=Cr&&f[Cr]||f[br];return typeof h=="function"?h:null}var kr=0,wn,Va,vo,su,li,Bh,zh;function $h(){}$h.__reactDisabledLog=!0;function ui(){{if(kr===0){wn=console.log,Va=console.info,vo=console.warn,su=console.error,li=console.group,Bh=console.groupCollapsed,zh=console.groupEnd;var f={configurable:!0,enumerable:!0,value:$h,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}kr++}}function go(){{if(kr--,kr===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:e({},f,{value:wn}),info:e({},f,{value:Va}),warn:e({},f,{value:vo}),error:e({},f,{value:su}),group:e({},f,{value:li}),groupCollapsed:e({},f,{value:Bh}),groupEnd:e({},f,{value:zh})})}kr<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ys=a.ReactCurrentDispatcher,yc;function Gi(f,h,b){{if(yc===void 0)try{throw Error()}catch(R){var C=R.stack.trim().match(/\n( *(at )?)/);yc=C&&C[1]||""}return` `+yc+f}}var bc=!1,bs;{var Dg=typeof WeakMap=="function"?WeakMap:Map;bs=new Dg}function xc(f,h){if(!f||bc)return"";{var b=bs.get(f);if(b!==void 0)return b}var C;bc=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var L;L=ys.current,ys.current=null,ui();try{if(h){var z=function(){throw Error()};if(Object.defineProperty(z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(z,[])}catch(Ye){C=Ye}Reflect.construct(f,[],z)}else{try{z.call()}catch(Ye){C=Ye}f.call(z.prototype)}}else{try{throw Error()}catch(Ye){C=Ye}f()}}catch(Ye){if(Ye&&C&&typeof Ye.stack=="string"){for(var U=Ye.stack.split(` `),q=C.stack.split(` `),ee=U.length-1,ne=q.length-1;ee>=1&&ne>=0&&U[ee]!==q[ne];)ne--;for(;ee>=1&&ne>=0;ee--,ne--)if(U[ee]!==q[ne]){if(ee!==1||ne!==1)do if(ee--,ne--,ne<0||U[ee]!==q[ne]){var _e=` `+U[ee].replace(" at new "," at ");return typeof f=="function"&&bs.set(f,_e),_e}while(ee>=1&&ne>=0);break}}}finally{bc=!1,ys.current=L,go(),Error.prepareStackTrace=R}var fe=f?f.displayName||f.name:"",Te=fe?Gi(fe):"";return typeof f=="function"&&bs.set(f,Te),Te}function Ig(f,h,b){return xc(f,!0)}function _c(f,h,b){return xc(f,!1)}function Df(f){var h=f.prototype;return!!(h&&h.isReactComponent)}function If(f,h,b){if(f==null)return"";if(typeof f=="function")return xc(f,Df(f));if(typeof f=="string")return Gi(f);switch(f){case Vo:return Gi("Suspense");case po:return Gi("SuspenseList")}if(typeof f=="object")switch(f.$$typeof){case Fo:return _c(f.render);case ms:return If(f.type,h,b);case ou:return _c(f._render);case Wn:{var C=f,R=C._payload,L=C._init;try{return If(L(R),h,b)}catch{}}}return""}function Fh(f){switch(f._debugOwner&&f._debugOwner.type,f._debugSource,f.tag){case v:return Gi(f.type);case O:return Gi("Lazy");case M:return Gi("Suspense");case $:return Gi("SuspenseList");case l:case c:case P:return _c(f.type);case T:return _c(f.type.render);case W:return _c(f.type._render);case u:return Ig(f.type);default:return""}}function lu(f){try{var h="",b=f;do h+=Fh(b),b=b.return;while(b);return h}catch(C){return` Error generating stack: `+C.message+` `+C.stack}}function Pg(f,h,b){var C=h.displayName||h.name||"";return f.displayName||(C!==""?b+"("+C+")":b)}function Uo(f){return f.displayName||"Context"}function ht(f){if(f==null)return null;if(typeof f.tag=="number"&&o("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case da:return"Fragment";case Dr:return"Portal";case $o:return"Profiler";case ho:return"StrictMode";case Vo:return"Suspense";case po:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case iu:var h=f;return Uo(h)+".Consumer";case ml:var b=f;return Uo(b._context)+".Provider";case Fo:return Pg(f,f.render,"ForwardRef");case ms:return ht(f.type);case ou:return ht(f._render);case Wn:{var C=f,R=C._payload,L=C._init;try{return ht(L(R))}catch{return null}}}return null}var Pf=a.ReactDebugCurrentFrame,ha=null,yl=!1;function uu(){{if(ha===null)return null;var f=ha._debugOwner;if(f!==null&&typeof f<"u")return ht(f.type)}return null}function Lg(){return ha===null?"":lu(ha)}function Sa(){Pf.getCurrentStack=null,ha=null,yl=!1}function Bn(f){Pf.getCurrentStack=Lg,ha=f,yl=!1}function ji(f){yl=f}function Og(){return yl}function Pa(f){return""+f}function Yi(f){switch(typeof f){case"boolean":case"number":case"object":case"string":case"undefined":return f;default:return""}}var cu={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Lf(f,h){cu[h.type]||h.onChange||h.onInput||h.readOnly||h.disabled||h.value==null||o("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),h.onChange||h.readOnly||h.disabled||h.checked==null||o("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Of(f){var h=f.type,b=f.nodeName;return b&&b.toLowerCase()==="input"&&(h==="checkbox"||h==="radio")}function kg(f){return f._valueTracker}function Ng(f){f._valueTracker=null}function Bg(f){var h="";return f&&(Of(f)?h=f.checked?"true":"false":h=f.value),h}function zg(f){var h=Of(f)?"checked":"value",b=Object.getOwnPropertyDescriptor(f.constructor.prototype,h),C=""+f[h];if(!(f.hasOwnProperty(h)||typeof b>"u"||typeof b.get!="function"||typeof b.set!="function")){var R=b.get,L=b.set;Object.defineProperty(f,h,{configurable:!0,get:function(){return R.call(this)},set:function(U){C=""+U,L.call(this,U)}}),Object.defineProperty(f,h,{enumerable:b.enumerable});var z={getValue:function(){return C},setValue:function(U){C=""+U},stopTracking:function(){Ng(f),delete f[h]}};return z}}function Z(f){kg(f)||(f._valueTracker=zg(f))}function pe(f){if(!f)return!1;var h=kg(f);if(!h)return!0;var b=h.getValue(),C=Bg(f);return C!==b?(h.setValue(C),!0):!1}function Re(f){if(f=f||(typeof document<"u"?document:void 0),typeof f>"u")return null;try{return f.activeElement||f.body}catch{return f.body}}var He=!1,pt=!1,Jt=!1,Yt=!1;function Vt(f){var h=f.type==="checkbox"||f.type==="radio";return h?f.checked!=null:f.value!=null}function Wr(f,h){var b=f,C=h.checked,R=e({},h,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:C??b._wrapperState.initialChecked});return R}function Jr(f,h){Lf("input",h),h.checked!==void 0&&h.defaultChecked!==void 0&&!pt&&(o("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",uu()||"A component",h.type),pt=!0),h.value!==void 0&&h.defaultValue!==void 0&&!He&&(o("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",uu()||"A component",h.type),He=!0);var b=f,C=h.defaultValue==null?"":h.defaultValue;b._wrapperState={initialChecked:h.checked!=null?h.checked:h.defaultChecked,initialValue:Yi(h.value!=null?h.value:C),controlled:Vt(h)}}function En(f,h){var b=f,C=h.checked;C!=null&&Rr(b,"checked",C,!1)}function zn(f,h){var b=f;{var C=Vt(h);!b._wrapperState.controlled&&C&&!Yt&&(o("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Yt=!0),b._wrapperState.controlled&&!C&&!Jt&&(o("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Jt=!0)}En(f,h);var R=Yi(h.value),L=h.type;if(R!=null)L==="number"?(R===0&&b.value===""||b.value!=R)&&(b.value=Pa(R)):b.value!==Pa(R)&&(b.value=Pa(R));else if(L==="submit"||L==="reset"){b.removeAttribute("value");return}h.hasOwnProperty("value")?Fr(b,h.type,R):h.hasOwnProperty("defaultValue")&&Fr(b,h.type,Yi(h.defaultValue)),h.checked==null&&h.defaultChecked!=null&&(b.defaultChecked=!!h.defaultChecked)}function Ua(f,h,b){var C=f;if(h.hasOwnProperty("value")||h.hasOwnProperty("defaultValue")){var R=h.type,L=R==="submit"||R==="reset";if(L&&(h.value===void 0||h.value===null))return;var z=Pa(C._wrapperState.initialValue);b||z!==C.value&&(C.value=z),C.defaultValue=z}var U=C.name;U!==""&&(C.name=""),C.defaultChecked=!C.defaultChecked,C.defaultChecked=!!C._wrapperState.initialChecked,U!==""&&(C.name=U)}function Wa(f,h){var b=f;zn(b,h),Ci(b,h)}function Ci(f,h){var b=h.name;if(h.type==="radio"&&b!=null){for(var C=f;C.parentNode;)C=C.parentNode;for(var R=C.querySelectorAll("input[name="+JSON.stringify(""+b)+'][type="radio"]'),L=0;L<R.length;L++){var z=R[L];if(!(z===f||z.form!==f.form)){var U=Nm(z);if(!U)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");pe(z),zn(z,U)}}}}function Fr(f,h,b){(h!=="number"||Re(f.ownerDocument)!==f)&&(b==null?f.defaultValue=Pa(f._wrapperState.initialValue):f.defaultValue!==Pa(b)&&(f.defaultValue=Pa(b)))}var Hr=!1,Vh=!1;function cb(f){var h="";return t.Children.forEach(f,function(b){b!=null&&(h+=b)}),h}function Uh(f,h){typeof h.children=="object"&&h.children!==null&&t.Children.forEach(h.children,function(b){b!=null&&(typeof b=="string"||typeof b=="number"||typeof b.type=="string"&&(Vh||(Vh=!0,o("Only strings and numbers are supported as <option> children."))))}),h.selected!=null&&!Hr&&(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Hr=!0)}function fb(f,h){h.value!=null&&f.setAttribute("value",Pa(Yi(h.value)))}function kf(f,h){var b=e({children:void 0},h),C=cb(h.children);return C&&(b.children=C),b}var Wh;Wh=!1;function db(){var f=uu();return f?` Check the render method of \``+f+"`.":""}var aw=["value","defaultValue"];function La(f){{Lf("select",f);for(var h=0;h<aw.length;h++){var b=aw[h];if(f[b]!=null){var C=Array.isArray(f[b]);f.multiple&&!C?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",b,db()):!f.multiple&&C&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",b,db())}}}}function fu(f,h,b,C){var R=f.options;if(h){for(var L=b,z={},U=0;U<L.length;U++)z["$"+L[U]]=!0;for(var q=0;q<R.length;q++){var ee=z.hasOwnProperty("$"+R[q].value);R[q].selected!==ee&&(R[q].selected=ee),ee&&C&&(R[q].defaultSelected=!0)}}else{for(var ne=Pa(Yi(b)),_e=null,fe=0;fe<R.length;fe++){if(R[fe].value===ne){R[fe].selected=!0,C&&(R[fe].defaultSelected=!0);return}_e===null&&!R[fe].disabled&&(_e=R[fe])}_e!==null&&(_e.selected=!0)}}function bl(f,h){return e({},h,{value:void 0})}function hb(f,h){var b=f;La(h),b._wrapperState={wasMultiple:!!h.multiple},h.value!==void 0&&h.defaultValue!==void 0&&!Wh&&(o("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Wh=!0)}function pb(f,h){var b=f;b.multiple=!!h.multiple;var C=h.value;C!=null?fu(b,!!h.multiple,C,!1):h.defaultValue!=null&&fu(b,!!h.multiple,h.defaultValue,!0)}function mo(f,h){var b=f,C=b._wrapperState.wasMultiple;b._wrapperState.wasMultiple=!!h.multiple;var R=h.value;R!=null?fu(b,!!h.multiple,R,!1):C!==!!h.multiple&&(h.defaultValue!=null?fu(b,!!h.multiple,h.defaultValue,!0):fu(b,!!h.multiple,h.multiple?[]:"",!1))}function iw(f,h){var b=f,C=h.value;C!=null&&fu(b,!!h.multiple,C,!1)}var vb=!1;function $g(f,h){var b=f;if(h.dangerouslySetInnerHTML!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var C=e({},h,{value:void 0,defaultValue:void 0,children:Pa(b._wrapperState.initialValue)});return C}function gb(f,h){var b=f;Lf("textarea",h),h.value!==void 0&&h.defaultValue!==void 0&&!vb&&(o("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",uu()||"A component"),vb=!0);var C=h.value;if(C==null){var R=h.children,L=h.defaultValue;if(R!=null){o("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(L!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Array.isArray(R)){if(!(R.length<=1))throw Error("<textarea> can only have at most one child.");R=R[0]}L=R}}L==null&&(L=""),C=L}b._wrapperState={initialValue:Yi(C)}}function mb(f,h){var b=f,C=Yi(h.value),R=Yi(h.defaultValue);if(C!=null){var L=Pa(C);L!==b.value&&(b.value=L),h.defaultValue==null&&b.defaultValue!==L&&(b.defaultValue=L)}R!=null&&(b.defaultValue=Pa(R))}function yb(f,h){var b=f,C=b.textContent;C===b._wrapperState.initialValue&&C!==""&&C!==null&&(b.value=C)}function qi(f,h){mb(f,h)}var Fg="http://www.w3.org/1999/xhtml",Xi="http://www.w3.org/1998/Math/MathML",bb="http://www.w3.org/2000/svg",xb={html:Fg,mathml:Xi,svg:bb};function xs(f){switch(f){case"svg":return bb;case"math":return Xi;default:return Fg}}function Nf(f,h){return f==null||f===Fg?xs(h):f===bb&&h==="foreignObject"?Fg:f}var _b=function(f){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(h,b,C,R){MSApp.execUnsafeLocalFunction(function(){return f(h,b,C,R)})}:f},pn,xl=_b(function(f,h){if(f.namespaceURI===xb.svg&&!("innerHTML"in f)){pn=pn||document.createElement("div"),pn.innerHTML="<svg>"+h.valueOf().toString()+"</svg>";for(var b=pn.firstChild;f.firstChild;)f.removeChild(f.firstChild);for(;b.firstChild;)f.appendChild(b.firstChild);return}f.innerHTML=h}),Ai=1,_l=3,ci=8,du=9,ow=11,Vg=function(f,h){if(h){var b=f.firstChild;if(b&&b===f.lastChild&&b.nodeType===_l){b.nodeValue=h;return}}f.textContent=h},sw={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},hu={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Bf(f,h){return f+h.charAt(0).toUpperCase()+h.substring(1)}var mI=["Webkit","ms","Moz","O"];Object.keys(hu).forEach(function(f){mI.forEach(function(h){hu[Bf(h,f)]=hu[f]})});function Ug(f,h,b){var C=h==null||typeof h=="boolean"||h==="";return C?"":!b&&typeof h=="number"&&h!==0&&!(hu.hasOwnProperty(f)&&hu[f])?h+"px":(""+h).trim()}var lw=/([A-Z])/g,Sb=/^ms-/;function wb(f){return f.replace(lw,"-$1").toLowerCase().replace(Sb,"-ms-")}var Tb=function(){};{var yI=/^(?:webkit|moz|o)[A-Z]/,Cb=/^-ms-/,Ab=/-(.)/g,uw=/;\s*$/,Sc={},fi={},Wg=!1,zf=!1,cw=function(f){return f.replace(Ab,function(h,b){return b.toUpperCase()})},fw=function(f){Sc.hasOwnProperty(f)&&Sc[f]||(Sc[f]=!0,o("Unsupported style property %s. Did you mean %s?",f,cw(f.replace(Cb,"ms-"))))},bI=function(f){Sc.hasOwnProperty(f)&&Sc[f]||(Sc[f]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",f,f.charAt(0).toUpperCase()+f.slice(1)))},xI=function(f,h){fi.hasOwnProperty(h)&&fi[h]||(fi[h]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,f,h.replace(uw,"")))},_I=function(f,h){Wg||(Wg=!0,o("`NaN` is an invalid value for the `%s` css style property.",f))},SI=function(f,h){zf||(zf=!0,o("`Infinity` is an invalid value for the `%s` css style property.",f))};Tb=function(f,h){f.indexOf("-")>-1?fw(f):yI.test(f)?bI(f):uw.test(h)&&xI(f,h),typeof h=="number"&&(isNaN(h)?_I(f,h):isFinite(h)||SI(f,h))}}var wI=Tb;function $f(f){{var h="",b="";for(var C in f)if(f.hasOwnProperty(C)){var R=f[C];if(R!=null){var L=C.indexOf("--")===0;h+=b+(L?C:wb(C))+":",h+=Ug(C,R,L),b=";"}}return h||null}}function dw(f,h){var b=f.style;for(var C in h)if(h.hasOwnProperty(C)){var R=C.indexOf("--")===0;R||wI(C,h[C]);var L=Ug(C,h[C],R);C==="float"&&(C="cssFloat"),R?b.setProperty(C,L):b[C]=L}}function TI(f){return f==null||typeof f=="boolean"||f===""}function Hg(f){var h={};for(var b in f)for(var C=sw[b]||[b],R=0;R<C.length;R++)h[C[R]]=b;return h}function hw(f,h){{if(!h)return;var b=Hg(f),C=Hg(h),R={};for(var L in b){var z=b[L],U=C[L];if(U&&z!==U){var q=z+","+U;if(R[q])continue;R[q]=!0,o("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",TI(f[z])?"Removing":"Updating",z,U)}}}}var pu={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Gg=e({menuitem:!0},pu),CI="__html";function Eb(f,h){if(h){if(Gg[f]&&!(h.children==null&&h.dangerouslySetInnerHTML==null))throw Error(f+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(h.dangerouslySetInnerHTML!=null){if(h.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(!(typeof h.dangerouslySetInnerHTML=="object"&&CI in h.dangerouslySetInnerHTML))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!h.suppressContentEditableWarning&&h.contentEditable&&h.children!=null&&o("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),!(h.style==null||typeof h.style=="object"))throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function wc(f,h){if(f.indexOf("-")===-1)return typeof h.is=="string";switch(f){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 Sl={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},yo={"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Tc={},AI=new RegExp("^(aria)-["+Ct+"]*$"),EI=new RegExp("^(aria)[A-Z]["+Ct+"]*$"),RI=Object.prototype.hasOwnProperty;function MI(f,h){{if(RI.call(Tc,h)&&Tc[h])return!0;if(EI.test(h)){var b="aria-"+h.slice(4).toLowerCase(),C=yo.hasOwnProperty(b)?b:null;if(C==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",h),Tc[h]=!0,!0;if(h!==C)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",h,C),Tc[h]=!0,!0}if(AI.test(h)){var R=h.toLowerCase(),L=yo.hasOwnProperty(R)?R:null;if(L==null)return Tc[h]=!0,!1;if(h!==L)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",h,L),Tc[h]=!0,!0}}return!0}function DI(f,h){{var b=[];for(var C in h){var R=MI(f,C);R||b.push(C)}var L=b.map(function(z){return"`"+z+"`"}).join(", ");b.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",L,f):b.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",L,f)}}function Ff(f,h){wc(f,h)||DI(f,h)}var ve=!1;function Ne(f,h){{if(f!=="input"&&f!=="textarea"&&f!=="select")return;h!=null&&h.value===null&&!ve&&(ve=!0,f==="select"&&h.multiple?o("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",f):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",f))}}var De=function(){};{var lt={},or=Object.prototype.hasOwnProperty,Vr=/^on./,pa=/^on[^A-Z]/,vn=new RegExp("^(aria)-["+Ct+"]*$"),Rb=new RegExp("^(aria)[A-Z]["+Ct+"]*$");De=function(f,h,b,C){if(or.call(lt,h)&<[h])return!0;var R=h.toLowerCase();if(R==="onfocusin"||R==="onfocusout")return o("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),lt[h]=!0,!0;if(C!=null){var L=C.registrationNameDependencies,z=C.possibleRegistrationNames;if(L.hasOwnProperty(h))return!0;var U=z.hasOwnProperty(R)?z[R]:null;if(U!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",h,U),lt[h]=!0,!0;if(Vr.test(h))return o("Unknown event handler property `%s`. It will be ignored.",h),lt[h]=!0,!0}else if(Vr.test(h))return pa.test(h)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",h),lt[h]=!0,!0;if(vn.test(h)||Rb.test(h))return!0;if(R==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),lt[h]=!0,!0;if(R==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),lt[h]=!0,!0;if(R==="is"&&b!==null&&b!==void 0&&typeof b!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof b),lt[h]=!0,!0;if(typeof b=="number"&&isNaN(b))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",h),lt[h]=!0,!0;var q=Ee(h),ee=q!==null&&q.type===st;if(Sl.hasOwnProperty(R)){var ne=Sl[R];if(ne!==h)return o("Invalid DOM property `%s`. Did you mean `%s`?",h,ne),lt[h]=!0,!0}else if(!ee&&h!==R)return o("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",h,R),lt[h]=!0,!0;return typeof b=="boolean"&&zr(h,b,q,!1)?(b?o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',b,h,h,b,h):o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',b,h,h,b,h,h,h),lt[h]=!0,!0):ee?!0:zr(h,b,q,!1)?(lt[h]=!0,!1):((b==="false"||b==="true")&&q!==null&&q.type===et&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",b,h,b==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',h,b),lt[h]=!0),!0)}}var II=function(f,h,b){{var C=[];for(var R in h){var L=De(f,R,h[R],b);L||C.push(R)}var z=C.map(function(U){return"`"+U+"`"}).join(", ");C.length===1?o("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",z,f):C.length>1&&o("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",z,f)}};function bo(f,h,b){wc(f,h)||II(f,h,b)}var Hh=1,jg=1<<1,_s=1<<2,Gh=1<<4,Yg=Hh|jg|_s;function Gr(f){var h=f.target||f.srcElement||window;return h.correspondingUseElement&&(h=h.correspondingUseElement),h.nodeType===_l?h.parentNode:h}var Mb=null,Cc=null,wl=null;function pw(f){var h=Ru(f);if(h){if(typeof Mb!="function")throw Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var b=h.stateNode;if(b){var C=Nm(b);Mb(h.stateNode,h.type,C)}}}function PI(f){Mb=f}function vw(f){Cc?wl?wl.push(f):wl=[f]:Cc=f}function qg(){return Cc!==null||wl!==null}function Tl(){if(Cc){var f=Cc,h=wl;if(Cc=null,wl=null,pw(f),h)for(var b=0;b<h.length;b++)pw(h[b])}}var Vf=function(f,h){return f(h)},Db=function(f,h,b,C,R){return f(h,b,C,R)},Uf=function(){},Ib=Vf,Cl=!1,Wf=!1;function Xg(){var f=qg();f&&(Uf(),Tl())}function jh(f,h){if(Cl)return f(h);Cl=!0;try{return Vf(f,h)}finally{Cl=!1,Xg()}}function Ac(f,h,b){if(Wf)return f(h,b);Wf=!0;try{return Ib(f,h,b)}finally{Wf=!1,Xg()}}function Zg(f,h,b,C,R){var L=Cl;Cl=!0;try{return Db(f,h,b,C,R)}finally{Cl=L,Cl||Xg()}}function LI(f){Cl||Uf()}function OI(f,h,b,C){Vf=f,Db=h,Uf=b,Ib=C}function kI(f){return f==="button"||f==="input"||f==="select"||f==="textarea"}function Kg(f,h,b){switch(f){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(b.disabled&&kI(h));default:return!1}}function vu(f,h){var b=f.stateNode;if(b===null)return null;var C=Nm(b);if(C===null)return null;var R=C[h];if(Kg(h,f.type,C))return null;if(!(!R||typeof R=="function"))throw Error("Expected `"+h+"` listener to be a function, instead got a value of `"+typeof R+"` type.");return R}var Yh=!1;if(Xe)try{var qh={};Object.defineProperty(qh,"passive",{get:function(){Yh=!0}}),window.addEventListener("test",qh,qh),window.removeEventListener("test",qh,qh)}catch{Yh=!1}function Pb(f,h,b,C,R,L,z,U,q){var ee=Array.prototype.slice.call(arguments,3);try{h.apply(b,ee)}catch(ne){this.onError(ne)}}var gw=Pb;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var Lb=document.createElement("react");gw=function(h,b,C,R,L,z,U,q,ee){if(!(typeof document<"u"))throw Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var ne=document.createEvent("Event"),_e=!1,fe=!0,Te=window.event,Ye=Object.getOwnPropertyDescriptor(window,"event");function ct(){Lb.removeEventListener(ze,dr,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=Te)}var Ut=Array.prototype.slice.call(arguments,3);function dr(){_e=!0,ct(),b.apply(C,Ut),fe=!1}var tr,Ur=!1,Cn=!1;function we(ye){if(tr=ye.error,Ur=!0,tr===null&&ye.colno===0&&ye.lineno===0&&(Cn=!0),ye.defaultPrevented&&tr!=null&&typeof tr=="object")try{tr._suppressLogging=!0}catch{}}var ze="react-"+(h||"invokeguardedcallback");if(window.addEventListener("error",we),Lb.addEventListener(ze,dr,!1),ne.initEvent(ze,!1,!1),Lb.dispatchEvent(ne),Ye&&Object.defineProperty(window,"event",Ye),_e&&fe&&(Ur?Cn&&(tr=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):tr=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(tr)),window.removeEventListener("error",we),!_e)return ct(),Pb.apply(this,arguments)}}var va=gw,Kn=!1,Qg=null,Jg=!1,em=null,NI={onError:function(f){Kn=!0,Qg=f}};function xo(f,h,b,C,R,L,z,U,q){Kn=!1,Qg=null,va.apply(NI,arguments)}function Xh(f,h,b,C,R,L,z,U,q){if(xo.apply(this,arguments),Kn){var ee=Ri();Jg||(Jg=!0,em=ee)}}function Ob(){if(Jg){var f=em;throw Jg=!1,em=null,f}}function Ei(){return Kn}function Ri(){if(Kn){var f=Qg;return Kn=!1,Qg=null,f}else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function Ss(f){return f._reactInternals}function tm(f){return f._reactInternals!==void 0}function Hf(f,h){f._reactInternals=h}var $n=0,gu=1,Qn=2,gn=4,BI=6,_o=8,mu=16,kb=32,K=64,Al=128,ws=256,Ha=512,hr=8192,El=1024,zI=1028,$I=932,Ec=2047,Zh=2048,Rl=4096,Nb=16384,FI=a.ReactCurrentOwner;function Rc(f){var h=f,b=f;if(f.alternate)for(;h.return;)h=h.return;else{var C=h;do h=C,(h.flags&(Qn|El))!==$n&&(b=h.return),C=h.return;while(C)}return h.tag===d?b:null}function Ts(f){if(f.tag===M){var h=f.memoizedState;if(h===null){var b=f.alternate;b!==null&&(h=b.memoizedState)}if(h!==null)return h.dehydrated}return null}function mw(f){return f.tag===d?f.stateNode.containerInfo:null}function VI(f){return Rc(f)===f}function UI(f){{var h=FI.current;if(h!==null&&h.tag===u){var b=h,C=b.stateNode;C._warnedAboutRefsInRender||o("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",ht(b.type)||"A component"),C._warnedAboutRefsInRender=!0}}var R=Ss(f);return R?Rc(R)===R:!1}function yw(f){if(Rc(f)!==f)throw Error("Unable to find node on an unmounted component.")}function bw(f){var h=f.alternate;if(!h){var b=Rc(f);if(b===null)throw Error("Unable to find node on an unmounted component.");return b!==f?null:f}for(var C=f,R=h;;){var L=C.return;if(L===null)break;var z=L.alternate;if(z===null){var U=L.return;if(U!==null){C=R=U;continue}break}if(L.child===z.child){for(var q=L.child;q;){if(q===C)return yw(L),f;if(q===R)return yw(L),h;q=q.sibling}throw Error("Unable to find node on an unmounted component.")}if(C.return!==R.return)C=L,R=z;else{for(var ee=!1,ne=L.child;ne;){if(ne===C){ee=!0,C=L,R=z;break}if(ne===R){ee=!0,R=L,C=z;break}ne=ne.sibling}if(!ee){for(ne=z.child;ne;){if(ne===C){ee=!0,C=z,R=L;break}if(ne===R){ee=!0,R=z,C=L;break}ne=ne.sibling}if(!ee)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(C.alternate!==R)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(C.tag!==d)throw Error("Unable to find node on an unmounted component.");return C.stateNode.current===C?f:h}function Cs(f){var h=bw(f);if(!h)return null;for(var b=h;;){if(b.tag===v||b.tag===g)return b;if(b.child){b.child.return=b,b=b.child;continue}if(b===h)return null;for(;!b.sibling;){if(!b.return||b.return===h)return null;b=b.return}b.sibling.return=b.return,b=b.sibling}return null}function WI(f){var h=bw(f);if(!h)return null;for(var b=h;;){if(b.tag===v||b.tag===g||J)return b;if(b.child&&b.tag!==p){b.child.return=b,b=b.child;continue}if(b===h)return null;for(;!b.sibling;){if(!b.return||b.return===h)return null;b=b.return}b.sibling.return=b.return,b=b.sibling}return null}function xw(f,h){for(var b=h,C=f.alternate;b!==null;){if(b===f||b===C)return!0;b=b.return}return!1}var _w;function HI(f){_w=f}var Bb;function Mc(f){Bb=f}var Sw;function GI(f){Sw=f}var So;function jI(f){So=f}var zb=!1,Ml=[],yu=null,bu=null,Dl=null,Gf=new Map,Kh=new Map,Qh=[];function $b(){return Ml.length>0}var Jh=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function ep(f){return Jh.indexOf(f)>-1}function ww(f,h,b,C,R){return{blockedOn:f,domEventName:h,eventSystemFlags:b|Gh,nativeEvent:R,targetContainers:[C]}}function Fb(f,h,b,C,R){var L=ww(f,h,b,C,R);Ml.push(L)}function Tw(f,h){switch(f){case"focusin":case"focusout":yu=null;break;case"dragenter":case"dragleave":bu=null;break;case"mouseover":case"mouseout":Dl=null;break;case"pointerover":case"pointerout":{var b=h.pointerId;Gf.delete(b);break}case"gotpointercapture":case"lostpointercapture":{var C=h.pointerId;Kh.delete(C);break}}}function Zi(f,h,b,C,R,L){if(f===null||f.nativeEvent!==L){var z=ww(h,b,C,R,L);if(h!==null){var U=Ru(h);U!==null&&Bb(U)}return z}f.eventSystemFlags|=C;var q=f.targetContainers;return R!==null&&q.indexOf(R)===-1&&q.push(R),f}function Vb(f,h,b,C,R){switch(h){case"focusin":{var L=R;return yu=Zi(yu,f,h,b,C,L),!0}case"dragenter":{var z=R;return bu=Zi(bu,f,h,b,C,z),!0}case"mouseover":{var U=R;return Dl=Zi(Dl,f,h,b,C,U),!0}case"pointerover":{var q=R,ee=q.pointerId;return Gf.set(ee,Zi(Gf.get(ee)||null,f,h,b,C,q)),!0}case"gotpointercapture":{var ne=R,_e=ne.pointerId;return Kh.set(_e,Zi(Kh.get(_e)||null,f,h,b,C,ne)),!0}}return!1}function Dc(f){var h=Gc(f.target);if(h!==null){var b=Rc(h);if(b!==null){var C=b.tag;if(C===M){var R=Ts(b);if(R!==null){f.blockedOn=R,So(f.lanePriority,function(){r.unstable_runWithPriority(f.priority,function(){Sw(b)})});return}}else if(C===d){var L=b.stateNode;if(L.hydrate){f.blockedOn=mw(b);return}}}}f.blockedOn=null}function di(f){if(f.blockedOn!==null)return!1;for(var h=f.targetContainers;h.length>0;){var b=h[0],C=mm(f.domEventName,f.eventSystemFlags,b,f.nativeEvent);if(C!==null){var R=Ru(C);return R!==null&&Bb(R),f.blockedOn=C,!1}h.shift()}return!0}function Cw(f,h,b){di(f)&&b.delete(h)}function Aw(){for(zb=!1;Ml.length>0;){var f=Ml[0];if(f.blockedOn!==null){var h=Ru(f.blockedOn);h!==null&&_w(h);break}for(var b=f.targetContainers;b.length>0;){var C=b[0],R=mm(f.domEventName,f.eventSystemFlags,C,f.nativeEvent);if(R!==null){f.blockedOn=R;break}b.shift()}f.blockedOn===null&&Ml.shift()}yu!==null&&di(yu)&&(yu=null),bu!==null&&di(bu)&&(bu=null),Dl!==null&&di(Dl)&&(Dl=null),Gf.forEach(Cw),Kh.forEach(Cw)}function jf(f,h){f.blockedOn===h&&(f.blockedOn=null,zb||(zb=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Aw)))}function Yf(f){if(Ml.length>0){jf(Ml[0],f);for(var h=1;h<Ml.length;h++){var b=Ml[h];b.blockedOn===f&&(b.blockedOn=null)}}yu!==null&&jf(yu,f),bu!==null&&jf(bu,f),Dl!==null&&jf(Dl,f);var C=function(U){return jf(U,f)};Gf.forEach(C),Kh.forEach(C);for(var R=0;R<Qh.length;R++){var L=Qh[R];L.blockedOn===f&&(L.blockedOn=null)}for(;Qh.length>0;){var z=Qh[0];if(z.blockedOn!==null)break;Dc(z),z.blockedOn===null&&Qh.shift()}}var As=0,Ub=1,Wb=2;function Ic(f,h){var b={};return b[f.toLowerCase()]=h.toLowerCase(),b["Webkit"+f]="webkit"+h,b["Moz"+f]="moz"+h,b}var qf={animationend:Ic("Animation","AnimationEnd"),animationiteration:Ic("Animation","AnimationIteration"),animationstart:Ic("Animation","AnimationStart"),transitionend:Ic("Transition","TransitionEnd")},rm={},wa={};Xe&&(wa=document.createElement("div").style,"AnimationEvent"in window||(delete qf.animationend.animation,delete qf.animationiteration.animation,delete qf.animationstart.animation),"TransitionEvent"in window||delete qf.transitionend.transition);function Xf(f){if(rm[f])return rm[f];if(!qf[f])return f;var h=qf[f];for(var b in h)if(h.hasOwnProperty(b)&&b in wa)return rm[f]=h[b];return f}var Hb=Xf("animationend"),Wo=Xf("animationiteration"),nm=Xf("animationstart"),tp=Xf("transitionend"),xu=new Map,am=new Map,hi=["cancel","cancel","click","click","close","close","contextmenu","contextMenu","copy","copy","cut","cut","auxclick","auxClick","dblclick","doubleClick","dragend","dragEnd","dragstart","dragStart","drop","drop","focusin","focus","focusout","blur","input","input","invalid","invalid","keydown","keyDown","keypress","keyPress","keyup","keyUp","mousedown","mouseDown","mouseup","mouseUp","paste","paste","pause","pause","play","play","pointercancel","pointerCancel","pointerdown","pointerDown","pointerup","pointerUp","ratechange","rateChange","reset","reset","seeked","seeked","submit","submit","touchcancel","touchCancel","touchend","touchEnd","touchstart","touchStart","volumechange","volumeChange"],Gb=["change","selectionchange","textInput","compositionstart","compositionend","compositionupdate"],YI=["drag","drag","dragenter","dragEnter","dragexit","dragExit","dragleave","dragLeave","dragover","dragOver","mousemove","mouseMove","mouseout","mouseOut","mouseover","mouseOver","pointermove","pointerMove","pointerout","pointerOut","pointerover","pointerOver","scroll","scroll","toggle","toggle","touchmove","touchMove","wheel","wheel"],qI=["abort","abort",Hb,"animationEnd",Wo,"animationIteration",nm,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",tp,"transitionEnd","waiting","waiting"];function jb(f,h){for(var b=0;b<f.length;b+=2){var C=f[b],R=f[b+1],L=R[0].toUpperCase()+R.slice(1),z="on"+L;am.set(C,h),xu.set(C,z),Se(z,[C])}}function Yb(f,h){for(var b=0;b<f.length;b++)am.set(f[b],h)}function XI(f){var h=am.get(f);return h===void 0?Wb:h}function rp(){jb(hi,As),jb(YI,Ub),jb(qI,Wb),Yb(Gb,As)}var Ew=r.unstable_now;if(!(n.__interactionsRef!=null&&n.__interactionsRef.current!=null))throw Error("It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at https://reactjs.org/link/profiling");var Rw=99,Mw=98,Zf=97,ZI=96,Dw=95,qb=90;Ew();var Pc=15,im=14,Iw=13,om=12,Xb=11,_u=10,Pw=9,Il=8,Zb=7,np=6,sm=5,ap=4,Lw=3,ip=2,Kb=1,Lc=0,Ow=31,qe=0,Ga=0,en=1,Oc=2,Qb=4,Kf=24,pr=32,kw=192,Nw=256,kc=3584,Jb=4096,Qf=4186112,lm=62914560,Oa=33554432,ex=67108864,op=134217727,um=134217728,cm=805306368,Ho=1073741824,Pr=-1;function Nc(f){}var on=Il;function Bc(f){if((en&f)!==qe)return on=Pc,en;if((Oc&f)!==qe)return on=im,Oc;if((Qb&f)!==qe)return on=Iw,Qb;var h=Kf&f;if(h!==qe)return on=om,h;if((f&pr)!==qe)return on=Xb,pr;var b=kw&f;if(b!==qe)return on=_u,b;if((f&Nw)!==qe)return on=Pw,Nw;var C=kc&f;if(C!==qe)return on=Il,C;if((f&Jb)!==qe)return on=Zb,Jb;var R=Qf&f;if(R!==qe)return on=np,R;var L=lm&f;if(L!==qe)return on=sm,L;if(f&ex)return on=ap,ex;if((f&um)!==qe)return on=Lw,um;var z=cm&f;return z!==qe?(on=ip,z):(Ho&f)!==qe?(on=Kb,Ho):(o("Should have found matching lanes. This is a bug in React."),on=Il,f)}function fm(f){switch(f){case Rw:return Pc;case Mw:return _u;case Zf:case ZI:return Il;case Dw:return ip;default:return Lc}}function Bw(f){switch(f){case Pc:case im:return Rw;case Iw:case om:case Xb:case _u:return Mw;case Pw:case Il:case Zb:case np:case ap:case sm:return Zf;case Lw:case ip:case Kb:return Dw;case Lc:return qb;default:throw Error("Invalid update priority: "+f+". This is a bug in React.")}}function zc(f,h){var b=f.pendingLanes;if(b===qe)return on=Lc,qe;var C=qe,R=Lc,L=f.expiredLanes,z=f.suspendedLanes,U=f.pingedLanes;if(L!==qe)C=L,R=on=Pc;else{var q=b&op;if(q!==qe){var ee=q&~z;if(ee!==qe)C=Bc(ee),R=on;else{var ne=q&U;ne!==qe&&(C=Bc(ne),R=on)}}else{var _e=b&~z;_e!==qe?(C=Bc(_e),R=on):U!==qe&&(C=Bc(U),R=on)}}if(C===qe)return qe;if(C=b&Vw(C),h!==qe&&h!==C&&(h&z)===qe){Bc(h);var fe=on;if(R<=fe)return h;on=R}var Te=f.entangledLanes;if(Te!==qe)for(var Ye=f.entanglements,ct=C&Te;ct>0;){var Ut=Su(ct),dr=1<<Ut;C|=Ye[Ut],ct&=~dr}return C}function zw(f,h){for(var b=f.eventTimes,C=Pr;h>0;){var R=Su(h),L=1<<R,z=b[R];z>C&&(C=z),h&=~L}return C}function tx(f,h){Bc(f);var b=on;return b>=_u?h+250:b>=np?h+5e3:Pr}function rx(f,h){for(var b=f.pendingLanes,C=f.suspendedLanes,R=f.pingedLanes,L=f.expirationTimes,z=b;z>0;){var U=Su(z),q=1<<U,ee=L[U];ee===Pr?((q&C)===qe||(q&R)!==qe)&&(L[U]=tx(q,h)):ee<=h&&(f.expiredLanes|=q),z&=~q}}function Pl(f){var h=f.pendingLanes&~Ho;return h!==qe?h:h&Ho?Ho:qe}function KI(){return on}function Ll(f){return(f&op)!==qe}function nx(f){return(f&lm)===f}function $w(f){return(f&Qf)===f}function Jf(f,h){switch(f){case Lc:break;case Pc:return en;case im:return Oc;case om:{var b=pi(Kf&~h);return b===Ga?Jf(_u,h):b}case _u:{var C=pi(kw&~h);return C===Ga?Jf(Il,h):C}case Il:{var R=pi(kc&~h);return R===Ga&&(R=pi(Qf&~h),R===Ga&&(R=pi(kc))),R}case np:case sm:break;case ip:var L=pi(cm&~h);return L===Ga&&(L=pi(cm)),L}throw Error("Invalid update priority: "+f+". This is a bug in React.")}function QI(f,h){var b=pi(Qf&~h);return b===Ga&&(b=pi(Qf&~f),b===Ga&&(b=pi(Qf))),b}function JI(f){var h=pi(lm&~f);return h===Ga&&(h=pi(lm)),h}function eP(f){return f&-f}function Fw(f){var h=31-up(f);return h<0?qe:1<<h}function Vw(f){return(Fw(f)<<1)-1}function pi(f){return eP(f)}function Su(f){return 31-up(f)}function Uw(f){return Su(f)}function tn(f,h){return(f&h)!==qe}function ja(f,h){return(f&h)===h}function jr(f,h){return f|h}function dm(f,h){return f&~h}function ax(f){return f}function ed(f,h){return f!==Ga&&f<h?f:h}function hm(f){for(var h=[],b=0;b<Ow;b++)h.push(f);return h}function sp(f,h,b){f.pendingLanes|=h;var C=h-1;f.suspendedLanes&=C,f.pingedLanes&=C;var R=f.eventTimes,L=Uw(h);R[L]=b}function tP(f,h){f.suspendedLanes|=h,f.pingedLanes&=~h;for(var b=f.expirationTimes,C=h;C>0;){var R=Su(C),L=1<<R;b[R]=Pr,C&=~L}}function ix(f,h,b){f.pingedLanes|=f.suspendedLanes&h}function td(f){f.expiredLanes|=Kf&f.pendingLanes}function lp(f){return(f&Kf)!==qe}function Ww(f,h){f.mutableReadLanes|=h&f.pendingLanes}function Hw(f,h){var b=f.pendingLanes&~h;f.pendingLanes=h,f.suspendedLanes=0,f.pingedLanes=0,f.expiredLanes&=h,f.mutableReadLanes&=h,f.entangledLanes&=h;for(var C=f.entanglements,R=f.eventTimes,L=f.expirationTimes,z=b;z>0;){var U=Su(z),q=1<<U;C[U]=qe,R[U]=Pr,L[U]=Pr,z&=~q}}function Gw(f,h){f.entangledLanes|=h;for(var b=f.entanglements,C=h;C>0;){var R=Su(C),L=1<<R;b[R]|=h,C&=~L}}var up=Math.clz32?Math.clz32:ox,jw=Math.log,pm=Math.LN2;function ox(f){return f===0?32:31-(jw(f)/pm|0)|0}var vm=r.unstable_UserBlockingPriority,rP=r.unstable_runWithPriority,gm=!0;function cp(f){gm=!!f}function Yw(){return gm}function sx(f,h,b){var C=XI(h),R;switch(C){case As:R=nP;break;case Ub:R=qw;break;case Wb:default:R=Go;break}return R.bind(null,h,b,f)}function nP(f,h,b,C){LI(C.timeStamp),Zg(Go,f,h,b,C)}function qw(f,h,b,C){rP(vm,Go.bind(null,f,h,b,C))}function Go(f,h,b,C){if(gm){var R=!0;if(R=(h&_s)===0,R&&$b()&&ep(f)){Fb(null,f,h,b,C);return}var L=mm(f,h,b,C);if(L===null){R&&Tw(f,C);return}if(R){if(ep(f)){Fb(L,f,h,b,C);return}if(Vb(L,f,h,b,C))return;Tw(f,C)}MT(f,h,C,null,b)}}function mm(f,h,b,C){var R=Gr(C),L=Gc(R);if(L!==null){var z=Rc(L);if(z===null)L=null;else{var U=z.tag;if(U===M){var q=Ts(z);if(q!==null)return q;L=null}else if(U===d){var ee=z.stateNode;if(ee.hydrate)return mw(z);L=null}else z!==L&&(L=null)}}return MT(f,h,C,L,b),null}function Xw(f,h,b){return f.addEventListener(h,b,!1),b}function aP(f,h,b){return f.addEventListener(h,b,!0),b}function Zw(f,h,b,C){return f.addEventListener(h,b,{capture:!0,passive:C}),b}function iP(f,h,b,C){return f.addEventListener(h,b,{passive:C}),b}var fp=null,jo=null,$c=null;function lx(f){return fp=f,jo=Fc(),!0}function ux(){fp=null,jo=null,$c=null}function dp(){if($c)return $c;var f,h=jo,b=h.length,C,R=Fc(),L=R.length;for(f=0;f<b&&h[f]===R[f];f++);var z=b-f;for(C=1;C<=z&&h[b-C]===R[L-C];C++);var U=C>1?1-C:void 0;return $c=R.slice(f,U),$c}function Fc(){return"value"in fp?fp.value:fp.textContent}function kt(f){var h,b=f.keyCode;return"charCode"in f?(h=f.charCode,h===0&&b===13&&(h=13)):h=b,h===10&&(h=13),h>=32||h===13?h:0}function Vc(){return!0}function ym(){return!1}function ga(f){function h(b,C,R,L,z){this._reactName=b,this._targetInst=R,this.type=C,this.nativeEvent=L,this.target=z,this.currentTarget=null;for(var U in f)if(f.hasOwnProperty(U)){var q=f[U];q?this[U]=q(L):this[U]=L[U]}var ee=L.defaultPrevented!=null?L.defaultPrevented:L.returnValue===!1;return ee?this.isDefaultPrevented=Vc:this.isDefaultPrevented=ym,this.isPropagationStopped=ym,this}return e(h.prototype,{preventDefault:function(){this.defaultPrevented=!0;var b=this.nativeEvent;b&&(b.preventDefault?b.preventDefault():typeof b.returnValue!="unknown"&&(b.returnValue=!1),this.isDefaultPrevented=Vc)},stopPropagation:function(){var b=this.nativeEvent;b&&(b.stopPropagation?b.stopPropagation():typeof b.cancelBubble!="unknown"&&(b.cancelBubble=!0),this.isPropagationStopped=Vc)},persist:function(){},isPersistent:Vc}),h}var rd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(f){return f.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hp=ga(rd),nd=e({},rd,{view:0,detail:0}),Ya=ga(nd),cx,fx,ad;function oP(f){f!==ad&&(ad&&f.type==="mousemove"?(cx=f.screenX-ad.screenX,fx=f.screenY-ad.screenY):(cx=0,fx=0),ad=f)}var pp=e({},nd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bm,button:0,buttons:0,relatedTarget:function(f){return f.relatedTarget===void 0?f.fromElement===f.srcElement?f.toElement:f.fromElement:f.relatedTarget},movementX:function(f){return"movementX"in f?f.movementX:(oP(f),cx)},movementY:function(f){return"movementY"in f?f.movementY:fx}}),Kw=ga(pp),sP=e({},pp,{dataTransfer:0}),lP=ga(sP),Ol=e({},nd,{relatedTarget:0}),ka=ga(Ol),dx=e({},rd,{animationName:0,elapsedTime:0,pseudoElement:0}),uP=ga(dx),hx=e({},rd,{clipboardData:function(f){return"clipboardData"in f?f.clipboardData:window.clipboardData}}),cP=ga(hx),fP=e({},rd,{data:0}),id=ga(fP),Qw=id,Jw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dP={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"};function hP(f){if(f.key){var h=Jw[f.key]||f.key;if(h!=="Unidentified")return h}if(f.type==="keypress"){var b=kt(f);return b===13?"Enter":String.fromCharCode(b)}return f.type==="keydown"||f.type==="keyup"?dP[f.keyCode]||"Unidentified":""}var pP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vP(f){var h=this,b=h.nativeEvent;if(b.getModifierState)return b.getModifierState(f);var C=pP[f];return C?!!b[C]:!1}function bm(f){return vP}var eT=e({},nd,{key:hP,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bm,charCode:function(f){return f.type==="keypress"?kt(f):0},keyCode:function(f){return f.type==="keydown"||f.type==="keyup"?f.keyCode:0},which:function(f){return f.type==="keypress"?kt(f):f.type==="keydown"||f.type==="keyup"?f.keyCode:0}}),gP=ga(eT),px=e({},pp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vx=ga(px),vp=e({},nd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bm}),gx=ga(vp),tT=e({},rd,{propertyName:0,elapsedTime:0,pseudoElement:0}),rT=ga(tT),xm=e({},pp,{deltaX:function(f){return"deltaX"in f?f.deltaX:"wheelDeltaX"in f?-f.wheelDeltaX:0},deltaY:function(f){return"deltaY"in f?f.deltaY:"wheelDeltaY"in f?-f.wheelDeltaY:"wheelDelta"in f?-f.wheelDelta:0},deltaZ:0,deltaMode:0}),nT=ga(xm),Es=[9,13,27,32],wu=229,mx=Xe&&"CompositionEvent"in window,od=null;Xe&&"documentMode"in document&&(od=document.documentMode);var mP=Xe&&"TextEvent"in window&&!od,aT=Xe&&(!mx||od&&od>8&&od<=11),iT=32,oT=String.fromCharCode(iT);function yP(){Se("onBeforeInput",["compositionend","keypress","textInput","paste"]),Se("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Se("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Se("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var sT=!1;function bP(f){return(f.ctrlKey||f.altKey||f.metaKey)&&!(f.ctrlKey&&f.altKey)}function xP(f){switch(f){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function _P(f,h){return f==="keydown"&&h.keyCode===wu}function lT(f,h){switch(f){case"keyup":return Es.indexOf(h.keyCode)!==-1;case"keydown":return h.keyCode!==wu;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uT(f){var h=f.detail;return typeof h=="object"&&"data"in h?h.data:null}function yx(f){return f.locale==="ko"}var Uc=!1;function cT(f,h,b,C,R){var L,z;if(mx?L=xP(h):Uc?lT(h,C)&&(L="onCompositionEnd"):_P(h,C)&&(L="onCompositionStart"),!L)return null;aT&&!yx(C)&&(!Uc&&L==="onCompositionStart"?Uc=lx(R):L==="onCompositionEnd"&&Uc&&(z=dp()));var U=Tm(b,L);if(U.length>0){var q=new id(L,h,null,C,R);if(f.push({event:q,listeners:U}),z)q.data=z;else{var ee=uT(C);ee!==null&&(q.data=ee)}}}function SP(f,h){switch(f){case"compositionend":return uT(h);case"keypress":var b=h.which;return b!==iT?null:(sT=!0,oT);case"textInput":var C=h.data;return C===oT&&sT?null:C;default:return null}}function wP(f,h){if(Uc){if(f==="compositionend"||!mx&&lT(f,h)){var b=dp();return ux(),Uc=!1,b}return null}switch(f){case"paste":return null;case"keypress":if(!bP(h)){if(h.char&&h.char.length>1)return h.char;if(h.which)return String.fromCharCode(h.which)}return null;case"compositionend":return aT&&!yx(h)?null:h.data;default:return null}}function TP(f,h,b,C,R){var L;if(mP?L=SP(h,C):L=wP(h,C),!L)return null;var z=Tm(b,"onBeforeInput");if(z.length>0){var U=new Qw("onBeforeInput","beforeinput",null,C,R);f.push({event:U,listeners:z}),U.data=L}}function fT(f,h,b,C,R,L,z){cT(f,h,b,C,R),TP(f,h,b,C,R)}var CP={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 dT(f){var h=f&&f.nodeName&&f.nodeName.toLowerCase();return h==="input"?!!CP[f.type]:h==="textarea"}/** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, * `reset`, `load`, `error`, and `select`. * * Borrows from Modernizr. * * @param {string} eventNameSuffix Event name, e.g. "click". * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */function AP(f){if(!Xe)return!1;var h="on"+f,b=h in document;if(!b){var C=document.createElement("div");C.setAttribute(h,"return;"),b=typeof C[h]=="function"}return b}function EP(){Se("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function hT(f,h,b,C){vw(C);var R=Tm(h,"onChange");if(R.length>0){var L=new hp("onChange","change",null,b,C);f.push({event:L,listeners:R})}}var gp=null,qa=null;function RP(f){var h=f.nodeName&&f.nodeName.toLowerCase();return h==="select"||h==="input"&&f.type==="file"}function MP(f){var h=[];hT(h,qa,f,Gr(f)),jh(DP,h)}function DP(f){CT(f,0)}function mp(f){var h=Yo(f);if(pe(h))return f}function IP(f,h){if(f==="change")return h}var pT=!1;Xe&&(pT=AP("input")&&(!document.documentMode||document.documentMode>9));function PP(f,h){gp=f,qa=h,gp.attachEvent("onpropertychange",_m)}function vT(){gp&&(gp.detachEvent("onpropertychange",_m),gp=null,qa=null)}function _m(f){f.propertyName==="value"&&mp(qa)&&MP(f)}function LP(f,h,b){f==="focusin"?(vT(),PP(h,b)):f==="focusout"&&vT()}function OP(f,h){if(f==="selectionchange"||f==="keyup"||f==="keydown")return mp(qa)}function kP(f){var h=f.nodeName;return h&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")}function NP(f,h){if(f==="click")return mp(h)}function BP(f,h){if(f==="input"||f==="change")return mp(h)}function zP(f){var h=f._wrapperState;!h||!h.controlled||f.type!=="number"||Fr(f,"number",f.value)}function $P(f,h,b,C,R,L,z){var U=b?Yo(b):window,q,ee;if(RP(U)?q=IP:dT(U)?pT?q=BP:(q=OP,ee=LP):kP(U)&&(q=NP),q){var ne=q(h,b);if(ne){hT(f,ne,C,R);return}}ee&&ee(h,U,b),h==="focusout"&&zP(U)}function FP(){Ue("onMouseEnter",["mouseout","mouseover"]),Ue("onMouseLeave",["mouseout","mouseover"]),Ue("onPointerEnter",["pointerout","pointerover"]),Ue("onPointerLeave",["pointerout","pointerover"])}function VP(f,h,b,C,R,L,z){var U=h==="mouseover"||h==="pointerover",q=h==="mouseout"||h==="pointerout";if(U&&!(L&Gh)){var ee=C.relatedTarget||C.fromElement;if(ee&&(Gc(ee)||km(ee)))return}if(!(!q&&!U)){var ne;if(R.window===R)ne=R;else{var _e=R.ownerDocument;_e?ne=_e.defaultView||_e.parentWindow:ne=window}var fe,Te;if(q){var Ye=C.relatedTarget||C.toElement;if(fe=b,Te=Ye?Gc(Ye):null,Te!==null){var ct=Rc(Te);(Te!==ct||Te.tag!==v&&Te.tag!==g)&&(Te=null)}}else fe=null,Te=b;if(fe!==Te){var Ut=Kw,dr="onMouseLeave",tr="onMouseEnter",Ur="mouse";(h==="pointerout"||h==="pointerover")&&(Ut=vx,dr="onPointerLeave",tr="onPointerEnter",Ur="pointer");var Cn=fe==null?ne:Yo(fe),we=Te==null?ne:Yo(Te),ze=new Ut(dr,Ur+"leave",fe,C,R);ze.target=Cn,ze.relatedTarget=we;var ye=null,tt=Gc(R);if(tt===b){var mt=new Ut(tr,Ur+"enter",Te,C,R);mt.target=we,mt.relatedTarget=Cn,ye=mt}lL(f,ze,ye,fe,Te)}}}function UP(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var wo=typeof Object.is=="function"?Object.is:UP,WP=Object.prototype.hasOwnProperty;function yp(f,h){if(wo(f,h))return!0;if(typeof f!="object"||f===null||typeof h!="object"||h===null)return!1;var b=Object.keys(f),C=Object.keys(h);if(b.length!==C.length)return!1;for(var R=0;R<b.length;R++)if(!WP.call(h,b[R])||!wo(f[b[R]],h[b[R]]))return!1;return!0}function gT(f){for(;f&&f.firstChild;)f=f.firstChild;return f}function HP(f){for(;f;){if(f.nextSibling)return f.nextSibling;f=f.parentNode}}function mT(f,h){for(var b=gT(f),C=0,R=0;b;){if(b.nodeType===_l){if(R=C+b.textContent.length,C<=h&&R>=h)return{node:b,offset:h-C};C=R}b=gT(HP(b))}}function GP(f){var h=f.ownerDocument,b=h&&h.defaultView||window,C=b.getSelection&&b.getSelection();if(!C||C.rangeCount===0)return null;var R=C.anchorNode,L=C.anchorOffset,z=C.focusNode,U=C.focusOffset;try{R.nodeType,z.nodeType}catch{return null}return jP(f,R,L,z,U)}function jP(f,h,b,C,R){var L=0,z=-1,U=-1,q=0,ee=0,ne=f,_e=null;e:for(;;){for(var fe=null;ne===h&&(b===0||ne.nodeType===_l)&&(z=L+b),ne===C&&(R===0||ne.nodeType===_l)&&(U=L+R),ne.nodeType===_l&&(L+=ne.nodeValue.length),(fe=ne.firstChild)!==null;)_e=ne,ne=fe;for(;;){if(ne===f)break e;if(_e===h&&++q===b&&(z=L),_e===C&&++ee===R&&(U=L),(fe=ne.nextSibling)!==null)break;ne=_e,_e=ne.parentNode}ne=fe}return z===-1||U===-1?null:{start:z,end:U}}function YP(f,h){var b=f.ownerDocument||document,C=b&&b.defaultView||window;if(C.getSelection){var R=C.getSelection(),L=f.textContent.length,z=Math.min(h.start,L),U=h.end===void 0?z:Math.min(h.end,L);if(!R.extend&&z>U){var q=U;U=z,z=q}var ee=mT(f,z),ne=mT(f,U);if(ee&&ne){if(R.rangeCount===1&&R.anchorNode===ee.node&&R.anchorOffset===ee.offset&&R.focusNode===ne.node&&R.focusOffset===ne.offset)return;var _e=b.createRange();_e.setStart(ee.node,ee.offset),R.removeAllRanges(),z>U?(R.addRange(_e),R.extend(ne.node,ne.offset)):(_e.setEnd(ne.node,ne.offset),R.addRange(_e))}}}function yT(f){return f&&f.nodeType===_l}function Sm(f,h){return!f||!h?!1:f===h?!0:yT(f)?!1:yT(h)?Sm(f,h.parentNode):"contains"in f?f.contains(h):f.compareDocumentPosition?!!(f.compareDocumentPosition(h)&16):!1}function bT(f){return f&&f.ownerDocument&&Sm(f.ownerDocument.documentElement,f)}function qP(f){try{return typeof f.contentWindow.location.href=="string"}catch{return!1}}function xT(){for(var f=window,h=Re();h instanceof f.HTMLIFrameElement;){if(qP(h))f=h.contentWindow;else return h;h=Re(f.document)}return h}function bx(f){var h=f&&f.nodeName&&f.nodeName.toLowerCase();return h&&(h==="input"&&(f.type==="text"||f.type==="search"||f.type==="tel"||f.type==="url"||f.type==="password")||h==="textarea"||f.contentEditable==="true")}function XP(){var f=xT();return{focusedElem:f,selectionRange:bx(f)?KP(f):null}}function ZP(f){var h=xT(),b=f.focusedElem,C=f.selectionRange;if(h!==b&&bT(b)){C!==null&&bx(b)&&QP(b,C);for(var R=[],L=b;L=L.parentNode;)L.nodeType===Ai&&R.push({element:L,left:L.scrollLeft,top:L.scrollTop});typeof b.focus=="function"&&b.focus();for(var z=0;z<R.length;z++){var U=R[z];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}}function KP(f){var h;return"selectionStart"in f?h={start:f.selectionStart,end:f.selectionEnd}:h=GP(f),h||{start:0,end:0}}function QP(f,h){var b=h.start,C=h.end;C===void 0&&(C=b),"selectionStart"in f?(f.selectionStart=b,f.selectionEnd=Math.min(C,f.value.length)):YP(f,h)}var JP=Xe&&"documentMode"in document&&document.documentMode<=11;function _T(){Se("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var sd=null,ld=null,bp=null,xx=!1;function eL(f){if("selectionStart"in f&&bx(f))return{start:f.selectionStart,end:f.selectionEnd};var h=f.ownerDocument&&f.ownerDocument.defaultView||window,b=h.getSelection();return{anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}}function tL(f){return f.window===f?f.document:f.nodeType===du?f:f.ownerDocument}function ST(f,h,b){var C=tL(b);if(!(xx||sd==null||sd!==Re(C))){var R=eL(sd);if(!bp||!yp(bp,R)){bp=R;var L=Tm(ld,"onSelect");if(L.length>0){var z=new hp("onSelect","select",null,h,b);f.push({event:z,listeners:L}),z.target=sd}}}}function rL(f,h,b,C,R,L,z){var U=b?Yo(b):window;switch(h){case"focusin":(dT(U)||U.contentEditable==="true")&&(sd=U,ld=b,bp=null);break;case"focusout":sd=null,ld=null,bp=null;break;case"mousedown":xx=!0;break;case"contextmenu":case"mouseup":case"dragend":xx=!1,ST(f,C,R);break;case"selectionchange":if(JP)break;case"keydown":case"keyup":ST(f,C,R)}}function nL(f,h,b,C,R,L,z){var U=xu.get(h);if(U!==void 0){var q=hp,ee=h;switch(h){case"keypress":if(kt(C)===0)return;case"keydown":case"keyup":q=gP;break;case"focusin":ee="focus",q=ka;break;case"focusout":ee="blur",q=ka;break;case"beforeblur":case"afterblur":q=ka;break;case"click":if(C.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=Kw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=lP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=gx;break;case Hb:case Wo:case nm:q=uP;break;case tp:q=rT;break;case"scroll":q=Ya;break;case"wheel":q=nT;break;case"copy":case"cut":case"paste":q=cP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=vx;break}var ne=(L&_s)!==0;{var _e=!ne&&h==="scroll",fe=wm(b,U,C.type,ne,_e);if(fe.length>0){var Te=new q(U,ee,null,C,R);f.push({event:Te,listeners:fe})}}}}rp(),FP(),EP(),_T(),yP();function aL(f,h,b,C,R,L,z){nL(f,h,b,C,R,L);var U=(L&Yg)===0;U&&(VP(f,h,b,C,R,L),$P(f,h,b,C,R),rL(f,h,b,C,R),fT(f,h,b,C,R))}var xp=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],wT=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(xp));function TT(f,h,b){var C=f.type||"unknown-event";f.currentTarget=b,Xh(C,h,void 0,f),f.currentTarget=null}function iL(f,h,b){var C;if(b)for(var R=h.length-1;R>=0;R--){var L=h[R],z=L.instance,U=L.currentTarget,q=L.listener;if(z!==C&&f.isPropagationStopped())return;TT(f,q,U),C=z}else for(var ee=0;ee<h.length;ee++){var ne=h[ee],_e=ne.instance,fe=ne.currentTarget,Te=ne.listener;if(_e!==C&&f.isPropagationStopped())return;TT(f,Te,fe),C=_e}}function CT(f,h){for(var b=(h&_s)!==0,C=0;C<f.length;C++){var R=f[C],L=R.event,z=R.listeners;iL(L,z,b)}Ob()}function oL(f,h,b,C,R){var L=Gr(b),z=[];aL(z,f,C,b,L,h),CT(z,h)}function Rn(f,h){var b=!1,C=aC(h),R=IT(f,b);C.has(R)||(ET(h,f,jg,b),C.add(R))}var AT="_reactListening"+Math.random().toString(36).slice(2);function _x(f){{if(f[AT])return;f[AT]=!0,le.forEach(function(h){wT.has(h)||Sx(h,!1,f,null),Sx(h,!0,f,null)})}}function Sx(f,h,b,C){var R=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,L=b;if(f==="selectionchange"&&b.nodeType!==du&&(L=b.ownerDocument),C!==null&&!h&&wT.has(f)){if(f!=="scroll")return;R|=jg,L=C}var z=aC(L),U=IT(f,h);z.has(U)||(h&&(R|=_s),ET(L,f,R,h),z.add(U))}function ET(f,h,b,C,R){var L=sx(f,h,b),z=void 0;Yh&&(h==="touchstart"||h==="touchmove"||h==="wheel")&&(z=!0),f=f,C?z!==void 0?Zw(f,h,L,z):aP(f,h,L):z!==void 0?iP(f,h,L,z):Xw(f,h,L)}function RT(f,h){return f===h||f.nodeType===ci&&f.parentNode===h}function MT(f,h,b,C,R){var L=C;if(!(h&Hh)&&!(h&jg)){var z=R;if(C!==null){var U=C;e:for(;;){if(U===null)return;var q=U.tag;if(q===d||q===p){var ee=U.stateNode.containerInfo;if(RT(ee,z))break;if(q===p)for(var ne=U.return;ne!==null;){var _e=ne.tag;if(_e===d||_e===p){var fe=ne.stateNode.containerInfo;if(RT(fe,z))return}ne=ne.return}for(;ee!==null;){var Te=Gc(ee);if(Te===null)return;var Ye=Te.tag;if(Ye===v||Ye===g){U=L=Te;continue e}ee=ee.parentNode}}U=U.return}}}Ac(function(){return oL(f,h,b,L)})}function _p(f,h,b){return{instance:f,listener:h,currentTarget:b}}function wm(f,h,b,C,R){for(var L=h!==null?h+"Capture":null,z=C?L:h,U=[],q=f,ee=null;q!==null;){var ne=q,_e=ne.stateNode,fe=ne.tag;if(fe===v&&_e!==null&&(ee=_e,z!==null)){var Te=vu(q,z);Te!=null&&U.push(_p(q,Te,ee))}if(R)break;q=q.return}return U}function Tm(f,h){for(var b=h+"Capture",C=[],R=f;R!==null;){var L=R,z=L.stateNode,U=L.tag;if(U===v&&z!==null){var q=z,ee=vu(R,b);ee!=null&&C.unshift(_p(R,ee,q));var ne=vu(R,h);ne!=null&&C.push(_p(R,ne,q))}R=R.return}return C}function ud(f){if(f===null)return null;do f=f.return;while(f&&f.tag!==v);return f||null}function sL(f,h){for(var b=f,C=h,R=0,L=b;L;L=ud(L))R++;for(var z=0,U=C;U;U=ud(U))z++;for(;R-z>0;)b=ud(b),R--;for(;z-R>0;)C=ud(C),z--;for(var q=R;q--;){if(b===C||C!==null&&b===C.alternate)return b;b=ud(b),C=ud(C)}return null}function DT(f,h,b,C,R){for(var L=h._reactName,z=[],U=b;U!==null&&U!==C;){var q=U,ee=q.alternate,ne=q.stateNode,_e=q.tag;if(ee!==null&&ee===C)break;if(_e===v&&ne!==null){var fe=ne;if(R){var Te=vu(U,L);Te!=null&&z.unshift(_p(U,Te,fe))}else if(!R){var Ye=vu(U,L);Ye!=null&&z.push(_p(U,Ye,fe))}}U=U.return}z.length!==0&&f.push({event:h,listeners:z})}function lL(f,h,b,C,R){var L=C&&R?sL(C,R):null;C!==null&&DT(f,h,C,L,!1),R!==null&&b!==null&&DT(f,b,R,L,!0)}function IT(f,h){return f+"__"+(h?"capture":"bubble")}var Mi=!1,Sp="dangerouslySetInnerHTML",Cm="suppressContentEditableWarning",wp="suppressHydrationWarning",PT="autoFocus",Rs="children",Wc="style",Tp="__html",Hc=xb.html,Cp,cd,Ap,Ep,fd,LT,Am,OT,Tu,Rp;{Cp={dialog:!0,webview:!0},Ap=function(f,h){Ff(f,h),Ne(f,h),bo(f,h,{registrationNameDependencies:be,possibleRegistrationNames:Me})},OT=Xe&&!document.documentMode;var uL=/\r\n?/g,cL=/\u0000|\uFFFD/g;Tu=function(f){var h=typeof f=="string"?f:""+f;return h.replace(uL,` `).replace(cL,"")},Ep=function(f,h){if(!Mi){var b=Tu(h),C=Tu(f);C!==b&&(Mi=!0,o('Text content did not match. Server: "%s" Client: "%s"',C,b))}},fd=function(f,h,b){if(!Mi){var C=Tu(b),R=Tu(h);R!==C&&(Mi=!0,o("Prop `%s` did not match. Server: %s Client: %s",f,JSON.stringify(R),JSON.stringify(C)))}},LT=function(f){if(!Mi){Mi=!0;var h=[];f.forEach(function(b){h.push(b)}),o("Extra attributes from the server: %s",h)}},Am=function(f,h){h===!1?o("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",f,f,f):o("Expected `%s` listener to be a function, instead got a value of `%s` type.",f,typeof h)},Rp=function(f,h){var b=f.namespaceURI===Hc?f.ownerDocument.createElement(f.tagName):f.ownerDocument.createElementNS(f.namespaceURI,f.tagName);return b.innerHTML=h,b.innerHTML}}function Em(f){return f.nodeType===du?f:f.ownerDocument}function kT(){}function Rm(f){f.onclick=kT}function fL(f,h,b,C,R){for(var L in C)if(C.hasOwnProperty(L)){var z=C[L];if(L===Wc)z&&Object.freeze(z),dw(h,z);else if(L===Sp){var U=z?z[Tp]:void 0;U!=null&&xl(h,U)}else if(L===Rs)if(typeof z=="string"){var q=f!=="textarea"||z!=="";q&&Vg(h,z)}else typeof z=="number"&&Vg(h,""+z);else L===Cm||L===wp||L===PT||(be.hasOwnProperty(L)?z!=null&&(typeof z!="function"&&Am(L,z),L==="onScroll"&&Rn("scroll",h)):z!=null&&Rr(h,L,z,R))}}function dL(f,h,b,C){for(var R=0;R<h.length;R+=2){var L=h[R],z=h[R+1];L===Wc?dw(f,z):L===Sp?xl(f,z):L===Rs?Vg(f,z):Rr(f,L,z,C)}}function hL(f,h,b,C){var R,L=Em(b),z,U=C;if(U===Hc&&(U=xs(f)),U===Hc){if(R=wc(f,h),!R&&f!==f.toLowerCase()&&o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",f),f==="script"){var q=L.createElement("div");q.innerHTML="<script><\/script>";var ee=q.firstChild;z=q.removeChild(ee)}else if(typeof h.is=="string")z=L.createElement(f,{is:h.is});else if(z=L.createElement(f),f==="select"){var ne=z;h.multiple?ne.multiple=!0:h.size&&(ne.size=h.size)}}else z=L.createElementNS(U,f);return U===Hc&&!R&&Object.prototype.toString.call(z)==="[object HTMLUnknownElement]"&&!Object.prototype.hasOwnProperty.call(Cp,f)&&(Cp[f]=!0,o("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",f)),z}function pL(f,h){return Em(h).createTextNode(f)}function vL(f,h,b,C){var R=wc(h,b);Ap(h,b);var L;switch(h){case"dialog":Rn("cancel",f),Rn("close",f),L=b;break;case"iframe":case"object":case"embed":Rn("load",f),L=b;break;case"video":case"audio":for(var z=0;z<xp.length;z++)Rn(xp[z],f);L=b;break;case"source":Rn("error",f),L=b;break;case"img":case"image":case"link":Rn("error",f),Rn("load",f),L=b;break;case"details":Rn("toggle",f),L=b;break;case"input":Jr(f,b),L=Wr(f,b),Rn("invalid",f);break;case"option":Uh(f,b),L=kf(f,b);break;case"select":hb(f,b),L=bl(f,b),Rn("invalid",f);break;case"textarea":gb(f,b),L=$g(f,b),Rn("invalid",f);break;default:L=b}switch(Eb(h,L),fL(h,f,C,L,R),h){case"input":Z(f),Ua(f,b,!1);break;case"textarea":Z(f),yb(f);break;case"option":fb(f,b);break;case"select":pb(f,b);break;default:typeof L.onClick=="function"&&Rm(f);break}}function gL(f,h,b,C,R){Ap(h,C);var L=null,z,U;switch(h){case"input":z=Wr(f,b),U=Wr(f,C),L=[];break;case"option":z=kf(f,b),U=kf(f,C),L=[];break;case"select":z=bl(f,b),U=bl(f,C),L=[];break;case"textarea":z=$g(f,b),U=$g(f,C),L=[];break;default:z=b,U=C,typeof z.onClick!="function"&&typeof U.onClick=="function"&&Rm(f);break}Eb(h,U);var q,ee,ne=null;for(q in z)if(!(U.hasOwnProperty(q)||!z.hasOwnProperty(q)||z[q]==null))if(q===Wc){var _e=z[q];for(ee in _e)_e.hasOwnProperty(ee)&&(ne||(ne={}),ne[ee]="")}else q===Sp||q===Rs||q===Cm||q===wp||q===PT||(be.hasOwnProperty(q)?L||(L=[]):(L=L||[]).push(q,null));for(q in U){var fe=U[q],Te=z!=null?z[q]:void 0;if(!(!U.hasOwnProperty(q)||fe===Te||fe==null&&Te==null))if(q===Wc)if(fe&&Object.freeze(fe),Te){for(ee in Te)Te.hasOwnProperty(ee)&&(!fe||!fe.hasOwnProperty(ee))&&(ne||(ne={}),ne[ee]="");for(ee in fe)fe.hasOwnProperty(ee)&&Te[ee]!==fe[ee]&&(ne||(ne={}),ne[ee]=fe[ee])}else ne||(L||(L=[]),L.push(q,ne)),ne=fe;else if(q===Sp){var Ye=fe?fe[Tp]:void 0,ct=Te?Te[Tp]:void 0;Ye!=null&&ct!==Ye&&(L=L||[]).push(q,Ye)}else q===Rs?(typeof fe=="string"||typeof fe=="number")&&(L=L||[]).push(q,""+fe):q===Cm||q===wp||(be.hasOwnProperty(q)?(fe!=null&&(typeof fe!="function"&&Am(q,fe),q==="onScroll"&&Rn("scroll",f)),!L&&Te!==fe&&(L=[])):typeof fe=="object"&&fe!==null&&fe.$$typeof===Je?fe.toString():(L=L||[]).push(q,fe))}return ne&&(hw(ne,U[Wc]),(L=L||[]).push(Wc,ne)),L}function mL(f,h,b,C,R){b==="input"&&R.type==="radio"&&R.name!=null&&En(f,R);var L=wc(b,C),z=wc(b,R);switch(dL(f,h,L,z),b){case"input":zn(f,R);break;case"textarea":mb(f,R);break;case"select":mo(f,R);break}}function yL(f){{var h=f.toLowerCase();return Sl.hasOwnProperty(h)&&Sl[h]||null}}function bL(f,h,b,C,R){var L,z;switch(cd=b[wp]===!0,L=wc(h,b),Ap(h,b),h){case"dialog":Rn("cancel",f),Rn("close",f);break;case"iframe":case"object":case"embed":Rn("load",f);break;case"video":case"audio":for(var U=0;U<xp.length;U++)Rn(xp[U],f);break;case"source":Rn("error",f);break;case"img":case"image":case"link":Rn("error",f),Rn("load",f);break;case"details":Rn("toggle",f);break;case"input":Jr(f,b),Rn("invalid",f);break;case"option":Uh(f,b);break;case"select":hb(f,b),Rn("invalid",f);break;case"textarea":gb(f,b),Rn("invalid",f);break}Eb(h,b);{z=new Set;for(var q=f.attributes,ee=0;ee<q.length;ee++){var ne=q[ee].name.toLowerCase();switch(ne){case"data-reactroot":break;case"value":break;case"checked":break;case"selected":break;default:z.add(q[ee].name)}}}var _e=null;for(var fe in b)if(b.hasOwnProperty(fe)){var Te=b[fe];if(fe===Rs)typeof Te=="string"?f.textContent!==Te&&(cd||Ep(f.textContent,Te),_e=[Rs,Te]):typeof Te=="number"&&f.textContent!==""+Te&&(cd||Ep(f.textContent,Te),_e=[Rs,""+Te]);else if(be.hasOwnProperty(fe))Te!=null&&(typeof Te!="function"&&Am(fe,Te),fe==="onScroll"&&Rn("scroll",f));else if(typeof L=="boolean"){var Ye=void 0,ct=Ee(fe);if(!cd){if(!(fe===Cm||fe===wp||fe==="value"||fe==="checked"||fe==="selected")){if(fe===Sp){var Ut=f.innerHTML,dr=Te?Te[Tp]:void 0;if(dr!=null){var tr=Rp(f,dr);tr!==Ut&&fd(fe,Ut,tr)}}else if(fe===Wc){if(z.delete(fe),OT){var Ur=$f(Te);Ye=f.getAttribute("style"),Ur!==Ye&&fd(fe,Ye,Ur)}}else if(L)z.delete(fe.toLowerCase()),Ye=$r(f,fe,Te),Te!==Ye&&fd(fe,Ye,Te);else if(!Sn(fe,ct,L)&&!ge(fe,Te,ct,L)){var Cn=!1;if(ct!==null)z.delete(ct.attributeName),Ye=cr(f,fe,Te,ct);else{var we=C;if(we===Hc&&(we=xs(h)),we===Hc)z.delete(fe.toLowerCase());else{var ze=yL(fe);ze!==null&&ze!==fe&&(Cn=!0,z.delete(ze)),z.delete(fe)}Ye=$r(f,fe,Te)}Te!==Ye&&!Cn&&fd(fe,Ye,Te)}}}}}switch(z.size>0&&!cd&<(z),h){case"input":Z(f),Ua(f,b,!0);break;case"textarea":Z(f),yb(f);break;case"select":case"option":break;default:typeof b.onClick=="function"&&Rm(f);break}return _e}function xL(f,h){var b=f.nodeValue!==h;return b}function NT(f,h){Ep(f.nodeValue,h)}function To(f,h){{if(Mi)return;Mi=!0,o("Did not expect server HTML to contain a <%s> in <%s>.",h.nodeName.toLowerCase(),f.nodeName.toLowerCase())}}function BT(f,h){{if(Mi)return;Mi=!0,o('Did not expect server HTML to contain the text node "%s" in <%s>.',h.nodeValue,f.nodeName.toLowerCase())}}function zT(f,h,b){{if(Mi)return;Mi=!0,o("Expected server HTML to contain a matching <%s> in <%s>.",h,f.nodeName.toLowerCase())}}function Cu(f,h){{if(h===""||Mi)return;Mi=!0,o('Expected server HTML to contain a matching text node for "%s" in <%s>.',h,f.nodeName.toLowerCase())}}function lr(f,h,b){switch(h){case"input":Wa(f,b);return;case"textarea":qi(f,b);return;case"select":iw(f,b);return}}var Mp=function(){},Ta=function(){};{var Jn=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],$T=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],Au=$T.concat(["button"]),_L=["dd","dt","li","option","optgroup","p","rp","rt"],FT={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Ta=function(f,h){var b=e({},f||FT),C={tag:h};return $T.indexOf(h)!==-1&&(b.aTagInScope=null,b.buttonTagInScope=null,b.nobrTagInScope=null),Au.indexOf(h)!==-1&&(b.pTagInButtonScope=null),Jn.indexOf(h)!==-1&&h!=="address"&&h!=="div"&&h!=="p"&&(b.listItemTagAutoclosing=null,b.dlItemTagAutoclosing=null),b.current=C,h==="form"&&(b.formTag=C),h==="a"&&(b.aTagInScope=C),h==="button"&&(b.buttonTagInScope=C),h==="nobr"&&(b.nobrTagInScope=C),h==="p"&&(b.pTagInButtonScope=C),h==="li"&&(b.listItemTagAutoclosing=C),(h==="dd"||h==="dt")&&(b.dlItemTagAutoclosing=C),b};var SL=function(f,h){switch(h){case"select":return f==="option"||f==="optgroup"||f==="#text";case"optgroup":return f==="option"||f==="#text";case"option":return f==="#text";case"tr":return f==="th"||f==="td"||f==="style"||f==="script"||f==="template";case"tbody":case"thead":case"tfoot":return f==="tr"||f==="style"||f==="script"||f==="template";case"colgroup":return f==="col"||f==="template";case"table":return f==="caption"||f==="colgroup"||f==="tbody"||f==="tfoot"||f==="thead"||f==="style"||f==="script"||f==="template";case"head":return f==="base"||f==="basefont"||f==="bgsound"||f==="link"||f==="meta"||f==="title"||f==="noscript"||f==="noframes"||f==="style"||f==="script"||f==="template";case"html":return f==="head"||f==="body"||f==="frameset";case"frameset":return f==="frame";case"#document":return f==="html"}switch(f){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return h!=="h1"&&h!=="h2"&&h!=="h3"&&h!=="h4"&&h!=="h5"&&h!=="h6";case"rp":case"rt":return _L.indexOf(h)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return h==null}return!0},wL=function(f,h){switch(f){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return h.pTagInButtonScope;case"form":return h.formTag||h.pTagInButtonScope;case"li":return h.listItemTagAutoclosing;case"dd":case"dt":return h.dlItemTagAutoclosing;case"button":return h.buttonTagInScope;case"a":return h.aTagInScope;case"nobr":return h.nobrTagInScope}return null},VT={};Mp=function(f,h,b){b=b||FT;var C=b.current,R=C&&C.tag;h!=null&&(f!=null&&o("validateDOMNesting: when childText is passed, childTag should be null"),f="#text");var L=SL(f,R)?null:C,z=L?null:wL(f,b),U=L||z;if(U){var q=U.tag,ee=!!L+"|"+f+"|"+q;if(!VT[ee]){VT[ee]=!0;var ne=f,_e="";if(f==="#text"?/\S/.test(h)?ne="Text nodes":(ne="Whitespace text nodes",_e=" Make sure you don't have any extra whitespace between tags on each line of your source code."):ne="<"+f+">",L){var fe="";q==="table"&&f==="tr"&&(fe+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),o("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",ne,q,_e,fe)}else o("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",ne,q)}}}}var Eu;Eu="suppressHydrationWarning";var UT="$",Ms="/$",Mm="$?",dd="$!",Fn="style",Ln=null,Dm=null;function WT(f,h){switch(f){case"button":case"input":case"select":case"textarea":return!!h.autoFocus}return!1}function TL(f){var h,b,C=f.nodeType;switch(C){case du:case ow:{h=C===du?"#document":"#fragment";var R=f.documentElement;b=R?R.namespaceURI:Nf(null,"");break}default:{var L=C===ci?f.parentNode:f,z=L.namespaceURI||null;h=L.tagName,b=Nf(z,h);break}}{var U=h.toLowerCase(),q=Ta(null,U);return{namespace:b,ancestorInfo:q}}}function CL(f,h,b){{var C=f,R=Nf(C.namespace,h),L=Ta(C.ancestorInfo,h);return{namespace:R,ancestorInfo:L}}}function AU(f){return f}function AL(f){Ln=Yw(),Dm=XP();var h=null;return cp(!1),h}function EL(f){ZP(Dm),cp(Ln),Ln=null,Dm=null}function HT(f,h,b,C,R){var L;{var z=C;if(Mp(f,null,z.ancestorInfo),typeof h.children=="string"||typeof h.children=="number"){var U=""+h.children,q=Ta(z.ancestorInfo,f);Mp(null,U,q)}L=z.namespace}var ee=hL(f,h,b,L);return Pp(R,ee),Rx(ee,h),ee}function Dp(f,h){f.appendChild(h)}function Tx(f,h,b,C,R){return vL(f,h,b,C),WT(h,b)}function RL(f,h,b,C,R,L){{var z=L;if(typeof C.children!=typeof b.children&&(typeof C.children=="string"||typeof C.children=="number")){var U=""+C.children,q=Ta(z.ancestorInfo,h);Mp(null,U,q)}}return gL(f,h,b,C)}function Im(f,h){return f==="textarea"||f==="option"||f==="noscript"||typeof h.children=="string"||typeof h.children=="number"||typeof h.dangerouslySetInnerHTML=="object"&&h.dangerouslySetInnerHTML!==null&&h.dangerouslySetInnerHTML.__html!=null}function Pm(f,h,b,C){{var R=b;Mp(null,f,R.ancestorInfo)}var L=pL(f,h);return Pp(C,L),L}var Di=typeof setTimeout=="function"?setTimeout:void 0,hd=typeof clearTimeout=="function"?clearTimeout:void 0,Cx=-1;function ML(f,h,b,C){WT(h,b)&&f.focus()}function DL(f,h,b,C,R,L){Rx(f,R),mL(f,h,b,C,R)}function GT(f){Vg(f,"")}function IL(f,h,b){f.nodeValue=b}function jT(f,h){f.appendChild(h)}function kl(f,h){var b;f.nodeType===ci?(b=f.parentNode,b.insertBefore(h,f)):(b=f,b.appendChild(h));var C=f._reactRootContainer;C==null&&b.onclick===null&&Rm(b)}function fr(f,h,b){f.insertBefore(h,b)}function YT(f,h,b){f.nodeType===ci?f.parentNode.insertBefore(h,b):f.insertBefore(h,b)}function Co(f,h){f.removeChild(h)}function qT(f,h){f.nodeType===ci?f.parentNode.removeChild(h):f.removeChild(h)}function PL(f){f=f;var h=f.style;typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none"}function Yr(f){f.nodeValue=""}function LL(f,h){f=f;var b=h[Fn],C=b!=null&&b.hasOwnProperty("display")?b.display:null;f.style.display=Ug("display",C)}function XT(f,h){f.nodeValue=h}function pd(f){if(f.nodeType===Ai)f.textContent="";else if(f.nodeType===du){var h=f.body;h!=null&&(h.textContent="")}}function OL(f,h,b){return f.nodeType!==Ai||h.toLowerCase()!==f.nodeName.toLowerCase()?null:f}function kL(f,h){return h===""||f.nodeType!==_l?null:f}function NL(f){return f.data===Mm}function BL(f){return f.data===dd}function ZT(f){for(;f!=null;f=f.nextSibling){var h=f.nodeType;if(h===Ai||h===_l)break}return f}function Lm(f){return ZT(f.nextSibling)}function KT(f){return ZT(f.firstChild)}function zL(f,h,b,C,R,L){Pp(L,f),Rx(f,b);var z;{var U=R;z=U.namespace}return bL(f,h,b,z)}function $L(f,h,b){return Pp(b,f),xL(f,h)}function FL(f){for(var h=f.nextSibling,b=0;h;){if(h.nodeType===ci){var C=h.data;if(C===Ms){if(b===0)return Lm(h);b--}else(C===UT||C===dd||C===Mm)&&b++}h=h.nextSibling}return null}function QT(f){for(var h=f.previousSibling,b=0;h;){if(h.nodeType===ci){var C=h.data;if(C===UT||C===dd||C===Mm){if(b===0)return h;b--}else C===Ms&&b++}h=h.previousSibling}return null}function VL(f){Yf(f)}function UL(f){Yf(f)}function Ax(f,h,b){NT(h,b)}function WL(f,h,b,C,R){h[Eu]!==!0&&NT(C,R)}function Ex(f,h){h.nodeType===Ai?To(f,h):h.nodeType===ci||BT(f,h)}function HL(f,h,b,C){h[Eu]!==!0&&(C.nodeType===Ai?To(b,C):C.nodeType===ci||BT(b,C))}function GL(f,h,b){zT(f,h)}function jL(f,h){Cu(f,h)}function Ca(f,h,b,C,R){h[Eu]!==!0&&zT(b,C)}function Ii(f,h,b,C){h[Eu]!==!0&&Cu(b,C)}function YL(f,h,b){h[Eu]}var qL=0;function XL(f){var h="r:"+(qL++).toString(36);return{toString:function(){return f(),h},valueOf:function(){return f(),h}}}function JT(f){return f!==null&&typeof f=="object"&&f.$$typeof===Je}function ZL(f){return{$$typeof:Je,toString:f,valueOf:f}}function KL(f){_x(f)}var Om=Math.random().toString(36).slice(2),vd="__reactFiber$"+Om,eC="__reactProps$"+Om,Ip="__reactContainer$"+Om,tC="__reactEvents$"+Om;function Pp(f,h){h[vd]=f}function rC(f,h){h[Ip]=f}function nC(f){f[Ip]=null}function km(f){return!!f[Ip]}function Gc(f){var h=f[vd];if(h)return h;for(var b=f.parentNode;b;){if(h=b[Ip]||b[vd],h){var C=h.alternate;if(h.child!==null||C!==null&&C.child!==null)for(var R=QT(f);R!==null;){var L=R[vd];if(L)return L;R=QT(R)}return h}f=b,b=f.parentNode}return null}function Ru(f){var h=f[vd]||f[Ip];return h&&(h.tag===v||h.tag===g||h.tag===M||h.tag===d)?h:null}function Yo(f){if(f.tag===v||f.tag===g)return f.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Nm(f){return f[eC]||null}function Rx(f,h){f[eC]=h}function aC(f){var h=f[tC];return h===void 0&&(h=f[tC]=new Set),h}var iC={},oC=a.ReactDebugCurrentFrame;function Lp(f){if(f){var h=f._owner,b=If(f.type,f._source,h?h.type:null);oC.setExtraStackFrame(b)}else oC.setExtraStackFrame(null)}function Ao(f,h,b,C,R){{var L=Function.call.bind(Object.prototype.hasOwnProperty);for(var z in f)if(L(f,z)){var U=void 0;try{if(typeof f[z]!="function"){var q=Error((C||"React class")+": "+b+" type `"+z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[z]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw q.name="Invariant Violation",q}U=f[z](h,z,C,b,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ee){U=ee}U&&!(U instanceof Error)&&(Lp(R),o("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",C||"React class",b,z,typeof U),Lp(null)),U instanceof Error&&!(U.message in iC)&&(iC[U.message]=!0,Lp(R),o("Failed %s type: %s",b,U.message),Lp(null))}}}var Mx=[],Bm;Bm=[];var Nl=-1;function Mu(f){return{current:f}}function Xa(f,h){if(Nl<0){o("Unexpected pop.");return}h!==Bm[Nl]&&o("Unexpected Fiber popped."),f.current=Mx[Nl],Mx[Nl]=null,Bm[Nl]=null,Nl--}function Za(f,h,b){Nl++,Mx[Nl]=f.current,Bm[Nl]=b,f.current=h}var Dx;Dx={};var Ki={};Object.freeze(Ki);var Bl=Mu(Ki),Ds=Mu(!1),Ix=Ki;function gd(f,h,b){return b&&Is(h)?Ix:Bl.current}function sC(f,h,b){{var C=f.stateNode;C.__reactInternalMemoizedUnmaskedChildContext=h,C.__reactInternalMemoizedMaskedChildContext=b}}function md(f,h){{var b=f.type,C=b.contextTypes;if(!C)return Ki;var R=f.stateNode;if(R&&R.__reactInternalMemoizedUnmaskedChildContext===h)return R.__reactInternalMemoizedMaskedChildContext;var L={};for(var z in C)L[z]=h[z];{var U=ht(b)||"Unknown";Ao(C,L,"context",U)}return R&&sC(f,h,L),L}}function zm(){return Ds.current}function Is(f){{var h=f.childContextTypes;return h!=null}}function $m(f){Xa(Ds,f),Xa(Bl,f)}function Px(f){Xa(Ds,f),Xa(Bl,f)}function lC(f,h,b){{if(Bl.current!==Ki)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Za(Bl,h,f),Za(Ds,b,f)}}function uC(f,h,b){{var C=f.stateNode,R=h.childContextTypes;if(typeof C.getChildContext!="function"){{var L=ht(h)||"Unknown";Dx[L]||(Dx[L]=!0,o("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",L,L))}return b}var z=C.getChildContext();for(var U in z)if(!(U in R))throw Error((ht(h)||"Unknown")+'.getChildContext(): key "'+U+'" is not defined in childContextTypes.');{var q=ht(h)||"Unknown";Ao(R,z,"child context",q)}return e({},b,z)}}function Fm(f){{var h=f.stateNode,b=h&&h.__reactInternalMemoizedMergedChildContext||Ki;return Ix=Bl.current,Za(Bl,b,f),Za(Ds,Ds.current,f),!0}}function cC(f,h,b){{var C=f.stateNode;if(!C)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(b){var R=uC(f,h,Ix);C.__reactInternalMemoizedMergedChildContext=R,Xa(Ds,f),Xa(Bl,f),Za(Bl,R,f),Za(Ds,b,f)}else Xa(Ds,f),Za(Ds,b,f)}}function QL(f){{if(!(VI(f)&&f.tag===u))throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var h=f;do{switch(h.tag){case d:return h.stateNode.context;case u:{var b=h.type;if(Is(b))return h.stateNode.__reactInternalMemoizedMergedChildContext;break}}h=h.return}while(h!==null);throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var Lx=0,fC=1,Vm=2,Op=null,qo=null,yd=!1,JL=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function e2(f){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var h=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(h.isDisabled)return!0;if(!h.supportsFiber)return o("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{Op=h.inject(f),qo=h}catch(b){o("React instrumentation encountered an error: %s.",b)}return!0}function Ox(f,h){if(qo&&typeof qo.onScheduleFiberRoot=="function")try{qo.onScheduleFiberRoot(Op,f,h)}catch(b){yd||(yd=!0,o("React instrumentation encountered an error: %s",b))}}function t2(f,h){if(qo&&typeof qo.onCommitFiberRoot=="function")try{var b=(f.current.flags&K)===K;te&&qo.onCommitFiberRoot(Op,f,h,b)}catch(C){yd||(yd=!0,o("React instrumentation encountered an error: %s",C))}}function r2(f){if(qo&&typeof qo.onCommitFiberUnmount=="function")try{qo.onCommitFiberUnmount(Op,f)}catch(h){yd||(yd=!0,o("React instrumentation encountered an error: %s",h))}}var n2=r.unstable_runWithPriority,Ka=r.unstable_scheduleCallback,Um=r.unstable_cancelCallback,a2=r.unstable_shouldYield,dC=r.unstable_requestPaint,kx=r.unstable_now,i2=r.unstable_getCurrentPriorityLevel,bd=r.unstable_ImmediatePriority,hC=r.unstable_UserBlockingPriority,Wm=r.unstable_NormalPriority,pC=r.unstable_LowPriority,vC=r.unstable_IdlePriority;if(!(n.__interactionsRef!=null&&n.__interactionsRef.current!=null))throw Error("It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at https://reactjs.org/link/profiling");var gC={},Eo=99,Du=98,zl=97,mC=96,yC=95,kp=90,Nx=a2,o2=dC!==void 0?dC:function(){},$l=null,Hm=null,Bx=!1,bC=kx(),Qa=bC<1e4?kx:function(){return kx()-bC};function xd(){switch(i2()){case bd:return Eo;case hC:return Du;case Wm:return zl;case pC:return mC;case vC:return yC;default:throw Error("Unknown priority level.")}}function xC(f){switch(f){case Eo:return bd;case Du:return hC;case zl:return Wm;case mC:return pC;case yC:return vC;default:throw Error("Unknown priority level.")}}function jc(f,h){var b=xC(f);return n2(b,h)}function Iu(f,h,b){var C=xC(f);return Ka(C,h,b)}function s2(f){return $l===null?($l=[f],Hm=Ka(bd,SC)):$l.push(f),gC}function _C(f){f!==gC&&Um(f)}function Ps(){if(Hm!==null){var f=Hm;Hm=null,Um(f)}SC()}function SC(){if(!Bx&&$l!==null){Bx=!0;var f=0;try{var h=!0,b=$l;jc(Eo,function(){for(;f<b.length;f++){var C=b[f];do C=C(h);while(C!==null)}}),$l=null}catch(C){throw $l!==null&&($l=$l.slice(f+1)),Ka(bd,Ps),C}finally{Bx=!1}}}var wC="17.0.2",On=0,Hn=1,Pi=2,Yc=4,Qi=8,l2=16,y=a.ReactCurrentBatchConfig,S=0;function I(){return y.transition}var B={recordUnsafeLifecycleWarnings:function(f,h){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(f,h){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var G=function(f){for(var h=null,b=f;b!==null;)b.mode&Hn&&(h=b),b=b.return;return h},Q=function(f){var h=[];return f.forEach(function(b){h.push(b)}),h.sort().join(", ")},ae=[],ce=[],me=[],Fe=[],Ve=[],je=[],ut=new Set;B.recordUnsafeLifecycleWarnings=function(f,h){ut.has(f.type)||(typeof h.componentWillMount=="function"&&h.componentWillMount.__suppressDeprecationWarning!==!0&&ae.push(f),f.mode&Hn&&typeof h.UNSAFE_componentWillMount=="function"&&ce.push(f),typeof h.componentWillReceiveProps=="function"&&h.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&me.push(f),f.mode&Hn&&typeof h.UNSAFE_componentWillReceiveProps=="function"&&Fe.push(f),typeof h.componentWillUpdate=="function"&&h.componentWillUpdate.__suppressDeprecationWarning!==!0&&Ve.push(f),f.mode&Hn&&typeof h.UNSAFE_componentWillUpdate=="function"&&je.push(f))},B.flushPendingUnsafeLifecycleWarnings=function(){var f=new Set;ae.length>0&&(ae.forEach(function(fe){f.add(ht(fe.type)||"Component"),ut.add(fe.type)}),ae=[]);var h=new Set;ce.length>0&&(ce.forEach(function(fe){h.add(ht(fe.type)||"Component"),ut.add(fe.type)}),ce=[]);var b=new Set;me.length>0&&(me.forEach(function(fe){b.add(ht(fe.type)||"Component"),ut.add(fe.type)}),me=[]);var C=new Set;Fe.length>0&&(Fe.forEach(function(fe){C.add(ht(fe.type)||"Component"),ut.add(fe.type)}),Fe=[]);var R=new Set;Ve.length>0&&(Ve.forEach(function(fe){R.add(ht(fe.type)||"Component"),ut.add(fe.type)}),Ve=[]);var L=new Set;if(je.length>0&&(je.forEach(function(fe){L.add(ht(fe.type)||"Component"),ut.add(fe.type)}),je=[]),h.size>0){var z=Q(h);o(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details. * Move code with side effects to componentDidMount, and set initial state in the constructor. Please update the following components: %s`,z)}if(C.size>0){var U=Q(C);o(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details. * Move data fetching code or side effects to componentDidUpdate. * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state Please update the following components: %s`,U)}if(L.size>0){var q=Q(L);o(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details. * Move data fetching code or side effects to componentDidUpdate. Please update the following components: %s`,q)}if(f.size>0){var ee=Q(f);i(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details. * Move code with side effects to componentDidMount, and set initial state in the constructor. * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder. Please update the following components: %s`,ee)}if(b.size>0){var ne=Q(b);i(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details. * Move data fetching code or side effects to componentDidUpdate. * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder. Please update the following components: %s`,ne)}if(R.size>0){var _e=Q(R);i(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details. * Move data fetching code or side effects to componentDidUpdate. * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder. Please update the following components: %s`,_e)}};var Dt=new Map,qt=new Set;B.recordLegacyContextWarning=function(f,h){var b=G(f);if(b===null){o("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!qt.has(f.type)){var C=Dt.get(b);(f.type.contextTypes!=null||f.type.childContextTypes!=null||h!==null&&typeof h.getChildContext=="function")&&(C===void 0&&(C=[],Dt.set(b,C)),C.push(f))}},B.flushLegacyContextWarning=function(){Dt.forEach(function(f,h){if(f.length!==0){var b=f[0],C=new Set;f.forEach(function(L){C.add(ht(L.type)||"Component"),qt.add(L.type)});var R=Q(C);try{Bn(b),o(`Legacy context API has been detected within a strict-mode tree. The old API will be supported in all 16.x releases, but applications using it should migrate to the new version. Please update the following components: %s Learn more about this warning here: https://reactjs.org/link/legacy-context`,R)}finally{Sa()}}})},B.discardPendingWarnings=function(){ae=[],ce=[],me=[],Fe=[],Ve=[],je=[],Dt=new Map}}function Kt(f,h){if(f&&f.defaultProps){var b=e({},h),C=f.defaultProps;for(var R in C)b[R]===void 0&&(b[R]=C[R]);return b}return h}var Bt=1073741823,xr=Mu(null),Ar;Ar={};var Ja=null,na=null,ei=null,kn=!1;function Li(){Ja=null,na=null,ei=null,kn=!1}function Ls(){kn=!0}function zx(){kn=!1}function EU(f,h){var b=f.type._context;Za(xr,b._currentValue,f),b._currentValue=h,b._currentRenderer!==void 0&&b._currentRenderer!==null&&b._currentRenderer!==Ar&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),b._currentRenderer=Ar}function u2(f){var h=xr.current;Xa(xr,f);var b=f.type._context;b._currentValue=h}function woe(f,h,b){if(wo(b,h))return 0;var C=typeof f._calculateChangedBits=="function"?f._calculateChangedBits(b,h):Bt;return(C&Bt)!==C&&o("calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: %s",C),C|0}function RU(f,h){for(var b=f;b!==null;){var C=b.alternate;if(!ja(b.childLanes,h))b.childLanes=jr(b.childLanes,h),C!==null&&(C.childLanes=jr(C.childLanes,h));else if(C!==null&&!ja(C.childLanes,h))C.childLanes=jr(C.childLanes,h);else break;b=b.return}}function Toe(f,h,b,C){var R=f.child;for(R!==null&&(R.return=f);R!==null;){var L=void 0,z=R.dependencies;if(z!==null){L=R.child;for(var U=z.firstContext;U!==null;){if(U.context===h&&U.observedBits&b){if(R.tag===u){var q=_d(Pr,pi(C));q.tag=TC,Sd(R,q)}R.lanes=jr(R.lanes,C);var ee=R.alternate;ee!==null&&(ee.lanes=jr(ee.lanes,C)),RU(R.return,C),z.lanes=jr(z.lanes,C);break}U=U.next}}else R.tag===w?L=R.type===f.type?null:R.child:L=R.child;if(L!==null)L.return=R;else for(L=R;L!==null;){if(L===f){L=null;break}var ne=L.sibling;if(ne!==null){ne.return=L.return,L=ne;break}L=L.return}R=L}}function Gm(f,h){Ja=f,na=null,ei=null;var b=f.dependencies;if(b!==null){var C=b.firstContext;C!==null&&(tn(b.lanes,h)&&mO(),b.firstContext=null)}}function Aa(f,h){if(kn&&o("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),ei!==f){if(!(h===!1||h===0)){var b;typeof h!="number"||h===Bt?(ei=f,b=Bt):b=h;var C={context:f,observedBits:b,next:null};if(na===null){if(Ja===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");na=C,Ja.dependencies={lanes:qe,firstContext:C,responders:null}}else na=na.next=C}}return f._currentValue}var MU=0,DU=1,TC=2,c2=3,CC=!1,f2,AC;f2=!1,AC=null;function d2(f){var h={baseState:f.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null};f.updateQueue=h}function IU(f,h){var b=h.updateQueue,C=f.updateQueue;if(b===C){var R={baseState:C.baseState,firstBaseUpdate:C.firstBaseUpdate,lastBaseUpdate:C.lastBaseUpdate,shared:C.shared,effects:C.effects};h.updateQueue=R}}function _d(f,h){var b={eventTime:f,lane:h,tag:MU,payload:null,callback:null,next:null};return b}function Sd(f,h){var b=f.updateQueue;if(b!==null){var C=b.shared,R=C.pending;R===null?h.next=h:(h.next=R.next,R.next=h),C.pending=h,AC===C&&!f2&&(o("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),f2=!0)}}function PU(f,h){var b=f.updateQueue,C=f.alternate;if(C!==null){var R=C.updateQueue;if(b===R){var L=null,z=null,U=b.firstBaseUpdate;if(U!==null){var q=U;do{var ee={eventTime:q.eventTime,lane:q.lane,tag:q.tag,payload:q.payload,callback:q.callback,next:null};z===null?L=z=ee:(z.next=ee,z=ee),q=q.next}while(q!==null);z===null?L=z=h:(z.next=h,z=h)}else L=z=h;b={baseState:R.baseState,firstBaseUpdate:L,lastBaseUpdate:z,shared:R.shared,effects:R.effects},f.updateQueue=b;return}}var ne=b.lastBaseUpdate;ne===null?b.firstBaseUpdate=h:ne.next=h,b.lastBaseUpdate=h}function Coe(f,h,b,C,R,L){switch(b.tag){case DU:{var z=b.payload;if(typeof z=="function"){Ls();var U=z.call(L,C,R);{if(f.mode&Hn){ui();try{z.call(L,C,R)}finally{go()}}zx()}return U}return z}case c2:f.flags=f.flags&~Rl|K;case MU:{var q=b.payload,ee;if(typeof q=="function"){Ls(),ee=q.call(L,C,R);{if(f.mode&Hn){ui();try{q.call(L,C,R)}finally{go()}}zx()}}else ee=q;return ee==null?C:e({},C,ee)}case TC:return CC=!0,C}return C}function $x(f,h,b,C){var R=f.updateQueue;CC=!1,AC=R.shared;var L=R.firstBaseUpdate,z=R.lastBaseUpdate,U=R.shared.pending;if(U!==null){R.shared.pending=null;var q=U,ee=q.next;q.next=null,z===null?L=ee:z.next=ee,z=q;var ne=f.alternate;if(ne!==null){var _e=ne.updateQueue,fe=_e.lastBaseUpdate;fe!==z&&(fe===null?_e.firstBaseUpdate=ee:fe.next=ee,_e.lastBaseUpdate=q)}}if(L!==null){var Te=R.baseState,Ye=qe,ct=null,Ut=null,dr=null,tr=L;do{var Ur=tr.lane,Cn=tr.eventTime;if(ja(C,Ur)){if(dr!==null){var ze={eventTime:Cn,lane:Ga,tag:tr.tag,payload:tr.payload,callback:tr.callback,next:null};dr=dr.next=ze}Te=Coe(f,R,tr,Te,h,b);var ye=tr.callback;if(ye!==null){f.flags|=kb;var tt=R.effects;tt===null?R.effects=[tr]:tt.push(tr)}}else{var we={eventTime:Cn,lane:Ur,tag:tr.tag,payload:tr.payload,callback:tr.callback,next:null};dr===null?(Ut=dr=we,ct=Te):dr=dr.next=we,Ye=jr(Ye,Ur)}if(tr=tr.next,tr===null){if(U=R.shared.pending,U===null)break;var mt=U,Mt=mt.next;mt.next=null,tr=Mt,R.lastBaseUpdate=mt,R.shared.pending=null}}while(!0);dr===null&&(ct=Te),R.baseState=ct,R.firstBaseUpdate=Ut,R.lastBaseUpdate=dr,UO(Ye),f.lanes=Ye,f.memoizedState=Te}AC=null}function Aoe(f,h){if(typeof f!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+f);f.call(h)}function LU(){CC=!1}function EC(){return CC}function OU(f,h,b){var C=h.effects;if(h.effects=null,C!==null)for(var R=0;R<C.length;R++){var L=C[R],z=L.callback;z!==null&&(L.callback=null,Aoe(z,b))}}var h2={},Eoe=Array.isArray,kU=new t.Component().refs,p2,v2,g2,m2,y2,NU,RC,b2,x2,_2;{p2=new Set,v2=new Set,g2=new Set,m2=new Set,b2=new Set,y2=new Set,x2=new Set,_2=new Set;var BU=new Set;RC=function(f,h){if(!(f===null||typeof f=="function")){var b=h+"_"+f;BU.has(b)||(BU.add(b),o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",h,f))}},NU=function(f,h){if(h===void 0){var b=ht(f)||"Component";y2.has(b)||(y2.add(b),o("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",b))}},Object.defineProperty(h2,"_processChildContext",{enumerable:!1,value:function(){throw Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(h2)}function MC(f,h,b,C){var R=f.memoizedState;if(f.mode&Hn){ui();try{b(C,R)}finally{go()}}var L=b(C,R);NU(h,L);var z=L==null?R:e({},R,L);if(f.memoizedState=z,f.lanes===qe){var U=f.updateQueue;U.baseState=z}}var S2={isMounted:UI,enqueueSetState:function(f,h,b){var C=Ss(f),R=Zo(),L=Ad(C),z=_d(R,L);z.payload=h,b!=null&&(RC(b,"setState"),z.callback=b),Sd(C,z),ki(C,L,R)},enqueueReplaceState:function(f,h,b){var C=Ss(f),R=Zo(),L=Ad(C),z=_d(R,L);z.tag=DU,z.payload=h,b!=null&&(RC(b,"replaceState"),z.callback=b),Sd(C,z),ki(C,L,R)},enqueueForceUpdate:function(f,h){var b=Ss(f),C=Zo(),R=Ad(b),L=_d(C,R);L.tag=TC,h!=null&&(RC(h,"forceUpdate"),L.callback=h),Sd(b,L),ki(b,R,C)}};function zU(f,h,b,C,R,L,z){var U=f.stateNode;if(typeof U.shouldComponentUpdate=="function"){if(f.mode&Hn){ui();try{U.shouldComponentUpdate(C,L,z)}finally{go()}}var q=U.shouldComponentUpdate(C,L,z);return q===void 0&&o("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",ht(h)||"Component"),q}return h.prototype&&h.prototype.isPureReactComponent?!yp(b,C)||!yp(R,L):!0}function Roe(f,h,b){var C=f.stateNode;{var R=ht(h)||"Component",L=C.render;L||(h.prototype&&typeof h.prototype.render=="function"?o("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",R):o("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",R)),C.getInitialState&&!C.getInitialState.isReactClassApproved&&!C.state&&o("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",R),C.getDefaultProps&&!C.getDefaultProps.isReactClassApproved&&o("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",R),C.propTypes&&o("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",R),C.contextType&&o("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",R),C.contextTypes&&o("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",R),h.contextType&&h.contextTypes&&!x2.has(h)&&(x2.add(h),o("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",R)),typeof C.componentShouldUpdate=="function"&&o("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",R),h.prototype&&h.prototype.isPureReactComponent&&typeof C.shouldComponentUpdate<"u"&&o("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",ht(h)||"A pure component"),typeof C.componentDidUnmount=="function"&&o("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",R),typeof C.componentDidReceiveProps=="function"&&o("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",R),typeof C.componentWillRecieveProps=="function"&&o("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",R),typeof C.UNSAFE_componentWillRecieveProps=="function"&&o("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",R);var z=C.props!==b;C.props!==void 0&&z&&o("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",R,R),C.defaultProps&&o("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",R,R),typeof C.getSnapshotBeforeUpdate=="function"&&typeof C.componentDidUpdate!="function"&&!g2.has(h)&&(g2.add(h),o("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ht(h))),typeof C.getDerivedStateFromProps=="function"&&o("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",R),typeof C.getDerivedStateFromError=="function"&&o("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",R),typeof h.getSnapshotBeforeUpdate=="function"&&o("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",R);var U=C.state;U&&(typeof U!="object"||Eoe(U))&&o("%s.state: must be set to an object or null",R),typeof C.getChildContext=="function"&&typeof h.childContextTypes!="object"&&o("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",R)}}function $U(f,h){h.updater=S2,f.stateNode=h,Hf(h,f),h._reactInternalInstance=h2}function FU(f,h,b){var C=!1,R=Ki,L=Ki,z=h.contextType;if("contextType"in h){var U=z===null||z!==void 0&&z.$$typeof===iu&&z._context===void 0;if(!U&&!_2.has(h)){_2.add(h);var q="";z===void 0?q=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof z!="object"?q=" However, it is set to a "+typeof z+".":z.$$typeof===ml?q=" Did you accidentally pass the Context.Provider instead?":z._context!==void 0?q=" Did you accidentally pass the Context.Consumer instead?":q=" However, it is set to an object with keys {"+Object.keys(z).join(", ")+"}.",o("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",ht(h)||"Component",q)}}if(typeof z=="object"&&z!==null)L=Aa(z);else{R=gd(f,h,!0);var ee=h.contextTypes;C=ee!=null,L=C?md(f,R):Ki}if(f.mode&Hn){ui();try{new h(b,L)}finally{go()}}var ne=new h(b,L),_e=f.memoizedState=ne.state!==null&&ne.state!==void 0?ne.state:null;$U(f,ne);{if(typeof h.getDerivedStateFromProps=="function"&&_e===null){var fe=ht(h)||"Component";v2.has(fe)||(v2.add(fe),o("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",fe,ne.state===null?"null":"undefined",fe))}if(typeof h.getDerivedStateFromProps=="function"||typeof ne.getSnapshotBeforeUpdate=="function"){var Te=null,Ye=null,ct=null;if(typeof ne.componentWillMount=="function"&&ne.componentWillMount.__suppressDeprecationWarning!==!0?Te="componentWillMount":typeof ne.UNSAFE_componentWillMount=="function"&&(Te="UNSAFE_componentWillMount"),typeof ne.componentWillReceiveProps=="function"&&ne.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Ye="componentWillReceiveProps":typeof ne.UNSAFE_componentWillReceiveProps=="function"&&(Ye="UNSAFE_componentWillReceiveProps"),typeof ne.componentWillUpdate=="function"&&ne.componentWillUpdate.__suppressDeprecationWarning!==!0?ct="componentWillUpdate":typeof ne.UNSAFE_componentWillUpdate=="function"&&(ct="UNSAFE_componentWillUpdate"),Te!==null||Ye!==null||ct!==null){var Ut=ht(h)||"Component",dr=typeof h.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";m2.has(Ut)||(m2.add(Ut),o(`Unsafe legacy lifecycles will not be called for components using new component APIs. %s uses %s but also contains the following legacy lifecycles:%s%s%s The above lifecycles should be removed. Learn more about this warning here: https://reactjs.org/link/unsafe-component-lifecycles`,Ut,dr,Te!==null?` `+Te:"",Ye!==null?` `+Ye:"",ct!==null?` `+ct:""))}}}return C&&sC(f,R,L),ne}function Moe(f,h){var b=h.state;typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),b!==h.state&&(o("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",ht(f.type)||"Component"),S2.enqueueReplaceState(h,h.state,null))}function VU(f,h,b,C){var R=h.state;if(typeof h.componentWillReceiveProps=="function"&&h.componentWillReceiveProps(b,C),typeof h.UNSAFE_componentWillReceiveProps=="function"&&h.UNSAFE_componentWillReceiveProps(b,C),h.state!==R){{var L=ht(f.type)||"Component";p2.has(L)||(p2.add(L),o("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",L))}S2.enqueueReplaceState(h,h.state,null)}}function w2(f,h,b,C){Roe(f,h,b);var R=f.stateNode;R.props=b,R.state=f.memoizedState,R.refs=kU,d2(f);var L=h.contextType;if(typeof L=="object"&&L!==null)R.context=Aa(L);else{var z=gd(f,h,!0);R.context=md(f,z)}{if(R.state===b){var U=ht(h)||"Component";b2.has(U)||(b2.add(U),o("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",U))}f.mode&Hn&&B.recordLegacyContextWarning(f,R),B.recordUnsafeLifecycleWarnings(f,R)}$x(f,b,R,C),R.state=f.memoizedState;var q=h.getDerivedStateFromProps;typeof q=="function"&&(MC(f,h,q,b),R.state=f.memoizedState),typeof h.getDerivedStateFromProps!="function"&&typeof R.getSnapshotBeforeUpdate!="function"&&(typeof R.UNSAFE_componentWillMount=="function"||typeof R.componentWillMount=="function")&&(Moe(f,R),$x(f,b,R,C),R.state=f.memoizedState),typeof R.componentDidMount=="function"&&(f.flags|=gn)}function Doe(f,h,b,C){var R=f.stateNode,L=f.memoizedProps;R.props=L;var z=R.context,U=h.contextType,q=Ki;if(typeof U=="object"&&U!==null)q=Aa(U);else{var ee=gd(f,h,!0);q=md(f,ee)}var ne=h.getDerivedStateFromProps,_e=typeof ne=="function"||typeof R.getSnapshotBeforeUpdate=="function";!_e&&(typeof R.UNSAFE_componentWillReceiveProps=="function"||typeof R.componentWillReceiveProps=="function")&&(L!==b||z!==q)&&VU(f,R,b,q),LU();var fe=f.memoizedState,Te=R.state=fe;if($x(f,b,R,C),Te=f.memoizedState,L===b&&fe===Te&&!zm()&&!EC())return typeof R.componentDidMount=="function"&&(f.flags|=gn),!1;typeof ne=="function"&&(MC(f,h,ne,b),Te=f.memoizedState);var Ye=EC()||zU(f,h,L,b,fe,Te,q);return Ye?(!_e&&(typeof R.UNSAFE_componentWillMount=="function"||typeof R.componentWillMount=="function")&&(typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount()),typeof R.componentDidMount=="function"&&(f.flags|=gn)):(typeof R.componentDidMount=="function"&&(f.flags|=gn),f.memoizedProps=b,f.memoizedState=Te),R.props=b,R.state=Te,R.context=q,Ye}function Ioe(f,h,b,C,R){var L=h.stateNode;IU(f,h);var z=h.memoizedProps,U=h.type===h.elementType?z:Kt(h.type,z);L.props=U;var q=h.pendingProps,ee=L.context,ne=b.contextType,_e=Ki;if(typeof ne=="object"&&ne!==null)_e=Aa(ne);else{var fe=gd(h,b,!0);_e=md(h,fe)}var Te=b.getDerivedStateFromProps,Ye=typeof Te=="function"||typeof L.getSnapshotBeforeUpdate=="function";!Ye&&(typeof L.UNSAFE_componentWillReceiveProps=="function"||typeof L.componentWillReceiveProps=="function")&&(z!==q||ee!==_e)&&VU(h,L,C,_e),LU();var ct=h.memoizedState,Ut=L.state=ct;if($x(h,C,L,R),Ut=h.memoizedState,z===q&&ct===Ut&&!zm()&&!EC())return typeof L.componentDidUpdate=="function"&&(z!==f.memoizedProps||ct!==f.memoizedState)&&(h.flags|=gn),typeof L.getSnapshotBeforeUpdate=="function"&&(z!==f.memoizedProps||ct!==f.memoizedState)&&(h.flags|=ws),!1;typeof Te=="function"&&(MC(h,b,Te,C),Ut=h.memoizedState);var dr=EC()||zU(h,b,U,C,ct,Ut,_e);return dr?(!Ye&&(typeof L.UNSAFE_componentWillUpdate=="function"||typeof L.componentWillUpdate=="function")&&(typeof L.componentWillUpdate=="function"&&L.componentWillUpdate(C,Ut,_e),typeof L.UNSAFE_componentWillUpdate=="function"&&L.UNSAFE_componentWillUpdate(C,Ut,_e)),typeof L.componentDidUpdate=="function"&&(h.flags|=gn),typeof L.getSnapshotBeforeUpdate=="function"&&(h.flags|=ws)):(typeof L.componentDidUpdate=="function"&&(z!==f.memoizedProps||ct!==f.memoizedState)&&(h.flags|=gn),typeof L.getSnapshotBeforeUpdate=="function"&&(z!==f.memoizedProps||ct!==f.memoizedState)&&(h.flags|=ws),h.memoizedProps=C,h.memoizedState=Ut),L.props=C,L.state=Ut,L.context=_e,dr}var T2,C2,A2,E2,R2,UU=function(f,h){};T2=!1,C2=!1,A2={},E2={},R2={},UU=function(f,h){if(!(f===null||typeof f!="object")&&!(!f._store||f._store.validated||f.key!=null)){if(typeof f._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");f._store.validated=!0;var b=ht(h.type)||"Component";E2[b]||(E2[b]=!0,o('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};var DC=Array.isArray;function Fx(f,h,b){var C=b.ref;if(C!==null&&typeof C!="function"&&typeof C!="object"){if((f.mode&Hn||se)&&!(b._owner&&b._self&&b._owner.stateNode!==b._self)){var R=ht(f.type)||"Component";A2[R]||(o('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',C),A2[R]=!0)}if(b._owner){var L=b._owner,z;if(L){var U=L;if(U.tag!==u)throw Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");z=U.stateNode}if(!z)throw Error("Missing owner for string ref "+C+". This error is likely caused by a bug in React. Please file an issue.");var q=""+C;if(h!==null&&h.ref!==null&&typeof h.ref=="function"&&h.ref._stringRef===q)return h.ref;var ee=function(ne){var _e=z.refs;_e===kU&&(_e=z.refs={}),ne===null?delete _e[q]:_e[q]=ne};return ee._stringRef=q,ee}else{if(typeof C!="string")throw Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!b._owner)throw Error("Element ref was specified as a string ("+C+`) but no owner was set. This could happen for one of the following reasons: 1. You may be adding a ref to a function component 2. You may be adding a ref to a component that was not created inside a component's render method 3. You have multiple copies of React loaded See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return C}function IC(f,h){if(f.type!=="textarea")throw Error("Objects are not valid as a React child (found: "+(Object.prototype.toString.call(h)==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.")}function PC(f){{var h=ht(f.type)||"Component";if(R2[h])return;R2[h]=!0,o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function WU(f){function h(we,ze){if(f){var ye=we.lastEffect;ye!==null?(ye.nextEffect=ze,we.lastEffect=ze):we.firstEffect=we.lastEffect=ze,ze.nextEffect=null,ze.flags=_o}}function b(we,ze){if(!f)return null;for(var ye=ze;ye!==null;)h(we,ye),ye=ye.sibling;return null}function C(we,ze){for(var ye=new Map,tt=ze;tt!==null;)tt.key!==null?ye.set(tt.key,tt):ye.set(tt.index,tt),tt=tt.sibling;return ye}function R(we,ze){var ye=jp(we,ze);return ye.index=0,ye.sibling=null,ye}function L(we,ze,ye){if(we.index=ye,!f)return ze;var tt=we.alternate;if(tt!==null){var mt=tt.index;return mt<ze?(we.flags=Qn,ze):mt}else return we.flags=Qn,ze}function z(we){return f&&we.alternate===null&&(we.flags=Qn),we}function U(we,ze,ye,tt){if(ze===null||ze.tag!==g){var mt=rk(ye,we.mode,tt);return mt.return=we,mt}else{var Mt=R(ze,ye);return Mt.return=we,Mt}}function q(we,ze,ye,tt){if(ze!==null&&(ze.elementType===ye.type||wH(ze,ye))){var mt=R(ze,ye.props);return mt.ref=Fx(we,ze,ye),mt.return=we,mt._debugSource=ye._source,mt._debugOwner=ye._owner,mt}var Mt=ek(ye,we.mode,tt);return Mt.ref=Fx(we,ze,ye),Mt.return=we,Mt}function ee(we,ze,ye,tt){if(ze===null||ze.tag!==p||ze.stateNode.containerInfo!==ye.containerInfo||ze.stateNode.implementation!==ye.implementation){var mt=nk(ye,we.mode,tt);return mt.return=we,mt}else{var Mt=R(ze,ye.children||[]);return Mt.return=we,Mt}}function ne(we,ze,ye,tt,mt){if(ze===null||ze.tag!==m){var Mt=Yp(ye,we.mode,tt,mt);return Mt.return=we,Mt}else{var Lr=R(ze,ye);return Lr.return=we,Lr}}function _e(we,ze,ye){if(typeof ze=="string"||typeof ze=="number"){var tt=rk(""+ze,we.mode,ye);return tt.return=we,tt}if(typeof ze=="object"&&ze!==null){switch(ze.$$typeof){case Un:{var mt=ek(ze,we.mode,ye);return mt.ref=Fx(we,null,ze),mt.return=we,mt}case Dr:{var Mt=nk(ze,we.mode,ye);return Mt.return=we,Mt}}if(DC(ze)||An(ze)){var Lr=Yp(ze,we.mode,ye,null);return Lr.return=we,Lr}IC(we,ze)}return typeof ze=="function"&&PC(we),null}function fe(we,ze,ye,tt){var mt=ze!==null?ze.key:null;if(typeof ye=="string"||typeof ye=="number")return mt!==null?null:U(we,ze,""+ye,tt);if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case Un:return ye.key===mt?ye.type===da?ne(we,ze,ye.props.children,tt,mt):q(we,ze,ye,tt):null;case Dr:return ye.key===mt?ee(we,ze,ye,tt):null}if(DC(ye)||An(ye))return mt!==null?null:ne(we,ze,ye,tt,null);IC(we,ye)}return typeof ye=="function"&&PC(we),null}function Te(we,ze,ye,tt,mt){if(typeof tt=="string"||typeof tt=="number"){var Mt=we.get(ye)||null;return U(ze,Mt,""+tt,mt)}if(typeof tt=="object"&&tt!==null){switch(tt.$$typeof){case Un:{var Lr=we.get(tt.key===null?ye:tt.key)||null;return tt.type===da?ne(ze,Lr,tt.props.children,mt,tt.key):q(ze,Lr,tt,mt)}case Dr:{var Nn=we.get(tt.key===null?ye:tt.key)||null;return ee(ze,Nn,tt,mt)}}if(DC(tt)||An(tt)){var Gn=we.get(ye)||null;return ne(ze,Gn,tt,mt,null)}IC(ze,tt)}return typeof tt=="function"&&PC(ze),null}function Ye(we,ze,ye){{if(typeof we!="object"||we===null)return ze;switch(we.$$typeof){case Un:case Dr:UU(we,ye);var tt=we.key;if(typeof tt!="string")break;if(ze===null){ze=new Set,ze.add(tt);break}if(!ze.has(tt)){ze.add(tt);break}o("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",tt);break}}return ze}function ct(we,ze,ye,tt){for(var mt=null,Mt=0;Mt<ye.length;Mt++){var Lr=ye[Mt];mt=Ye(Lr,mt,we)}for(var Nn=null,Gn=null,sn=ze,Ea=0,qr=0,jn=null;sn!==null&&qr<ye.length;qr++){sn.index>qr?(jn=sn,sn=null):jn=sn.sibling;var ri=fe(we,sn,ye[qr],tt);if(ri===null){sn===null&&(sn=jn);break}f&&sn&&ri.alternate===null&&h(we,sn),Ea=L(ri,Ea,qr),Gn===null?Nn=ri:Gn.sibling=ri,Gn=ri,sn=jn}if(qr===ye.length)return b(we,sn),Nn;if(sn===null){for(;qr<ye.length;qr++){var ma=_e(we,ye[qr],tt);ma!==null&&(Ea=L(ma,Ea,qr),Gn===null?Nn=ma:Gn.sibling=ma,Gn=ma)}return Nn}for(var Bu=C(we,sn);qr<ye.length;qr++){var ya=Te(Bu,we,qr,ye[qr],tt);ya!==null&&(f&&ya.alternate!==null&&Bu.delete(ya.key===null?qr:ya.key),Ea=L(ya,Ea,qr),Gn===null?Nn=ya:Gn.sibling=ya,Gn=ya)}return f&&Bu.forEach(function(zu){return h(we,zu)}),Nn}function Ut(we,ze,ye,tt){var mt=An(ye);if(typeof mt!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&ye[Symbol.toStringTag]==="Generator"&&(C2||o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),C2=!0),ye.entries===mt&&(T2||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),T2=!0);var Mt=mt.call(ye);if(Mt)for(var Lr=null,Nn=Mt.next();!Nn.done;Nn=Mt.next()){var Gn=Nn.value;Lr=Ye(Gn,Lr,we)}}var sn=mt.call(ye);if(sn==null)throw Error("An iterable object provided no iterator.");for(var Ea=null,qr=null,jn=ze,ri=0,ma=0,Bu=null,ya=sn.next();jn!==null&&!ya.done;ma++,ya=sn.next()){jn.index>ma?(Bu=jn,jn=null):Bu=jn.sibling;var zu=fe(we,jn,ya.value,tt);if(zu===null){jn===null&&(jn=Bu);break}f&&jn&&zu.alternate===null&&h(we,jn),ri=L(zu,ri,ma),qr===null?Ea=zu:qr.sibling=zu,qr=zu,jn=Bu}if(ya.done)return b(we,jn),Ea;if(jn===null){for(;!ya.done;ma++,ya=sn.next()){var qp=_e(we,ya.value,tt);qp!==null&&(ri=L(qp,ri,ma),qr===null?Ea=qp:qr.sibling=qp,qr=qp)}return Ea}for(var ck=C(we,jn);!ya.done;ma++,ya=sn.next()){var Md=Te(ck,we,ma,ya.value,tt);Md!==null&&(f&&Md.alternate!==null&&ck.delete(Md.key===null?ma:Md.key),ri=L(Md,ri,ma),qr===null?Ea=Md:qr.sibling=Md,qr=Md)}return f&&ck.forEach(function(Due){return h(we,Due)}),Ea}function dr(we,ze,ye,tt){if(ze!==null&&ze.tag===g){b(we,ze.sibling);var mt=R(ze,ye);return mt.return=we,mt}b(we,ze);var Mt=rk(ye,we.mode,tt);return Mt.return=we,Mt}function tr(we,ze,ye,tt){for(var mt=ye.key,Mt=ze;Mt!==null;){if(Mt.key===mt){switch(Mt.tag){case m:{if(ye.type===da){b(we,Mt.sibling);var Lr=R(Mt,ye.props.children);return Lr.return=we,Lr._debugSource=ye._source,Lr._debugOwner=ye._owner,Lr}break}case W:default:{if(Mt.elementType===ye.type||wH(Mt,ye)){b(we,Mt.sibling);var Nn=R(Mt,ye.props);return Nn.ref=Fx(we,Mt,ye),Nn.return=we,Nn._debugSource=ye._source,Nn._debugOwner=ye._owner,Nn}break}}b(we,Mt);break}else h(we,Mt);Mt=Mt.sibling}if(ye.type===da){var Gn=Yp(ye.props.children,we.mode,tt,ye.key);return Gn.return=we,Gn}else{var sn=ek(ye,we.mode,tt);return sn.ref=Fx(we,ze,ye),sn.return=we,sn}}function Ur(we,ze,ye,tt){for(var mt=ye.key,Mt=ze;Mt!==null;){if(Mt.key===mt)if(Mt.tag===p&&Mt.stateNode.containerInfo===ye.containerInfo&&Mt.stateNode.implementation===ye.implementation){b(we,Mt.sibling);var Lr=R(Mt,ye.children||[]);return Lr.return=we,Lr}else{b(we,Mt);break}else h(we,Mt);Mt=Mt.sibling}var Nn=nk(ye,we.mode,tt);return Nn.return=we,Nn}function Cn(we,ze,ye,tt){var mt=typeof ye=="object"&&ye!==null&&ye.type===da&&ye.key===null;mt&&(ye=ye.props.children);var Mt=typeof ye=="object"&&ye!==null;if(Mt)switch(ye.$$typeof){case Un:return z(tr(we,ze,ye,tt));case Dr:return z(Ur(we,ze,ye,tt))}if(typeof ye=="string"||typeof ye=="number")return z(dr(we,ze,""+ye,tt));if(DC(ye))return ct(we,ze,ye,tt);if(An(ye))return Ut(we,ze,ye,tt);if(Mt&&IC(we,ye),typeof ye=="function"&&PC(we),typeof ye>"u"&&!mt)switch(we.tag){case u:{var Lr=we.stateNode;if(Lr.render._isMockFunction)break}case W:case l:case T:case P:throw Error((ht(we.type)||"Component")+"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.")}return b(we,ze)}return Cn}var LC=WU(!0),HU=WU(!1);function Poe(f,h){if(!(f===null||h.child===f.child))throw Error("Resuming work not yet implemented.");if(h.child!==null){var b=h.child,C=jp(b,b.pendingProps);for(h.child=C,C.return=h;b.sibling!==null;)b=b.sibling,C=C.sibling=jp(b,b.pendingProps),C.return=h;C.sibling=null}}function Loe(f,h){for(var b=f.child;b!==null;)jle(b,h),b=b.sibling}var Vx={},wd=Mu(Vx),Ux=Mu(Vx),OC=Mu(Vx);function kC(f){if(f===Vx)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return f}function GU(){var f=kC(OC.current);return f}function M2(f,h){Za(OC,h,f),Za(Ux,f,f),Za(wd,Vx,f);var b=TL(h);Xa(wd,f),Za(wd,b,f)}function jm(f){Xa(wd,f),Xa(Ux,f),Xa(OC,f)}function D2(){var f=kC(wd.current);return f}function jU(f){kC(OC.current);var h=kC(wd.current),b=CL(h,f.type);h!==b&&(Za(Ux,f,f),Za(wd,b,f))}function I2(f){Ux.current===f&&(Xa(wd,f),Xa(Ux,f))}var Ooe=0,YU=1,P2=1,Wx=2,Fl=Mu(Ooe);function NC(f,h){return(f&h)!==0}function Hx(f){return f&YU}function L2(f,h){return f&YU|h}function koe(f,h){return f|h}function Np(f,h){Za(Fl,h,f)}function Ym(f){Xa(Fl,f)}function Noe(f,h){var b=f.memoizedState;if(b!==null)return b.dehydrated!==null;var C=f.memoizedProps;return C.fallback===void 0?!1:C.unstable_avoidThisFallback!==!0?!0:!h}function BC(f){for(var h=f;h!==null;){if(h.tag===M){var b=h.memoizedState;if(b!==null){var C=b.dehydrated;if(C===null||NL(C)||BL(C))return h}}else if(h.tag===$&&h.memoizedProps.revealOrder!==void 0){var R=(h.flags&K)!==$n;if(R)return h}else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===f)return null;for(;h.sibling===null;){if(h.return===null||h.return===f)return null;h=h.return}h.sibling.return=h.return,h=h.sibling}return null}var O2=0,qm=1,Xm=2,Gx=4,Os=null,Bp=null,Td=!1;function Boe(f){var h=f.stateNode.containerInfo;return Bp=KT(h),Os=f,Td=!0,!0}function qU(f,h){switch(f.tag){case d:Ex(f.stateNode.containerInfo,h);break;case v:HL(f.type,f.memoizedProps,f.stateNode,h);break}var b=Qle();b.stateNode=h,b.return=f,b.flags=_o,f.lastEffect!==null?(f.lastEffect.nextEffect=b,f.lastEffect=b):f.firstEffect=f.lastEffect=b}function XU(f,h){switch(h.flags=h.flags&~El|Qn,f.tag){case d:{var b=f.stateNode.containerInfo;switch(h.tag){case v:var C=h.type;h.pendingProps,GL(b,C);break;case g:var R=h.pendingProps;jL(b,R);break}break}case v:{var L=f.type,z=f.memoizedProps,U=f.stateNode;switch(h.tag){case v:var q=h.type;h.pendingProps,Ca(L,z,U,q);break;case g:var ee=h.pendingProps;Ii(L,z,U,ee);break;case M:YL(L,z);break}break}default:return}}function ZU(f,h){switch(f.tag){case v:{var b=f.type;f.pendingProps;var C=OL(h,b);return C!==null?(f.stateNode=C,!0):!1}case g:{var R=f.pendingProps,L=kL(h,R);return L!==null?(f.stateNode=L,!0):!1}case M:return!1;default:return!1}}function k2(f){if(Td){var h=Bp;if(!h){XU(Os,f),Td=!1,Os=f;return}var b=h;if(!ZU(f,h)){if(h=Lm(b),!h||!ZU(f,h)){XU(Os,f),Td=!1,Os=f;return}qU(Os,b)}Os=f,Bp=KT(h)}}function zoe(f,h,b){var C=f.stateNode,R=zL(C,f.type,f.memoizedProps,h,b,f);return f.updateQueue=R,R!==null}function $oe(f){var h=f.stateNode,b=f.memoizedProps,C=$L(h,b,f);if(C){var R=Os;if(R!==null)switch(R.tag){case d:{var L=R.stateNode.containerInfo;Ax(L,h,b);break}case v:{var z=R.type,U=R.memoizedProps,q=R.stateNode;WL(z,U,q,h,b);break}}}return C}function Foe(f){var h=f.memoizedState,b=h!==null?h.dehydrated:null;if(!b)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return FL(b)}function KU(f){for(var h=f.return;h!==null&&h.tag!==v&&h.tag!==d&&h.tag!==M;)h=h.return;Os=h}function zC(f){if(f!==Os)return!1;if(!Td)return KU(f),Td=!0,!1;var h=f.type;if(f.tag!==v||h!=="head"&&h!=="body"&&!Im(h,f.memoizedProps))for(var b=Bp;b;)qU(f,b),b=Lm(b);return KU(f),f.tag===M?Bp=Foe(f):Bp=Os?Lm(f.stateNode):null,!0}function N2(){Os=null,Bp=null,Td=!1}function B2(){return Td}var jx=[],z2;z2={};function Voe(f){jx.push(f)}function $2(){for(var f=0;f<jx.length;f++){var h=jx[f];h._workInProgressVersionPrimary=null}jx.length=0}function Uoe(f){return f._workInProgressVersionPrimary}function QU(f,h){f._workInProgressVersionPrimary=h,jx.push(f)}function Woe(f){f._currentPrimaryRenderer==null?f._currentPrimaryRenderer=z2:f._currentPrimaryRenderer!==z2&&o("Detected multiple renderers concurrently rendering the same mutable source. This is currently unsupported.")}var _t=a.ReactCurrentDispatcher,ks=a.ReactCurrentBatchConfig,F2,V2;V2={},F2=new Set;var Yx=qe,Mn=null,Oi=null,ti=null,$C=!1,qx=!1,Hoe=25,Ze=null,Ns=null,Cd=-1,U2=!1;function Tn(){{var f=Ze;Ns===null?Ns=[f]:Ns.push(f)}}function At(){{var f=Ze;Ns!==null&&(Cd++,Ns[Cd]!==f&&Goe(f))}}function Xx(f){f!=null&&!Array.isArray(f)&&o("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Ze,typeof f)}function Goe(f){{var h=ht(Mn.type);if(!F2.has(h)&&(F2.add(h),Ns!==null)){for(var b="",C=30,R=0;R<=Cd;R++){for(var L=Ns[R],z=R===Cd?f:L,U=R+1+". "+L;U.length<C;)U+=" ";U+=z+` `,b+=U}o(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks Previous render Next render ------------------------------------------------------ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `,h,b)}}}function Ro(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function W2(f,h){if(U2)return!1;if(h===null)return o("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ze),!1;f.length!==h.length&&o(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant. Previous: %s Incoming: %s`,Ze,"["+h.join(", ")+"]","["+f.join(", ")+"]");for(var b=0;b<h.length&&b<f.length;b++)if(!wo(f[b],h[b]))return!1;return!0}function Zm(f,h,b,C,R,L){Yx=L,Mn=h,Ns=f!==null?f._debugHookTypes:null,Cd=-1,U2=f!==null&&f.type!==h.type,h.memoizedState=null,h.updateQueue=null,h.lanes=qe,f!==null&&f.memoizedState!==null?_t.current=hW:Ns!==null?_t.current=dW:_t.current=fW;var z=b(C,R);if(qx){var U=0;do{if(qx=!1,!(U<Hoe))throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");U+=1,U2=!1,Oi=null,ti=null,h.updateQueue=null,Cd=-1,_t.current=pW,z=b(C,R)}while(qx)}_t.current=KC,h._debugHookTypes=Ns;var q=Oi!==null&&Oi.next!==null;if(Yx=qe,Mn=null,Oi=null,ti=null,Ze=null,Ns=null,Cd=-1,$C=!1,q)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return z}function JU(f,h,b){h.updateQueue=f.updateQueue,h.flags&=~(Ha|gn),f.lanes=dm(f.lanes,b)}function eW(){if(_t.current=KC,$C){for(var f=Mn.memoizedState;f!==null;){var h=f.queue;h!==null&&(h.pending=null),f=f.next}$C=!1}Yx=qe,Mn=null,Oi=null,ti=null,Ns=null,Cd=-1,Ze=null,ZC=!1,qx=!1}function zp(){var f={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ti===null?Mn.memoizedState=ti=f:ti=ti.next=f,ti}function $p(){var f;if(Oi===null){var h=Mn.alternate;h!==null?f=h.memoizedState:f=null}else f=Oi.next;var b;if(ti===null?b=Mn.memoizedState:b=ti.next,b!==null)ti=b,b=ti.next,Oi=f;else{if(f===null)throw Error("Rendered more hooks than during the previous render.");Oi=f;var C={memoizedState:Oi.memoizedState,baseState:Oi.baseState,baseQueue:Oi.baseQueue,queue:Oi.queue,next:null};ti===null?Mn.memoizedState=ti=C:ti=ti.next=C}return ti}function joe(){return{lastEffect:null}}function FC(f,h){return typeof h=="function"?h(f):h}function H2(f,h,b){var C=zp(),R;b!==void 0?R=b(h):R=h,C.memoizedState=C.baseState=R;var L=C.queue={pending:null,dispatch:null,lastRenderedReducer:f,lastRenderedState:R},z=L.dispatch=nO.bind(null,Mn,L);return[C.memoizedState,z]}function G2(f,h,b){var C=$p(),R=C.queue;if(R===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");R.lastRenderedReducer=f;var L=Oi,z=L.baseQueue,U=R.pending;if(U!==null){if(z!==null){var q=z.next,ee=U.next;z.next=ee,U.next=q}L.baseQueue!==z&&o("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),L.baseQueue=z=U,R.pending=null}if(z!==null){var ne=z.next,_e=L.baseState,fe=null,Te=null,Ye=null,ct=ne;do{var Ut=ct.lane;if(ja(Yx,Ut)){if(Ye!==null){var tr={lane:Ga,action:ct.action,eagerReducer:ct.eagerReducer,eagerState:ct.eagerState,next:null};Ye=Ye.next=tr}if(ct.eagerReducer===f)_e=ct.eagerState;else{var Ur=ct.action;_e=f(_e,Ur)}}else{var dr={lane:Ut,action:ct.action,eagerReducer:ct.eagerReducer,eagerState:ct.eagerState,next:null};Ye===null?(Te=Ye=dr,fe=_e):Ye=Ye.next=dr,Mn.lanes=jr(Mn.lanes,Ut),UO(Ut)}ct=ct.next}while(ct!==null&&ct!==ne);Ye===null?fe=_e:Ye.next=Te,wo(_e,C.memoizedState)||mO(),C.memoizedState=_e,C.baseState=fe,C.baseQueue=Ye,R.lastRenderedState=_e}var Cn=R.dispatch;return[C.memoizedState,Cn]}function j2(f,h,b){var C=$p(),R=C.queue;if(R===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");R.lastRenderedReducer=f;var L=R.dispatch,z=R.pending,U=C.memoizedState;if(z!==null){R.pending=null;var q=z.next,ee=q;do{var ne=ee.action;U=f(U,ne),ee=ee.next}while(ee!==q);wo(U,C.memoizedState)||mO(),C.memoizedState=U,C.baseQueue===null&&(C.baseState=U),R.lastRenderedState=U}return[U,L]}function tW(f,h,b){Woe(h);var C=h._getVersion,R=C(h._source),L=!1,z=Uoe(h);if(z!==null?L=z===R:(L=ja(Yx,f.mutableReadLanes),L&&QU(h,R)),L){var U=b(h._source);return typeof U=="function"&&o("Mutable source should not return a function as the snapshot value. Functions may close over mutable values and cause tearing."),U}else throw Voe(h),Error("Cannot read from mutable source during the current render without tearing. This is a bug in React. Please file an issue.")}function rW(f,h,b,C){var R=Zse();if(R===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");var L=h._getVersion,z=L(h._source),U=_t.current,q=U.useState(function(){return tW(R,h,b)}),ee=q[0],ne=q[1],_e=ee,fe=ti,Te=f.memoizedState,Ye=Te.refs,ct=Ye.getSnapshot,Ut=Te.source,dr=Te.subscribe,tr=Mn;if(f.memoizedState={refs:Ye,source:h,subscribe:C},U.useEffect(function(){Ye.getSnapshot=b,Ye.setSnapshot=ne;var Cn=L(h._source);if(!wo(z,Cn)){var we=b(h._source);if(typeof we=="function"&&o("Mutable source should not return a function as the snapshot value. Functions may close over mutable values and cause tearing."),!wo(_e,we)){ne(we);var ze=Ad(tr);Ww(R,ze)}Gw(R,R.mutableReadLanes)}},[b,h,C]),U.useEffect(function(){var Cn=function(){var ze=Ye.getSnapshot,ye=Ye.setSnapshot;try{ye(ze(h._source));var tt=Ad(tr);Ww(R,tt)}catch(mt){ye(function(){throw mt})}},we=C(h._source,Cn);return typeof we!="function"&&o("Mutable source subscribe function must return an unsubscribe function."),we},[h,C]),!wo(ct,b)||!wo(Ut,h)||!wo(dr,C)){var Ur={pending:null,dispatch:null,lastRenderedReducer:FC,lastRenderedState:_e};Ur.dispatch=ne=nO.bind(null,Mn,Ur),fe.queue=Ur,fe.baseQueue=null,_e=tW(R,h,b),fe.memoizedState=fe.baseState=_e}return _e}function Y2(f,h,b){var C=zp();return C.memoizedState={refs:{getSnapshot:h,setSnapshot:null},source:f,subscribe:b},rW(C,f,h,b)}function VC(f,h,b){var C=$p();return rW(C,f,h,b)}function Fp(f){var h=zp();typeof f=="function"&&(f=f()),h.memoizedState=h.baseState=f;var b=h.queue={pending:null,dispatch:null,lastRenderedReducer:FC,lastRenderedState:f},C=b.dispatch=nO.bind(null,Mn,b);return[h.memoizedState,C]}function Zx(f){return G2(FC)}function Kx(f){return j2(FC)}function UC(f,h,b,C){var R={tag:f,create:h,destroy:b,deps:C,next:null},L=Mn.updateQueue;if(L===null)L=joe(),Mn.updateQueue=L,L.lastEffect=R.next=R;else{var z=L.lastEffect;if(z===null)L.lastEffect=R.next=R;else{var U=z.next;z.next=R,R.next=U,L.lastEffect=R}}return R}function WC(f){var h=zp(),b={current:f};return Object.seal(b),h.memoizedState=b,b}function Km(f){var h=$p();return h.memoizedState}function q2(f,h,b,C){var R=zp(),L=C===void 0?null:C;Mn.flags|=f,R.memoizedState=UC(qm|h,b,void 0,L)}function X2(f,h,b,C){var R=$p(),L=C===void 0?null:C,z=void 0;if(Oi!==null){var U=Oi.memoizedState;if(z=U.destroy,L!==null){var q=U.deps;if(W2(L,q)){UC(h,b,z,L);return}}}Mn.flags|=f,R.memoizedState=UC(qm|h,b,z,L)}function HC(f,h){return typeof jest<"u"&&mH(Mn),q2(gn|Ha,Gx,f,h)}function Qm(f,h){return typeof jest<"u"&&mH(Mn),X2(gn|Ha,Gx,f,h)}function Z2(f,h){return q2(gn,Xm,f,h)}function GC(f,h){return X2(gn,Xm,f,h)}function nW(f,h){if(typeof h=="function"){var b=h,C=f();return b(C),function(){b(null)}}else if(h!=null){var R=h;R.hasOwnProperty("current")||o("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(R).join(", ")+"}");var L=f();return R.current=L,function(){R.current=null}}}function K2(f,h,b){typeof h!="function"&&o("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",h!==null?typeof h:"null");var C=b!=null?b.concat([f]):null;return q2(gn,Xm,nW.bind(null,h,f),C)}function jC(f,h,b){typeof h!="function"&&o("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",h!==null?typeof h:"null");var C=b!=null?b.concat([f]):null;return X2(gn,Xm,nW.bind(null,h,f),C)}function Yoe(f,h){}var YC=Yoe;function Q2(f,h){var b=zp(),C=h===void 0?null:h;return b.memoizedState=[f,C],f}function qC(f,h){var b=$p(),C=h===void 0?null:h,R=b.memoizedState;if(R!==null&&C!==null){var L=R[1];if(W2(C,L))return R[0]}return b.memoizedState=[f,C],f}function J2(f,h){var b=zp(),C=h===void 0?null:h,R=f();return b.memoizedState=[R,C],R}function XC(f,h){var b=$p(),C=h===void 0?null:h,R=b.memoizedState;if(R!==null&&C!==null){var L=R[1];if(W2(C,L))return R[0]}var z=f();return b.memoizedState=[z,C],z}function eO(f){var h=Fp(f),b=h[0],C=h[1];return HC(function(){var R=ks.transition;ks.transition=1;try{C(f)}finally{ks.transition=R}},[f]),b}function aW(f){var h=Zx(),b=h[0],C=h[1];return Qm(function(){var R=ks.transition;ks.transition=1;try{C(f)}finally{ks.transition=R}},[f]),b}function iW(f){var h=Kx(),b=h[0],C=h[1];return Qm(function(){var R=ks.transition;ks.transition=1;try{C(f)}finally{ks.transition=R}},[f]),b}function qoe(f,h){var b=xd();jc(b<Du?Du:b,function(){f(!0)}),jc(b>zl?zl:b,function(){var C=ks.transition;ks.transition=1;try{f(!1),h()}finally{ks.transition=C}})}function tO(){var f=Fp(!1),h=f[0],b=f[1],C=qoe.bind(null,b);return WC(C),[C,h]}function oW(){var f=Zx(),h=f[0],b=Km(),C=b.current;return[C,h]}function sW(){var f=Kx(),h=f[0],b=Km(),C=b.current;return[C,h]}var ZC=!1;function Xoe(){return ZC}function lW(f){{var h=ht(f.type)||"Unknown";Og()&&!V2[h]&&(o("The object passed back from useOpaqueIdentifier is meant to be passed through to attributes only. Do not read the value directly."),V2[h]=!0)}}function rO(){var f=XL.bind(null,lW.bind(null,Mn));if(B2()){var h=!1,b=Mn,C=function(){throw h||(h=!0,ZC=!0,L(f()),ZC=!1,lW(b)),Error("The object passed back from useOpaqueIdentifier is meant to be passed through to attributes only. Do not read the value directly.")},R=ZL(C),L=Fp(R)[1];return(Mn.mode&Pi)===On&&(Mn.flags|=gn|Ha,UC(qm|Gx,function(){L(f())},void 0,null)),R}else{var z=f();return Fp(z),z}}function uW(){var f=Zx()[0];return f}function cW(){var f=Kx()[0];return f}function nO(f,h,b){typeof arguments[3]=="function"&&o("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var C=Zo(),R=Ad(f),L={lane:R,action:b,eagerReducer:null,eagerState:null,next:null},z=h.pending;z===null?L.next=L:(L.next=z.next,z.next=L),h.pending=L;var U=f.alternate;if(f===Mn||U!==null&&U===Mn)qx=$C=!0;else{if(f.lanes===qe&&(U===null||U.lanes===qe)){var q=h.lastRenderedReducer;if(q!==null){var ee;ee=_t.current,_t.current=Vl;try{var ne=h.lastRenderedState,_e=q(ne,b);if(L.eagerReducer=q,L.eagerState=_e,wo(_e,ne))return}catch{}finally{_t.current=ee}}}typeof jest<"u"&&(gH(f),Ple(f)),ki(f,R,C)}}var KC={readContext:Aa,useCallback:Ro,useContext:Ro,useEffect:Ro,useImperativeHandle:Ro,useLayoutEffect:Ro,useMemo:Ro,useReducer:Ro,useRef:Ro,useState:Ro,useDebugValue:Ro,useDeferredValue:Ro,useTransition:Ro,useMutableSource:Ro,useOpaqueIdentifier:Ro,unstable_isNewReconciler:ie},fW=null,dW=null,hW=null,pW=null,Pu=null,Vl=null,QC=null;{var aO=function(){o("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},vr=function(){o("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};fW={readContext:function(f,h){return Aa(f,h)},useCallback:function(f,h){return Ze="useCallback",Tn(),Xx(h),Q2(f,h)},useContext:function(f,h){return Ze="useContext",Tn(),Aa(f,h)},useEffect:function(f,h){return Ze="useEffect",Tn(),Xx(h),HC(f,h)},useImperativeHandle:function(f,h,b){return Ze="useImperativeHandle",Tn(),Xx(b),K2(f,h,b)},useLayoutEffect:function(f,h){return Ze="useLayoutEffect",Tn(),Xx(h),Z2(f,h)},useMemo:function(f,h){Ze="useMemo",Tn(),Xx(h);var b=_t.current;_t.current=Pu;try{return J2(f,h)}finally{_t.current=b}},useReducer:function(f,h,b){Ze="useReducer",Tn();var C=_t.current;_t.current=Pu;try{return H2(f,h,b)}finally{_t.current=C}},useRef:function(f){return Ze="useRef",Tn(),WC(f)},useState:function(f){Ze="useState",Tn();var h=_t.current;_t.current=Pu;try{return Fp(f)}finally{_t.current=h}},useDebugValue:function(f,h){return Ze="useDebugValue",Tn(),void 0},useDeferredValue:function(f){return Ze="useDeferredValue",Tn(),eO(f)},useTransition:function(){return Ze="useTransition",Tn(),tO()},useMutableSource:function(f,h,b){return Ze="useMutableSource",Tn(),Y2(f,h,b)},useOpaqueIdentifier:function(){return Ze="useOpaqueIdentifier",Tn(),rO()},unstable_isNewReconciler:ie},dW={readContext:function(f,h){return Aa(f,h)},useCallback:function(f,h){return Ze="useCallback",At(),Q2(f,h)},useContext:function(f,h){return Ze="useContext",At(),Aa(f,h)},useEffect:function(f,h){return Ze="useEffect",At(),HC(f,h)},useImperativeHandle:function(f,h,b){return Ze="useImperativeHandle",At(),K2(f,h,b)},useLayoutEffect:function(f,h){return Ze="useLayoutEffect",At(),Z2(f,h)},useMemo:function(f,h){Ze="useMemo",At();var b=_t.current;_t.current=Pu;try{return J2(f,h)}finally{_t.current=b}},useReducer:function(f,h,b){Ze="useReducer",At();var C=_t.current;_t.current=Pu;try{return H2(f,h,b)}finally{_t.current=C}},useRef:function(f){return Ze="useRef",At(),WC(f)},useState:function(f){Ze="useState",At();var h=_t.current;_t.current=Pu;try{return Fp(f)}finally{_t.current=h}},useDebugValue:function(f,h){return Ze="useDebugValue",At(),void 0},useDeferredValue:function(f){return Ze="useDeferredValue",At(),eO(f)},useTransition:function(){return Ze="useTransition",At(),tO()},useMutableSource:function(f,h,b){return Ze="useMutableSource",At(),Y2(f,h,b)},useOpaqueIdentifier:function(){return Ze="useOpaqueIdentifier",At(),rO()},unstable_isNewReconciler:ie},hW={readContext:function(f,h){return Aa(f,h)},useCallback:function(f,h){return Ze="useCallback",At(),qC(f,h)},useContext:function(f,h){return Ze="useContext",At(),Aa(f,h)},useEffect:function(f,h){return Ze="useEffect",At(),Qm(f,h)},useImperativeHandle:function(f,h,b){return Ze="useImperativeHandle",At(),jC(f,h,b)},useLayoutEffect:function(f,h){return Ze="useLayoutEffect",At(),GC(f,h)},useMemo:function(f,h){Ze="useMemo",At();var b=_t.current;_t.current=Vl;try{return XC(f,h)}finally{_t.current=b}},useReducer:function(f,h,b){Ze="useReducer",At();var C=_t.current;_t.current=Vl;try{return G2(f,h,b)}finally{_t.current=C}},useRef:function(f){return Ze="useRef",At(),Km()},useState:function(f){Ze="useState",At();var h=_t.current;_t.current=Vl;try{return Zx(f)}finally{_t.current=h}},useDebugValue:function(f,h){return Ze="useDebugValue",At(),YC()},useDeferredValue:function(f){return Ze="useDeferredValue",At(),aW(f)},useTransition:function(){return Ze="useTransition",At(),oW()},useMutableSource:function(f,h,b){return Ze="useMutableSource",At(),VC(f,h,b)},useOpaqueIdentifier:function(){return Ze="useOpaqueIdentifier",At(),uW()},unstable_isNewReconciler:ie},pW={readContext:function(f,h){return Aa(f,h)},useCallback:function(f,h){return Ze="useCallback",At(),qC(f,h)},useContext:function(f,h){return Ze="useContext",At(),Aa(f,h)},useEffect:function(f,h){return Ze="useEffect",At(),Qm(f,h)},useImperativeHandle:function(f,h,b){return Ze="useImperativeHandle",At(),jC(f,h,b)},useLayoutEffect:function(f,h){return Ze="useLayoutEffect",At(),GC(f,h)},useMemo:function(f,h){Ze="useMemo",At();var b=_t.current;_t.current=QC;try{return XC(f,h)}finally{_t.current=b}},useReducer:function(f,h,b){Ze="useReducer",At();var C=_t.current;_t.current=QC;try{return j2(f,h,b)}finally{_t.current=C}},useRef:function(f){return Ze="useRef",At(),Km()},useState:function(f){Ze="useState",At();var h=_t.current;_t.current=QC;try{return Kx(f)}finally{_t.current=h}},useDebugValue:function(f,h){return Ze="useDebugValue",At(),YC()},useDeferredValue:function(f){return Ze="useDeferredValue",At(),iW(f)},useTransition:function(){return Ze="useTransition",At(),sW()},useMutableSource:function(f,h,b){return Ze="useMutableSource",At(),VC(f,h,b)},useOpaqueIdentifier:function(){return Ze="useOpaqueIdentifier",At(),cW()},unstable_isNewReconciler:ie},Pu={readContext:function(f,h){return aO(),Aa(f,h)},useCallback:function(f,h){return Ze="useCallback",vr(),Tn(),Q2(f,h)},useContext:function(f,h){return Ze="useContext",vr(),Tn(),Aa(f,h)},useEffect:function(f,h){return Ze="useEffect",vr(),Tn(),HC(f,h)},useImperativeHandle:function(f,h,b){return Ze="useImperativeHandle",vr(),Tn(),K2(f,h,b)},useLayoutEffect:function(f,h){return Ze="useLayoutEffect",vr(),Tn(),Z2(f,h)},useMemo:function(f,h){Ze="useMemo",vr(),Tn();var b=_t.current;_t.current=Pu;try{return J2(f,h)}finally{_t.current=b}},useReducer:function(f,h,b){Ze="useReducer",vr(),Tn();var C=_t.current;_t.current=Pu;try{return H2(f,h,b)}finally{_t.current=C}},useRef:function(f){return Ze="useRef",vr(),Tn(),WC(f)},useState:function(f){Ze="useState",vr(),Tn();var h=_t.current;_t.current=Pu;try{return Fp(f)}finally{_t.current=h}},useDebugValue:function(f,h){return Ze="useDebugValue",vr(),Tn(),void 0},useDeferredValue:function(f){return Ze="useDeferredValue",vr(),Tn(),eO(f)},useTransition:function(){return Ze="useTransition",vr(),Tn(),tO()},useMutableSource:function(f,h,b){return Ze="useMutableSource",vr(),Tn(),Y2(f,h,b)},useOpaqueIdentifier:function(){return Ze="useOpaqueIdentifier",vr(),Tn(),rO()},unstable_isNewReconciler:ie},Vl={readContext:function(f,h){return aO(),Aa(f,h)},useCallback:function(f,h){return Ze="useCallback",vr(),At(),qC(f,h)},useContext:function(f,h){return Ze="useContext",vr(),At(),Aa(f,h)},useEffect:function(f,h){return Ze="useEffect",vr(),At(),Qm(f,h)},useImperativeHandle:function(f,h,b){return Ze="useImperativeHandle",vr(),At(),jC(f,h,b)},useLayoutEffect:function(f,h){return Ze="useLayoutEffect",vr(),At(),GC(f,h)},useMemo:function(f,h){Ze="useMemo",vr(),At();var b=_t.current;_t.current=Vl;try{return XC(f,h)}finally{_t.current=b}},useReducer:function(f,h,b){Ze="useReducer",vr(),At();var C=_t.current;_t.current=Vl;try{return G2(f,h,b)}finally{_t.current=C}},useRef:function(f){return Ze="useRef",vr(),At(),Km()},useState:function(f){Ze="useState",vr(),At();var h=_t.current;_t.current=Vl;try{return Zx(f)}finally{_t.current=h}},useDebugValue:function(f,h){return Ze="useDebugValue",vr(),At(),YC()},useDeferredValue:function(f){return Ze="useDeferredValue",vr(),At(),aW(f)},useTransition:function(){return Ze="useTransition",vr(),At(),oW()},useMutableSource:function(f,h,b){return Ze="useMutableSource",vr(),At(),VC(f,h,b)},useOpaqueIdentifier:function(){return Ze="useOpaqueIdentifier",vr(),At(),uW()},unstable_isNewReconciler:ie},QC={readContext:function(f,h){return aO(),Aa(f,h)},useCallback:function(f,h){return Ze="useCallback",vr(),At(),qC(f,h)},useContext:function(f,h){return Ze="useContext",vr(),At(),Aa(f,h)},useEffect:function(f,h){return Ze="useEffect",vr(),At(),Qm(f,h)},useImperativeHandle:function(f,h,b){return Ze="useImperativeHandle",vr(),At(),jC(f,h,b)},useLayoutEffect:function(f,h){return Ze="useLayoutEffect",vr(),At(),GC(f,h)},useMemo:function(f,h){Ze="useMemo",vr(),At();var b=_t.current;_t.current=Vl;try{return XC(f,h)}finally{_t.current=b}},useReducer:function(f,h,b){Ze="useReducer",vr(),At();var C=_t.current;_t.current=Vl;try{return j2(f,h,b)}finally{_t.current=C}},useRef:function(f){return Ze="useRef",vr(),At(),Km()},useState:function(f){Ze="useState",vr(),At();var h=_t.current;_t.current=Vl;try{return Kx(f)}finally{_t.current=h}},useDebugValue:function(f,h){return Ze="useDebugValue",vr(),At(),YC()},useDeferredValue:function(f){return Ze="useDeferredValue",vr(),At(),iW(f)},useTransition:function(){return Ze="useTransition",vr(),At(),sW()},useMutableSource:function(f,h,b){return Ze="useMutableSource",vr(),At(),VC(f,h,b)},useOpaqueIdentifier:function(){return Ze="useOpaqueIdentifier",vr(),At(),cW()},unstable_isNewReconciler:ie}}var JC=r.unstable_now,vW=0,Qx=-1;function Zoe(){return vW}function gW(){vW=JC()}function iO(f){Qx=JC(),f.actualStartTime<0&&(f.actualStartTime=JC())}function mW(f){Qx=-1}function eA(f,h){if(Qx>=0){var b=JC()-Qx;f.actualDuration+=b,h&&(f.selfBaseDuration=b),Qx=-1}}function oO(f){for(var h=f.child;h;)f.actualDuration+=h.actualDuration,h=h.sibling}var Jx=a.ReactCurrentOwner,Lu=!1,sO,e_,lO,uO,cO,Vp,fO,tA;sO={},e_={},lO={},uO={},cO={},Vp=!1,fO={},tA={};function Mo(f,h,b,C){f===null?h.child=HU(h,null,b,C):h.child=LC(h,f.child,b,C)}function Koe(f,h,b,C){h.child=LC(h,f.child,null,C),h.child=LC(h,null,b,C)}function yW(f,h,b,C,R){if(h.type!==h.elementType){var L=b.propTypes;L&&Ao(L,C,"prop",ht(b))}var z=b.render,U=h.ref,q;Gm(h,R);{if(Jx.current=h,ji(!0),q=Zm(f,h,z,C,U,R),h.mode&Hn){ui();try{q=Zm(f,h,z,C,U,R)}finally{go()}}ji(!1)}return f!==null&&!Lu?(JU(f,h,R),qc(f,h,R)):(h.flags|=gu,Mo(f,h,q,R),h.child)}function bW(f,h,b,C,R,L){if(f===null){var z=b.type;if(Hle(z)&&b.compare===null&&b.defaultProps===void 0){var U=z;return U=oy(z),h.tag=P,h.type=U,vO(h,z),xW(f,h,U,C,R,L)}{var q=z.propTypes;q&&Ao(q,C,"prop",ht(z))}var ee=JO(b.type,null,C,h,h.mode,L);return ee.ref=h.ref,ee.return=h,h.child=ee,ee}{var ne=b.type,_e=ne.propTypes;_e&&Ao(_e,C,"prop",ht(ne))}var fe=f.child;if(!tn(R,L)){var Te=fe.memoizedProps,Ye=b.compare;if(Ye=Ye!==null?Ye:yp,Ye(Te,C)&&f.ref===h.ref)return qc(f,h,L)}h.flags|=gu;var ct=jp(fe,C);return ct.ref=h.ref,ct.return=h,h.child=ct,ct}function xW(f,h,b,C,R,L){if(h.type!==h.elementType){var z=h.elementType;if(z.$$typeof===Wn){var U=z,q=U._payload,ee=U._init;try{z=ee(q)}catch{z=null}var ne=z&&z.propTypes;ne&&Ao(ne,C,"prop",ht(z))}}if(f!==null){var _e=f.memoizedProps;if(yp(_e,C)&&f.ref===h.ref&&h.type===f.type)if(Lu=!1,tn(L,R))(f.flags&Nb)!==$n&&(Lu=!0);else return h.lanes=f.lanes,qc(f,h,L)}return hO(f,h,b,C,L)}function dO(f,h,b){var C=h.pendingProps,R=C.children,L=f!==null?f.memoizedState:null;if(C.mode==="hidden"||C.mode==="unstable-defer-without-hiding")if((h.mode&Yc)===On){var z={baseLanes:qe};h.memoizedState=z,mA(h,b)}else if(tn(b,Ho)){var ne={baseLanes:qe};h.memoizedState=ne;var _e=L!==null?L.baseLanes:b;mA(h,_e)}else{var U;if(L!==null){var q=L.baseLanes;U=jr(q,b)}else U=b;wA(Ho),h.lanes=h.childLanes=Ho;var ee={baseLanes:U};return h.memoizedState=ee,mA(h,U),null}else{var fe;L!==null?(fe=jr(L.baseLanes,b),h.memoizedState=null):fe=b,mA(h,fe)}return Mo(f,h,R,b),h.child}var Qoe=dO;function Joe(f,h,b){var C=h.pendingProps;return Mo(f,h,C,b),h.child}function ese(f,h,b){var C=h.pendingProps.children;return Mo(f,h,C,b),h.child}function tse(f,h,b){{h.flags|=gn;var C=h.stateNode;C.effectDuration=0,C.passiveEffectDuration=0}var R=h.pendingProps,L=R.children;return Mo(f,h,L,b),h.child}function _W(f,h){var b=h.ref;(f===null&&b!==null||f!==null&&f.ref!==b)&&(h.flags|=Al)}function hO(f,h,b,C,R){if(h.type!==h.elementType){var L=b.propTypes;L&&Ao(L,C,"prop",ht(b))}var z;{var U=gd(h,b,!0);z=md(h,U)}var q;Gm(h,R);{if(Jx.current=h,ji(!0),q=Zm(f,h,b,C,z,R),h.mode&Hn){ui();try{q=Zm(f,h,b,C,z,R)}finally{go()}}ji(!1)}return f!==null&&!Lu?(JU(f,h,R),qc(f,h,R)):(h.flags|=gu,Mo(f,h,q,R),h.child)}function SW(f,h,b,C,R){if(h.type!==h.elementType){var L=b.propTypes;L&&Ao(L,C,"prop",ht(b))}var z;Is(b)?(z=!0,Fm(h)):z=!1,Gm(h,R);var U=h.stateNode,q;U===null?(f!==null&&(f.alternate=null,h.alternate=null,h.flags|=Qn),FU(h,b,C),w2(h,b,C,R),q=!0):f===null?q=Doe(h,b,C,R):q=Ioe(f,h,b,C,R);var ee=pO(f,h,b,q,z,R);{var ne=h.stateNode;q&&ne.props!==C&&(Vp||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ht(h.type)||"a component"),Vp=!0)}return ee}function pO(f,h,b,C,R,L){_W(f,h);var z=(h.flags&K)!==$n;if(!C&&!z)return R&&cC(h,b,!1),qc(f,h,L);var U=h.stateNode;Jx.current=h;var q;if(z&&typeof b.getDerivedStateFromError!="function")q=null,mW();else{if(ji(!0),q=U.render(),h.mode&Hn){ui();try{U.render()}finally{go()}}ji(!1)}return h.flags|=gu,f!==null&&z?Koe(f,h,q,L):Mo(f,h,q,L),h.memoizedState=U.state,R&&cC(h,b,!0),h.child}function wW(f){var h=f.stateNode;h.pendingContext?lC(f,h.pendingContext,h.pendingContext!==h.context):h.context&&lC(f,h.context,!1),M2(f,h.containerInfo)}function rse(f,h,b){wW(h);var C=h.updateQueue;if(!(f!==null&&C!==null))throw Error("If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue.");var R=h.pendingProps,L=h.memoizedState,z=L!==null?L.element:null;IU(f,h),$x(h,R,null,b);var U=h.memoizedState,q=U.element;if(q===z)return N2(),qc(f,h,b);var ee=h.stateNode;if(ee.hydrate&&Boe(h)){{var ne=ee.mutableSourceEagerHydrationData;if(ne!=null)for(var _e=0;_e<ne.length;_e+=2){var fe=ne[_e],Te=ne[_e+1];QU(fe,Te)}}var Ye=HU(h,null,q,b);h.child=Ye;for(var ct=Ye;ct;)ct.flags=ct.flags&~Qn|El,ct=ct.sibling}else Mo(f,h,q,b),N2();return h.child}function nse(f,h,b){jU(h),f===null&&k2(h);var C=h.type,R=h.pendingProps,L=f!==null?f.memoizedProps:null,z=R.children,U=Im(C,R);return U?z=null:L!==null&&Im(C,L)&&(h.flags|=mu),_W(f,h),Mo(f,h,z,b),h.child}function ase(f,h){return f===null&&k2(h),null}function ise(f,h,b,C,R){f!==null&&(f.alternate=null,h.alternate=null,h.flags|=Qn);var L=h.pendingProps,z=b,U=z._payload,q=z._init,ee=q(U);h.type=ee;var ne=h.tag=Gle(ee),_e=Kt(ee,L),fe;switch(ne){case l:return vO(h,ee),h.type=ee=oy(ee),fe=hO(null,h,ee,_e,R),fe;case u:return h.type=ee=YO(ee),fe=SW(null,h,ee,_e,R),fe;case T:return h.type=ee=qO(ee),fe=yW(null,h,ee,_e,R),fe;case D:{if(h.type!==h.elementType){var Te=ee.propTypes;Te&&Ao(Te,_e,"prop",ht(ee))}return fe=bW(null,h,ee,Kt(ee.type,_e),C,R),fe}}var Ye="";throw ee!==null&&typeof ee=="object"&&ee.$$typeof===Wn&&(Ye=" Did you wrap a component in React.lazy() more than once?"),Error("Element type is invalid. Received a promise that resolves to: "+ee+". Lazy element type must resolve to a class or function."+Ye)}function ose(f,h,b,C,R){f!==null&&(f.alternate=null,h.alternate=null,h.flags|=Qn),h.tag=u;var L;return Is(b)?(L=!0,Fm(h)):L=!1,Gm(h,R),FU(h,b,C),w2(h,b,C,R),pO(null,h,b,!0,L,R)}function sse(f,h,b,C){f!==null&&(f.alternate=null,h.alternate=null,h.flags|=Qn);var R=h.pendingProps,L;{var z=gd(h,b,!1);L=md(h,z)}Gm(h,C);var U;{if(b.prototype&&typeof b.prototype.render=="function"){var q=ht(b)||"Unknown";sO[q]||(o("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",q,q),sO[q]=!0)}h.mode&Hn&&B.recordLegacyContextWarning(h,null),ji(!0),Jx.current=h,U=Zm(null,h,b,R,L,C),ji(!1)}if(h.flags|=gu,typeof U=="object"&&U!==null&&typeof U.render=="function"&&U.$$typeof===void 0){var ee=ht(b)||"Unknown";e_[ee]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",ee,ee,ee),e_[ee]=!0)}if(typeof U=="object"&&U!==null&&typeof U.render=="function"&&U.$$typeof===void 0){{var ne=ht(b)||"Unknown";e_[ne]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",ne,ne,ne),e_[ne]=!0)}h.tag=u,h.memoizedState=null,h.updateQueue=null;var _e=!1;Is(b)?(_e=!0,Fm(h)):_e=!1,h.memoizedState=U.state!==null&&U.state!==void 0?U.state:null,d2(h);var fe=b.getDerivedStateFromProps;return typeof fe=="function"&&MC(h,b,fe,R),$U(h,U),w2(h,b,R,C),pO(null,h,b,!0,_e,C)}else{if(h.tag=l,h.mode&Hn){ui();try{U=Zm(null,h,b,R,L,C)}finally{go()}}return Mo(null,h,U,C),vO(h,b),h.child}}function vO(f,h){{if(h&&h.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",h.displayName||h.name||"Component"),f.ref!==null){var b="",C=uu();C&&(b+=` Check the render method of \``+C+"`.");var R=C||f._debugID||"",L=f._debugSource;L&&(R=L.fileName+":"+L.lineNumber),cO[R]||(cO[R]=!0,o("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",b))}if(typeof h.getDerivedStateFromProps=="function"){var z=ht(h)||"Unknown";uO[z]||(o("%s: Function components do not support getDerivedStateFromProps.",z),uO[z]=!0)}if(typeof h.contextType=="object"&&h.contextType!==null){var U=ht(h)||"Unknown";lO[U]||(o("%s: Function components do not support contextType.",U),lO[U]=!0)}}}var rA={dehydrated:null,retryLane:Ga};function nA(f){return{baseLanes:f}}function TW(f,h){return{baseLanes:jr(f.baseLanes,h)}}function lse(f,h,b,C){if(h!==null){var R=h.memoizedState;if(R===null)return!1}return NC(f,Wx)}function CW(f,h){return dm(f.childLanes,h)}function AW(f,h,b){var C=h.pendingProps;cue(h)&&(h.flags|=K);var R=Fl.current,L=!1,z=(h.flags&K)!==$n;if(z||lse(R,f)?(L=!0,h.flags&=~K):(f===null||f.memoizedState!==null)&&C.fallback!==void 0&&C.unstable_avoidThisFallback!==!0&&(R=koe(R,P2)),R=Hx(R),Np(h,R),f===null){C.fallback!==void 0&&k2(h);var U=C.children,q=C.fallback;if(L){var ee=EW(h,U,q,b),ne=h.child;return ne.memoizedState=nA(b),h.memoizedState=rA,ee}else if(typeof C.unstable_expectedLoadTime=="number"){var _e=EW(h,U,q,b),fe=h.child;return fe.memoizedState=nA(b),h.memoizedState=rA,h.lanes=Oa,wA(Oa),_e}else return use(h,U,b)}else{var Te=f.memoizedState;if(Te!==null)if(L){var Ye=C.fallback,ct=C.children,Ut=DW(f,h,ct,Ye,b),dr=h.child,tr=f.child.memoizedState;return dr.memoizedState=tr===null?nA(b):TW(tr,b),dr.childLanes=CW(f,b),h.memoizedState=rA,Ut}else{var Ur=C.children,Cn=MW(f,h,Ur,b);return h.memoizedState=null,Cn}else if(L){var we=C.fallback,ze=C.children,ye=DW(f,h,ze,we,b),tt=h.child,mt=f.child.memoizedState;return tt.memoizedState=mt===null?nA(b):TW(mt,b),tt.childLanes=CW(f,b),h.memoizedState=rA,ye}else{var Mt=C.children,Lr=MW(f,h,Mt,b);return h.memoizedState=null,Lr}}}function use(f,h,b){var C=f.mode,R={mode:"visible",children:h},L=tk(R,C,b,null);return L.return=f,f.child=L,L}function EW(f,h,b,C){var R=f.mode,L=f.child,z={mode:"hidden",children:h},U,q;return(R&Pi)===On&&L!==null?(U=L,U.childLanes=qe,U.pendingProps=z,f.mode&Qi&&(U.actualDuration=0,U.actualStartTime=-1,U.selfBaseDuration=0,U.treeBaseDuration=0),q=Yp(b,R,C,null)):(U=tk(z,R,qe,null),q=Yp(b,R,C,null)),U.return=f,q.return=f,U.sibling=q,f.child=U,q}function RW(f,h){return jp(f,h)}function MW(f,h,b,C){var R=f.child,L=R.sibling,z=RW(R,{mode:"visible",children:b});return(h.mode&Pi)===On&&(z.lanes=C),z.return=h,z.sibling=null,L!==null&&(L.nextEffect=null,L.flags=_o,h.firstEffect=h.lastEffect=L),h.child=z,z}function DW(f,h,b,C,R){var L=h.mode,z=f.child,U=z.sibling,q={mode:"hidden",children:b},ee;if((L&Pi)===On&&h.child!==z){var ne=h.child;ee=ne,ee.childLanes=qe,ee.pendingProps=q,h.mode&Qi&&(ee.actualDuration=0,ee.actualStartTime=-1,ee.selfBaseDuration=z.selfBaseDuration,ee.treeBaseDuration=z.treeBaseDuration);var _e=ee.lastEffect;_e!==null?(h.firstEffect=ee.firstEffect,h.lastEffect=_e,_e.nextEffect=null):h.firstEffect=h.lastEffect=null}else ee=RW(z,q);var fe;return U!==null?fe=jp(U,C):(fe=Yp(C,L,R,null),fe.flags|=Qn),fe.return=h,ee.return=h,ee.sibling=fe,h.child=ee,fe}function IW(f,h){f.lanes=jr(f.lanes,h);var b=f.alternate;b!==null&&(b.lanes=jr(b.lanes,h)),RU(f.return,h)}function cse(f,h,b){for(var C=h;C!==null;){if(C.tag===M){var R=C.memoizedState;R!==null&&IW(C,b)}else if(C.tag===$)IW(C,b);else if(C.child!==null){C.child.return=C,C=C.child;continue}if(C===f)return;for(;C.sibling===null;){if(C.return===null||C.return===f)return;C=C.return}C.sibling.return=C.return,C=C.sibling}}function fse(f){for(var h=f,b=null;h!==null;){var C=h.alternate;C!==null&&BC(C)===null&&(b=h),h=h.sibling}return b}function dse(f){if(f!==void 0&&f!=="forwards"&&f!=="backwards"&&f!=="together"&&!fO[f])if(fO[f]=!0,typeof f=="string")switch(f.toLowerCase()){case"together":case"forwards":case"backwards":{o('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',f,f.toLowerCase());break}case"forward":case"backward":{o('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',f,f.toLowerCase());break}default:o('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',f);break}else o('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',f)}function hse(f,h){f!==void 0&&!tA[f]&&(f!=="collapsed"&&f!=="hidden"?(tA[f]=!0,o('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',f)):h!=="forwards"&&h!=="backwards"&&(tA[f]=!0,o('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',f)))}function PW(f,h){{var b=Array.isArray(f),C=!b&&typeof An(f)=="function";if(b||C){var R=b?"array":"iterable";return o("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",R,h,R),!1}}return!0}function pse(f,h){if((h==="forwards"||h==="backwards")&&f!==void 0&&f!==null&&f!==!1)if(Array.isArray(f)){for(var b=0;b<f.length;b++)if(!PW(f[b],b))return}else{var C=An(f);if(typeof C=="function"){var R=C.call(f);if(R)for(var L=R.next(),z=0;!L.done;L=R.next()){if(!PW(L.value,z))return;z++}}else o('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',h)}}function gO(f,h,b,C,R,L){var z=f.memoizedState;z===null?f.memoizedState={isBackwards:h,rendering:null,renderingStartTime:0,last:C,tail:b,tailMode:R,lastEffect:L}:(z.isBackwards=h,z.rendering=null,z.renderingStartTime=0,z.last=C,z.tail=b,z.tailMode=R,z.lastEffect=L)}function LW(f,h,b){var C=h.pendingProps,R=C.revealOrder,L=C.tail,z=C.children;dse(R),hse(L,R),pse(z,R),Mo(f,h,z,b);var U=Fl.current,q=NC(U,Wx);if(q)U=L2(U,Wx),h.flags|=K;else{var ee=f!==null&&(f.flags&K)!==$n;ee&&cse(h,h.child,b),U=Hx(U)}if(Np(h,U),(h.mode&Pi)===On)h.memoizedState=null;else switch(R){case"forwards":{var ne=fse(h.child),_e;ne===null?(_e=h.child,h.child=null):(_e=ne.sibling,ne.sibling=null),gO(h,!1,_e,ne,L,h.lastEffect);break}case"backwards":{var fe=null,Te=h.child;for(h.child=null;Te!==null;){var Ye=Te.alternate;if(Ye!==null&&BC(Ye)===null){h.child=Te;break}var ct=Te.sibling;Te.sibling=fe,fe=Te,Te=ct}gO(h,!0,fe,null,L,h.lastEffect);break}case"together":{gO(h,!1,null,null,void 0,h.lastEffect);break}default:h.memoizedState=null}return h.child}function vse(f,h,b){M2(h,h.stateNode.containerInfo);var C=h.pendingProps;return f===null?h.child=LC(h,null,C,b):Mo(f,h,C,b),h.child}var OW=!1;function gse(f,h,b){var C=h.type,R=C._context,L=h.pendingProps,z=h.memoizedProps,U=L.value;{"value"in L||OW||(OW=!0,o("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var q=h.type.propTypes;q&&Ao(q,L,"prop","Context.Provider")}if(EU(h,U),z!==null){var ee=z.value,ne=woe(R,U,ee);if(ne===0){if(z.children===L.children&&!zm())return qc(f,h,b)}else Toe(h,R,ne,b)}var _e=L.children;return Mo(f,h,_e,b),h.child}var kW=!1;function mse(f,h,b){var C=h.type;C._context===void 0?C!==C.Consumer&&(kW||(kW=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):C=C._context;var R=h.pendingProps,L=R.children;typeof L!="function"&&o("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Gm(h,b);var z=Aa(C,R.unstable_observedBits),U;return Jx.current=h,ji(!0),U=L(z),ji(!1),h.flags|=gu,Mo(f,h,U,b),h.child}function mO(){Lu=!0}function qc(f,h,b){return f!==null&&(h.dependencies=f.dependencies),mW(),UO(h.lanes),tn(b,h.childLanes)?(Poe(f,h),h.child):null}function yse(f,h,b){{var C=h.return;if(C===null)throw new Error("Cannot swap the root fiber.");if(f.alternate=null,h.alternate=null,b.index=h.index,b.sibling=h.sibling,b.return=h.return,b.ref=h.ref,h===C.child)C.child=b;else{var R=C.child;if(R===null)throw new Error("Expected parent to have a child.");for(;R.sibling!==h;)if(R=R.sibling,R===null)throw new Error("Expected to find the previous sibling.");R.sibling=b}var L=C.lastEffect;return L!==null?(L.nextEffect=f,C.lastEffect=f):C.firstEffect=C.lastEffect=f,f.nextEffect=null,f.flags=_o,b.flags|=Qn,b}}function NW(f,h,b){var C=h.lanes;if(h._debugNeedsRemount&&f!==null)return yse(f,h,JO(h.type,h.key,h.pendingProps,h._debugOwner||null,h.mode,h.lanes));if(f!==null){var R=f.memoizedProps,L=h.pendingProps;if(R!==L||zm()||h.type!==f.type)Lu=!0;else if(tn(b,C))(f.flags&Nb)!==$n?Lu=!0:Lu=!1;else{switch(Lu=!1,h.tag){case d:wW(h),N2();break;case v:jU(h);break;case u:{var z=h.type;Is(z)&&Fm(h);break}case p:M2(h,h.stateNode.containerInfo);break;case w:{var U=h.memoizedProps.value;EU(h,U);break}case A:{var q=tn(b,h.childLanes);q&&(h.flags|=gn);var ee=h.stateNode;ee.effectDuration=0,ee.passiveEffectDuration=0}break;case M:{var ne=h.memoizedState;if(ne!==null){var _e=h.child,fe=_e.childLanes;if(tn(b,fe))return AW(f,h,b);Np(h,Hx(Fl.current));var Te=qc(f,h,b);return Te!==null?Te.sibling:null}else Np(h,Hx(Fl.current));break}case $:{var Ye=(f.flags&K)!==$n,ct=tn(b,h.childLanes);if(Ye){if(ct)return LW(f,h,b);h.flags|=K}var Ut=h.memoizedState;if(Ut!==null&&(Ut.rendering=null,Ut.tail=null,Ut.lastEffect=null),Np(h,Fl.current),ct)break;return null}case j:case X:return h.lanes=qe,dO(f,h,b)}return qc(f,h,b)}}else Lu=!1;switch(h.lanes=qe,h.tag){case c:return sse(f,h,h.type,b);case O:{var dr=h.elementType;return ise(f,h,dr,C,b)}case l:{var tr=h.type,Ur=h.pendingProps,Cn=h.elementType===tr?Ur:Kt(tr,Ur);return hO(f,h,tr,Cn,b)}case u:{var we=h.type,ze=h.pendingProps,ye=h.elementType===we?ze:Kt(we,ze);return SW(f,h,we,ye,b)}case d:return rse(f,h,b);case v:return nse(f,h,b);case g:return ase(f,h);case M:return AW(f,h,b);case p:return vse(f,h,b);case T:{var tt=h.type,mt=h.pendingProps,Mt=h.elementType===tt?mt:Kt(tt,mt);return yW(f,h,tt,Mt,b)}case m:return Joe(f,h,b);case x:return ese(f,h,b);case A:return tse(f,h,b);case w:return gse(f,h,b);case _:return mse(f,h,b);case D:{var Lr=h.type,Nn=h.pendingProps,Gn=Kt(Lr,Nn);if(h.type!==h.elementType){var sn=Lr.propTypes;sn&&Ao(sn,Gn,"prop",ht(Lr))}return Gn=Kt(Lr.type,Gn),bW(f,h,Lr,Gn,C,b)}case P:return xW(f,h,h.type,h.pendingProps,C,b);case k:{var Ea=h.type,qr=h.pendingProps,jn=h.elementType===Ea?qr:Kt(Ea,qr);return ose(f,h,Ea,jn,b)}case $:return LW(f,h,b);case H:break;case F:break;case W:break;case j:return dO(f,h,b);case X:return Qoe(f,h,b)}throw Error("Unknown unit of work tag ("+h.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Jm(f){f.flags|=gn}function BW(f){f.flags|=Al}var zW,yO,$W,FW;zW=function(f,h,b,C){for(var R=h.child;R!==null;){if(R.tag===v||R.tag===g)Dp(f,R.stateNode);else if(R.tag!==p){if(R.child!==null){R.child.return=R,R=R.child;continue}}if(R===h)return;for(;R.sibling===null;){if(R.return===null||R.return===h)return;R=R.return}R.sibling.return=R.return,R=R.sibling}},yO=function(f){},$W=function(f,h,b,C,R){var L=f.memoizedProps;if(L!==C){var z=h.stateNode,U=D2(),q=RL(z,b,L,C,R,U);h.updateQueue=q,q&&Jm(h)}},FW=function(f,h,b,C){b!==C&&Jm(h)};function t_(f,h){if(!B2())switch(f.tailMode){case"hidden":{for(var b=f.tail,C=null;b!==null;)b.alternate!==null&&(C=b),b=b.sibling;C===null?f.tail=null:C.sibling=null;break}case"collapsed":{for(var R=f.tail,L=null;R!==null;)R.alternate!==null&&(L=R),R=R.sibling;L===null?!h&&f.tail!==null?f.tail.sibling=null:f.tail=null:L.sibling=null;break}}}function VW(f,h,b){var C=h.pendingProps;switch(h.tag){case c:case O:case P:case l:case T:case m:case x:case A:case _:case D:return null;case u:{var R=h.type;return Is(R)&&$m(h),null}case d:{jm(h),Px(h),$2();var L=h.stateNode;if(L.pendingContext&&(L.context=L.pendingContext,L.pendingContext=null),f===null||f.child===null){var z=zC(h);z?Jm(h):L.hydrate||(h.flags|=ws)}return yO(h),null}case v:{I2(h);var U=GU(),q=h.type;if(f!==null&&h.stateNode!=null)$W(f,h,q,C,U),f.ref!==h.ref&&BW(h);else{if(!C){if(h.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return null}var ee=D2(),ne=zC(h);if(ne)zoe(h,U,ee)&&Jm(h);else{var _e=HT(q,C,U,ee,h);zW(_e,h,!1,!1),h.stateNode=_e,Tx(_e,q,C,U)&&Jm(h)}h.ref!==null&&BW(h)}return null}case g:{var fe=C;if(f&&h.stateNode!=null){var Te=f.memoizedProps;FW(f,h,Te,fe)}else{if(typeof fe!="string"&&h.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var Ye=GU(),ct=D2(),Ut=zC(h);Ut?$oe(h)&&Jm(h):h.stateNode=Pm(fe,Ye,ct,h)}return null}case M:{Ym(h);var dr=h.memoizedState;if((h.flags&K)!==$n)return h.lanes=b,(h.mode&Qi)!==On&&oO(h),h;var tr=dr!==null,Ur=!1;if(f===null)h.memoizedProps.fallback!==void 0&&zC(h);else{var Cn=f.memoizedState;Ur=Cn!==null}if(tr&&!Ur&&(h.mode&Pi)!==On){var we=f===null&&h.memoizedProps.unstable_avoidThisFallback!==!0;we||NC(Fl.current,P2)?ale():ile()}return(tr||Ur)&&(h.flags|=gn),null}case p:return jm(h),yO(h),f===null&&KL(h.stateNode.containerInfo),null;case w:return u2(h),null;case k:{var ze=h.type;return Is(ze)&&$m(h),null}case $:{Ym(h);var ye=h.memoizedState;if(ye===null)return null;var tt=(h.flags&K)!==$n,mt=ye.rendering;if(mt===null)if(tt)t_(ye,!1);else{var Mt=sle()&&(f===null||(f.flags&K)===$n);if(!Mt)for(var Lr=h.child;Lr!==null;){var Nn=BC(Lr);if(Nn!==null){tt=!0,h.flags|=K,t_(ye,!1);var Gn=Nn.updateQueue;return Gn!==null&&(h.updateQueue=Gn,h.flags|=gn),ye.lastEffect===null&&(h.firstEffect=null),h.lastEffect=ye.lastEffect,Loe(h,b),Np(h,L2(Fl.current,Wx)),h.child}Lr=Lr.sibling}ye.tail!==null&&Qa()>nH()&&(h.flags|=K,tt=!0,t_(ye,!1),h.lanes=Oa,wA(Oa))}else{if(!tt){var sn=BC(mt);if(sn!==null){h.flags|=K,tt=!0;var Ea=sn.updateQueue;if(Ea!==null&&(h.updateQueue=Ea,h.flags|=gn),t_(ye,!0),ye.tail===null&&ye.tailMode==="hidden"&&!mt.alternate&&!B2()){var qr=h.lastEffect=ye.lastEffect;return qr!==null&&(qr.nextEffect=null),null}}else Qa()*2-ye.renderingStartTime>nH()&&b!==Ho&&(h.flags|=K,tt=!0,t_(ye,!1),h.lanes=Oa,wA(Oa))}if(ye.isBackwards)mt.sibling=h.child,h.child=mt;else{var jn=ye.last;jn!==null?jn.sibling=mt:h.child=mt,ye.last=mt}}if(ye.tail!==null){var ri=ye.tail;ye.rendering=ri,ye.tail=ri.sibling,ye.lastEffect=h.lastEffect,ye.renderingStartTime=Qa(),ri.sibling=null;var ma=Fl.current;return tt?ma=L2(ma,Wx):ma=Hx(ma),Np(h,ma),ri}return null}case H:break;case F:break;case W:break;case j:case X:{if(VO(h),f!==null){var Bu=h.memoizedState,ya=f.memoizedState,zu=ya!==null,qp=Bu!==null;zu!==qp&&C.mode!=="unstable-defer-without-hiding"&&(h.flags|=gn)}return null}}throw Error("Unknown unit of work tag ("+h.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function bse(f,h){switch(f.tag){case u:{var b=f.type;Is(b)&&$m(f);var C=f.flags;return C&Rl?(f.flags=C&~Rl|K,(f.mode&Qi)!==On&&oO(f),f):null}case d:{jm(f),Px(f),$2();var R=f.flags;if((R&K)!==$n)throw Error("The root failed to unmount after an error. This is likely a bug in React. Please file an issue.");return f.flags=R&~Rl|K,f}case v:return I2(f),null;case M:{Ym(f);var L=f.flags;return L&Rl?(f.flags=L&~Rl|K,(f.mode&Qi)!==On&&oO(f),f):null}case $:return Ym(f),null;case p:return jm(f),null;case w:return u2(f),null;case j:case X:return VO(f),null;default:return null}}function UW(f){switch(f.tag){case u:{var h=f.type.childContextTypes;h!=null&&$m(f);break}case d:{jm(f),Px(f),$2();break}case v:{I2(f);break}case p:jm(f);break;case M:Ym(f);break;case $:Ym(f);break;case w:u2(f);break;case j:case X:VO(f);break}}function bO(f,h){return{value:f,source:h,stack:lu(h)}}function xse(f,h){return!0}function xO(f,h){try{var b=xse(f,h);if(b===!1)return;var C=h.value,R=h.source,L=h.stack,z=L!==null?L:"";if(C!=null&&C._suppressLogging){if(f.tag===u)return;console.error(C)}var U=R?ht(R.type):null,q=U?"The above error occurred in the <"+U+"> component:":"The above error occurred in one of your React components:",ee,ne=ht(f.type);ne?ee="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+ne+"."):ee=`Consider adding an error boundary to your tree to customize error handling behavior. Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;var _e=q+` `+z+` `+(""+ee);console.error(_e)}catch(fe){setTimeout(function(){throw fe})}}var _se=typeof WeakMap=="function"?WeakMap:Map;function WW(f,h,b){var C=_d(Pr,b);C.tag=c2,C.payload={element:null};var R=h.value;return C.callback=function(){_le(R),xO(f,h)},C}function HW(f,h,b){var C=_d(Pr,b);C.tag=c2;var R=f.type.getDerivedStateFromError;if(typeof R=="function"){var L=h.value;C.payload=function(){return xO(f,h),R(L)}}var z=f.stateNode;return z!==null&&typeof z.componentDidCatch=="function"?C.callback=function(){TH(f),typeof R!="function"&&(ble(this),xO(f,h));var q=h.value,ee=h.stack;this.componentDidCatch(q,{componentStack:ee!==null?ee:""}),typeof R!="function"&&(tn(f.lanes,en)||o("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",ht(f.type)||"Unknown"))}:C.callback=function(){TH(f)},C}function Sse(f,h,b){var C=f.pingCache,R;if(C===null?(C=f.pingCache=new _se,R=new Set,C.set(h,R)):(R=C.get(h),R===void 0&&(R=new Set,C.set(h,R))),!R.has(b)){R.add(b);var L=Sle.bind(null,f,h,b);h.then(L,L)}}function wse(f,h,b,C,R){if(b.flags|=Zh,b.firstEffect=b.lastEffect=null,C!==null&&typeof C=="object"&&typeof C.then=="function"){var L=C;if((b.mode&Pi)===On){var z=b.alternate;z?(b.updateQueue=z.updateQueue,b.memoizedState=z.memoizedState,b.lanes=z.lanes):(b.updateQueue=null,b.memoizedState=null)}var U=NC(Fl.current,P2),q=h;do{if(q.tag===M&&Noe(q,U)){var ee=q.updateQueue;if(ee===null){var ne=new Set;ne.add(L),q.updateQueue=ne}else ee.add(L);if((q.mode&Pi)===On){if(q.flags|=K,b.flags|=Nb,b.flags&=~($I|Zh),b.tag===u){var _e=b.alternate;if(_e===null)b.tag=k;else{var fe=_d(Pr,en);fe.tag=TC,Sd(b,fe)}}b.lanes=jr(b.lanes,en);return}Sse(f,L,R),q.flags|=Rl,q.lanes=R;return}q=q.return}while(q!==null);C=new Error((ht(b.type)||"A React component")+` suspended while rendering, but no fallback UI was specified. Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}ole(),C=bO(C,b);var Te=h;do{switch(Te.tag){case d:{var Ye=C;Te.flags|=Rl;var ct=pi(R);Te.lanes=jr(Te.lanes,ct);var Ut=WW(Te,Ye,ct);PU(Te,Ut);return}case u:var dr=C,tr=Te.type,Ur=Te.stateNode;if((Te.flags&K)===$n&&(typeof tr.getDerivedStateFromError=="function"||Ur!==null&&typeof Ur.componentDidCatch=="function"&&!WO(Ur))){Te.flags|=Rl;var Cn=pi(R);Te.lanes=jr(Te.lanes,Cn);var we=HW(Te,dr,Cn);PU(Te,we);return}break}Te=Te.return}while(Te!==null)}var GW=null;GW=new Set;var Tse=typeof WeakSet=="function"?WeakSet:Set,Cse=function(f,h){h.props=f.memoizedProps,h.state=f.memoizedState,h.componentWillUnmount()};function Ase(f,h){if(xo(null,Cse,null,f,h),Ei()){var b=Ri();Ed(f,b)}}function jW(f){var h=f.ref;if(h!==null)if(typeof h=="function"){if(xo(null,h,null,null),Ei()){var b=Ri();Ed(f,b)}}else h.current=null}function Ese(f,h){if(xo(null,h,null),Ei()){var b=Ri();Ed(f,b)}}function Rse(f,h){switch(h.tag){case l:case T:case P:case W:return;case u:{if(h.flags&ws&&f!==null){var b=f.memoizedProps,C=f.memoizedState,R=h.stateNode;h.type===h.elementType&&!Vp&&(R.props!==h.memoizedProps&&o("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ht(h.type)||"instance"),R.state!==h.memoizedState&&o("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ht(h.type)||"instance"));var L=R.getSnapshotBeforeUpdate(h.elementType===h.type?b:Kt(h.type,b),C);{var z=GW;L===void 0&&!z.has(h.type)&&(z.add(h.type),o("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",ht(h.type)))}R.__reactInternalSnapshotBeforeUpdate=L}return}case d:{if(h.flags&ws){var U=h.stateNode;pd(U.containerInfo)}return}case v:case g:case p:case k:return}throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}function Mse(f,h){var b=h.updateQueue,C=b!==null?b.lastEffect:null;if(C!==null){var R=C.next,L=R;do{if((L.tag&f)===f){var z=L.destroy;L.destroy=void 0,z!==void 0&&z()}L=L.next}while(L!==R)}}function Dse(f,h){var b=h.updateQueue,C=b!==null?b.lastEffect:null;if(C!==null){var R=C.next,L=R;do{if((L.tag&f)===f){var z=L.create;L.destroy=z();{var U=L.destroy;if(U!==void 0&&typeof U!="function"){var q=void 0;U===null?q=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof U.then=="function"?q=` It looks like you wrote useEffect(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately: useEffect(() => { async function fetchData() { // You can await here const response = await MyAPI.getData(someId); // ... } fetchData(); }, [someId]); // Or [] if effect doesn't need props or state Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:q=" You returned: "+U,o("An effect function must not return anything besides a function, which is used for clean-up.%s",q)}}}L=L.next}while(L!==R)}}function Ise(f){var h=f.updateQueue,b=h!==null?h.lastEffect:null;if(b!==null){var C=b.next,R=C;do{var L=R,z=L.next,U=L.tag;(U&Gx)!==O2&&(U&qm)!==O2&&(dH(f,R),gle(f,R)),R=z}while(R!==C)}}function Pse(f,h,b,C){switch(b.tag){case l:case T:case P:case W:{Dse(Xm|qm,b),Ise(b);return}case u:{var R=b.stateNode;if(b.flags&gn)if(h===null)b.type===b.elementType&&!Vp&&(R.props!==b.memoizedProps&&o("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ht(b.type)||"instance"),R.state!==b.memoizedState&&o("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ht(b.type)||"instance")),R.componentDidMount();else{var L=b.elementType===b.type?h.memoizedProps:Kt(b.type,h.memoizedProps),z=h.memoizedState;b.type===b.elementType&&!Vp&&(R.props!==b.memoizedProps&&o("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ht(b.type)||"instance"),R.state!==b.memoizedState&&o("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ht(b.type)||"instance")),R.componentDidUpdate(L,z,R.__reactInternalSnapshotBeforeUpdate)}var U=b.updateQueue;U!==null&&(b.type===b.elementType&&!Vp&&(R.props!==b.memoizedProps&&o("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ht(b.type)||"instance"),R.state!==b.memoizedState&&o("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ht(b.type)||"instance")),OU(b,U,R));return}case d:{var q=b.updateQueue;if(q!==null){var ee=null;if(b.child!==null)switch(b.child.tag){case v:ee=b.child.stateNode;break;case u:ee=b.child.stateNode;break}OU(b,q,ee)}return}case v:{var ne=b.stateNode;if(h===null&&b.flags&gn){var _e=b.type,fe=b.memoizedProps;ML(ne,_e,fe)}return}case g:return;case p:return;case A:{{var Te=b.memoizedProps;Te.onCommit;var Ye=Te.onRender;b.stateNode.effectDuration;var ct=Zoe();typeof Ye=="function"&&Ye(b.memoizedProps.id,h===null?"mount":"update",b.actualDuration,b.treeBaseDuration,b.actualStartTime,ct,f.memoizedInteractions)}return}case M:{Fse(f,b);return}case $:case k:case H:case F:case j:case X:return}throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}function YW(f,h){for(var b=f;;){if(b.tag===v){var C=b.stateNode;h?PL(C):LL(b.stateNode,b.memoizedProps)}else if(b.tag===g){var R=b.stateNode;h?Yr(R):XT(R,b.memoizedProps)}else if(!((b.tag===j||b.tag===X)&&b.memoizedState!==null&&b!==f)){if(b.child!==null){b.child.return=b,b=b.child;continue}}if(b===f)return;for(;b.sibling===null;){if(b.return===null||b.return===f)return;b=b.return}b.sibling.return=b.return,b=b.sibling}}function Lse(f){var h=f.ref;if(h!==null){var b=f.stateNode,C;switch(f.tag){case v:C=b;break;default:C=b}typeof h=="function"?h(C):(h.hasOwnProperty("current")||o("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",ht(f.type)),h.current=C)}}function Ose(f){var h=f.ref;h!==null&&(typeof h=="function"?h(null):h.current=null)}function qW(f,h,b){switch(r2(h),h.tag){case l:case T:case D:case P:case W:{var C=h.updateQueue;if(C!==null){var R=C.lastEffect;if(R!==null){var L=R.next,z=L;do{var U=z,q=U.destroy,ee=U.tag;q!==void 0&&((ee&Gx)!==O2?dH(h,z):Ese(h,q)),z=z.next}while(z!==L)}}return}case u:{jW(h);var ne=h.stateNode;typeof ne.componentWillUnmount=="function"&&Ase(h,ne);return}case v:{jW(h);return}case p:{QW(f,h);return}case H:return;case N:return;case F:return}}function kse(f,h,b){for(var C=h;;){if(qW(f,C),C.child!==null&&C.tag!==p){C.child.return=C,C=C.child;continue}if(C===h)return;for(;C.sibling===null;){if(C.return===null||C.return===h)return;C=C.return}C.sibling.return=C.return,C=C.sibling}}function XW(f){f.alternate=null,f.child=null,f.dependencies=null,f.firstEffect=null,f.lastEffect=null,f.memoizedProps=null,f.memoizedState=null,f.pendingProps=null,f.return=null,f.updateQueue=null,f._debugOwner=null}function Nse(f){for(var h=f.return;h!==null;){if(ZW(h))return h;h=h.return}throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function ZW(f){return f.tag===v||f.tag===d||f.tag===p}function Bse(f){var h=f;e:for(;;){for(;h.sibling===null;){if(h.return===null||ZW(h.return))return null;h=h.return}for(h.sibling.return=h.return,h=h.sibling;h.tag!==v&&h.tag!==g&&h.tag!==N;){if(h.flags&Qn||h.child===null||h.tag===p)continue e;h.child.return=h,h=h.child}if(!(h.flags&Qn))return h.stateNode}}function KW(f){var h=Nse(f),b,C,R=h.stateNode;switch(h.tag){case v:b=R,C=!1;break;case d:b=R.containerInfo,C=!0;break;case p:b=R.containerInfo,C=!0;break;case H:default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}h.flags&mu&&(GT(b),h.flags&=~mu);var L=Bse(f);C?_O(f,L,b):SO(f,L,b)}function _O(f,h,b){var C=f.tag,R=C===v||C===g;if(R||J){var L=R?f.stateNode:f.stateNode.instance;h?YT(b,L,h):kl(b,L)}else if(C!==p){var z=f.child;if(z!==null){_O(z,h,b);for(var U=z.sibling;U!==null;)_O(U,h,b),U=U.sibling}}}function SO(f,h,b){var C=f.tag,R=C===v||C===g;if(R||J){var L=R?f.stateNode:f.stateNode.instance;h?fr(b,L,h):jT(b,L)}else if(C!==p){var z=f.child;if(z!==null){SO(z,h,b);for(var U=z.sibling;U!==null;)SO(U,h,b),U=U.sibling}}}function QW(f,h,b){for(var C=h,R=!1,L,z;;){if(!R){var U=C.return;e:for(;;){if(U===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");var q=U.stateNode;switch(U.tag){case v:L=q,z=!1;break e;case d:L=q.containerInfo,z=!0;break e;case p:L=q.containerInfo,z=!0;break e}U=U.return}R=!0}if(C.tag===v||C.tag===g)kse(f,C),z?qT(L,C.stateNode):Co(L,C.stateNode);else if(C.tag===p){if(C.child!==null){L=C.stateNode.containerInfo,z=!0,C.child.return=C,C=C.child;continue}}else if(qW(f,C),C.child!==null){C.child.return=C,C=C.child;continue}if(C===h)return;for(;C.sibling===null;){if(C.return===null||C.return===h)return;C=C.return,C.tag===p&&(R=!1)}C.sibling.return=C.return,C=C.sibling}}function zse(f,h,b){QW(f,h);var C=h.alternate;XW(h),C!==null&&XW(C)}function wO(f,h){switch(h.tag){case l:case T:case D:case P:case W:{Mse(Xm|qm,h);return}case u:return;case v:{var b=h.stateNode;if(b!=null){var C=h.memoizedProps,R=f!==null?f.memoizedProps:C,L=h.type,z=h.updateQueue;h.updateQueue=null,z!==null&&DL(b,z,L,R,C)}return}case g:{if(h.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var U=h.stateNode,q=h.memoizedProps,ee=f!==null?f.memoizedProps:q;IL(U,ee,q);return}case d:{{var ne=h.stateNode;ne.hydrate&&(ne.hydrate=!1,VL(ne.containerInfo))}return}case A:return;case M:{$se(h),JW(h);return}case $:{JW(h);return}case k:return;case H:break;case F:break;case j:case X:{var _e=h.memoizedState,fe=_e!==null;YW(h,fe);return}}throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}function $se(f){var h=f.memoizedState;if(h!==null){nle();{var b=f.child;YW(b,!0)}}}function Fse(f,h){var b=h.memoizedState;if(b===null){var C=h.alternate;if(C!==null){var R=C.memoizedState;if(R!==null){var L=R.dehydrated;L!==null&&UL(L)}}}}function JW(f){var h=f.updateQueue;if(h!==null){f.updateQueue=null;var b=f.stateNode;b===null&&(b=f.stateNode=new Tse),h.forEach(function(C){var R=Tle.bind(null,f,C);b.has(C)||(C.__reactDoNotTraceInteractions!==!0&&(R=n.unstable_wrap(R)),b.add(C),C.then(R,R))})}}function Vse(f,h){if(f!==null){var b=f.memoizedState;if(b===null||b.dehydrated!==null){var C=h.memoizedState;return C!==null&&C.dehydrated===null}}return!1}function Use(f){GT(f.stateNode)}if(typeof Symbol=="function"&&Symbol.for){var r_=Symbol.for;r_("selector.component"),r_("selector.has_pseudo_class"),r_("selector.role"),r_("selector.test_id"),r_("selector.text")}var Wse=[];function Hse(){Wse.forEach(function(f){return f()})}var Gse=Math.ceil,TO=a.ReactCurrentDispatcher,CO=a.ReactCurrentOwner,AO=a.IsSomeRendererActing,aa=0,aA=1,jse=2,EO=4,RO=8,Xo=16,Ou=32,eH=64,Xc=0,iA=1,oA=2,sA=3,lA=4,MO=5,er=aa,Ji=null,ia=null,eo=qe,ku=qe,DO=Mu(qe),gi=Xc,uA=null,Up=qe,cA=qe,Wp=qe,fA=qe,IO=null,PO=0,tH=500,rH=1/0,Yse=500;function ey(){rH=Qa()+Yse}function nH(){return rH}var Rt=null,dA=!1,LO=null,ty=null,Zc=!1,ry=null,n_=kp,OO=qe,kO=[],NO=[],Kc=null,qse=50,a_=0,BO=null,Xse=50,hA=0,Hp=null,i_=Pr,Qc=qe,pA=qe,zO=!1,o_=null,vA=!1;function Zse(){return Ji}function Zo(){return(er&(Xo|Ou))!==aa?Qa():(i_!==Pr||(i_=Qa()),i_)}function Ad(f){var h=f.mode;if((h&Pi)===On)return en;if((h&Yc)===On)return xd()===Eo?en:Oc;Qc===qe&&(Qc=Up);var b=I()!==S;if(b)return pA!==qe&&(pA=IO!==null?IO.pendingLanes:qe),QI(Qc,pA);var C=xd(),R;if((er&EO)!==aa&&C===Du)R=Jf(om,Qc);else{var L=fm(C);R=Jf(L,Qc)}return R}function Kse(f){var h=f.mode;return(h&Pi)===On?en:(h&Yc)===On?xd()===Eo?en:Oc:(Qc===qe&&(Qc=Up),JI(Qc))}function ki(f,h,b){Ale(),Dle(f);var C=gA(f,h);if(C===null)return Rle(f),null;sp(C,h,b),C===Ji&&(Wp=jr(Wp,h),gi===lA&&ny(C,eo));var R=xd();h===en?(er&RO)!==aa&&(er&(Xo|Ou))===aa?(Rd(C,h),$O(C)):(Bs(C,b),Rd(C,h),er===aa&&(ey(),Ps())):((er&EO)!==aa&&(R===Du||R===Eo)&&(Kc===null?Kc=new Set([C]):Kc.add(C)),Bs(C,b),Rd(C,h)),IO=C}function gA(f,h){f.lanes=jr(f.lanes,h);var b=f.alternate;b!==null&&(b.lanes=jr(b.lanes,h)),b===null&&(f.flags&(Qn|El))!==$n&&pH(f);for(var C=f,R=f.return;R!==null;)R.childLanes=jr(R.childLanes,h),b=R.alternate,b!==null?b.childLanes=jr(b.childLanes,h):(R.flags&(Qn|El))!==$n&&pH(f),C=R,R=R.return;if(C.tag===d){var L=C.stateNode;return L}else return null}function Bs(f,h){var b=f.callbackNode;rx(f,h);var C=zc(f,f===Ji?eo:qe),R=KI();if(C===qe){b!==null&&(_C(b),f.callbackNode=null,f.callbackPriority=Lc);return}if(b!==null){var L=f.callbackPriority;if(L===R)return;_C(b)}var z;if(R===Pc)z=s2($O.bind(null,f));else if(R===im)z=Iu(Eo,$O.bind(null,f));else{var U=Bw(R);z=Iu(U,aH.bind(null,f))}f.callbackPriority=R,f.callbackNode=z}function aH(f){if(i_=Pr,Qc=qe,pA=qe,(er&(Xo|Ou))!==aa)throw Error("Should not already be working.");var h=f.callbackNode,b=Nu();if(b&&f.callbackNode!==h)return null;var C=zc(f,f===Ji?eo:qe);if(C===qe)return null;var R=ule(f,C);if(tn(Up,Wp))ay(f,qe);else if(R!==Xc){if(R===oA&&(er|=eH,f.hydrate&&(f.hydrate=!1,pd(f.containerInfo)),C=Pl(f),C!==qe&&(R=s_(f,C))),R===iA){var L=uA;throw ay(f,qe),ny(f,C),Bs(f,Qa()),L}var z=f.current.alternate;f.finishedWork=z,f.finishedLanes=C,Qse(f,R,C)}return Bs(f,Qa()),f.callbackNode===h?aH.bind(null,f):null}function Qse(f,h,b){switch(h){case Xc:case iA:throw Error("Root did not complete. This is a bug in React.");case oA:{Gp(f);break}case sA:{if(ny(f,b),nx(b)&&!Ole()){var C=PO+tH-Qa();if(C>10){var R=zc(f,qe);if(R!==qe)break;var L=f.suspendedLanes;if(!ja(L,b)){Zo(),ix(f,L);break}f.timeoutHandle=Di(Gp.bind(null,f),C);break}}Gp(f);break}case lA:{if(ny(f,b),$w(b))break;{var z=zw(f,b),U=z,q=Qa()-U,ee=Cle(q)-q;if(ee>10){f.timeoutHandle=Di(Gp.bind(null,f),ee);break}}Gp(f);break}case MO:{Gp(f);break}default:throw Error("Unknown root exit status.")}}function ny(f,h){h=dm(h,fA),h=dm(h,Wp),tP(f,h)}function $O(f){if((er&(Xo|Ou))!==aa)throw Error("Should not already be working.");Nu();var h,b;if(f===Ji&&tn(f.expiredLanes,eo)?(h=eo,b=s_(f,h),tn(Up,Wp)&&(h=zc(f,h),b=s_(f,h))):(h=zc(f,qe),b=s_(f,h)),f.tag!==Lx&&b===oA&&(er|=eH,f.hydrate&&(f.hydrate=!1,pd(f.containerInfo)),h=Pl(f),h!==qe&&(b=s_(f,h))),b===iA){var C=uA;throw ay(f,qe),ny(f,h),Bs(f,Qa()),C}var R=f.current.alternate;return f.finishedWork=R,f.finishedLanes=h,Gp(f),Bs(f,Qa()),null}function Jse(){if((er&(aA|Xo|Ou))!==aa){(er&Xo)!==aa&&o("unstable_flushDiscreteUpdates: Cannot flush updates when React is already rendering.");return}ele(),Nu()}function ele(){if(Kc!==null){var f=Kc;Kc=null,f.forEach(function(h){td(h),Bs(h,Qa())})}Ps()}function iH(f,h){var b=er;er|=aA;try{return f(h)}finally{er=b,er===aa&&(ey(),Ps())}}function tle(f,h){var b=er;er|=jse;try{return f(h)}finally{er=b,er===aa&&(ey(),Ps())}}function rle(f,h,b,C,R){var L=er;er|=EO;try{return jc(Du,f.bind(null,h,b,C,R))}finally{er=L,er===aa&&(ey(),Ps())}}function oH(f,h){var b=er;er&=~aA,er|=RO;try{return f(h)}finally{er=b,er===aa&&(ey(),Ps())}}function FO(f,h){var b=er;if((b&(Xo|Ou))!==aa)return o("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),f(h);er|=aA;try{return f?jc(Eo,f.bind(null,h)):void 0}finally{er=b,Ps()}}function mA(f,h){Za(DO,ku,f),ku=jr(ku,h),Up=jr(Up,h)}function VO(f){ku=DO.current,Xa(DO,f)}function ay(f,h){f.finishedWork=null,f.finishedLanes=qe;var b=f.timeoutHandle;if(b!==Cx&&(f.timeoutHandle=Cx,hd(b)),ia!==null)for(var C=ia.return;C!==null;)UW(C),C=C.return;Ji=f,ia=jp(f.current,null),eo=ku=Up=h,gi=Xc,uA=null,cA=qe,Wp=qe,fA=qe,Hp=null,B.discardPendingWarnings()}function sH(f,h){do{var b=ia;try{if(Li(),eW(),Sa(),CO.current=null,b===null||b.return===null){gi=iA,uA=h,ia=null;return}te&&b.mode&Qi&&eA(b,!0),wse(f,b.return,b,h,eo),fH(b)}catch(C){h=C,ia===b&&b!==null?(b=b.return,ia=b):b=ia;continue}return}while(!0)}function lH(){var f=TO.current;return TO.current=KC,f===null?KC:f}function uH(f){TO.current=f}function yA(f){{var h=n.__interactionsRef.current;return n.__interactionsRef.current=f.memoizedInteractions,h}}function bA(f){n.__interactionsRef.current=f}function nle(){PO=Qa()}function UO(f){cA=jr(f,cA)}function ale(){gi===Xc&&(gi=sA)}function ile(){(gi===Xc||gi===sA)&&(gi=lA),Ji!==null&&(Ll(cA)||Ll(Wp))&&ny(Ji,eo)}function ole(){gi!==MO&&(gi=oA)}function sle(){return gi===Xc}function s_(f,h){var b=er;er|=Xo;var C=lH();(Ji!==f||eo!==h)&&(ay(f,h),xH(f,h));var R=yA(f);do try{lle();break}catch(L){sH(f,L)}while(!0);if(Li(),bA(R),er=b,uH(C),ia!==null)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Ji=null,eo=qe,gi}function lle(){for(;ia!==null;)cH(ia)}function ule(f,h){var b=er;er|=Xo;var C=lH();(Ji!==f||eo!==h)&&(ey(),ay(f,h),xH(f,h));var R=yA(f);do try{cle();break}catch(L){sH(f,L)}while(!0);return Li(),bA(R),uH(C),er=b,ia!==null?Xc:(Ji=null,eo=qe,gi)}function cle(){for(;ia!==null&&!Nx();)cH(ia)}function cH(f){var h=f.alternate;Bn(f);var b;(f.mode&Qi)!==On?(iO(f),b=HO(h,f,ku),eA(f,!0)):b=HO(h,f,ku),Sa(),f.memoizedProps=f.pendingProps,b===null?fH(f):ia=b,CO.current=null}function fH(f){var h=f;do{var b=h.alternate,C=h.return;if((h.flags&Zh)===$n){Bn(h);var R=void 0;if((h.mode&Qi)===On?R=VW(b,h,ku):(iO(h),R=VW(b,h,ku),eA(h,!1)),Sa(),R!==null){ia=R;return}if(fle(h),C!==null&&(C.flags&Zh)===$n){C.firstEffect===null&&(C.firstEffect=h.firstEffect),h.lastEffect!==null&&(C.lastEffect!==null&&(C.lastEffect.nextEffect=h.firstEffect),C.lastEffect=h.lastEffect);var L=h.flags;L>gu&&(C.lastEffect!==null?C.lastEffect.nextEffect=h:C.firstEffect=h,C.lastEffect=h)}}else{var z=bse(h);if(z!==null){z.flags&=Ec,ia=z;return}if((h.mode&Qi)!==On){eA(h,!1);for(var U=h.actualDuration,q=h.child;q!==null;)U+=q.actualDuration,q=q.sibling;h.actualDuration=U}C!==null&&(C.firstEffect=C.lastEffect=null,C.flags|=Zh)}var ee=h.sibling;if(ee!==null){ia=ee;return}h=C,ia=h}while(h!==null);gi===Xc&&(gi=MO)}function fle(f){if(!((f.tag===X||f.tag===j)&&f.memoizedState!==null&&!tn(ku,Ho)&&(f.mode&Yc)!==qe)){var h=qe;if((f.mode&Qi)!==On){for(var b=f.actualDuration,C=f.selfBaseDuration,R=f.alternate===null||f.child!==f.alternate.child,L=f.child;L!==null;)h=jr(h,jr(L.lanes,L.childLanes)),R&&(b+=L.actualDuration),C+=L.treeBaseDuration,L=L.sibling;var z=f.tag===M&&f.memoizedState!==null;if(z){var U=f.child;U!==null&&(C-=U.treeBaseDuration)}f.actualDuration=b,f.treeBaseDuration=C}else for(var q=f.child;q!==null;)h=jr(h,jr(q.lanes,q.childLanes)),q=q.sibling;f.childLanes=h}}function Gp(f){var h=xd();return jc(Eo,dle.bind(null,f,h)),null}function dle(f,h){do Nu();while(ry!==null);if(Ele(),(er&(Xo|Ou))!==aa)throw Error("Should not already be working.");var b=f.finishedWork,C=f.finishedLanes;if(b===null)return null;if(f.finishedWork=null,f.finishedLanes=qe,b===f.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");f.callbackNode=null;var R=jr(b.lanes,b.childLanes);Hw(f,R),Kc!==null&&!lp(R)&&Kc.has(f)&&Kc.delete(f),f===Ji&&(Ji=null,ia=null,eo=qe);var L;if(b.flags>gu?b.lastEffect!==null?(b.lastEffect.nextEffect=b,L=b.firstEffect):L=b:L=b.firstEffect,L!==null){var z=er;er|=Ou;var U=yA(f);CO.current=null,o_=AL(f.containerInfo),vA=!1,Rt=L;do if(xo(null,hle,null),Ei()){if(Rt===null)throw Error("Should be working on an effect.");var q=Ri();Ed(Rt,q),Rt=Rt.nextEffect}while(Rt!==null);o_=null,gW(),Rt=L;do if(xo(null,ple,null,f,h),Ei()){if(Rt===null)throw Error("Should be working on an effect.");var ee=Ri();Ed(Rt,ee),Rt=Rt.nextEffect}while(Rt!==null);EL(f.containerInfo),f.current=b,Rt=L;do if(xo(null,vle,null,f,C),Ei()){if(Rt===null)throw Error("Should be working on an effect.");var ne=Ri();Ed(Rt,ne),Rt=Rt.nextEffect}while(Rt!==null);Rt=null,o2(),bA(U),er=z}else f.current=b,gW();var _e=Zc;if(Zc)Zc=!1,ry=f,OO=C,n_=h;else for(Rt=L;Rt!==null;){var fe=Rt.nextEffect;Rt.nextEffect=null,Rt.flags&_o&&SH(Rt),Rt=fe}if(R=f.pendingLanes,R!==qe){if(Hp!==null){var Te=Hp;Hp=null;for(var Ye=0;Ye<Te.length;Ye++)bH(f,Te[Ye],f.memoizedInteractions)}Rd(f,R)}else ty=null;if(_e||_H(f,C),R===en?f===BO?a_++:(a_=0,BO=f):a_=0,t2(b.stateNode,h),Hse(),Bs(f,Qa()),dA){dA=!1;var ct=LO;throw LO=null,ct}return(er&RO)!==aa||Ps(),null}function hle(){for(;Rt!==null;){var f=Rt.alternate;!vA&&o_!==null&&((Rt.flags&_o)!==$n?xw(Rt,o_)&&(vA=!0):Rt.tag===M&&Vse(f,Rt)&&xw(Rt,o_)&&(vA=!0));var h=Rt.flags;(h&ws)!==$n&&(Bn(Rt),Rse(f,Rt),Sa()),(h&Ha)!==$n&&(Zc||(Zc=!0,Iu(zl,function(){return Nu(),null}))),Rt=Rt.nextEffect}}function ple(f,h){for(;Rt!==null;){Bn(Rt);var b=Rt.flags;if(b&mu&&Use(Rt),b&Al){var C=Rt.alternate;C!==null&&Ose(C)}var R=b&(Qn|gn|_o|El);switch(R){case Qn:{KW(Rt),Rt.flags&=~Qn;break}case BI:{KW(Rt),Rt.flags&=~Qn;var L=Rt.alternate;wO(L,Rt);break}case El:{Rt.flags&=~El;break}case zI:{Rt.flags&=~El;var z=Rt.alternate;wO(z,Rt);break}case gn:{var U=Rt.alternate;wO(U,Rt);break}case _o:{zse(f,Rt);break}}Sa(),Rt=Rt.nextEffect}}function vle(f,h){for(;Rt!==null;){Bn(Rt);var b=Rt.flags;if(b&(gn|kb)){var C=Rt.alternate;Pse(f,C,Rt)}b&Al&&Lse(Rt),Sa(),Rt=Rt.nextEffect}}function Nu(){if(n_!==kp){var f=n_>zl?zl:n_;return n_=kp,jc(f,yle)}return!1}function gle(f,h){kO.push(h,f),Zc||(Zc=!0,Iu(zl,function(){return Nu(),null}))}function dH(f,h){NO.push(h,f);{f.flags|=hr;var b=f.alternate;b!==null&&(b.flags|=hr)}Zc||(Zc=!0,Iu(zl,function(){return Nu(),null}))}function mle(f){var h=f.create;f.destroy=h()}function yle(){if(ry===null)return!1;var f=ry,h=OO;if(ry=null,OO=qe,(er&(Xo|Ou))!==aa)throw Error("Cannot flush passive effects while already rendering.");zO=!0;var b=er;er|=Ou;var C=yA(f),R=NO;NO=[];for(var L=0;L<R.length;L+=2){var z=R[L],U=R[L+1],q=z.destroy;z.destroy=void 0;{U.flags&=~hr;var ee=U.alternate;ee!==null&&(ee.flags&=~hr)}if(typeof q=="function"){if(Bn(U),xo(null,q,null),Ei()){if(U===null)throw Error("Should be working on an effect.");var ne=Ri();Ed(U,ne)}Sa()}}var _e=kO;kO=[];for(var fe=0;fe<_e.length;fe+=2){var Te=_e[fe],Ye=_e[fe+1];{if(Bn(Ye),xo(null,mle,null,Te),Ei()){if(Ye===null)throw Error("Should be working on an effect.");var ct=Ri();Ed(Ye,ct)}Sa()}}for(var Ut=f.current.firstEffect;Ut!==null;){var dr=Ut.nextEffect;Ut.nextEffect=null,Ut.flags&_o&&SH(Ut),Ut=dr}return bA(C),_H(f,h),zO=!1,er=b,Ps(),hA=ry===null?0:hA+1,!0}function WO(f){return ty!==null&&ty.has(f)}function ble(f){ty===null?ty=new Set([f]):ty.add(f)}function xle(f){dA||(dA=!0,LO=f)}var _le=xle;function hH(f,h,b){var C=bO(b,h),R=WW(f,C,en);Sd(f,R);var L=Zo(),z=gA(f,en);z!==null&&(sp(z,en,L),Bs(z,L),Rd(z,en))}function Ed(f,h){if(f.tag===d){hH(f,f,h);return}for(var b=f.return;b!==null;){if(b.tag===d){hH(b,f,h);return}else if(b.tag===u){var C=b.type,R=b.stateNode;if(typeof C.getDerivedStateFromError=="function"||typeof R.componentDidCatch=="function"&&!WO(R)){var L=bO(h,f),z=HW(b,L,en);Sd(b,z);var U=Zo(),q=gA(b,en);if(q!==null)sp(q,en,U),Bs(q,U),Rd(q,en);else if(typeof R.componentDidCatch=="function"&&!WO(R))try{R.componentDidCatch(h,L)}catch{}return}}b=b.return}}function Sle(f,h,b){var C=f.pingCache;C!==null&&C.delete(h);var R=Zo();ix(f,b),Ji===f&&ja(eo,b)&&(gi===lA||gi===sA&&nx(eo)&&Qa()-PO<tH?ay(f,qe):fA=jr(fA,b)),Bs(f,R),Rd(f,b)}function wle(f,h){h===Ga&&(h=Kse(f));var b=Zo(),C=gA(f,h);C!==null&&(sp(C,h,b),Bs(C,b),Rd(C,h))}function Tle(f,h){var b=Ga,C;C=f.stateNode,C!==null&&C.delete(h),wle(f,b)}function Cle(f){return f<120?120:f<480?480:f<1080?1080:f<1920?1920:f<3e3?3e3:f<4320?4320:Gse(f/1960)*1960}function Ale(){if(a_>qse)throw a_=0,BO=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");hA>Xse&&(hA=0,o("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function Ele(){B.flushLegacyContextWarning(),B.flushPendingUnsafeLifecycleWarnings()}var xA=null;function pH(f){{if((er&Xo)!==aa||!(f.mode&(Pi|Yc)))return;var h=f.tag;if(h!==c&&h!==d&&h!==u&&h!==l&&h!==T&&h!==D&&h!==P&&h!==W)return;var b=ht(f.type)||"ReactComponent";if(xA!==null){if(xA.has(b))return;xA.add(b)}else xA=new Set([b]);var C=ha;try{Bn(f),o("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{C?Bn(f):Sa()}}}var _A=null;function Rle(f){{var h=f.tag;if(h!==d&&h!==u&&h!==l&&h!==T&&h!==D&&h!==P&&h!==W||(f.flags&hr)!==$n)return;var b=ht(f.type)||"ReactComponent";if(_A!==null){if(_A.has(b))return;_A.add(b)}else _A=new Set([b]);if(!zO){var C=ha;try{Bn(f),o("Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in %s.",h===u?"the componentWillUnmount method":"a useEffect cleanup function")}finally{C?Bn(f):Sa()}}}}var HO;{var Mle=null;HO=function(f,h,b){var C=AH(Mle,h);try{return NW(f,h,b)}catch(L){if(L!==null&&typeof L=="object"&&typeof L.then=="function")throw L;if(Li(),eW(),UW(h),AH(h,C),h.mode&Qi&&iO(h),xo(null,NW,null,f,h,b),Ei()){var R=Ri();throw R}else throw L}}}var vH=!1,GO;GO=new Set;function Dle(f){if(yl&&(er&Xo)!==aa&&!Xoe())switch(f.tag){case l:case T:case P:{var h=ia&&ht(ia.type)||"Unknown",b=h;if(!GO.has(b)){GO.add(b);var C=ht(f.type)||"Unknown";o("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",C,h,h)}break}case u:{vH||(o("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),vH=!0);break}}}var SA={current:!1};function gH(f){if(AO.current===!0&&SA.current!==!0){var h=ha;try{Bn(f),o(`It looks like you're using the wrong act() around your test interactions. Be sure to use the matching version of act() corresponding to your renderer: // for react-dom: import {act} from 'react-dom/test-utils'; // ... act(() => ...); // for react-test-renderer: import TestRenderer from react-test-renderer'; const {act} = TestRenderer; // ... act(() => ...);`)}finally{h?Bn(f):Sa()}}}function mH(f){(f.mode&Hn)!==On&&AO.current===!1&&SA.current===!1&&o(`An update to %s ran an effect, but was not wrapped in act(...). When testing, code that causes React state updates should be wrapped into act(...): act(() => { /* fire events that update state */ }); /* assert on the output */ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,ht(f.type))}function Ile(f){if(er===aa&&AO.current===!1&&SA.current===!1){var h=ha;try{Bn(f),o(`An update to %s inside a test was not wrapped in act(...). When testing, code that causes React state updates should be wrapped into act(...): act(() => { /* fire events that update state */ }); /* assert on the output */ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,ht(f.type))}finally{h?Bn(f):Sa()}}}var Ple=Ile,yH=!1;function Lle(f){yH===!1&&r.unstable_flushAllWithoutAsserting===void 0&&(f.mode&Pi||f.mode&Yc)&&(yH=!0,o(`In Concurrent or Sync modes, the "scheduler" module needs to be mocked to guarantee consistent behaviour across tests and browsers. For example, with jest: jest.mock('scheduler', () => require('scheduler/unstable_mock')); For more info, visit https://reactjs.org/link/mock-scheduler`))}function jO(f,h){return h*1e3+f.interactionThreadID}function wA(f){Hp===null?Hp=[f]:Hp.push(f)}function bH(f,h,b){if(b.size>0){var C=f.pendingInteractionMap,R=C.get(h);R!=null?b.forEach(function(U){R.has(U)||U.__count++,R.add(U)}):(C.set(h,new Set(b)),b.forEach(function(U){U.__count++}));var L=n.__subscriberRef.current;if(L!==null){var z=jO(f,h);L.onWorkScheduled(b,z)}}}function Rd(f,h){bH(f,h,n.__interactionsRef.current)}function xH(f,h){var b=new Set;if(f.pendingInteractionMap.forEach(function(L,z){tn(h,z)&&L.forEach(function(U){return b.add(U)})}),f.memoizedInteractions=b,b.size>0){var C=n.__subscriberRef.current;if(C!==null){var R=jO(f,h);try{C.onWorkStarted(b,R)}catch(L){Iu(Eo,function(){throw L})}}}}function _H(f,h){var b=f.pendingLanes,C;try{if(C=n.__subscriberRef.current,C!==null&&f.memoizedInteractions.size>0){var R=jO(f,h);C.onWorkStopped(f.memoizedInteractions,R)}}catch(z){Iu(Eo,function(){throw z})}finally{var L=f.pendingInteractionMap;L.forEach(function(z,U){tn(b,U)||(L.delete(U),z.forEach(function(q){if(q.__count--,C!==null&&q.__count===0)try{C.onInteractionScheduledWorkCompleted(q)}catch(ee){Iu(Eo,function(){throw ee})}}))})}}function Ole(){return kle>0}var kle=0;function SH(f){f.sibling=null,f.stateNode=null}var zs=null,iy=null,Nle=function(f){zs=f};function oy(f){{if(zs===null)return f;var h=zs(f);return h===void 0?f:h.current}}function YO(f){return oy(f)}function qO(f){{if(zs===null)return f;var h=zs(f);if(h===void 0){if(f!=null&&typeof f.render=="function"){var b=oy(f.render);if(f.render!==b){var C={$$typeof:Fo,render:b};return f.displayName!==void 0&&(C.displayName=f.displayName),C}}return f}return h.current}}function wH(f,h){{if(zs===null)return!1;var b=f.elementType,C=h.type,R=!1,L=typeof C=="object"&&C!==null?C.$$typeof:null;switch(f.tag){case u:{typeof C=="function"&&(R=!0);break}case l:{(typeof C=="function"||L===Wn)&&(R=!0);break}case T:{(L===Fo||L===Wn)&&(R=!0);break}case D:case P:{(L===ms||L===Wn)&&(R=!0);break}default:return!1}if(R){var z=zs(b);if(z!==void 0&&z===zs(C))return!0}return!1}}function TH(f){{if(zs===null||typeof WeakSet!="function")return;iy===null&&(iy=new WeakSet),iy.add(f)}}var Ble=function(f,h){{if(zs===null)return;var b=h.staleFamilies,C=h.updatedFamilies;Nu(),FO(function(){XO(f.current,C,b)})}},zle=function(f,h){{if(f.context!==Ki)return;Nu(),FO(function(){l_(h,f,null,null)})}};function XO(f,h,b){{var C=f.alternate,R=f.child,L=f.sibling,z=f.tag,U=f.type,q=null;switch(z){case l:case P:case u:q=U;break;case T:q=U.render;break}if(zs===null)throw new Error("Expected resolveFamily to be set during hot reload.");var ee=!1,ne=!1;if(q!==null){var _e=zs(q);_e!==void 0&&(b.has(_e)?ne=!0:h.has(_e)&&(z===u?ne=!0:ee=!0))}iy!==null&&(iy.has(f)||C!==null&&iy.has(C))&&(ne=!0),ne&&(f._debugNeedsRemount=!0),(ne||ee)&&ki(f,en,Pr),R!==null&&!ne&&XO(R,h,b),L!==null&&XO(L,h,b)}}var $le=function(f,h){{var b=new Set,C=new Set(h.map(function(R){return R.current}));return ZO(f.current,C,b),b}};function ZO(f,h,b){{var C=f.child,R=f.sibling,L=f.tag,z=f.type,U=null;switch(L){case l:case P:case u:U=z;break;case T:U=z.render;break}var q=!1;U!==null&&h.has(U)&&(q=!0),q?Fle(f,b):C!==null&&ZO(C,h,b),R!==null&&ZO(R,h,b)}}function Fle(f,h){{var b=Vle(f,h);if(b)return;for(var C=f;;){switch(C.tag){case v:h.add(C.stateNode);return;case p:h.add(C.stateNode.containerInfo);return;case d:h.add(C.stateNode.containerInfo);return}if(C.return===null)throw new Error("Expected to reach root first.");C=C.return}}}function Vle(f,h){for(var b=f,C=!1;;){if(b.tag===v)C=!0,h.add(b.stateNode);else if(b.child!==null){b.child.return=b,b=b.child;continue}if(b===f)return C;for(;b.sibling===null;){if(b.return===null||b.return===f)return C;b=b.return}b.sibling.return=b.return,b=b.sibling}return!1}var KO;{KO=!1;try{var CH=Object.preventExtensions({})}catch{KO=!0}}var Ule=1;function Wle(f,h,b,C){this.tag=f,this.key=b,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=h,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=C,this.flags=$n,this.nextEffect=null,this.firstEffect=null,this.lastEffect=null,this.lanes=qe,this.childLanes=qe,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugID=Ule++,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!KO&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Ko=function(f,h,b,C){return new Wle(f,h,b,C)};function QO(f){var h=f.prototype;return!!(h&&h.isReactComponent)}function Hle(f){return typeof f=="function"&&!QO(f)&&f.defaultProps===void 0}function Gle(f){if(typeof f=="function")return QO(f)?u:l;if(f!=null){var h=f.$$typeof;if(h===Fo)return T;if(h===ms)return D}return c}function jp(f,h){var b=f.alternate;b===null?(b=Ko(f.tag,h,f.key,f.mode),b.elementType=f.elementType,b.type=f.type,b.stateNode=f.stateNode,b._debugID=f._debugID,b._debugSource=f._debugSource,b._debugOwner=f._debugOwner,b._debugHookTypes=f._debugHookTypes,b.alternate=f,f.alternate=b):(b.pendingProps=h,b.type=f.type,b.flags=$n,b.nextEffect=null,b.firstEffect=null,b.lastEffect=null,b.actualDuration=0,b.actualStartTime=-1),b.childLanes=f.childLanes,b.lanes=f.lanes,b.child=f.child,b.memoizedProps=f.memoizedProps,b.memoizedState=f.memoizedState,b.updateQueue=f.updateQueue;var C=f.dependencies;switch(b.dependencies=C===null?null:{lanes:C.lanes,firstContext:C.firstContext},b.sibling=f.sibling,b.index=f.index,b.ref=f.ref,b.selfBaseDuration=f.selfBaseDuration,b.treeBaseDuration=f.treeBaseDuration,b._debugNeedsRemount=f._debugNeedsRemount,b.tag){case c:case l:case P:b.type=oy(f.type);break;case u:b.type=YO(f.type);break;case T:b.type=qO(f.type);break}return b}function jle(f,h){f.flags&=Qn,f.nextEffect=null,f.firstEffect=null,f.lastEffect=null;var b=f.alternate;if(b===null)f.childLanes=qe,f.lanes=h,f.child=null,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null,f.selfBaseDuration=0,f.treeBaseDuration=0;else{f.childLanes=b.childLanes,f.lanes=b.lanes,f.child=b.child,f.memoizedProps=b.memoizedProps,f.memoizedState=b.memoizedState,f.updateQueue=b.updateQueue,f.type=b.type;var C=b.dependencies;f.dependencies=C===null?null:{lanes:C.lanes,firstContext:C.firstContext},f.selfBaseDuration=b.selfBaseDuration,f.treeBaseDuration=b.treeBaseDuration}return f}function Yle(f){var h;return f===Vm?h=Yc|Pi|Hn:f===fC?h=Pi|Hn:h=On,JL&&(h|=Qi),Ko(d,null,null,h)}function JO(f,h,b,C,R,L){var z=c,U=f;if(typeof f=="function")QO(f)?(z=u,U=YO(U)):U=oy(U);else if(typeof f=="string")z=v;else{e:switch(f){case da:return Yp(b.children,R,L,h);case dt:z=x,R|=l2;break;case ho:z=x,R|=Hn;break;case $o:return qle(b,R,L,h);case Vo:return Xle(b,R,L,h);case po:return Zle(b,R,L,h);case Nt:return tk(b,R,L,h);case Ir:return Kle(b,R,L,h);case ue:default:{if(typeof f=="object"&&f!==null)switch(f.$$typeof){case ml:z=w;break e;case iu:z=_;break e;case Fo:z=T,U=qO(U);break e;case ms:z=D;break e;case Wn:z=O,U=null;break e;case ou:z=W;break e}var q="";{(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ee=C?ht(C.type):null;ee&&(q+=` Check the render method of \``+ee+"`.")}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(f==null?f:typeof f)+"."+q)}}}var ne=Ko(z,b,h,R);return ne.elementType=f,ne.type=U,ne.lanes=L,ne._debugOwner=C,ne}function ek(f,h,b){var C=null;C=f._owner;var R=f.type,L=f.key,z=f.props,U=JO(R,L,z,C,h,b);return U._debugSource=f._source,U._debugOwner=f._owner,U}function Yp(f,h,b,C){var R=Ko(m,f,C,h);return R.lanes=b,R}function qle(f,h,b,C){typeof f.id!="string"&&o('Profiler must specify an "id" as a prop');var R=Ko(A,f,C,h|Qi);return R.elementType=$o,R.type=$o,R.lanes=b,R.stateNode={effectDuration:0,passiveEffectDuration:0},R}function Xle(f,h,b,C){var R=Ko(M,f,C,h);return R.type=Vo,R.elementType=Vo,R.lanes=b,R}function Zle(f,h,b,C){var R=Ko($,f,C,h);return R.type=po,R.elementType=po,R.lanes=b,R}function tk(f,h,b,C){var R=Ko(j,f,C,h);return R.type=Nt,R.elementType=Nt,R.lanes=b,R}function Kle(f,h,b,C){var R=Ko(X,f,C,h);return R.type=Ir,R.elementType=Ir,R.lanes=b,R}function rk(f,h,b){var C=Ko(g,f,null,h);return C.lanes=b,C}function Qle(){var f=Ko(v,null,null,On);return f.elementType="DELETED",f.type="DELETED",f}function nk(f,h,b){var C=f.children!==null?f.children:[],R=Ko(p,C,f.key,h);return R.lanes=b,R.stateNode={containerInfo:f.containerInfo,pendingChildren:null,implementation:f.implementation},R}function AH(f,h){return f===null&&(f=Ko(c,null,null,On)),f.tag=h.tag,f.key=h.key,f.elementType=h.elementType,f.type=h.type,f.stateNode=h.stateNode,f.return=h.return,f.child=h.child,f.sibling=h.sibling,f.index=h.index,f.ref=h.ref,f.pendingProps=h.pendingProps,f.memoizedProps=h.memoizedProps,f.updateQueue=h.updateQueue,f.memoizedState=h.memoizedState,f.dependencies=h.dependencies,f.mode=h.mode,f.flags=h.flags,f.nextEffect=h.nextEffect,f.firstEffect=h.firstEffect,f.lastEffect=h.lastEffect,f.lanes=h.lanes,f.childLanes=h.childLanes,f.alternate=h.alternate,f.actualDuration=h.actualDuration,f.actualStartTime=h.actualStartTime,f.selfBaseDuration=h.selfBaseDuration,f.treeBaseDuration=h.treeBaseDuration,f._debugID=h._debugID,f._debugSource=h._debugSource,f._debugOwner=h._debugOwner,f._debugNeedsRemount=h._debugNeedsRemount,f._debugHookTypes=h._debugHookTypes,f}function Jle(f,h,b){switch(this.tag=h,this.containerInfo=f,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=Cx,this.context=null,this.pendingContext=null,this.hydrate=b,this.callbackNode=null,this.callbackPriority=Lc,this.eventTimes=hm(qe),this.expirationTimes=hm(Pr),this.pendingLanes=qe,this.suspendedLanes=qe,this.pingedLanes=qe,this.expiredLanes=qe,this.mutableReadLanes=qe,this.finishedLanes=qe,this.entangledLanes=qe,this.entanglements=hm(qe),this.mutableSourceEagerHydrationData=null,this.interactionThreadID=n.unstable_getThreadID(),this.memoizedInteractions=new Set,this.pendingInteractionMap=new Map,h){case fC:this._debugRootType="createBlockingRoot()";break;case Vm:this._debugRootType="createRoot()";break;case Lx:this._debugRootType="createLegacyRoot()";break}}function eue(f,h,b,C){var R=new Jle(f,h,b),L=Yle(h);return R.current=L,L.stateNode=R,d2(L),R}function tue(f,h){var b=h._getVersion,C=b(h._source);f.mutableSourceEagerHydrationData==null?f.mutableSourceEagerHydrationData=[h,C]:f.mutableSourceEagerHydrationData.push(h,C)}function rue(f,h,b){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Dr,key:C==null?null:""+C,children:f,containerInfo:h,implementation:b}}var ak,ik;ak=!1,ik={};function nue(f){if(!f)return Ki;var h=Ss(f),b=QL(h);if(h.tag===u){var C=h.type;if(Is(C))return uC(h,C,b)}return b}function aue(f,h){{var b=Ss(f);if(b===void 0)throw typeof f.render=="function"?Error("Unable to find node on an unmounted component."):Error("Argument appears to not be a ReactComponent. Keys: "+Object.keys(f));var C=Cs(b);if(C===null)return null;if(C.mode&Hn){var R=ht(b.type)||"Component";if(!ik[R]){ik[R]=!0;var L=ha;try{Bn(C),b.mode&Hn?o("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",h,h,R):o("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",h,h,R)}finally{L?Bn(L):Sa()}}}return C.stateNode}}function iue(f,h,b,C){return eue(f,h,b)}function l_(f,h,b,C){Ox(h,f);var R=h.current,L=Zo();typeof jest<"u"&&(Lle(R),gH(R));var z=Ad(R),U=nue(b);h.context===null?h.context=U:h.pendingContext=U,yl&&ha!==null&&!ak&&(ak=!0,o(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate. Check the render method of %s.`,ht(ha.type)||"Unknown"));var q=_d(L,z);return q.payload={element:f},C=C===void 0?null:C,C!==null&&(typeof C!="function"&&o("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",C),q.callback=C),Sd(R,q),ki(R,z,L),z}function ok(f){var h=f.current;if(!h.child)return null;switch(h.child.tag){case v:return h.child.stateNode;default:return h.child.stateNode}}function EH(f,h){var b=f.memoizedState;b!==null&&b.dehydrated!==null&&(b.retryLane=ed(b.retryLane,h))}function sk(f,h){EH(f,h);var b=f.alternate;b&&EH(b,h)}function oue(f){if(f.tag===M){var h=Zo(),b=Qb;ki(f,b,h),sk(f,b)}}function sue(f){if(f.tag===M){var h=Zo(),b=ex;ki(f,b,h),sk(f,b)}}function lue(f){if(f.tag===M){var h=Zo(),b=Ad(f);ki(f,b,h),sk(f,b)}}function uue(f,h){try{return h()}finally{}}function RH(f){var h=WI(f);return h===null?null:h.tag===H?h.stateNode.instance:h.stateNode}var MH=function(f){return!1};function cue(f){return MH(f)}var DH=null,IH=null,PH=null,LH=null,OH=null,kH=null,NH=null,BH=null;{var zH=function(f,h,b){var C=h[b],R=Array.isArray(f)?f.slice():e({},f);return b+1===h.length?(Array.isArray(R)?R.splice(C,1):delete R[C],R):(R[C]=zH(f[C],h,b+1),R)},$H=function(f,h){return zH(f,h,0)},FH=function(f,h,b,C){var R=h[C],L=Array.isArray(f)?f.slice():e({},f);if(C+1===h.length){var z=b[C];L[z]=L[R],Array.isArray(L)?L.splice(R,1):delete L[R]}else L[R]=FH(f[R],h,b,C+1);return L},VH=function(f,h,b){if(h.length!==b.length){i("copyWithRename() expects paths of the same length");return}else for(var C=0;C<b.length-1;C++)if(h[C]!==b[C]){i("copyWithRename() expects paths to be the same except for the deepest key");return}return FH(f,h,b,0)},UH=function(f,h,b,C){if(b>=h.length)return C;var R=h[b],L=Array.isArray(f)?f.slice():e({},f);return L[R]=UH(f[R],h,b+1,C),L},WH=function(f,h,b){return UH(f,h,0,b)},lk=function(f,h){for(var b=f.memoizedState;b!==null&&h>0;)b=b.next,h--;return b};DH=function(f,h,b,C){var R=lk(f,h);if(R!==null){var L=WH(R.memoizedState,b,C);R.memoizedState=L,R.baseState=L,f.memoizedProps=e({},f.memoizedProps),ki(f,en,Pr)}},IH=function(f,h,b){var C=lk(f,h);if(C!==null){var R=$H(C.memoizedState,b);C.memoizedState=R,C.baseState=R,f.memoizedProps=e({},f.memoizedProps),ki(f,en,Pr)}},PH=function(f,h,b,C){var R=lk(f,h);if(R!==null){var L=VH(R.memoizedState,b,C);R.memoizedState=L,R.baseState=L,f.memoizedProps=e({},f.memoizedProps),ki(f,en,Pr)}},LH=function(f,h,b){f.pendingProps=WH(f.memoizedProps,h,b),f.alternate&&(f.alternate.pendingProps=f.pendingProps),ki(f,en,Pr)},OH=function(f,h){f.pendingProps=$H(f.memoizedProps,h),f.alternate&&(f.alternate.pendingProps=f.pendingProps),ki(f,en,Pr)},kH=function(f,h,b){f.pendingProps=VH(f.memoizedProps,h,b),f.alternate&&(f.alternate.pendingProps=f.pendingProps),ki(f,en,Pr)},NH=function(f){ki(f,en,Pr)},BH=function(f){MH=f}}function fue(f){var h=Cs(f);return h===null?null:h.stateNode}function due(f){return null}function hue(){return ha}function pue(f){var h=f.findFiberByHostInstance,b=a.ReactCurrentDispatcher;return e2({bundleType:f.bundleType,version:f.version,rendererPackageName:f.rendererPackageName,rendererConfig:f.rendererConfig,overrideHookState:DH,overrideHookStateDeletePath:IH,overrideHookStateRenamePath:PH,overrideProps:LH,overridePropsDeletePath:OH,overridePropsRenamePath:kH,setSuspenseHandler:BH,scheduleUpdate:NH,currentDispatcherRef:b,findHostInstanceByFiber:fue,findFiberByHostInstance:h||due,findHostInstancesForRefresh:$le,scheduleRefresh:Ble,scheduleRoot:zle,setRefreshHandler:Nle,getCurrentFiber:hue})}function uk(f,h,b){this._internalRoot=vue(f,h,b)}uk.prototype.render=function(f){var h=this._internalRoot;{typeof arguments[1]=="function"&&o("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var b=h.containerInfo;if(b.nodeType!==ci){var C=RH(h.current);C&&C.parentNode!==b&&o("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}l_(f,h,null,null)},uk.prototype.unmount=function(){typeof arguments[0]=="function"&&o("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var f=this._internalRoot,h=f.containerInfo;l_(null,f,null,function(){nC(h)})};function vue(f,h,b){var C=b!=null&&b.hydrate===!0;b!=null&&b.hydrationOptions;var R=b!=null&&b.hydrationOptions!=null&&b.hydrationOptions.mutableSources||null,L=iue(f,h,C);rC(L.current,f),f.nodeType;{var z=f.nodeType===ci?f.parentNode:f;_x(z)}if(R)for(var U=0;U<R.length;U++){var q=R[U];tue(L,q)}return L}function gue(f,h){return new uk(f,Lx,h)}function sy(f){return!!(f&&(f.nodeType===Ai||f.nodeType===du||f.nodeType===ow||f.nodeType===ci&&f.nodeValue===" react-mount-point-unstable "))}var mue=a.ReactCurrentOwner,HH,GH=!1;HH=function(f){if(f._reactRootContainer&&f.nodeType!==ci){var h=RH(f._reactRootContainer._internalRoot.current);h&&h.parentNode!==f&&o("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var b=!!f._reactRootContainer,C=TA(f),R=!!(C&&Ru(C));R&&!b&&o("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),f.nodeType===Ai&&f.tagName&&f.tagName.toUpperCase()==="BODY"&&o("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function TA(f){return f?f.nodeType===du?f.documentElement:f.firstChild:null}function yue(f){var h=TA(f);return!!(h&&h.nodeType===Ai&&h.hasAttribute(Ot))}function bue(f,h){var b=h||yue(f);if(!b)for(var C=!1,R;R=f.lastChild;)!C&&R.nodeType===Ai&&R.hasAttribute(Ot)&&(C=!0,o("render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup.")),f.removeChild(R);return b&&!h&&!GH&&(GH=!0,i("render(): Calling ReactDOM.render() to hydrate server-rendered markup will stop working in React v18. Replace the ReactDOM.render() call with ReactDOM.hydrate() if you want React to attach to the server HTML.")),gue(f,b?{hydrate:!0}:void 0)}function xue(f,h){f!==null&&typeof f!="function"&&o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",h,f)}function CA(f,h,b,C,R){HH(b),xue(R===void 0?null:R,"render");var L=b._reactRootContainer,z;if(L){if(z=L._internalRoot,typeof R=="function"){var q=R;R=function(){var ee=ok(z);q.call(ee)}}l_(h,z,f,R)}else{if(L=b._reactRootContainer=bue(b,C),z=L._internalRoot,typeof R=="function"){var U=R;R=function(){var ee=ok(z);U.call(ee)}}oH(function(){l_(h,z,f,R)})}return ok(z)}function _ue(f){{var h=mue.current;if(h!==null&&h.stateNode!==null){var b=h.stateNode._warnedAboutRefsInRender;b||o("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",ht(h.type)||"A component"),h.stateNode._warnedAboutRefsInRender=!0}}return f==null?null:f.nodeType===Ai?f:aue(f,"findDOMNode")}function Sue(f,h,b){if(!sy(h))throw Error("Target container is not a DOM element.");{var C=km(h)&&h._reactRootContainer===void 0;C&&o("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOM.createRoot(). This is not supported. Did you mean to call createRoot(container, {hydrate: true}).render(element)?")}return CA(null,f,h,!0,b)}function wue(f,h,b){if(!sy(h))throw Error("Target container is not a DOM element.");{var C=km(h)&&h._reactRootContainer===void 0;C&&o("You are calling ReactDOM.render() on a container that was previously passed to ReactDOM.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return CA(null,f,h,!1,b)}function Tue(f,h,b,C){if(!sy(b))throw Error("Target container is not a DOM element.");if(!(f!=null&&tm(f)))throw Error("parentComponent must be a valid React Component");return CA(f,h,b,!1,C)}function Cue(f){if(!sy(f))throw Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var h=km(f)&&f._reactRootContainer===void 0;h&&o("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOM.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(f._reactRootContainer){{var b=TA(f),C=b&&!Ru(b);C&&o("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return oH(function(){CA(null,null,f,!1,function(){f._reactRootContainer=null,nC(f)})}),!0}else{{var R=TA(f),L=!!(R&&Ru(R)),z=f.nodeType===Ai&&sy(f.parentNode)&&!!f.parentNode._reactRootContainer;L&&o("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",z?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}HI(oue),Mc(sue),GI(lue),jI(uue);var jH=!1;(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&o("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),PI(lr),OI(iH,rle,Jse,tle);function YH(f,h){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!sy(h))throw Error("Target container is not a DOM element.");return rue(f,h,null,b)}function Aue(f,h,b,C){return Tue(f,h,b,C)}function Eue(f,h){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return jH||(jH=!0,i('The ReactDOM.unstable_createPortal() alias has been deprecated, and will be removed in React 18+. Update your code to use ReactDOM.createPortal() instead. It has the exact same API, but without the "unstable_" prefix.')),YH(f,h,b)}var Rue={Events:[Ru,Yo,Nm,vw,Tl,Nu,SA]},Mue=pue({findFiberByHostInstance:Gc,bundleType:1,version:wC,rendererPackageName:"react-dom"});if(!Mue&&Xe&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var qH=window.location.protocol;/^(https?|file):$/.test(qH)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(qH==="file:"?` You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Hs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Rue,Hs.createPortal=YH,Hs.findDOMNode=_ue,Hs.flushSync=FO,Hs.hydrate=Sue,Hs.render=wue,Hs.unmountComponentAtNode=Cue,Hs.unstable_batchedUpdates=iH,Hs.unstable_createPortal=Eue,Hs.unstable_renderSubtreeIntoContainer=Aue,Hs.version=wC})();(function(t){t.exports=Hs})(ipe);const G_=xS(x0);function lpe(t){return typeof t=="function"?t():t}const bR=Y.forwardRef(function(e,r){const{children:n,container:a,disablePortal:i=!1}=e,[o,s]=Y.useState(null),l=Bo(Y.isValidElement(n)?n.ref:null,r);if(m0(()=>{i||s(lpe(a)||document.body)},[a,i]),m0(()=>{if(o&&!i)return Mz(r,o),()=>{Mz(r,null)}},[r,o,i]),i){if(Y.isValidElement(n)){const u={ref:l};return Y.cloneElement(n,u)}return re.jsx(Y.Fragment,{children:n})}return re.jsx(Y.Fragment,{children:o&&x0.createPortal(n,o)})});bR.propTypes={children:E.node,container:E.oneOfType([g0,E.func]),disablePortal:E.bool};bR["propTypes"]=VM(bR.propTypes);const upe=bR;function cpe(t){const e=us(t);return e.body===t?ag(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function c1(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function z4(t){return parseInt(ag(t).getComputedStyle(t).paddingRight,10)||0}function fpe(t){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(t.tagName)!==-1,n=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return r||n}function $4(t,e,r,n,a){const i=[e,r,...n];[].forEach.call(t.children,o=>{const s=i.indexOf(o)===-1,l=!fpe(o);s&&l&&c1(o,a)})}function gk(t,e){let r=-1;return t.some((n,a)=>e(n)?(r=a,!0):!1),r}function dpe(t,e){const r=[],n=t.container;if(!e.disableScrollLock){if(cpe(n)){const o=KX(us(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${z4(n)+o}px`;const s=us(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${z4(l)+o}px`})}let i;if(n.parentNode instanceof DocumentFragment)i=us(n).body;else{const o=n.parentElement,s=ag(n);i=(o==null?void 0:o.nodeName)==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:n}r.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{r.forEach(({value:i,el:o,property:s})=>{i?o.style.setProperty(s,i):o.style.removeProperty(s)})}}function hpe(t){const e=[];return[].forEach.call(t.children,r=>{r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}class ppe{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,r){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&c1(e.modalRef,!1);const a=hpe(r);$4(r,e.mount,e.modalRef,a,!0);const i=gk(this.containers,o=>o.container===r);return i!==-1?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:r,restore:null,hiddenSiblings:a}),n)}mount(e,r){const n=gk(this.containers,i=>i.modals.indexOf(e)!==-1),a=this.containers[n];a.restore||(a.restore=dpe(a,r))}remove(e,r=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const a=gk(this.containers,o=>o.modals.indexOf(e)!==-1),i=this.containers[a];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&c1(e.modalRef,r),$4(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(a,1);else{const o=i.modals[i.modals.length-1];o.modalRef&&c1(o.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}function vpe(t){return nn("MuiModal",t)}fn("MuiModal",["root","hidden"]);const gpe=["children","classes","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],mpe=t=>{const{open:e,exited:r,classes:n}=t;return _n({root:["root",!e&&r&&"hidden"],backdrop:["backdrop"]},vpe,n)};function ype(t){return typeof t=="function"?t():t}function bpe(t){return t?t.props.hasOwnProperty("in"):!1}const xpe=new ppe,zZ=Y.forwardRef(function(e,r){var n,a;const{children:i,classes:o,closeAfterTransition:s=!1,component:l,container:u,disableAutoFocus:c=!1,disableEnforceFocus:d=!1,disableEscapeKeyDown:p=!1,disablePortal:v=!1,disableRestoreFocus:g=!1,disableScrollLock:m=!1,hideBackdrop:x=!1,keepMounted:_=!1,manager:w=xpe,onBackdropClick:T,onClose:A,onKeyDown:M,open:D,onTransitionEnter:P,onTransitionExited:O,slotProps:k={},slots:N={}}=e,$=Gt(e,gpe),[H,F]=Y.useState(!D),W=Y.useRef({}),j=Y.useRef(null),X=Y.useRef(null),te=Bo(X,r),J=bpe(i),ie=(n=e["aria-hidden"])!=null?n:!0,se=()=>us(j.current),le=()=>(W.current.modalRef=X.current,W.current.mountNode=j.current,W.current),be=()=>{w.mount(le(),{disableScrollLock:m}),X.current&&(X.current.scrollTop=0)},Me=Zy(()=>{const nr=ype(u)||se().body;w.add(le(),nr),X.current&&be()}),Se=Y.useCallback(()=>w.isTopModal(le()),[w]),Ue=Zy(nr=>{j.current=nr,!(!nr||!X.current)&&(D&&Se()?be():c1(X.current,ie))}),Xe=Y.useCallback(()=>{w.remove(le(),ie)},[w,ie]);Y.useEffect(()=>()=>{Xe()},[Xe]),Y.useEffect(()=>{D?Me():(!J||!s)&&Xe()},[D,Xe,J,s,Me]);const st=oe({},e,{classes:o,closeAfterTransition:s,disableAutoFocus:c,disableEnforceFocus:d,disableEscapeKeyDown:p,disablePortal:v,disableRestoreFocus:g,disableScrollLock:m,exited:H,hideBackdrop:x,keepMounted:_}),$e=mpe(st),Be=()=>{F(!1),P&&P()},et=()=>{F(!0),O&&O(),s&&Xe()},de=nr=>{nr.target===nr.currentTarget&&(T&&T(nr),A&&A(nr,"backdropClick"))},xe=nr=>{M&&M(nr),!(nr.key!=="Escape"||!Se())&&(p||(nr.stopPropagation(),A&&A(nr,"escapeKeyDown")))},xt={};i.props.tabIndex===void 0&&(xt.tabIndex="-1"),J&&(xt.onEnter=JH(Be,i.props.onEnter),xt.onExited=JH(et,i.props.onExited));const Ie=(a=l??N.root)!=null?a:"div",Ct=B4({elementType:Ie,externalSlotProps:k.root,externalForwardedProps:$,additionalProps:{ref:te,role:"presentation",onKeyDown:xe},className:$e.root,ownerState:st}),Ot=N.backdrop,jt=B4({elementType:Ot,externalSlotProps:k.backdrop,additionalProps:{"aria-hidden":!0,onClick:de,open:D},className:$e.backdrop,ownerState:st});return!_&&!D&&(!J||H)?null:re.jsx(upe,{ref:Ue,container:u,disablePortal:v,children:re.jsxs(Ie,oe({},Ct,{children:[!x&&Ot?re.jsx(Ot,oe({},jt)):null,re.jsx(yR,{disableEnforceFocus:d,disableAutoFocus:c,disableRestoreFocus:g,isEnabled:Se,open:D,children:Y.cloneElement(i,xt)})]}))})});zZ.propTypes={children:_S.isRequired,classes:E.object,closeAfterTransition:E.bool,component:E.elementType,container:E.oneOfType([g0,E.func]),disableAutoFocus:E.bool,disableEnforceFocus:E.bool,disableEscapeKeyDown:E.bool,disablePortal:E.bool,disableRestoreFocus:E.bool,disableScrollLock:E.bool,hideBackdrop:E.bool,keepMounted:E.bool,onBackdropClick:E.func,onClose:E.func,onKeyDown:E.func,open:E.bool.isRequired,slotProps:E.shape({backdrop:E.oneOfType([E.func,E.object]),root:E.oneOfType([E.func,E.object])}),slots:E.shape({backdrop:E.elementType,root:E.elementType})};const _pe=zZ,Spe=["onChange","maxRows","minRows","style","value"];function RA(t,e){return parseInt(t[e],10)||0}const wpe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function F4(t){return t==null||Object.keys(t).length===0}const $Z=Y.forwardRef(function(e,r){const{onChange:n,maxRows:a,minRows:i=1,style:o,value:s}=e,l=Gt(e,Spe),{current:u}=Y.useRef(s!=null),c=Y.useRef(null),d=Bo(r,c),p=Y.useRef(null),v=Y.useRef(0),[g,m]=Y.useState({}),x=Y.useCallback(()=>{const M=c.current,P=ag(M).getComputedStyle(M);if(P.width==="0px")return{};const O=p.current;O.style.width=P.width,O.value=M.value||e.placeholder||"x",O.value.slice(-1)===` `&&(O.value+=" ");const k=P["box-sizing"],N=RA(P,"padding-bottom")+RA(P,"padding-top"),$=RA(P,"border-bottom-width")+RA(P,"border-top-width"),H=O.scrollHeight;O.value="x";const F=O.scrollHeight;let W=H;i&&(W=Math.max(Number(i)*F,W)),a&&(W=Math.min(Number(a)*F,W)),W=Math.max(W,F);const j=W+(k==="border-box"?N+$:0),X=Math.abs(W-H)<=1;return{outerHeightStyle:j,overflow:X}},[a,i,e.placeholder]),_=(M,D)=>{const{outerHeightStyle:P,overflow:O}=D;return v.current<20&&(P>0&&Math.abs((M.outerHeightStyle||0)-P)>1||M.overflow!==O)?(v.current+=1,{overflow:O,outerHeightStyle:P}):(v.current===20&&console.error(["MUI: Too many re-renders. The layout is unstable.","TextareaAutosize limits the number of renders to prevent an infinite loop."].join(` `)),M)},w=Y.useCallback(()=>{const M=x();F4(M)||m(D=>_(D,M))},[x]),T=()=>{const M=x();F4(M)||x0.flushSync(()=>{m(D=>_(D,M))})};Y.useEffect(()=>{const M=ZX(()=>{v.current=0,c.current&&T()}),D=ag(c.current);D.addEventListener("resize",M);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(M),P.observe(c.current)),()=>{M.clear(),D.removeEventListener("resize",M),P&&P.disconnect()}}),m0(()=>{w()}),Y.useEffect(()=>{v.current=0},[s]);const A=M=>{v.current=0,u||w(),n&&n(M)};return re.jsxs(Y.Fragment,{children:[re.jsx("textarea",oe({value:s,onChange:A,ref:d,rows:i,style:oe({height:g.outerHeightStyle,overflow:g.overflow?"hidden":null},o)},l)),re.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:oe({},wpe.shadow,o,{padding:0})})]})});$Z.propTypes={className:E.string,maxRows:E.oneOfType([E.number,E.string]),minRows:E.oneOfType([E.number,E.string]),onChange:E.func,placeholder:E.string,style:E.object,value:E.oneOfType([E.arrayOf(E.string),E.number,E.string])};const Tpe=$Z;function Cpe(t){return nn("MuiSvgIcon",t)}fn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ape=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Epe=t=>{const{color:e,fontSize:r,classes:n}=t,a={root:["root",e!=="inherit"&&`color${zt(e)}`,`fontSize${zt(r)}`]};return _n(a,Cpe,n)},Rpe=nt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="inherit"&&e[`color${zt(r.color)}`],e[`fontSize${zt(r.fontSize)}`]]}})(({theme:t,ownerState:e})=>{var r,n,a,i,o,s,l,u,c,d,p,v,g,m,x,_,w;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(r=t.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=t.transitions)==null||(i=a.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=t.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((l=t.typography)==null||(u=l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem",large:((c=t.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[e.fontSize],color:(p=(v=(t.vars||t).palette)==null||(g=v[e.color])==null?void 0:g.main)!=null?p:{action:(m=(t.vars||t).palette)==null||(x=m.action)==null?void 0:x.active,disabled:(_=(t.vars||t).palette)==null||(w=_.action)==null?void 0:w.disabled,inherit:void 0}[e.color]}}),_F=Y.forwardRef(function(e,r){const n=hn({props:e,name:"MuiSvgIcon"}),{children:a,className:i,color:o="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=n,v=Gt(n,Ape),g=oe({},n,{color:o,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:p}),m={};c||(m.viewBox=p);const x=Epe(g);return re.jsxs(Rpe,oe({as:s,className:ar(x.root,i),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r},m,v,{ownerState:g,children:[a,d?re.jsx("title",{children:d}):null]}))});_F.propTypes={children:E.node,classes:E.object,className:E.string,color:E.oneOfType([E.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),E.string]),component:E.elementType,fontSize:E.oneOfType([E.oneOf(["inherit","large","medium","small"]),E.string]),htmlColor:E.string,inheritViewBox:E.bool,shapeRendering:E.string,sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),titleAccess:E.string,viewBox:E.string};_F.muiName="SvgIcon";const V4=_F;function FZ(t,e){function r(n,a){return re.jsx(V4,oe({"data-testid":`${e}Icon`,ref:a},n,{children:t}))}return r.displayName=`${e}Icon`,r.muiName=V4.muiName,Y.memo(Y.forwardRef(r))}function Fz(t,e){return Fz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Fz(t,e)}function VZ(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Fz(t,e)}const U4={disabled:!1};var Mpe=E.oneOfType([E.number,E.shape({enter:E.number,exit:E.number,appear:E.number}).isRequired]);E.oneOfType([E.string,E.shape({enter:E.string,exit:E.string,active:E.string}),E.shape({enter:E.string,enterDone:E.string,enterActive:E.string,exit:E.string,exitDone:E.string,exitActive:E.string})]);const xR=bi.createContext(null);var Dpe=function(e){return e.scrollTop},j_="unmounted",_v="exited",Sv="entering",Wy="entered",Vz="exiting",Ef=function(t){VZ(e,t);function e(n,a){var i;i=t.call(this,n,a)||this;var o=a,s=o&&!o.isMounting?n.enter:n.appear,l;return i.appearStatus=null,n.in?s?(l=_v,i.appearStatus=Sv):l=Wy:n.unmountOnExit||n.mountOnEnter?l=j_:l=_v,i.state={status:l},i.nextCallback=null,i}e.getDerivedStateFromProps=function(a,i){var o=a.in;return o&&i.status===j_?{status:_v}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var i=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==Sv&&o!==Wy&&(i=Sv):(o===Sv||o===Wy)&&(i=Vz)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,i,o,s;return i=o=s=a,a!=null&&typeof a!="number"&&(i=a.exit,o=a.enter,s=a.appear!==void 0?a.appear:o),{exit:i,enter:o,appear:s}},r.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===Sv){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:G_.findDOMNode(this);o&&Dpe(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_v&&this.setState({status:j_})},r.performEnter=function(a){var i=this,o=this.props.enter,s=this.context?this.context.isMounting:a,l=this.props.nodeRef?[s]:[G_.findDOMNode(this),s],u=l[0],c=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!a&&!o||U4.disabled){this.safeSetState({status:Wy},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Sv},function(){i.props.onEntering(u,c),i.onTransitionEnd(p,function(){i.safeSetState({status:Wy},function(){i.props.onEntered(u,c)})})})},r.performExit=function(){var a=this,i=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:G_.findDOMNode(this);if(!i||U4.disabled){this.safeSetState({status:_v},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Vz},function(){a.props.onExiting(s),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:_v},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},r.setNextCallback=function(a){var i=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,i.nextCallback=null,a(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(a,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:G_.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===j_)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=Gt(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return bi.createElement(xR.Provider,{value:null},typeof o=="function"?o(a,s):bi.cloneElement(bi.Children.only(o),s))},e}(bi.Component);Ef.contextType=xR;Ef.propTypes={nodeRef:E.shape({current:typeof Element>"u"?E.any:function(t,e,r,n,a,i){var o=t[e];return E.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(t,e,r,n,a,i)}}),children:E.oneOfType([E.func.isRequired,E.element.isRequired]).isRequired,in:E.bool,mountOnEnter:E.bool,unmountOnExit:E.bool,appear:E.bool,enter:E.bool,exit:E.bool,timeout:function(e){var r=Mpe;e.addEndListener||(r=r.isRequired);for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];return r.apply(void 0,[e].concat(a))},addEndListener:E.func,onEnter:E.func,onEntering:E.func,onEntered:E.func,onExit:E.func,onExiting:E.func,onExited:E.func};function hy(){}Ef.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hy,onEntering:hy,onEntered:hy,onExit:hy,onExiting:hy,onExited:hy};Ef.UNMOUNTED=j_;Ef.EXITED=_v;Ef.ENTERING=Sv;Ef.ENTERED=Wy;Ef.EXITING=Vz;const UZ=Ef;function Ipe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function SF(t,e){var r=function(i){return e&&Y.isValidElement(i)?e(i):i},n=Object.create(null);return t&&Y.Children.map(t,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function Ppe(t,e){t=t||{},e=e||{};function r(c){return c in e?e[c]:t[c]}var n=Object.create(null),a=[];for(var i in t)i in e?a.length&&(n[i]=a,a=[]):a.push(i);var o,s={};for(var l in e){if(n[l])for(o=0;o<n[l].length;o++){var u=n[l][o];s[n[l][o]]=r(u)}s[l]=r(l)}for(o=0;o<a.length;o++)s[a[o]]=r(a[o]);return s}function $v(t,e,r){return r[e]!=null?r[e]:t.props[e]}function Lpe(t,e){return SF(t.children,function(r){return Y.cloneElement(r,{onExited:e.bind(null,r),in:!0,appear:$v(r,"appear",t),enter:$v(r,"enter",t),exit:$v(r,"exit",t)})})}function Ope(t,e,r){var n=SF(t.children),a=Ppe(e,n);return Object.keys(a).forEach(function(i){var o=a[i];if(Y.isValidElement(o)){var s=i in e,l=i in n,u=e[i],c=Y.isValidElement(u)&&!u.props.in;l&&(!s||c)?a[i]=Y.cloneElement(o,{onExited:r.bind(null,o),in:!0,exit:$v(o,"exit",t),enter:$v(o,"enter",t)}):!l&&s&&!c?a[i]=Y.cloneElement(o,{in:!1}):l&&s&&Y.isValidElement(u)&&(a[i]=Y.cloneElement(o,{onExited:r.bind(null,o),in:u.props.in,exit:$v(o,"exit",t),enter:$v(o,"enter",t)}))}}),a}var kpe=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},Npe={component:"div",childFactory:function(e){return e}},wF=function(t){VZ(e,t);function e(n,a){var i;i=t.call(this,n,a)||this;var o=i.handleExited.bind(Ipe(i));return i.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},i}var r=e.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(a,i){var o=i.children,s=i.handleExited,l=i.firstRender;return{children:l?Lpe(a,s):Ope(a,o,s),firstRender:!1}},r.handleExited=function(a,i){var o=SF(this.props.children);a.key in o||(a.props.onExited&&a.props.onExited(i),this.mounted&&this.setState(function(s){var l=oe({},s.children);return delete l[a.key],{children:l}}))},r.render=function(){var a=this.props,i=a.component,o=a.childFactory,s=Gt(a,["component","childFactory"]),l=this.state.contextValue,u=kpe(this.state.children).map(o);return delete s.appear,delete s.enter,delete s.exit,i===null?bi.createElement(xR.Provider,{value:l},u):bi.createElement(xR.Provider,{value:l},bi.createElement(i,s,u))},e}(bi.Component);wF.propTypes={component:E.any,children:E.node,appear:E.bool,enter:E.bool,exit:E.bool,childFactory:E.func};wF.defaultProps=Npe;const Bpe=wF,WZ=t=>t.scrollTop;function _R(t,e){var r,n;const{timeout:a,easing:i,style:o={}}=t;return{duration:(r=o.transitionDuration)!=null?r:typeof a=="number"?a:a[e.mode]||0,easing:(n=o.transitionTimingFunction)!=null?n:typeof i=="object"?i[e.mode]:i,delay:o.transitionDelay}}function zpe(t){return nn("MuiPaper",t)}fn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const $pe=["className","component","elevation","square","variant"],Fpe=t=>{const{square:e,elevation:r,variant:n,classes:a}=t,i={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${r}`]};return _n(i,zpe,a)},Vpe=nt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],!r.square&&e.rounded,r.variant==="elevation"&&e[`elevation${r.elevation}`]]}})(({theme:t,ownerState:e})=>{var r;return oe({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!e.square&&{borderRadius:t.shape.borderRadius},e.variant==="outlined"&&{border:`1px solid ${(t.vars||t).palette.divider}`},e.variant==="elevation"&&oe({boxShadow:(t.vars||t).shadows[e.elevation]},!t.vars&&t.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${af("#fff",k4(e.elevation))}, ${af("#fff",k4(e.elevation))})`},t.vars&&{backgroundImage:(r=t.vars.overlays)==null?void 0:r[e.elevation]}))}),HZ=Y.forwardRef(function(e,r){const n=hn({props:e,name:"MuiPaper"}),{className:a,component:i="div",elevation:o=1,square:s=!1,variant:l="elevation"}=n,u=Gt(n,$pe),c=oe({},n,{component:i,elevation:o,square:s,variant:l}),d=Fpe(c);return Eh().shadows[o]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${o}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${o}]\` is defined.`].join(` `)),re.jsx(Vpe,oe({as:i,ownerState:c,className:ar(d.root,a),ref:r},u))});HZ.propTypes={children:E.node,classes:E.object,className:E.string,component:E.elementType,elevation:Th(eZ,t=>{const{elevation:e,variant:r}=t;return e>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${e}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:E.bool,sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),variant:E.oneOfType([E.oneOf(["elevation","outlined"]),E.string])};const TF=HZ;function GZ(t){const{className:e,classes:r,pulsate:n=!1,rippleX:a,rippleY:i,rippleSize:o,in:s,onExited:l,timeout:u}=t,[c,d]=Y.useState(!1),p=ar(e,r.ripple,r.rippleVisible,n&&r.ripplePulsate),v={width:o,height:o,top:-(o/2)+i,left:-(o/2)+a},g=ar(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&d(!0),Y.useEffect(()=>{if(!s&&l!=null){const m=setTimeout(l,u);return()=>{clearTimeout(m)}}},[l,s,u]),re.jsx("span",{className:p,style:v,children:re.jsx("span",{className:g})})}GZ.propTypes={classes:E.object.isRequired,className:E.string,in:E.bool,onExited:E.func,pulsate:E.bool,rippleSize:E.number,rippleX:E.number,rippleY:E.number,timeout:E.number.isRequired};const Upe=fn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Zs=Upe,Wpe=["center","classes","className"];let uD=t=>t,W4,H4,G4,j4;const Uz=550,Hpe=80,Gpe=Ch(W4||(W4=uD` 0% { transform: scale(0); opacity: 0.1; } 100% { transform: scale(1); opacity: 0.3; } `)),jpe=Ch(H4||(H4=uD` 0% { opacity: 1; } 100% { opacity: 0; } `)),Ype=Ch(G4||(G4=uD` 0% { transform: scale(1); } 50% { transform: scale(0.92); } 100% { transform: scale(1); } `)),qpe=nt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Xpe=nt(GZ,{name:"MuiTouchRipple",slot:"Ripple"})(j4||(j4=uD` opacity: 0; position: absolute; &.${0} { opacity: 0.3; transform: scale(1); animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } &.${0} { animation-duration: ${0}ms; } & .${0} { opacity: 1; display: block; width: 100%; height: 100%; border-radius: 50%; background-color: currentColor; } & .${0} { opacity: 0; animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } & .${0} { position: absolute; /* @noflip */ left: 0px; top: 0; animation-name: ${0}; animation-duration: 2500ms; animation-timing-function: ${0}; animation-iteration-count: infinite; animation-delay: 200ms; } `),Zs.rippleVisible,Gpe,Uz,({theme:t})=>t.transitions.easing.easeInOut,Zs.ripplePulsate,({theme:t})=>t.transitions.duration.shorter,Zs.child,Zs.childLeaving,jpe,Uz,({theme:t})=>t.transitions.easing.easeInOut,Zs.childPulsate,Ype,({theme:t})=>t.transitions.easing.easeInOut),jZ=Y.forwardRef(function(e,r){const n=hn({props:e,name:"MuiTouchRipple"}),{center:a=!1,classes:i={},className:o}=n,s=Gt(n,Wpe),[l,u]=Y.useState([]),c=Y.useRef(0),d=Y.useRef(null);Y.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=Y.useRef(!1),v=Y.useRef(null),g=Y.useRef(null),m=Y.useRef(null);Y.useEffect(()=>()=>{clearTimeout(v.current)},[]);const x=Y.useCallback(A=>{const{pulsate:M,rippleX:D,rippleY:P,rippleSize:O,cb:k}=A;u(N=>[...N,re.jsx(Xpe,{classes:{ripple:ar(i.ripple,Zs.ripple),rippleVisible:ar(i.rippleVisible,Zs.rippleVisible),ripplePulsate:ar(i.ripplePulsate,Zs.ripplePulsate),child:ar(i.child,Zs.child),childLeaving:ar(i.childLeaving,Zs.childLeaving),childPulsate:ar(i.childPulsate,Zs.childPulsate)},timeout:Uz,pulsate:M,rippleX:D,rippleY:P,rippleSize:O},c.current)]),c.current+=1,d.current=k},[i]),_=Y.useCallback((A={},M={},D=()=>{})=>{const{pulsate:P=!1,center:O=a||M.pulsate,fakeElement:k=!1}=M;if((A==null?void 0:A.type)==="mousedown"&&p.current){p.current=!1;return}(A==null?void 0:A.type)==="touchstart"&&(p.current=!0);const N=k?null:m.current,$=N?N.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,F,W;if(O||A===void 0||A.clientX===0&&A.clientY===0||!A.clientX&&!A.touches)H=Math.round($.width/2),F=Math.round($.height/2);else{const{clientX:j,clientY:X}=A.touches&&A.touches.length>0?A.touches[0]:A;H=Math.round(j-$.left),F=Math.round(X-$.top)}if(O)W=Math.sqrt((2*$.width**2+$.height**2)/3),W%2===0&&(W+=1);else{const j=Math.max(Math.abs((N?N.clientWidth:0)-H),H)*2+2,X=Math.max(Math.abs((N?N.clientHeight:0)-F),F)*2+2;W=Math.sqrt(j**2+X**2)}A!=null&&A.touches?g.current===null&&(g.current=()=>{x({pulsate:P,rippleX:H,rippleY:F,rippleSize:W,cb:D})},v.current=setTimeout(()=>{g.current&&(g.current(),g.current=null)},Hpe)):x({pulsate:P,rippleX:H,rippleY:F,rippleSize:W,cb:D})},[a,x]),w=Y.useCallback(()=>{_({},{pulsate:!0})},[_]),T=Y.useCallback((A,M)=>{if(clearTimeout(v.current),(A==null?void 0:A.type)==="touchend"&&g.current){g.current(),g.current=null,v.current=setTimeout(()=>{T(A,M)});return}g.current=null,u(D=>D.length>0?D.slice(1):D),d.current=M},[]);return Y.useImperativeHandle(r,()=>({pulsate:w,start:_,stop:T}),[w,_,T]),re.jsx(qpe,oe({className:ar(Zs.root,i.root,o),ref:m},s,{children:re.jsx(Bpe,{component:null,exit:!0,children:l})}))});jZ.propTypes={center:E.bool,classes:E.object,className:E.string};const Zpe=jZ;function Kpe(t){return nn("MuiButtonBase",t)}const Qpe=fn("MuiButtonBase",["root","disabled","focusVisible"]),Jpe=Qpe,eve=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],tve=t=>{const{disabled:e,focusVisible:r,focusVisibleClassName:n,classes:a}=t,o=_n({root:["root",e&&"disabled",r&&"focusVisible"]},Kpe,a);return r&&n&&(o.root+=` ${n}`),o},rve=nt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Jpe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),YZ=Y.forwardRef(function(e,r){const n=hn({props:e,name:"MuiButtonBase"}),{action:a,centerRipple:i=!1,children:o,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:v="a",onBlur:g,onClick:m,onContextMenu:x,onDragLeave:_,onFocus:w,onFocusVisible:T,onKeyDown:A,onKeyUp:M,onMouseDown:D,onMouseLeave:P,onMouseUp:O,onTouchEnd:k,onTouchMove:N,onTouchStart:$,tabIndex:H=0,TouchRippleProps:F,touchRippleRef:W,type:j}=n,X=Gt(n,eve),te=Y.useRef(null),J=Y.useRef(null),ie=Bo(J,W),{isFocusVisibleRef:se,onFocus:le,onBlur:be,ref:Me}=Ace(),[Se,Ue]=Y.useState(!1);u&&Se&&Ue(!1),Y.useImperativeHandle(a,()=>({focusVisible:()=>{Ue(!0),te.current.focus()}}),[]);const[Xe,st]=Y.useState(!1);Y.useEffect(()=>{st(!0)},[]);const $e=Xe&&!c&&!u;Y.useEffect(()=>{Se&&p&&!c&&Xe&&J.current.pulsate()},[c,p,Se,Xe]);function Be(ft,We,Ae=d){return Zy(Pe=>(We&&We(Pe),!Ae&&J.current&&J.current[ft](Pe),!0))}const et=Be("start",D),de=Be("stop",x),xe=Be("stop",_),xt=Be("stop",O),Ie=Be("stop",ft=>{Se&&ft.preventDefault(),P&&P(ft)}),Ct=Be("start",$),Ot=Be("stop",k),jt=Be("stop",N),nr=Be("stop",ft=>{be(ft),se.current===!1&&Ue(!1),g&&g(ft)},!1),Tr=Zy(ft=>{te.current||(te.current=ft.currentTarget),le(ft),se.current===!0&&(Ue(!0),T&&T(ft)),w&&w(ft)}),Er=()=>{const ft=te.current;return l&&l!=="button"&&!(ft.tagName==="A"&&ft.href)},Xt=Y.useRef(!1),Sn=Zy(ft=>{p&&!Xt.current&&Se&&J.current&&ft.key===" "&&(Xt.current=!0,J.current.stop(ft,()=>{J.current.start(ft)})),ft.target===ft.currentTarget&&Er()&&ft.key===" "&&ft.preventDefault(),A&&A(ft),ft.target===ft.currentTarget&&Er()&&ft.key==="Enter"&&!u&&(ft.preventDefault(),m&&m(ft))}),zr=Zy(ft=>{p&&ft.key===" "&&J.current&&Se&&!ft.defaultPrevented&&(Xt.current=!1,J.current.stop(ft,()=>{J.current.pulsate(ft)})),M&&M(ft),m&&ft.target===ft.currentTarget&&Er()&&ft.key===" "&&!ft.defaultPrevented&&m(ft)});let ge=l;ge==="button"&&(X.href||X.to)&&(ge=v);const Ee={};ge==="button"?(Ee.type=j===void 0?"button":j,Ee.disabled=u):(!X.href&&!X.to&&(Ee.role="button"),u&&(Ee["aria-disabled"]=u));const ke=Bo(r,Me,te);Y.useEffect(()=>{$e&&!J.current&&console.error(["MUI: The `component` prop provided to ButtonBase is invalid.","Please make sure the children prop is rendered in this custom component."].join(` `))},[$e]);const Ge=oe({},n,{centerRipple:i,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:H,focusVisible:Se}),Ke=tve(Ge);return re.jsxs(rve,oe({as:ge,className:ar(Ke.root,s),ownerState:Ge,onBlur:nr,onClick:m,onContextMenu:de,onFocus:Tr,onKeyDown:Sn,onKeyUp:zr,onMouseDown:et,onMouseLeave:Ie,onMouseUp:xt,onDragLeave:xe,onTouchEnd:Ot,onTouchMove:jt,onTouchStart:Ct,ref:ke,tabIndex:u?-1:H,type:j},Ee,X,{children:[o,$e?re.jsx(Zpe,oe({ref:ie,center:i},F)):null]}))});YZ.propTypes={action:Cf,centerRipple:E.bool,children:E.node,classes:E.object,className:E.string,component:eF,disabled:E.bool,disableRipple:E.bool,disableTouchRipple:E.bool,focusRipple:E.bool,focusVisibleClassName:E.string,href:E.any,LinkComponent:E.elementType,onBlur:E.func,onClick:E.func,onContextMenu:E.func,onDragLeave:E.func,onFocus:E.func,onFocusVisible:E.func,onKeyDown:E.func,onKeyUp:E.func,onMouseDown:E.func,onMouseLeave:E.func,onMouseUp:E.func,onTouchEnd:E.func,onTouchMove:E.func,onTouchStart:E.func,sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),tabIndex:E.number,TouchRippleProps:E.object,touchRippleRef:E.oneOfType([E.func,E.shape({current:E.shape({pulsate:E.func.isRequired,start:E.func.isRequired,stop:E.func.isRequired})})]),type:E.oneOfType([E.oneOf(["button","reset","submit"]),E.string])};const B1=YZ;function nve(t){return nn("MuiIconButton",t)}const ave=fn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),ive=ave,ove=["edge","children","className","color","disabled","disableFocusRipple","size"],sve=t=>{const{classes:e,disabled:r,color:n,edge:a,size:i}=t,o={root:["root",r&&"disabled",n!=="default"&&`color${zt(n)}`,a&&`edge${zt(a)}`,`size${zt(i)}`]};return _n(o,nve,e)},lve=nt(B1,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="default"&&e[`color${zt(r.color)}`],r.edge&&e[`edge${zt(r.edge)}`],e[`size${zt(r.size)}`]]}})(({theme:t,ownerState:e})=>oe({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!e.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:af(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12}),({theme:t,ownerState:e})=>{var r;const n=(r=(t.vars||t).palette)==null?void 0:r[e.color];return oe({},e.color==="inherit"&&{color:"inherit"},e.color!=="inherit"&&e.color!=="default"&&oe({color:n==null?void 0:n.main},!e.disableRipple&&{"&:hover":oe({},n&&{backgroundColor:t.vars?`rgba(${n.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:af(n.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),e.size==="small"&&{padding:5,fontSize:t.typography.pxToRem(18)},e.size==="large"&&{padding:12,fontSize:t.typography.pxToRem(28)},{[`&.${ive.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})}),qZ=Y.forwardRef(function(e,r){const n=hn({props:e,name:"MuiIconButton"}),{edge:a=!1,children:i,className:o,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=n,d=Gt(n,ove),p=oe({},n,{edge:a,color:s,disabled:l,disableFocusRipple:u,size:c}),v=sve(p);return re.jsx(lve,oe({className:ar(v.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:r,ownerState:p},d,{children:i}))});qZ.propTypes={children:Th(E.node,t=>Y.Children.toArray(t.children).some(r=>Y.isValidElement(r)&&r.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(` `)):null),classes:E.object,className:E.string,color:E.oneOfType([E.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),E.string]),disabled:E.bool,disableFocusRipple:E.bool,disableRipple:E.bool,edge:E.oneOf(["end","start",!1]),size:E.oneOfType([E.oneOf(["small","medium","large"]),E.string]),sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object])};const f1=qZ;function uve(t){return nn("MuiTypography",t)}fn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const cve=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],fve=t=>{const{align:e,gutterBottom:r,noWrap:n,paragraph:a,variant:i,classes:o}=t,s={root:["root",i,t.align!=="inherit"&&`align${zt(e)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return _n(s,uve,o)},dve=nt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.variant&&e[r.variant],r.align!=="inherit"&&e[`align${zt(r.align)}`],r.noWrap&&e.noWrap,r.gutterBottom&&e.gutterBottom,r.paragraph&&e.paragraph]}})(({theme:t,ownerState:e})=>oe({margin:0},e.variant&&t.typography[e.variant],e.align!=="inherit"&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16})),Y4={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},hve={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},pve=t=>hve[t]||t,XZ=Y.forwardRef(function(e,r){const n=hn({props:e,name:"MuiTypography"}),a=pve(n.color),i=vF(oe({},n,{color:a})),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:p="body1",variantMapping:v=Y4}=i,g=Gt(i,cve),m=oe({},i,{align:o,color:a,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:p,variantMapping:v}),x=l||(d?"p":v[p]||Y4[p])||"span",_=fve(m);return re.jsx(dve,oe({as:x,ref:r,ownerState:m,className:ar(_.root,s)},g))});XZ.propTypes={align:E.oneOf(["center","inherit","justify","left","right"]),children:E.node,classes:E.object,className:E.string,component:E.elementType,gutterBottom:E.bool,noWrap:E.bool,paragraph:E.bool,sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),variant:E.oneOfType([E.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),E.string]),variantMapping:E.object};const vve=XZ;function z0({props:t,states:e,muiFormControl:r}){return e.reduce((n,a)=>(n[a]=t[a],r&&typeof t[a]>"u"&&(n[a]=r[a]),n),{})}const ZZ=Y.createContext(void 0);ZZ.displayName="FormControlContext";const CF=ZZ;function $0(){return Y.useContext(CF)}function AF(t){return re.jsx(xZ,oe({},t,{defaultTheme:lD}))}AF.propTypes={styles:E.oneOfType([E.func,E.number,E.object,E.shape({__emotion_styles:E.any.isRequired}),E.string,E.bool])};function q4(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function EF(t,e=!1){return t&&(q4(t.value)&&t.value!==""||e&&q4(t.defaultValue)&&t.defaultValue!=="")}function gve(t){return t.startAdornment}function mve(t){return nn("MuiInputBase",t)}const yve=fn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),_0=yve,bve=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],cD=(t,e)=>{const{ownerState:r}=t;return[e.root,r.formControl&&e.formControl,r.startAdornment&&e.adornedStart,r.endAdornment&&e.adornedEnd,r.error&&e.error,r.size==="small"&&e.sizeSmall,r.multiline&&e.multiline,r.color&&e[`color${zt(r.color)}`],r.fullWidth&&e.fullWidth,r.hiddenLabel&&e.hiddenLabel]},fD=(t,e)=>{const{ownerState:r}=t;return[e.input,r.size==="small"&&e.inputSizeSmall,r.multiline&&e.inputMultiline,r.type==="search"&&e.inputTypeSearch,r.startAdornment&&e.inputAdornedStart,r.endAdornment&&e.inputAdornedEnd,r.hiddenLabel&&e.inputHiddenLabel]},xve=t=>{const{classes:e,color:r,disabled:n,error:a,endAdornment:i,focused:o,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:v,type:g}=t,m={root:["root",`color${zt(r)}`,n&&"disabled",a&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",p==="small"&&"sizeSmall",c&&"multiline",v&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",v&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return _n(m,mve,e)},dD=nt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:cD})(({theme:t,ownerState:e})=>oe({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${_0.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},e.multiline&&oe({padding:"4px 0 5px"},e.size==="small"&&{paddingTop:1}),e.fullWidth&&{width:"100%"})),hD=nt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:fD})(({theme:t,ownerState:e})=>{const r=t.palette.mode==="light",n=oe({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),a={opacity:"0 !important"},i=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return oe({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${_0.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${_0.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},e.size==="small"&&{paddingTop:1},e.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},e.type==="search"&&{MozAppearance:"textfield"})}),_ve=re.jsx(AF,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),KZ=Y.forwardRef(function(e,r){var n;const a=hn({props:e,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:o,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:v,endAdornment:g,fullWidth:m=!1,id:x,inputComponent:_="input",inputProps:w={},inputRef:T,maxRows:A,minRows:M,multiline:D=!1,name:P,onBlur:O,onChange:k,onClick:N,onFocus:$,onKeyDown:H,onKeyUp:F,placeholder:W,readOnly:j,renderSuffix:X,rows:te,slotProps:J={},slots:ie={},startAdornment:se,type:le="text",value:be}=a,Me=Gt(a,bve),Se=w.value!=null?w.value:be,{current:Ue}=Y.useRef(Se!=null),Xe=Y.useRef(),st=Y.useCallback(Ke=>{Ke&&Ke.nodeName!=="INPUT"&&!Ke.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(` `))},[]),$e=Bo(Xe,T,w.ref,st),[Be,et]=Y.useState(!1),de=$0();Y.useEffect(()=>{if(de)return de.registerEffect()},[de]);const xe=z0({props:a,muiFormControl:de,states:["color","disabled","error","hiddenLabel","size","required","filled"]});xe.focused=de?de.focused:Be,Y.useEffect(()=>{!de&&p&&Be&&(et(!1),O&&O())},[de,p,Be,O]);const xt=de&&de.onFilled,Ie=de&&de.onEmpty,Ct=Y.useCallback(Ke=>{EF(Ke)?xt&&xt():Ie&&Ie()},[xt,Ie]);m0(()=>{Ue&&Ct({value:Se})},[Se,Ct,Ue]);const Ot=Ke=>{if(xe.disabled){Ke.stopPropagation();return}$&&$(Ke),w.onFocus&&w.onFocus(Ke),de&&de.onFocus?de.onFocus(Ke):et(!0)},jt=Ke=>{O&&O(Ke),w.onBlur&&w.onBlur(Ke),de&&de.onBlur?de.onBlur(Ke):et(!1)},nr=(Ke,...ft)=>{if(!Ue){const We=Ke.target||Xe.current;if(We==null)throw new Error("MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.");Ct({value:We.value})}w.onChange&&w.onChange(Ke,...ft),k&&k(Ke,...ft)};Y.useEffect(()=>{Ct(Xe.current)},[]);const Tr=Ke=>{Xe.current&&Ke.currentTarget===Ke.target&&Xe.current.focus(),N&&N(Ke)};let Er=_,Xt=w;D&&Er==="input"&&(te?((M||A)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Xt=oe({type:void 0,minRows:te,maxRows:te},Xt)):Xt=oe({type:void 0,maxRows:A,minRows:M},Xt),Er=Tpe);const Sn=Ke=>{Ct(Ke.animationName==="mui-auto-fill-cancel"?Xe.current:{value:"x"})};Y.useEffect(()=>{de&&de.setAdornedStart(Boolean(se))},[de,se]);const zr=oe({},a,{color:xe.color||"primary",disabled:xe.disabled,endAdornment:g,error:xe.error,focused:xe.focused,formControl:de,fullWidth:m,hiddenLabel:xe.hiddenLabel,multiline:D,size:xe.size,startAdornment:se,type:le}),ge=xve(zr),Ee=ie.root||u.Root||dD,ke=J.root||c.root||{},Ge=ie.input||u.Input||hD;return Xt=oe({},Xt,(n=J.input)!=null?n:c.input),re.jsxs(Y.Fragment,{children:[!v&&_ve,re.jsxs(Ee,oe({},ke,!mR(Ee)&&{ownerState:oe({},zr,ke.ownerState)},{ref:r,onClick:Tr},Me,{className:ar(ge.root,ke.className,l),children:[se,re.jsx(CF.Provider,{value:null,children:re.jsx(Ge,oe({ownerState:zr,"aria-invalid":xe.error,"aria-describedby":i,autoComplete:o,autoFocus:s,defaultValue:d,disabled:xe.disabled,id:x,onAnimationStart:Sn,name:P,placeholder:W,readOnly:j,required:xe.required,rows:te,value:Se,onKeyDown:H,onKeyUp:F,type:le},Xt,!mR(Ge)&&{as:Er,ownerState:oe({},zr,Xt.ownerState)},{ref:$e,className:ar(ge.input,Xt.className),onBlur:jt,onChange:nr,onFocus:Ot}))}),g,X?X(oe({},xe,{startAdornment:se})):null]}))]})});KZ.propTypes={"aria-describedby":E.string,autoComplete:E.string,autoFocus:E.bool,classes:E.object,className:E.string,color:E.oneOfType([E.oneOf(["primary","secondary","error","info","success","warning"]),E.string]),components:E.shape({Input:E.elementType,Root:E.elementType}),componentsProps:E.shape({input:E.object,root:E.object}),defaultValue:E.any,disabled:E.bool,disableInjectingGlobalStyles:E.bool,endAdornment:E.node,error:E.bool,fullWidth:E.bool,id:E.string,inputComponent:eF,inputProps:E.object,inputRef:Cf,margin:E.oneOf(["dense","none"]),maxRows:E.oneOfType([E.number,E.string]),minRows:E.oneOfType([E.number,E.string]),multiline:E.bool,name:E.string,onBlur:E.func,onChange:E.func,onClick:E.func,onFocus:E.func,onInvalid:E.func,onKeyDown:E.func,onKeyUp:E.func,placeholder:E.string,readOnly:E.bool,renderSuffix:E.func,required:E.bool,rows:E.oneOfType([E.number,E.string]),size:E.oneOfType([E.oneOf(["medium","small"]),E.string]),slotProps:E.shape({input:E.object,root:E.object}),slots:E.shape({input:E.elementType,root:E.elementType}),startAdornment:E.node,sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),type:E.string,value:E.any};const RF=KZ;function Sve(t){return nn("MuiInput",t)}const wve=oe({},_0,fn("MuiInput",["root","underline","input"])),d_=wve;function Tve(t){return nn("MuiOutlinedInput",t)}const Cve=oe({},_0,fn("MuiOutlinedInput",["root","notchedOutline","input"])),Dd=Cve;function Ave(t){return nn("MuiFilledInput",t)}const Eve=oe({},_0,fn("MuiFilledInput",["root","underline","input"])),Xp=Eve,Rve=FZ(re.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Mve=FZ(re.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Dve(t){return nn("MuiAvatar",t)}fn("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Ive=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],Pve=t=>{const{classes:e,variant:r,colorDefault:n}=t;return _n({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},Dve,e)},Lve=nt("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],r.colorDefault&&e.colorDefault]}})(({theme:t,ownerState:e})=>oe({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},e.variant==="rounded"&&{borderRadius:(t.vars||t).shape.borderRadius},e.variant==="square"&&{borderRadius:0},e.colorDefault&&oe({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:{backgroundColor:t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600]}))),Ove=nt("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(t,e)=>e.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),kve=nt(Mve,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(t,e)=>e.fallback})({width:"75%",height:"75%"});function Nve({crossOrigin:t,referrerPolicy:e,src:r,srcSet:n}){const[a,i]=Y.useState(!1);return Y.useEffect(()=>{if(!r&&!n)return;i(!1);let o=!0;const s=new Image;return s.onload=()=>{o&&i("loaded")},s.onerror=()=>{o&&i("error")},s.crossOrigin=t,s.referrerPolicy=e,s.src=r,n&&(s.srcset=n),()=>{o=!1}},[t,e,r,n]),a}const QZ=Y.forwardRef(function(e,r){const n=hn({props:e,name:"MuiAvatar"}),{alt:a,children:i,className:o,component:s="div",imgProps:l,sizes:u,src:c,srcSet:d,variant:p="circular"}=n,v=Gt(n,Ive);let g=null;const m=Nve(oe({},l,{src:c,srcSet:d})),x=c||d,_=x&&m!=="error",w=oe({},n,{colorDefault:!_,component:s,variant:p}),T=Pve(w);return _?g=re.jsx(Ove,oe({alt:a,src:c,srcSet:d,sizes:u,ownerState:w,className:T.img},l)):i!=null?g=i:x&&a?g=a[0]:g=re.jsx(kve,{className:T.fallback}),re.jsx(Lve,oe({as:s,ownerState:w,className:ar(T.root,o),ref:r},v,{children:g}))});QZ.propTypes={alt:E.string,children:E.node,classes:E.object,className:E.string,component:E.elementType,imgProps:E.object,sizes:E.string,src:E.string,srcSet:E.string,sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),variant:E.oneOfType([E.oneOf(["circular","rounded","square"]),E.string])};const JZ=QZ,Bve=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],zve={entering:{opacity:1},entered:{opacity:1}},eK=Y.forwardRef(function(e,r){const n=Eh(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:v,onExited:g,onExiting:m,style:x,timeout:_=a,TransitionComponent:w=UZ}=e,T=Gt(e,Bve),A=Y.useRef(null),M=Bo(A,s.ref,r),D=W=>j=>{if(W){const X=A.current;j===void 0?W(X):W(X,j)}},P=D(p),O=D((W,j)=>{WZ(W);const X=_R({style:x,timeout:_,easing:l},{mode:"enter"});W.style.webkitTransition=n.transitions.create("opacity",X),W.style.transition=n.transitions.create("opacity",X),c&&c(W,j)}),k=D(d),N=D(m),$=D(W=>{const j=_R({style:x,timeout:_,easing:l},{mode:"exit"});W.style.webkitTransition=n.transitions.create("opacity",j),W.style.transition=n.transitions.create("opacity",j),v&&v(W)}),H=D(g),F=W=>{i&&i(A.current,W)};return re.jsx(w,oe({appear:o,in:u,nodeRef:A,onEnter:O,onEntered:k,onEntering:P,onExit:$,onExited:H,onExiting:N,addEndListener:F,timeout:_},T,{children:(W,j)=>Y.cloneElement(s,oe({style:oe({opacity:0,visibility:W==="exited"&&!u?"hidden":void 0},zve[W],x,s.props.style),ref:M},j))}))});eK.propTypes={addEndListener:E.func,appear:E.bool,children:_S.isRequired,easing:E.oneOfType([E.shape({enter:E.string,exit:E.string}),E.string]),in:E.bool,onEnter:E.func,onEntered:E.func,onEntering:E.func,onExit:E.func,onExited:E.func,onExiting:E.func,style:E.object,timeout:E.oneOfType([E.number,E.shape({appear:E.number,enter:E.number,exit:E.number})])};const $ve=eK;function Fve(t){return nn("MuiBackdrop",t)}fn("MuiBackdrop",["root","invisible"]);const Vve=["children","component","components","componentsProps","className","invisible","open","slotProps","slots","transitionDuration","TransitionComponent"],Uve=t=>{const{classes:e,invisible:r}=t;return _n({root:["root",r&&"invisible"]},Fve,e)},Wve=nt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.invisible&&e.invisible]}})(({ownerState:t})=>oe({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})),tK=Y.forwardRef(function(e,r){var n,a,i;const o=hn({props:e,name:"MuiBackdrop"}),{children:s,component:l="div",components:u={},componentsProps:c={},className:d,invisible:p=!1,open:v,slotProps:g={},slots:m={},transitionDuration:x,TransitionComponent:_=$ve}=o,w=Gt(o,Vve),T=oe({},o,{component:l,invisible:p}),A=Uve(T),M=(n=g.root)!=null?n:c.root;return re.jsx(_,oe({in:v,timeout:x},w,{children:re.jsx(Wve,oe({"aria-hidden":!0},M,{as:(a=(i=m.root)!=null?i:u.Root)!=null?a:l,className:ar(A.root,d,M==null?void 0:M.className),ownerState:oe({},T,M==null?void 0:M.ownerState),classes:A,ref:r,children:s}))}))});tK.propTypes={children:E.node,classes:E.object,className:E.string,component:E.elementType,components:E.shape({Root:E.elementType}),componentsProps:E.shape({root:E.object}),invisible:E.bool,open:E.bool.isRequired,slotProps:E.shape({root:E.object}),slots:E.shape({root:E.elementType}),sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),transitionDuration:E.oneOfType([E.number,E.shape({appear:E.number,enter:E.number,exit:E.number})])};const Hve=tK,Gve=xF(),rK=IZ({defaultTheme:Gve,defaultClassName:"MuiBox-root",generateClassName:tZ.generate});rK.propTypes={children:E.node,component:E.elementType,sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object])};const ns=rK;function jve(t){return nn("MuiButton",t)}const Yve=fn("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),MA=Yve,nK=Y.createContext({});nK.displayName="ButtonGroupContext";const qve=nK,Xve=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Zve=t=>{const{color:e,disableElevation:r,fullWidth:n,size:a,variant:i,classes:o}=t,s={root:["root",i,`${i}${zt(e)}`,`size${zt(a)}`,`${i}Size${zt(a)}`,e==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${zt(a)}`],endIcon:["endIcon",`iconSize${zt(a)}`]},l=_n(s,jve,o);return oe({},o,l)},aK=t=>oe({},t.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},t.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},t.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Kve=nt(B1,{shouldForwardProp:t=>Af(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${zt(r.color)}`],e[`size${zt(r.size)}`],e[`${r.variant}Size${zt(r.size)}`],r.color==="inherit"&&e.colorInherit,r.disableElevation&&e.disableElevation,r.fullWidth&&e.fullWidth]}})(({theme:t,ownerState:e})=>{var r,n;return oe({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":oe({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:af(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="text"&&e.color!=="inherit"&&{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:af(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="outlined"&&e.color!=="inherit"&&{border:`1px solid ${(t.vars||t).palette[e.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:af(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="contained"&&{backgroundColor:(t.vars||t).palette.grey.A100,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},e.variant==="contained"&&e.color!=="inherit"&&{backgroundColor:(t.vars||t).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e.color].main}}),"&:active":oe({},e.variant==="contained"&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${MA.focusVisible}`]:oe({},e.variant==="contained"&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${MA.disabled}`]:oe({color:(t.vars||t).palette.action.disabled},e.variant==="outlined"&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},e.variant==="contained"&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},e.variant==="text"&&{padding:"6px 8px"},e.variant==="text"&&e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main},e.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},e.variant==="outlined"&&e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[e.color].mainChannel} / 0.5)`:`1px solid ${af(t.palette[e.color].main,.5)}`},e.variant==="contained"&&{color:t.vars?t.vars.palette.text.primary:(r=(n=t.palette).getContrastText)==null?void 0:r.call(n,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],boxShadow:(t.vars||t).shadows[2]},e.variant==="contained"&&e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main},e.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},e.size==="small"&&e.variant==="text"&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},e.size==="large"&&e.variant==="text"&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},e.size==="small"&&e.variant==="outlined"&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},e.size==="large"&&e.variant==="outlined"&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},e.size==="small"&&e.variant==="contained"&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},e.size==="large"&&e.variant==="contained"&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},e.fullWidth&&{width:"100%"})},({ownerState:t})=>t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${MA.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${MA.disabled}`]:{boxShadow:"none"}}),Qve=nt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.startIcon,e[`iconSize${zt(r.size)}`]]}})(({ownerState:t})=>oe({display:"inherit",marginRight:8,marginLeft:-4},t.size==="small"&&{marginLeft:-2},aK(t))),Jve=nt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.endIcon,e[`iconSize${zt(r.size)}`]]}})(({ownerState:t})=>oe({display:"inherit",marginRight:-4,marginLeft:8},t.size==="small"&&{marginRight:-2},aK(t))),iK=Y.forwardRef(function(e,r){const n=Y.useContext(qve),a=tF(n,e),i=hn({props:a,name:"MuiButton"}),{children:o,color:s="primary",component:l="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:v,focusVisibleClassName:g,fullWidth:m=!1,size:x="medium",startIcon:_,type:w,variant:T="text"}=i,A=Gt(i,Xve),M=oe({},i,{color:s,component:l,disabled:c,disableElevation:d,disableFocusRipple:p,fullWidth:m,size:x,type:w,variant:T}),D=Zve(M),P=_&&re.jsx(Qve,{className:D.startIcon,ownerState:M,children:_}),O=v&&re.jsx(Jve,{className:D.endIcon,ownerState:M,children:v});return re.jsxs(Kve,oe({ownerState:M,className:ar(n.className,D.root,u),component:l,disabled:c,focusRipple:!p,focusVisibleClassName:ar(D.focusVisible,g),ref:r,type:w},A,{classes:D,children:[P,o,O]}))});iK.propTypes={children:E.node,classes:E.object,className:E.string,color:E.oneOfType([E.oneOf(["inherit","primary","secondary","success","error","info","warning"]),E.string]),component:E.elementType,disabled:E.bool,disableElevation:E.bool,disableFocusRipple:E.bool,disableRipple:E.bool,endIcon:E.node,focusVisibleClassName:E.string,fullWidth:E.bool,href:E.string,size:E.oneOfType([E.oneOf(["small","medium","large"]),E.string]),startIcon:E.node,sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),type:E.oneOfType([E.oneOf(["button","reset","submit"]),E.string]),variant:E.oneOfType([E.oneOf(["contained","outlined","text"]),E.string])};const oK=iK;function ege(t){return nn("MuiCard",t)}fn("MuiCard",["root"]);const tge=["className","raised"],rge=t=>{const{classes:e}=t;return _n({root:["root"]},ege,e)},nge=nt(TF,{name:"MuiCard",slot:"Root",overridesResolver:(t,e)=>e.root})(()=>({overflow:"hidden"})),sK=Y.forwardRef(function(e,r){const n=hn({props:e,name:"MuiCard"}),{className:a,raised:i=!1}=n,o=Gt(n,tge),s=oe({},n,{raised:i}),l=rge(s);return re.jsx(nge,oe({className:ar(l.root,a),elevation:i?8:void 0,ref:r,ownerState:s},o))});sK.propTypes={children:E.node,classes:E.object,className:E.string,raised:Th(E.bool,t=>t.raised&&t.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object])};const age=sK;function ige(t){return nn("MuiCircularProgress",t)}fn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const oge=["className","color","disableShrink","size","style","thickness","value","variant"];let pD=t=>t,X4,Z4,K4,Q4;const Id=44,sge=Ch(X4||(X4=pD` 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } `)),lge=Ch(Z4||(Z4=pD` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; } 50% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -15px; } 100% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } `)),uge=t=>{const{classes:e,variant:r,color:n,disableShrink:a}=t,i={root:["root",r,`color${zt(n)}`],svg:["svg"],circle:["circle",`circle${zt(r)}`,a&&"circleDisableShrink"]};return _n(i,ige,e)},cge=nt("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`color${zt(r.color)}`]]}})(({ownerState:t,theme:e})=>oe({display:"inline-block"},t.variant==="determinate"&&{transition:e.transitions.create("transform")},t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main}),({ownerState:t})=>t.variant==="indeterminate"&&N0(K4||(K4=pD` animation: ${0} 1.4s linear infinite; `),sge)),fge=nt("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),dge=nt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.circle,e[`circle${zt(r.variant)}`],r.disableShrink&&e.circleDisableShrink]}})(({ownerState:t,theme:e})=>oe({stroke:"currentColor"},t.variant==="determinate"&&{transition:e.transitions.create("stroke-dashoffset")},t.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink&&N0(Q4||(Q4=pD` animation: ${0} 1.4s ease-in-out infinite; `),lge)),lK=Y.forwardRef(function(e,r){const n=hn({props:e,name:"MuiCircularProgress"}),{className:a,color:i="primary",disableShrink:o=!1,size:s=40,style:l,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=n,p=Gt(n,oge),v=oe({},n,{color:i,disableShrink:o,size:s,thickness:u,value:c,variant:d}),g=uge(v),m={},x={},_={};if(d==="determinate"){const w=2*Math.PI*((Id-u)/2);m.strokeDasharray=w.toFixed(3),_["aria-valuenow"]=Math.round(c),m.strokeDashoffset=`${((100-c)/100*w).toFixed(3)}px`,x.transform="rotate(-90deg)"}return re.jsx(cge,oe({className:ar(g.root,a),style:oe({width:s,height:s},x,l),ownerState:v,ref:r,role:"progressbar"},_,p,{children:re.jsx(fge,{className:g.svg,ownerState:v,viewBox:`${Id/2} ${Id/2} ${Id} ${Id}`,children:re.jsx(dge,{className:g.circle,style:m,ownerState:v,cx:Id,cy:Id,r:(Id-u)/2,fill:"none",strokeWidth:u})})}))});lK.propTypes={classes:E.object,className:E.string,color:E.oneOfType([E.oneOf(["inherit","primary","secondary","error","info","success","warning"]),E.string]),disableShrink:Th(E.bool,t=>t.disableShrink&&t.variant&&t.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:E.oneOfType([E.number,E.string]),style:E.object,sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),thickness:E.number,value:E.number,variant:E.oneOf(["determinate","indeterminate"])};const hge=lK,pge=(t,e)=>oe({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},e&&!t.vars&&{colorScheme:t.palette.mode}),vge=t=>oe({color:(t.vars||t).palette.text.primary},t.typography.body1,{backgroundColor:(t.vars||t).palette.background.default,"@media print":{backgroundColor:(t.vars||t).palette.common.white}}),gge=(t,e=!1)=>{var r,n;const a={};e&&t.colorSchemes&&Object.entries(t.colorSchemes).forEach(([s,l])=>{var u;a[t.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(u=l.palette)==null?void 0:u.mode}});let i=oe({html:pge(t,e),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:t.typography.fontWeightBold},body:oe({margin:0},vge(t),{"&::backdrop":{backgroundColor:(t.vars||t).palette.background.default}})},a);const o=(r=t.components)==null||(n=r.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function MF(t){const e=hn({props:t,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=e;return re.jsxs(Y.Fragment,{children:[re.jsx(AF,{styles:a=>gge(a,n)}),r]})}MF.propTypes={children:E.node,enableColorScheme:E.bool};const mge=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],yge=t=>t.classes,bge=nt("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.open&&r.exited&&e.hidden]}})(({theme:t,ownerState:e})=>oe({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!e.open&&e.exited&&{visibility:"hidden"})),xge=nt(Hve,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),uK=Y.forwardRef(function(e,r){var n,a,i,o,s,l;const u=hn({name:"MuiModal",props:e}),{BackdropComponent:c=xge,BackdropProps:d,closeAfterTransition:p=!1,children:v,component:g,components:m={},componentsProps:x={},disableAutoFocus:_=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:T=!1,disablePortal:A=!1,disableRestoreFocus:M=!1,disableScrollLock:D=!1,hideBackdrop:P=!1,keepMounted:O=!1,slotProps:k,slots:N,theme:$}=u,H=Gt(u,mge),[F,W]=Y.useState(!0),j={closeAfterTransition:p,disableAutoFocus:_,disableEnforceFocus:w,disableEscapeKeyDown:T,disablePortal:A,disableRestoreFocus:M,disableScrollLock:D,hideBackdrop:P,keepMounted:O},X=oe({},u,j,{exited:F}),te=yge(X),J=(n=(a=N==null?void 0:N.root)!=null?a:m.Root)!=null?n:bge,ie=(i=(o=N==null?void 0:N.backdrop)!=null?o:m.Backdrop)!=null?i:c,se=(s=k==null?void 0:k.root)!=null?s:x.root,le=(l=k==null?void 0:k.backdrop)!=null?l:x.backdrop;return re.jsx(_pe,oe({slots:{root:J,backdrop:ie},slotProps:{root:()=>oe({},Bz(se,X),!mR(J)&&{as:g,theme:$}),backdrop:()=>oe({},d,Bz(le,X))},onTransitionEnter:()=>W(!1),onTransitionExited:()=>W(!0),ref:r},H,{classes:te},j,{children:v}))});uK.propTypes={BackdropComponent:E.elementType,BackdropProps:E.object,children:_S.isRequired,classes:E.object,closeAfterTransition:E.bool,component:E.elementType,components:E.shape({Backdrop:E.elementType,Root:E.elementType}),componentsProps:E.shape({backdrop:E.oneOfType([E.func,E.object]),root:E.oneOfType([E.func,E.object])}),container:E.oneOfType([g0,E.func]),disableAutoFocus:E.bool,disableEnforceFocus:E.bool,disableEscapeKeyDown:E.bool,disablePortal:E.bool,disableRestoreFocus:E.bool,disableScrollLock:E.bool,hideBackdrop:E.bool,keepMounted:E.bool,onBackdropClick:E.func,onClose:E.func,open:E.bool.isRequired,slotProps:E.shape({backdrop:E.oneOfType([E.func,E.object]),root:E.oneOfType([E.func,E.object])}),slots:E.shape({backdrop:E.elementType,root:E.elementType}),sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object])};const _ge=uK;function Sge(t){return nn("MuiDivider",t)}const wge=fn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),X6e=wge,Tge=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Cge=t=>{const{absolute:e,children:r,classes:n,flexItem:a,light:i,orientation:o,textAlign:s,variant:l}=t;return _n({root:["root",e&&"absolute",l,i&&"light",o==="vertical"&&"vertical",a&&"flexItem",r&&"withChildren",r&&o==="vertical"&&"withChildrenVertical",s==="right"&&o!=="vertical"&&"textAlignRight",s==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},Sge,n)},Age=nt("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.absolute&&e.absolute,e[r.variant],r.light&&e.light,r.orientation==="vertical"&&e.vertical,r.flexItem&&e.flexItem,r.children&&e.withChildren,r.children&&r.orientation==="vertical"&&e.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&e.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&e.textAlignLeft]}})(({theme:t,ownerState:e})=>oe({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},e.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},e.light&&{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:af(t.palette.divider,.08)},e.variant==="inset"&&{marginLeft:72},e.variant==="middle"&&e.orientation==="horizontal"&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},e.variant==="middle"&&e.orientation==="vertical"&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},e.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},e.flexItem&&{alignSelf:"stretch",height:"auto"}),({theme:t,ownerState:e})=>oe({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}}),({theme:t,ownerState:e})=>oe({},e.children&&e.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(t.vars||t).palette.divider}`,transform:"translateX(0%)"}}),({ownerState:t})=>oe({},t.textAlign==="right"&&t.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},t.textAlign==="left"&&t.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Ege=nt("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.wrapper,r.orientation==="vertical"&&e.wrapperVertical]}})(({theme:t,ownerState:e})=>oe({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`},e.orientation==="vertical"&&{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`})),cK=Y.forwardRef(function(e,r){const n=hn({props:e,name:"MuiDivider"}),{absolute:a=!1,children:i,className:o,component:s=i?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:d=s!=="hr"?"separator":void 0,textAlign:p="center",variant:v="fullWidth"}=n,g=Gt(n,Tge),m=oe({},n,{absolute:a,component:s,flexItem:l,light:u,orientation:c,role:d,textAlign:p,variant:v}),x=Cge(m);return re.jsx(Age,oe({as:s,className:ar(x.root,o),role:d,ref:r,ownerState:m},g,{children:i?re.jsx(Ege,{className:x.wrapper,ownerState:m,children:i}):null}))});cK.propTypes={absolute:E.bool,children:E.node,classes:E.object,className:E.string,component:E.elementType,flexItem:E.bool,light:E.bool,orientation:E.oneOf(["horizontal","vertical"]),role:E.string,sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),textAlign:E.oneOf(["center","left","right"]),variant:E.oneOfType([E.oneOf(["fullWidth","inset","middle"]),E.string])};const Rge=cK,Mge=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Dge=t=>{const{classes:e,disableUnderline:r}=t,a=_n({root:["root",!r&&"underline"],input:["input"]},Ave,e);return oe({},e,a)},Ige=nt(dD,{shouldForwardProp:t=>Af(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...cD(t,e),!r.disableUnderline&&e.underline]}})(({theme:t,ownerState:e})=>{var r;const n=t.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return oe({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:i}},[`&.${Xp.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:i},[`&.${Xp.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:s}},!e.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(r=(t.vars||t).palette[e.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xp.error}`]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&:before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xp.disabled}, .${Xp.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${Xp.disabled}:before`]:{borderBottomStyle:"dotted"}},e.startAdornment&&{paddingLeft:12},e.endAdornment&&{paddingRight:12},e.multiline&&oe({padding:"25px 12px 8px"},e.size==="small"&&{paddingTop:21,paddingBottom:4},e.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),Pge=nt(hD,{name:"MuiFilledInput",slot:"Input",overridesResolver:fD})(({theme:t,ownerState:e})=>oe({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},e.size==="small"&&{paddingTop:21,paddingBottom:4},e.hiddenLabel&&{paddingTop:16,paddingBottom:17},e.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},e.startAdornment&&{paddingLeft:0},e.endAdornment&&{paddingRight:0},e.hiddenLabel&&e.size==="small"&&{paddingTop:8,paddingBottom:9})),DF=Y.forwardRef(function(e,r){var n,a,i,o;const s=hn({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:v,slots:g={},type:m="text"}=s,x=Gt(s,Mge),_=oe({},s,{fullWidth:c,inputComponent:d,multiline:p,type:m}),w=Dge(s),T={root:{ownerState:_},input:{ownerState:_}},A=v??u?ls(v??u,T):T,M=(n=(a=g.root)!=null?a:l.Root)!=null?n:Ige,D=(i=(o=g.input)!=null?o:l.Input)!=null?i:Pge;return re.jsx(RF,oe({slots:{root:M,input:D},componentsProps:A,fullWidth:c,inputComponent:d,multiline:p,ref:r,type:m},x,{classes:w}))});DF.propTypes={autoComplete:E.string,autoFocus:E.bool,classes:E.object,color:E.oneOfType([E.oneOf(["primary","secondary"]),E.string]),components:E.shape({Input:E.elementType,Root:E.elementType}),componentsProps:E.shape({input:E.object,root:E.object}),defaultValue:E.any,disabled:E.bool,disableUnderline:E.bool,endAdornment:E.node,error:E.bool,fullWidth:E.bool,hiddenLabel:E.bool,id:E.string,inputComponent:E.elementType,inputProps:E.object,inputRef:Cf,margin:E.oneOf(["dense","none"]),maxRows:E.oneOfType([E.number,E.string]),minRows:E.oneOfType([E.number,E.string]),multiline:E.bool,name:E.string,onChange:E.func,placeholder:E.string,readOnly:E.bool,required:E.bool,rows:E.oneOfType([E.number,E.string]),slotProps:E.shape({input:E.object,root:E.object}),slots:E.shape({input:E.elementType,root:E.elementType}),startAdornment:E.node,sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),type:E.string,value:E.any};DF.muiName="Input";const fK=DF;function Lge(t){return nn("MuiFormControl",t)}fn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Oge=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],kge=t=>{const{classes:e,margin:r,fullWidth:n}=t,a={root:["root",r!=="none"&&`margin${zt(r)}`,n&&"fullWidth"]};return _n(a,Lge,e)},Nge=nt("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:t},e)=>oe({},e.root,e[`margin${zt(t.margin)}`],t.fullWidth&&e.fullWidth)})(({ownerState:t})=>oe({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},t.margin==="normal"&&{marginTop:16,marginBottom:8},t.margin==="dense"&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})),dK=Y.forwardRef(function(e,r){const n=hn({props:e,name:"MuiFormControl"}),{children:a,className:i,color:o="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:p=!1,margin:v="none",required:g=!1,size:m="medium",variant:x="outlined"}=n,_=Gt(n,Oge),w=oe({},n,{color:o,component:s,disabled:l,error:u,fullWidth:d,hiddenLabel:p,margin:v,required:g,size:m,variant:x}),T=kge(w),[A,M]=Y.useState(()=>{let F=!1;return a&&Y.Children.forEach(a,W=>{if(!dk(W,["Input","Select"]))return;const j=dk(W,["Select"])?W.props.input:W;j&&gve(j.props)&&(F=!0)}),F}),[D,P]=Y.useState(()=>{let F=!1;return a&&Y.Children.forEach(a,W=>{dk(W,["Input","Select"])&&EF(W.props,!0)&&(F=!0)}),F}),[O,k]=Y.useState(!1);l&&O&&k(!1);const N=c!==void 0&&!l?c:O;let $;{const F=Y.useRef(!1);$=()=>(F.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(` `)),F.current=!0,()=>{F.current=!1})}const H=Y.useMemo(()=>({adornedStart:A,setAdornedStart:M,color:o,disabled:l,error:u,filled:D,focused:N,fullWidth:d,hiddenLabel:p,size:m,onBlur:()=>{k(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{k(!0)},registerEffect:$,required:g,variant:x}),[A,o,l,u,D,N,d,p,$,g,m,x]);return re.jsx(CF.Provider,{value:H,children:re.jsx(Nge,oe({as:s,ownerState:w,className:ar(T.root,i),ref:r},_,{children:a}))})});dK.propTypes={children:E.node,classes:E.object,className:E.string,color:E.oneOfType([E.oneOf(["primary","secondary","error","info","success","warning"]),E.string]),component:E.elementType,disabled:E.bool,error:E.bool,focused:E.bool,fullWidth:E.bool,hiddenLabel:E.bool,margin:E.oneOf(["dense","none","normal"]),required:E.bool,size:E.oneOfType([E.oneOf(["medium","small"]),E.string]),sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),variant:E.oneOf(["filled","outlined","standard"])};const Bge=dK;function zge(t){return nn("MuiFormHelperText",t)}const $ge=fn("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),J4=$ge;var eG;const Fge=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Vge=t=>{const{classes:e,contained:r,size:n,disabled:a,error:i,filled:o,focused:s,required:l}=t,u={root:["root",a&&"disabled",i&&"error",n&&`size${zt(n)}`,r&&"contained",s&&"focused",o&&"filled",l&&"required"]};return _n(u,zge,e)},Uge=nt("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size&&e[`size${zt(r.size)}`],r.contained&&e.contained,r.filled&&e.filled]}})(({theme:t,ownerState:e})=>oe({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${J4.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${J4.error}`]:{color:(t.vars||t).palette.error.main}},e.size==="small"&&{marginTop:4},e.contained&&{marginLeft:14,marginRight:14})),hK=Y.forwardRef(function(e,r){const n=hn({props:e,name:"MuiFormHelperText"}),{children:a,className:i,component:o="p"}=n,s=Gt(n,Fge),l=$0(),u=z0({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=oe({},n,{component:o,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=Vge(c);return re.jsx(Uge,oe({as:o,ownerState:c,className:ar(d.root,i),ref:r},s,{children:a===" "?eG||(eG=re.jsx("span",{className:"notranslate",children:""})):a}))});hK.propTypes={children:E.node,classes:E.object,className:E.string,component:E.elementType,disabled:E.bool,error:E.bool,filled:E.bool,focused:E.bool,margin:E.oneOf(["dense"]),required:E.bool,sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),variant:E.oneOfType([E.oneOf(["filled","outlined","standard"]),E.string])};const Wge=hK;function Hge(t){return nn("MuiFormLabel",t)}const Gge=fn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),d1=Gge,jge=["children","className","color","component","disabled","error","filled","focused","required"],Yge=t=>{const{classes:e,color:r,focused:n,disabled:a,error:i,filled:o,required:s}=t,l={root:["root",`color${zt(r)}`,a&&"disabled",i&&"error",o&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return _n(l,Hge,e)},qge=nt("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:t},e)=>oe({},e.root,t.color==="secondary"&&e.colorSecondary,t.filled&&e.filled)})(({theme:t,ownerState:e})=>oe({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${d1.focused}`]:{color:(t.vars||t).palette[e.color].main},[`&.${d1.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${d1.error}`]:{color:(t.vars||t).palette.error.main}})),Xge=nt("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(({theme:t})=>({[`&.${d1.error}`]:{color:(t.vars||t).palette.error.main}})),pK=Y.forwardRef(function(e,r){const n=hn({props:e,name:"MuiFormLabel"}),{children:a,className:i,component:o="label"}=n,s=Gt(n,jge),l=$0(),u=z0({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=oe({},n,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=Yge(c);return re.jsxs(qge,oe({as:o,ownerState:c,className:ar(d.root,i),ref:r},s,{children:[a,u.required&&re.jsxs(Xge,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))});pK.propTypes={children:E.node,classes:E.object,className:E.string,color:E.oneOfType([E.oneOf(["error","info","primary","secondary","success","warning"]),E.string]),component:E.elementType,disabled:E.bool,error:E.bool,filled:E.bool,focused:E.bool,required:E.bool,sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object])};const Zge=pK,vK=Y.createContext();vK.displayName="GridContext";const tG=vK;function Kge(t){return nn("MuiGrid",t)}const Qge=[0,1,2,3,4,5,6,7,8,9,10],Jge=["column-reverse","column","row-reverse","row"],eme=["nowrap","wrap-reverse","wrap"],h_=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],z1=fn("MuiGrid",["root","container","item","zeroMinWidth",...Qge.map(t=>`spacing-xs-${t}`),...Jge.map(t=>`direction-xs-${t}`),...eme.map(t=>`wrap-xs-${t}`),...h_.map(t=>`grid-xs-${t}`),...h_.map(t=>`grid-sm-${t}`),...h_.map(t=>`grid-md-${t}`),...h_.map(t=>`grid-lg-${t}`),...h_.map(t=>`grid-xl-${t}`)]),tme=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function i0(t){const e=parseFloat(t);return`${e}${String(t).replace(String(e),"")||"px"}`}function rme({theme:t,ownerState:e}){let r;return t.breakpoints.keys.reduce((n,a)=>{let i={};if(e[a]&&(r=e[a]),!r)return n;if(r===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(r==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const o=XM({values:e.columns,breakpoints:t.breakpoints.values}),s=typeof o=="object"?o[a]:o;if(s==null)return n;const l=`${Math.round(r/s*1e8)/1e6}%`;let u={};if(e.container&&e.item&&e.columnSpacing!==0){const c=t.spacing(e.columnSpacing);if(c!=="0px"){const d=`calc(${l} + ${i0(c)})`;u={flexBasis:d,maxWidth:d}}}i=oe({flexBasis:l,flexGrow:0,maxWidth:l},u)}return t.breakpoints.values[a]===0?Object.assign(n,i):n[t.breakpoints.up(a)]=i,n},{})}function nme({theme:t,ownerState:e}){const r=XM({values:e.direction,breakpoints:t.breakpoints.values});return ol({theme:t},r,n=>{const a={flexDirection:n};return n.indexOf("column")===0&&(a[`& > .${z1.item}`]={maxWidth:"none"}),a})}function gK({breakpoints:t,values:e}){let r="";Object.keys(e).forEach(a=>{r===""&&e[a]!==0&&(r=a)});const n=Object.keys(t).sort((a,i)=>t[a]-t[i]);return n.slice(0,n.indexOf(r))}function ame({theme:t,ownerState:e}){const{container:r,rowSpacing:n}=e;let a={};if(r&&n!==0){const i=XM({values:n,breakpoints:t.breakpoints.values});let o;typeof i=="object"&&(o=gK({breakpoints:t.breakpoints.values,values:i})),a=ol({theme:t},i,(s,l)=>{var u;const c=t.spacing(s);return c!=="0px"?{marginTop:`-${i0(c)}`,[`& > .${z1.item}`]:{paddingTop:i0(c)}}:(u=o)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${z1.item}`]:{paddingTop:0}}})}return a}function ime({theme:t,ownerState:e}){const{container:r,columnSpacing:n}=e;let a={};if(r&&n!==0){const i=XM({values:n,breakpoints:t.breakpoints.values});let o;typeof i=="object"&&(o=gK({breakpoints:t.breakpoints.values,values:i})),a=ol({theme:t},i,(s,l)=>{var u;const c=t.spacing(s);return c!=="0px"?{width:`calc(100% + ${i0(c)})`,marginLeft:`-${i0(c)}`,[`& > .${z1.item}`]:{paddingLeft:i0(c)}}:(u=o)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${z1.item}`]:{paddingLeft:0}}})}return a}function ome(t,e,r={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[r[`spacing-xs-${String(t)}`]];const n=[];return e.forEach(a=>{const i=t[a];Number(i)>0&&n.push(r[`spacing-${a}-${String(i)}`])}),n}const sme=nt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t,{container:n,direction:a,item:i,spacing:o,wrap:s,zeroMinWidth:l,breakpoints:u}=r;let c=[];n&&(c=ome(o,u,e));const d=[];return u.forEach(p=>{const v=r[p];v&&d.push(e[`grid-${p}-${String(v)}`])}),[e.root,n&&e.container,i&&e.item,l&&e.zeroMinWidth,...c,a!=="row"&&e[`direction-xs-${String(a)}`],s!=="wrap"&&e[`wrap-xs-${String(s)}`],...d]}})(({ownerState:t})=>oe({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},t.wrap!=="wrap"&&{flexWrap:t.wrap}),nme,ame,ime,rme);function lme(t,e){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const r=[];return e.forEach(n=>{const a=t[n];if(Number(a)>0){const i=`spacing-${n}-${String(a)}`;r.push(i)}}),r}const ume=t=>{const{classes:e,container:r,direction:n,item:a,spacing:i,wrap:o,zeroMinWidth:s,breakpoints:l}=t;let u=[];r&&(u=lme(i,l));const c=[];l.forEach(p=>{const v=t[p];v&&c.push(`grid-${p}-${String(v)}`)});const d={root:["root",r&&"container",a&&"item",s&&"zeroMinWidth",...u,n!=="row"&&`direction-xs-${String(n)}`,o!=="wrap"&&`wrap-xs-${String(o)}`,...c]};return _n(d,Kge,e)},h1=Y.forwardRef(function(e,r){const n=hn({props:e,name:"MuiGrid"}),{breakpoints:a}=Eh(),i=vF(n),{className:o,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:d="row",item:p=!1,rowSpacing:v,spacing:g=0,wrap:m="wrap",zeroMinWidth:x=!1}=i,_=Gt(i,tme),w=v||g,T=l||g,A=Y.useContext(tG),M=c?s||12:A,D={},P=oe({},_);a.keys.forEach(N=>{_[N]!=null&&(D[N]=_[N],delete P[N])});const O=oe({},i,{columns:M,container:c,direction:d,item:p,rowSpacing:w,columnSpacing:T,wrap:m,zeroMinWidth:x,spacing:g},D,{breakpoints:a.keys}),k=ume(O);return re.jsx(tG.Provider,{value:M,children:re.jsx(sme,oe({ownerState:O,className:ar(k.root,o),as:u,ref:r},P))})});h1.propTypes={children:E.node,classes:E.object,className:E.string,columns:E.oneOfType([E.arrayOf(E.number),E.number,E.object]),columnSpacing:E.oneOfType([E.arrayOf(E.oneOfType([E.number,E.string])),E.number,E.object,E.string]),component:E.elementType,container:E.bool,direction:E.oneOfType([E.oneOf(["column-reverse","column","row-reverse","row"]),E.arrayOf(E.oneOf(["column-reverse","column","row-reverse","row"])),E.object]),item:E.bool,lg:E.oneOfType([E.oneOf(["auto"]),E.number,E.bool]),md:E.oneOfType([E.oneOf(["auto"]),E.number,E.bool]),rowSpacing:E.oneOfType([E.arrayOf(E.oneOfType([E.number,E.string])),E.number,E.object,E.string]),sm:E.oneOfType([E.oneOf(["auto"]),E.number,E.bool]),spacing:E.oneOfType([E.arrayOf(E.oneOfType([E.number,E.string])),E.number,E.object,E.string]),sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),wrap:E.oneOf(["nowrap","wrap-reverse","wrap"]),xl:E.oneOfType([E.oneOf(["auto"]),E.number,E.bool]),xs:E.oneOfType([E.oneOf(["auto"]),E.number,E.bool]),zeroMinWidth:E.bool};{const t=gce("Grid",h1);h1["propTypes"]=oe({},h1.propTypes,{direction:t("container"),lg:t("item"),md:t("item"),sm:t("item"),spacing:t("container"),wrap:t("container"),xs:t("item"),zeroMinWidth:t("item")})}const mk=h1,cme=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Wz(t){return`scale(${t}, ${t**2})`}const fme={entering:{opacity:1,transform:Wz(1)},entered:{opacity:1,transform:"none"}},yk=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),IF=Y.forwardRef(function(e,r){const{addEndListener:n,appear:a=!0,children:i,easing:o,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:v,style:g,timeout:m="auto",TransitionComponent:x=UZ}=e,_=Gt(e,cme),w=Y.useRef(),T=Y.useRef(),A=Eh(),M=Y.useRef(null),D=Bo(M,i.ref,r),P=j=>X=>{if(j){const te=M.current;X===void 0?j(te):j(te,X)}},O=P(c),k=P((j,X)=>{WZ(j);const{duration:te,delay:J,easing:ie}=_R({style:g,timeout:m,easing:o},{mode:"enter"});let se;m==="auto"?(se=A.transitions.getAutoHeightDuration(j.clientHeight),T.current=se):se=te,j.style.transition=[A.transitions.create("opacity",{duration:se,delay:J}),A.transitions.create("transform",{duration:yk?se:se*.666,delay:J,easing:ie})].join(","),l&&l(j,X)}),N=P(u),$=P(v),H=P(j=>{const{duration:X,delay:te,easing:J}=_R({style:g,timeout:m,easing:o},{mode:"exit"});let ie;m==="auto"?(ie=A.transitions.getAutoHeightDuration(j.clientHeight),T.current=ie):ie=X,j.style.transition=[A.transitions.create("opacity",{duration:ie,delay:te}),A.transitions.create("transform",{duration:yk?ie:ie*.666,delay:yk?te:te||ie*.333,easing:J})].join(","),j.style.opacity=0,j.style.transform=Wz(.75),d&&d(j)}),F=P(p),W=j=>{m==="auto"&&(w.current=setTimeout(j,T.current||0)),n&&n(M.current,j)};return Y.useEffect(()=>()=>{clearTimeout(w.current)},[]),re.jsx(x,oe({appear:a,in:s,nodeRef:M,onEnter:k,onEntered:N,onEntering:O,onExit:H,onExited:F,onExiting:$,addEndListener:W,timeout:m==="auto"?null:m},_,{children:(j,X)=>Y.cloneElement(i,oe({style:oe({opacity:0,transform:Wz(.75),visibility:j==="exited"&&!s?"hidden":void 0},fme[j],g,i.props.style),ref:D},X))}))});IF.propTypes={addEndListener:E.func,appear:E.bool,children:_S.isRequired,easing:E.oneOfType([E.shape({enter:E.string,exit:E.string}),E.string]),in:E.bool,onEnter:E.func,onEntered:E.func,onEntering:E.func,onExit:E.func,onExited:E.func,onExiting:E.func,style:E.object,timeout:E.oneOfType([E.oneOf(["auto"]),E.number,E.shape({appear:E.number,enter:E.number,exit:E.number})])};IF.muiSupportAuto=!0;const dme=IF;function hme(t){return nn("MuiIcon",t)}fn("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const pme=["baseClassName","className","color","component","fontSize"],vme=t=>{const{color:e,fontSize:r,classes:n}=t,a={root:["root",e!=="inherit"&&`color${zt(e)}`,`fontSize${zt(r)}`]};return _n(a,hme,n)},gme=nt("span",{name:"MuiIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="inherit"&&e[`color${zt(r.color)}`],e[`fontSize${zt(r.fontSize)}`]]}})(({theme:t,ownerState:e})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:t.typography.pxToRem(20),medium:t.typography.pxToRem(24),large:t.typography.pxToRem(36)}[e.fontSize],color:{primary:(t.vars||t).palette.primary.main,secondary:(t.vars||t).palette.secondary.main,info:(t.vars||t).palette.info.main,success:(t.vars||t).palette.success.main,warning:(t.vars||t).palette.warning.main,action:(t.vars||t).palette.action.active,error:(t.vars||t).palette.error.main,disabled:(t.vars||t).palette.action.disabled,inherit:void 0}[e.color]})),PF=Y.forwardRef(function(e,r){const n=hn({props:e,name:"MuiIcon"}),{baseClassName:a="material-icons",className:i,color:o="inherit",component:s="span",fontSize:l="medium"}=n,u=Gt(n,pme),c=oe({},n,{baseClassName:a,color:o,component:s,fontSize:l}),d=vme(c);return re.jsx(gme,oe({as:s,className:ar(a,"notranslate",d.root,i),ownerState:c,"aria-hidden":!0,ref:r},u))});PF.propTypes={baseClassName:E.string,children:E.node,classes:E.object,className:E.string,color:E.oneOfType([E.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),E.string]),component:E.elementType,fontSize:E.oneOfType([E.oneOf(["inherit","large","medium","small"]),E.string]),sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object])};PF.muiName="Icon";const oc=PF,mme=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],yme=t=>{const{classes:e,disableUnderline:r}=t,a=_n({root:["root",!r&&"underline"],input:["input"]},Sve,e);return oe({},e,a)},bme=nt(dD,{shouldForwardProp:t=>Af(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...cD(t,e),!r.disableUnderline&&e.underline]}})(({theme:t,ownerState:e})=>{let n=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),oe({position:"relative"},e.formControl&&{"label + &":{marginTop:16}},!e.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(t.vars||t).palette[e.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${d_.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${d_.error}`]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${d_.disabled}, .${d_.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${d_.disabled}:before`]:{borderBottomStyle:"dotted"}})}),xme=nt(hD,{name:"MuiInput",slot:"Input",overridesResolver:fD})({}),LF=Y.forwardRef(function(e,r){var n,a,i,o;const s=hn({props:e,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:p="input",multiline:v=!1,slotProps:g,slots:m={},type:x="text"}=s,_=Gt(s,mme),w=yme(s),A={root:{ownerState:{disableUnderline:l}}},M=g??c?ls(g??c,A):A,D=(n=(a=m.root)!=null?a:u.Root)!=null?n:bme,P=(i=(o=m.input)!=null?o:u.Input)!=null?i:xme;return re.jsx(RF,oe({slots:{root:D,input:P},slotProps:M,fullWidth:d,inputComponent:p,multiline:v,ref:r,type:x},_,{classes:w}))});LF.propTypes={autoComplete:E.string,autoFocus:E.bool,classes:E.object,color:E.oneOfType([E.oneOf(["primary","secondary"]),E.string]),components:E.shape({Input:E.elementType,Root:E.elementType}),componentsProps:E.shape({input:E.object,root:E.object}),defaultValue:E.any,disabled:E.bool,disableUnderline:E.bool,endAdornment:E.node,error:E.bool,fullWidth:E.bool,id:E.string,inputComponent:E.elementType,inputProps:E.object,inputRef:Cf,margin:E.oneOf(["dense","none"]),maxRows:E.oneOfType([E.number,E.string]),minRows:E.oneOfType([E.number,E.string]),multiline:E.bool,name:E.string,onChange:E.func,placeholder:E.string,readOnly:E.bool,required:E.bool,rows:E.oneOfType([E.number,E.string]),slotProps:E.shape({input:E.object,root:E.object}),slots:E.shape({input:E.elementType,root:E.elementType}),startAdornment:E.node,sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),type:E.string,value:E.any};LF.muiName="Input";const mK=LF;function _me(t){return nn("MuiInputLabel",t)}fn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Sme=["disableAnimation","margin","shrink","variant","className"],wme=t=>{const{classes:e,formControl:r,size:n,shrink:a,disableAnimation:i,variant:o,required:s}=t,u=_n({root:["root",r&&"formControl",!i&&"animated",a&&"shrink",n==="small"&&"sizeSmall",o],asterisk:[s&&"asterisk"]},_me,e);return oe({},e,u)},Tme=nt(Zge,{shouldForwardProp:t=>Af(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${d1.asterisk}`]:e.asterisk},e.root,r.formControl&&e.formControl,r.size==="small"&&e.sizeSmall,r.shrink&&e.shrink,!r.disableAnimation&&e.animated,e[r.variant]]}})(({theme:t,ownerState:e})=>oe({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},e.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},e.size==="small"&&{transform:"translate(0, 17px) scale(1)"},e.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!e.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},e.variant==="filled"&&oe({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},e.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},e.shrink&&oe({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},e.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),e.variant==="outlined"&&oe({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},e.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},e.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))),yK=Y.forwardRef(function(e,r){const n=hn({name:"MuiInputLabel",props:e}),{disableAnimation:a=!1,shrink:i,className:o}=n,s=Gt(n,Sme),l=$0();let u=i;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=z0({props:n,muiFormControl:l,states:["size","variant","required"]}),d=oe({},n,{disableAnimation:a,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),p=wme(d);return re.jsx(Tme,oe({"data-shrink":u,ownerState:d,ref:r,className:ar(p.root,o)},s,{classes:p}))});yK.propTypes={children:E.node,classes:E.object,className:E.string,color:E.oneOfType([E.oneOf(["error","info","primary","secondary","success","warning"]),E.string]),disableAnimation:E.bool,disabled:E.bool,error:E.bool,focused:E.bool,margin:E.oneOf(["dense"]),required:E.bool,shrink:E.bool,size:E.oneOfType([E.oneOf(["normal","small"]),E.string]),sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),variant:E.oneOf(["filled","outlined","standard"])};const Cme=yK;function Ame(t){return nn("MuiLinearProgress",t)}fn("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Eme=["className","color","value","valueBuffer","variant"];let F0=t=>t,rG,nG,aG,iG,oG,sG;const Hz=4,Rme=Ch(rG||(rG=F0` 0% { left: -35%; right: 100%; } 60% { left: 100%; right: -90%; } 100% { left: 100%; right: -90%; } `)),Mme=Ch(nG||(nG=F0` 0% { left: -200%; right: 100%; } 60% { left: 107%; right: -8%; } 100% { left: 107%; right: -8%; } `)),Dme=Ch(aG||(aG=F0` 0% { opacity: 1; background-position: 0 -23px; } 60% { opacity: 0; background-position: 0 -23px; } 100% { opacity: 1; background-position: -200px -23px; } `)),Ime=t=>{const{classes:e,variant:r,color:n}=t,a={root:["root",`color${zt(n)}`,r],dashed:["dashed",`dashedColor${zt(n)}`],bar1:["bar",`barColor${zt(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${zt(n)}`,r==="buffer"&&`color${zt(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return _n(a,Ame,e)},OF=(t,e)=>e==="inherit"?"currentColor":t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?bF(t.palette[e].main,.62):yF(t.palette[e].main,.5),Pme=nt("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${zt(r.color)}`],e[r.variant]]}})(({ownerState:t,theme:e})=>oe({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:OF(e,t.color)},t.color==="inherit"&&t.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},t.variant==="buffer"&&{backgroundColor:"transparent"},t.variant==="query"&&{transform:"rotate(180deg)"})),Lme=nt("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${zt(r.color)}`]]}})(({ownerState:t,theme:e})=>{const r=OF(e,t.color);return oe({position:"absolute",marginTop:0,height:"100%",width:"100%"},t.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},N0(iG||(iG=F0` animation: ${0} 3s infinite linear; `),Dme)),Ome=nt("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e[`barColor${zt(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})(({ownerState:t,theme:e})=>oe({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:t.color==="inherit"?"currentColor":(e.vars||e).palette[t.color].main},t.variant==="determinate"&&{transition:`transform .${Hz}s linear`},t.variant==="buffer"&&{zIndex:1,transition:`transform .${Hz}s linear`}),({ownerState:t})=>(t.variant==="indeterminate"||t.variant==="query")&&N0(oG||(oG=F0` width: auto; animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; `),Rme)),kme=nt("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e[`barColor${zt(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})(({ownerState:t,theme:e})=>oe({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},t.variant!=="buffer"&&{backgroundColor:t.color==="inherit"?"currentColor":(e.vars||e).palette[t.color].main},t.color==="inherit"&&{opacity:.3},t.variant==="buffer"&&{backgroundColor:OF(e,t.color),transition:`transform .${Hz}s linear`}),({ownerState:t})=>(t.variant==="indeterminate"||t.variant==="query")&&N0(sG||(sG=F0` width: auto; animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; `),Mme)),bK=Y.forwardRef(function(e,r){const n=hn({props:e,name:"MuiLinearProgress"}),{className:a,color:i="primary",value:o,valueBuffer:s,variant:l="indeterminate"}=n,u=Gt(n,Eme),c=oe({},n,{color:i,variant:l}),d=Ime(c),p=Eh(),v={},g={bar1:{},bar2:{}};if(l==="determinate"||l==="buffer")if(o!==void 0){v["aria-valuenow"]=Math.round(o),v["aria-valuemin"]=0,v["aria-valuemax"]=100;let m=o-100;p.direction==="rtl"&&(m=-m),g.bar1.transform=`translateX(${m}%)`}else console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(l==="buffer")if(s!==void 0){let m=(s||0)-100;p.direction==="rtl"&&(m=-m),g.bar2.transform=`translateX(${m}%)`}else console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return re.jsxs(Pme,oe({className:ar(d.root,a),ownerState:c,role:"progressbar"},v,{ref:r},u,{children:[l==="buffer"?re.jsx(Lme,{className:d.dashed,ownerState:c}):null,re.jsx(Ome,{className:d.bar1,ownerState:c,style:g.bar1}),l==="determinate"?null:re.jsx(kme,{className:d.bar2,ownerState:c,style:g.bar2})]}))});bK.propTypes={classes:E.object,className:E.string,color:E.oneOfType([E.oneOf(["inherit","primary","secondary"]),E.string]),sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),value:E.number,valueBuffer:E.number,variant:E.oneOf(["buffer","determinate","indeterminate","query"])};const Nme=bK,xK=Y.createContext({});xK.displayName="ListContext";const Bme=xK;function zme(t){return nn("MuiList",t)}fn("MuiList",["root","padding","dense","subheader"]);const $me=["children","className","component","dense","disablePadding","subheader"],Fme=t=>{const{classes:e,disablePadding:r,dense:n,subheader:a}=t;return _n({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},zme,e)},Vme=nt("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})(({ownerState:t})=>oe({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})),_K=Y.forwardRef(function(e,r){const n=hn({props:e,name:"MuiList"}),{children:a,className:i,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=Gt(n,$me),d=Y.useMemo(()=>({dense:s}),[s]),p=oe({},n,{component:o,dense:s,disablePadding:l}),v=Fme(p);return re.jsx(Bme.Provider,{value:d,children:re.jsxs(Vme,oe({as:o,className:ar(v.root,i),ref:r,ownerState:p},c,{children:[u,a]}))})});_K.propTypes={children:E.node,classes:E.object,className:E.string,component:E.elementType,dense:E.bool,disablePadding:E.bool,subheader:E.node,sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object])};const Ume=_K,Wme=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function bk(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function lG(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function SK(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.indexOf(e.keys.join(""))===0}function p_(t,e,r,n,a,i){let o=!1,s=a(t,e,e?r:!1);for(;s;){if(s===t.firstChild){if(o)return!1;o=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!SK(s,i)||l)s=a(t,s,r);else return s.focus(),!0}return!1}const wK=Y.forwardRef(function(e,r){const{actions:n,autoFocus:a=!1,autoFocusItem:i=!1,children:o,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=Gt(e,Wme),v=Y.useRef(null),g=Y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});m0(()=>{a&&v.current.focus()},[a]),Y.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(T,A)=>{const M=!v.current.style.width;if(T.clientHeight<v.current.clientHeight&&M){const D=`${KX(us(T))}px`;v.current.style[A.direction==="rtl"?"paddingLeft":"paddingRight"]=D,v.current.style.width=`calc(100% + ${D})`}return v.current}}),[]);const m=T=>{const A=v.current,M=T.key,D=us(A).activeElement;if(M==="ArrowDown")T.preventDefault(),p_(A,D,u,l,bk);else if(M==="ArrowUp")T.preventDefault(),p_(A,D,u,l,lG);else if(M==="Home")T.preventDefault(),p_(A,null,u,l,bk);else if(M==="End")T.preventDefault(),p_(A,null,u,l,lG);else if(M.length===1){const P=g.current,O=M.toLowerCase(),k=performance.now();P.keys.length>0&&(k-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&O!==P.keys[0]&&(P.repeating=!1)),P.lastTime=k,P.keys.push(O);const N=D&&!P.repeating&&SK(D,P);P.previousKeyMatched&&(N||p_(A,D,!1,l,bk,P))?T.preventDefault():P.previousKeyMatched=!1}c&&c(T)},x=Bo(v,r);let _=-1;Y.Children.forEach(o,(T,A)=>{Y.isValidElement(T)&&(ng.isFragment(T)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(` `)),T.props.disabled||(d==="selectedMenu"&&T.props.selected||_===-1)&&(_=A))});const w=Y.Children.map(o,(T,A)=>{if(A===_){const M={};return i&&(M.autoFocus=!0),T.props.tabIndex===void 0&&d==="selectedMenu"&&(M.tabIndex=0),Y.cloneElement(T,M)}return T});return re.jsx(Ume,oe({role:"menu",ref:x,className:s,onKeyDown:m,tabIndex:a?0:-1},p,{children:w}))});wK.propTypes={autoFocus:E.bool,autoFocusItem:E.bool,children:E.node,className:E.string,disabledItemsFocusable:E.bool,disableListWrap:E.bool,onKeyDown:E.func,variant:E.oneOf(["menu","selectedMenu"])};const Hme=wK;function Gme(t){return nn("MuiPopover",t)}fn("MuiPopover",["root","paper"]);const jme=["onEntering"],Yme=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function uG(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function cG(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function fG(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function UE(t){return typeof t=="function"?t():t}const qme=t=>{const{classes:e}=t;return _n({root:["root"],paper:["paper"]},Gme,e)},Xme=nt(_ge,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Zme=nt(TF,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),TK=Y.forwardRef(function(e,r){const n=hn({props:e,name:"MuiPopover"}),{action:a,anchorEl:i,anchorOrigin:o={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:u,className:c,container:d,elevation:p=8,marginThreshold:v=16,open:g,PaperProps:m={},transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:_=dme,transitionDuration:w="auto",TransitionProps:{onEntering:T}={}}=n,A=Gt(n.TransitionProps,jme),M=Gt(n,Yme),D=Y.useRef(),P=Bo(D,m.ref),O=oe({},n,{anchorOrigin:o,anchorReference:l,elevation:p,marginThreshold:v,PaperProps:m,transformOrigin:x,TransitionComponent:_,transitionDuration:w,TransitionProps:A}),k=qme(O),N=Y.useCallback(()=>{if(l==="anchorPosition")return s||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.'),s;const se=UE(i),le=se&&se.nodeType===1?se:us(D.current).body,be=le.getBoundingClientRect();{const Me=le.getBoundingClientRect();Me.top===0&&Me.left===0&&Me.right===0&&Me.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` `))}return{top:be.top+uG(be,o.vertical),left:be.left+cG(be,o.horizontal)}},[i,o.horizontal,o.vertical,s,l]),$=Y.useCallback(se=>({vertical:uG(se,x.vertical),horizontal:cG(se,x.horizontal)}),[x.horizontal,x.vertical]),H=Y.useCallback(se=>{const le={width:se.offsetWidth,height:se.offsetHeight},be=$(le);if(l==="none")return{top:null,left:null,transformOrigin:fG(be)};const Me=N();let Se=Me.top-be.vertical,Ue=Me.left-be.horizontal;const Xe=Se+le.height,st=Ue+le.width,$e=ag(UE(i)),Be=$e.innerHeight-v,et=$e.innerWidth-v;if(Se<v){const de=Se-v;Se-=de,be.vertical+=de}else if(Xe>Be){const de=Xe-Be;Se-=de,be.vertical+=de}if(le.height>Be&&le.height&&Be&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${le.height-Be}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(` `)),Ue<v){const de=Ue-v;Ue-=de,be.horizontal+=de}else if(st>et){const de=st-et;Ue-=de,be.horizontal+=de}return{top:`${Math.round(Se)}px`,left:`${Math.round(Ue)}px`,transformOrigin:fG(be)}},[i,l,N,$,v]),[F,W]=Y.useState(g),j=Y.useCallback(()=>{const se=D.current;if(!se)return;const le=H(se);le.top!==null&&(se.style.top=le.top),le.left!==null&&(se.style.left=le.left),se.style.transformOrigin=le.transformOrigin,W(!0)},[H]),X=(se,le)=>{T&&T(se,le),j()},te=()=>{W(!1)};Y.useEffect(()=>{g&&j()}),Y.useImperativeHandle(a,()=>g?{updatePosition:()=>{j()}}:null,[g,j]),Y.useEffect(()=>{if(!g)return;const se=ZX(()=>{j()}),le=ag(i);return le.addEventListener("resize",se),()=>{se.clear(),le.removeEventListener("resize",se)}},[i,g,j]);let J=w;w==="auto"&&!_.muiSupportAuto&&(J=void 0);const ie=d||(i?us(UE(i)).body:void 0);return re.jsx(Xme,oe({BackdropProps:{invisible:!0},className:ar(k.root,c),container:ie,open:g,ref:r,ownerState:O},M,{children:re.jsx(_,oe({appear:!0,in:g,onEntering:X,onExited:te,timeout:J},A,{children:re.jsx(Zme,oe({elevation:p},m,{ref:P,className:ar(k.paper,m.className)},F?void 0:{style:oe({},m.style,{opacity:0})},{ownerState:O,children:u}))}))}))});TK.propTypes={action:Cf,anchorEl:Th(E.oneOfType([g0,E.func]),t=>{if(t.open&&(!t.anchorReference||t.anchorReference==="anchorEl")){const e=UE(t.anchorEl);if(e&&e.nodeType===1){const r=e.getBoundingClientRect();if(r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` `))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element instance but it's \`${e}\` instead.`].join(` `))}return null}),anchorOrigin:E.shape({horizontal:E.oneOfType([E.oneOf(["center","left","right"]),E.number]).isRequired,vertical:E.oneOfType([E.oneOf(["bottom","center","top"]),E.number]).isRequired}),anchorPosition:E.shape({left:E.number.isRequired,top:E.number.isRequired}),anchorReference:E.oneOf(["anchorEl","anchorPosition","none"]),children:E.node,classes:E.object,className:E.string,container:E.oneOfType([g0,E.func]),elevation:eZ,marginThreshold:E.number,onClose:E.func,open:E.bool.isRequired,PaperProps:E.shape({component:eF}),sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),transformOrigin:E.shape({horizontal:E.oneOfType([E.oneOf(["center","left","right"]),E.number]).isRequired,vertical:E.oneOfType([E.oneOf(["bottom","center","top"]),E.number]).isRequired}),TransitionComponent:E.elementType,transitionDuration:E.oneOfType([E.oneOf(["auto"]),E.number,E.shape({appear:E.number,enter:E.number,exit:E.number})]),TransitionProps:E.object};const Kme=TK;function Qme(t){return nn("MuiMenu",t)}fn("MuiMenu",["root","paper","list"]);const Jme=["onEntering"],eye=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],tye={vertical:"top",horizontal:"right"},rye={vertical:"top",horizontal:"left"},nye=t=>{const{classes:e}=t;return _n({root:["root"],paper:["paper"],list:["list"]},Qme,e)},aye=nt(Kme,{shouldForwardProp:t=>Af(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),iye=nt(TF,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),oye=nt(Hme,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),CK=Y.forwardRef(function(e,r){const n=hn({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:i,disableAutoFocusItem:o=!1,MenuListProps:s={},onClose:l,open:u,PaperProps:c={},PopoverClasses:d,transitionDuration:p="auto",TransitionProps:{onEntering:v}={},variant:g="selectedMenu"}=n,m=Gt(n.TransitionProps,Jme),x=Gt(n,eye),_=Eh(),w=_.direction==="rtl",T=oe({},n,{autoFocus:a,disableAutoFocusItem:o,MenuListProps:s,onEntering:v,PaperProps:c,transitionDuration:p,TransitionProps:m,variant:g}),A=nye(T),M=a&&!o&&u,D=Y.useRef(null),P=(N,$)=>{D.current&&D.current.adjustStyleForScrollbar(N,_),v&&v(N,$)},O=N=>{N.key==="Tab"&&(N.preventDefault(),l&&l(N,"tabKeyDown"))};let k=-1;return Y.Children.map(i,(N,$)=>{Y.isValidElement(N)&&(ng.isFragment(N)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(` `)),N.props.disabled||(g==="selectedMenu"&&N.props.selected||k===-1)&&(k=$))}),re.jsx(aye,oe({onClose:l,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?tye:rye,PaperProps:oe({component:iye},c,{classes:oe({},c.classes,{root:A.paper})}),className:A.root,open:u,ref:r,transitionDuration:p,TransitionProps:oe({onEntering:P},m),ownerState:T},x,{classes:d,children:re.jsx(oye,oe({onKeyDown:O,actions:D,autoFocus:a&&(k===-1||o),autoFocusItem:M,variant:g},s,{className:ar(A.list,s.className),children:i}))}))});CK.propTypes={anchorEl:E.oneOfType([g0,E.func]),autoFocus:E.bool,children:E.node,classes:E.object,disableAutoFocusItem:E.bool,MenuListProps:E.object,onClose:E.func,open:E.bool.isRequired,PaperProps:E.object,PopoverClasses:E.object,sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),transitionDuration:E.oneOfType([E.oneOf(["auto"]),E.number,E.shape({appear:E.number,enter:E.number,exit:E.number})]),TransitionProps:E.object,variant:E.oneOf(["menu","selectedMenu"])};const AK=CK;function sye(t){return nn("MuiNativeSelect",t)}const lye=fn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),kF=lye,uye=["className","disabled","IconComponent","inputRef","variant"],cye=t=>{const{classes:e,variant:r,disabled:n,multiple:a,open:i}=t,o={select:["select",r,n&&"disabled",a&&"multiple"],icon:["icon",`icon${zt(r)}`,i&&"iconOpen",n&&"disabled"]};return _n(o,sye,e)},EK=({ownerState:t,theme:e})=>oe({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":oe({},e.vars?{backgroundColor:`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:e.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${kF.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},t.variant==="filled"&&{"&&&":{paddingRight:32}},t.variant==="outlined"&&{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}),fye=nt("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Af,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],{[`&.${kF.multiple}`]:e.multiple}]}})(EK),RK=({ownerState:t,theme:e})=>oe({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${kF.disabled}`]:{color:(e.vars||e).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},t.variant==="filled"&&{right:7},t.variant==="outlined"&&{right:7}),dye=nt("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${zt(r.variant)}`],r.open&&e.iconOpen]}})(RK),MK=Y.forwardRef(function(e,r){const{className:n,disabled:a,IconComponent:i,inputRef:o,variant:s="standard"}=e,l=Gt(e,uye),u=oe({},e,{disabled:a,variant:s}),c=cye(u);return re.jsxs(Y.Fragment,{children:[re.jsx(fye,oe({ownerState:u,className:ar(c.select,n),disabled:a,ref:o||r},l)),e.multiple?null:re.jsx(dye,{as:i,ownerState:u,className:c.icon})]})});MK.propTypes={children:E.node,classes:E.object,className:E.string,disabled:E.bool,IconComponent:E.elementType.isRequired,inputRef:Cf,multiple:E.bool,name:E.string,onChange:E.func,value:E.any,variant:E.oneOf(["standard","outlined","filled"])};const hye=MK;var dG;const pye=["children","classes","className","label","notched"],vye=nt("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),gye=nt("legend")(({ownerState:t,theme:e})=>oe({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},t.withLabel&&oe({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})})));function DK(t){const{className:e,label:r,notched:n}=t,a=Gt(t,pye),i=r!=null&&r!=="",o=oe({},t,{notched:n,withLabel:i});return re.jsx(vye,oe({"aria-hidden":!0,className:e,ownerState:o},a,{children:re.jsx(gye,{ownerState:o,children:i?re.jsx("span",{children:r}):dG||(dG=re.jsx("span",{className:"notranslate",children:""}))})}))}DK.propTypes={children:E.node,classes:E.object,className:E.string,label:E.node,notched:E.bool.isRequired,style:E.object};const mye=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],yye=t=>{const{classes:e}=t,n=_n({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Tve,e);return oe({},e,n)},bye=nt(dD,{shouldForwardProp:t=>Af(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:cD})(({theme:t,ownerState:e})=>{const r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return oe({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Dd.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Dd.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Dd.focused} .${Dd.notchedOutline}`]:{borderColor:(t.vars||t).palette[e.color].main,borderWidth:2},[`&.${Dd.error} .${Dd.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Dd.disabled} .${Dd.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}},e.startAdornment&&{paddingLeft:14},e.endAdornment&&{paddingRight:14},e.multiline&&oe({padding:"16.5px 14px"},e.size==="small"&&{padding:"8.5px 14px"}))}),xye=nt(DK,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}}),_ye=nt(hD,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:fD})(({theme:t,ownerState:e})=>oe({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},e.size==="small"&&{padding:"8.5px 14px"},e.multiline&&{padding:0},e.startAdornment&&{paddingLeft:0},e.endAdornment&&{paddingRight:0})),NF=Y.forwardRef(function(e,r){var n,a,i,o,s;const l=hn({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:v=!1,notched:g,slots:m={},type:x="text"}=l,_=Gt(l,mye),w=yye(l),T=$0(),A=z0({props:l,muiFormControl:T,states:["required"]}),M=oe({},l,{color:A.color||"primary",disabled:A.disabled,error:A.error,focused:A.focused,formControl:T,fullWidth:c,hiddenLabel:A.hiddenLabel,multiline:v,size:A.size,type:x}),D=(n=(a=m.root)!=null?a:u.Root)!=null?n:bye,P=(i=(o=m.input)!=null?o:u.Input)!=null?i:_ye;return re.jsx(RF,oe({slots:{root:D,input:P},renderSuffix:O=>re.jsx(xye,{ownerState:M,className:w.notchedOutline,label:p!=null&&p!==""&&A.required?s||(s=re.jsxs(Y.Fragment,{children:[p," ","*"]})):p,notched:typeof g<"u"?g:Boolean(O.startAdornment||O.filled||O.focused)}),fullWidth:c,inputComponent:d,multiline:v,ref:r,type:x},_,{classes:oe({},w,{notchedOutline:null})}))});NF.propTypes={autoComplete:E.string,autoFocus:E.bool,classes:E.object,color:E.oneOfType([E.oneOf(["primary","secondary"]),E.string]),components:E.shape({Input:E.elementType,Root:E.elementType}),defaultValue:E.any,disabled:E.bool,endAdornment:E.node,error:E.bool,fullWidth:E.bool,id:E.string,inputComponent:E.elementType,inputProps:E.object,inputRef:Cf,label:E.node,margin:E.oneOf(["dense","none"]),maxRows:E.oneOfType([E.number,E.string]),minRows:E.oneOfType([E.number,E.string]),multiline:E.bool,name:E.string,notched:E.bool,onChange:E.func,placeholder:E.string,readOnly:E.bool,required:E.bool,rows:E.oneOfType([E.number,E.string]),slots:E.shape({input:E.elementType,root:E.elementType}),startAdornment:E.node,sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),type:E.string,value:E.any};NF.muiName="Input";const IK=NF;function Sye(t){return nn("MuiSelect",t)}const wye=fn("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),DA=wye;var hG;const Tye=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Cye=nt("div",{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${DA.select}`]:e.select},{[`&.${DA.select}`]:e[r.variant]},{[`&.${DA.multiple}`]:e.multiple}]}})(EK,{[`&.${DA.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Aye=nt("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${zt(r.variant)}`],r.open&&e.iconOpen]}})(RK),Eye=nt("input",{shouldForwardProp:t=>jhe(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function pG(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function Rye(t){return t==null||typeof t=="string"&&!t.trim()}const Mye=t=>{const{classes:e,variant:r,disabled:n,multiple:a,open:i}=t,o={select:["select",r,n&&"disabled",a&&"multiple"],icon:["icon",`icon${zt(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return _n(o,Sye,e)},PK=Y.forwardRef(function(e,r){const{"aria-describedby":n,"aria-label":a,autoFocus:i,autoWidth:o,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,IconComponent:v,inputRef:g,labelId:m,MenuProps:x={},multiple:_,name:w,onBlur:T,onChange:A,onClose:M,onFocus:D,onOpen:P,open:O,readOnly:k,renderValue:N,SelectDisplayProps:$={},tabIndex:H,value:F,variant:W="standard"}=e,j=Gt(e,Tye),[X,te]=r4({controlled:F,default:c,name:"Select"}),[J,ie]=r4({controlled:O,default:u,name:"Select"}),se=Y.useRef(null),le=Y.useRef(null),[be,Me]=Y.useState(null),{current:Se}=Y.useRef(O!=null),[Ue,Xe]=Y.useState(),st=Bo(r,g),$e=Y.useCallback(We=>{le.current=We,We&&Me(We)},[]),Be=be==null?void 0:be.parentNode;Y.useImperativeHandle(st,()=>({focus:()=>{le.current.focus()},node:se.current,value:X}),[X]),Y.useEffect(()=>{u&&J&&be&&!Se&&(Xe(o?null:Be.clientWidth),le.current.focus())},[be,o]),Y.useEffect(()=>{i&&le.current.focus()},[i]),Y.useEffect(()=>{if(!m)return;const We=us(le.current).getElementById(m);if(We){const Ae=()=>{getSelection().isCollapsed&&le.current.focus()};return We.addEventListener("click",Ae),()=>{We.removeEventListener("click",Ae)}}},[m]);const et=(We,Ae)=>{We?P&&P(Ae):M&&M(Ae),Se||(Xe(o?null:Be.clientWidth),ie(We))},de=We=>{We.button===0&&(We.preventDefault(),le.current.focus(),et(!0,We))},xe=We=>{et(!1,We)},xt=Y.Children.toArray(s),Ie=We=>{const Ae=xt.map(rt=>rt.props.value).indexOf(We.target.value);if(Ae===-1)return;const Pe=xt[Ae];te(Pe.props.value),A&&A(We,Pe)},Ct=We=>Ae=>{let Pe;if(Ae.currentTarget.hasAttribute("tabindex")){if(_){Pe=Array.isArray(X)?X.slice():[];const rt=X.indexOf(We.props.value);rt===-1?Pe.push(We.props.value):Pe.splice(rt,1)}else Pe=We.props.value;if(We.props.onClick&&We.props.onClick(Ae),X!==Pe&&(te(Pe),A)){const rt=Ae.nativeEvent||Ae,gt=new rt.constructor(rt.type,rt);Object.defineProperty(gt,"target",{writable:!0,value:{value:Pe,name:w}}),A(gt,We)}_||et(!1,Ae)}},Ot=We=>{k||[" ","ArrowUp","ArrowDown","Enter"].indexOf(We.key)!==-1&&(We.preventDefault(),et(!0,We))},jt=be!==null&&J,nr=We=>{!jt&&T&&(Object.defineProperty(We,"target",{writable:!0,value:{value:X,name:w}}),T(We))};delete j["aria-invalid"];let Tr,Er;const Xt=[];let Sn=!1,zr=!1;(EF({value:X})||p)&&(N?Tr=N(X):Sn=!0);const ge=xt.map((We,Ae,Pe)=>{var rt,gt,cr,$r;if(!Y.isValidElement(We))return null;ng.isFragment(We)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(` `));let Rr;if(_){if(!Array.isArray(X))throw new Error("MUI: The `value` prop must be an array when using the `Select` component with `multiple`.");Rr=X.some(Dr=>pG(Dr,We.props.value)),Rr&&Sn&&Xt.push(We.props.children)}else Rr=pG(X,We.props.value),Rr&&Sn&&(Er=We.props.children);if(Rr&&(zr=!0),We.props.value===void 0)return Y.cloneElement(We,{"aria-readonly":!0,role:"option"});const Un=()=>{if(X)return Rr;const Dr=Pe.find(da=>{var ho;return(da==null||(ho=da.props)==null?void 0:ho.value)!==void 0&&da.props.disabled!==!0});return We===Dr?!0:Rr};return Y.cloneElement(We,{"aria-selected":Rr?"true":"false",onClick:Ct(We),onKeyUp:Dr=>{Dr.key===" "&&Dr.preventDefault(),We.props.onKeyUp&&We.props.onKeyUp(Dr)},role:"option",selected:((rt=Pe[0])==null||(gt=rt.props)==null?void 0:gt.value)===void 0||((cr=Pe[0])==null||($r=cr.props)==null?void 0:$r.disabled)===!0?Un():Rr,value:void 0,"data-value":We.props.value})});Y.useEffect(()=>{if(!zr&&!_&&X!==""){const We=xt.map(Ae=>Ae.props.value);console.warn([`MUI: You have provided an out-of-range value \`${X}\` for the select ${w?`(name="${w}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${We.filter(Ae=>Ae!=null).map(Ae=>`\`${Ae}\``).join(", ")||'""'}.`].join(` `))}},[zr,xt,_,w,X]),Sn&&(_?Xt.length===0?Tr=null:Tr=Xt.reduce((We,Ae,Pe)=>(We.push(Ae),Pe<Xt.length-1&&We.push(", "),We),[]):Tr=Er);let Ee=Ue;!o&&Se&&be&&(Ee=Be.clientWidth);let ke;typeof H<"u"?ke=H:ke=d?null:0;const Ge=$.id||(w?`mui-component-select-${w}`:void 0),Ke=oe({},e,{variant:W,value:X,open:jt}),ft=Mye(Ke);return re.jsxs(Y.Fragment,{children:[re.jsx(Cye,oe({ref:$e,tabIndex:ke,role:"button","aria-disabled":d?"true":void 0,"aria-expanded":jt?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[m,Ge].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:Ot,onMouseDown:d||k?null:de,onBlur:nr,onFocus:D},$,{ownerState:Ke,className:ar($.className,ft.select,l),id:Ge,children:Rye(Tr)?hG||(hG=re.jsx("span",{className:"notranslate",children:""})):Tr})),re.jsx(Eye,oe({value:Array.isArray(X)?X.join(","):X,name:w,ref:se,"aria-hidden":!0,onChange:Ie,tabIndex:-1,disabled:d,className:ft.nativeInput,autoFocus:i,ownerState:Ke},j)),re.jsx(Aye,{as:v,className:ft.icon,ownerState:Ke}),re.jsx(AK,oe({id:`menu-${w||""}`,anchorEl:Be,open:jt,onClose:xe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},x,{MenuListProps:oe({"aria-labelledby":m,role:"listbox",disableListWrap:!0},x.MenuListProps),PaperProps:oe({},x.PaperProps,{style:oe({minWidth:Ee},x.PaperProps!=null?x.PaperProps.style:null)}),children:ge}))]})});PK.propTypes={"aria-describedby":E.string,"aria-label":E.string,autoFocus:E.bool,autoWidth:E.bool,children:E.node,classes:E.object,className:E.string,defaultOpen:E.bool,defaultValue:E.any,disabled:E.bool,displayEmpty:E.bool,IconComponent:E.elementType.isRequired,inputRef:Cf,labelId:E.string,MenuProps:E.object,multiple:E.bool,name:E.string,onBlur:E.func,onChange:E.func,onClose:E.func,onFocus:E.func,onOpen:E.func,open:E.bool,readOnly:E.bool,renderValue:E.func,SelectDisplayProps:E.object,tabIndex:E.oneOfType([E.number,E.string]),type:E.any,value:E.any,variant:E.oneOf(["standard","outlined","filled"])};const Dye=PK;var vG,gG;const Iye=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Pye=t=>{const{classes:e}=t;return e},BF={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>Af(t)&&t!=="variant",slot:"Root"},Lye=nt(mK,BF)(""),Oye=nt(IK,BF)(""),kye=nt(fK,BF)(""),zF=Y.forwardRef(function(e,r){const n=hn({name:"MuiSelect",props:e}),{autoWidth:a=!1,children:i,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Rve,id:d,input:p,inputProps:v,label:g,labelId:m,MenuProps:x,multiple:_=!1,native:w=!1,onClose:T,onOpen:A,open:M,renderValue:D,SelectDisplayProps:P,variant:O="outlined"}=n,k=Gt(n,Iye),N=w?hye:Dye,$=$0(),F=z0({props:n,muiFormControl:$,states:["variant"]}).variant||O,W=p||{standard:vG||(vG=re.jsx(Lye,{})),outlined:re.jsx(Oye,{label:g}),filled:gG||(gG=re.jsx(kye,{}))}[F],j=oe({},n,{variant:F,classes:o}),X=Pye(j),te=Bo(r,W.ref);return re.jsx(Y.Fragment,{children:Y.cloneElement(W,oe({inputComponent:N,inputProps:oe({children:i,IconComponent:c,variant:F,type:void 0,multiple:_},w?{id:d}:{autoWidth:a,defaultOpen:l,displayEmpty:u,labelId:m,MenuProps:x,onClose:T,onOpen:A,open:M,renderValue:D,SelectDisplayProps:oe({id:d},P)},v,{classes:v?ls(X,v.classes):X},p?p.props.inputProps:{})},_&&w&&F==="outlined"?{notched:!0}:{},{ref:te,className:ar(W.props.className,s)},!p&&{variant:F},k))})});zF.propTypes={autoWidth:E.bool,children:E.node,classes:E.object,className:E.string,defaultOpen:E.bool,defaultValue:E.any,displayEmpty:E.bool,IconComponent:E.elementType,id:E.string,input:E.element,inputProps:E.object,label:E.node,labelId:E.string,MenuProps:E.object,multiple:E.bool,native:E.bool,onChange:E.func,onClose:E.func,onOpen:E.func,open:E.bool,renderValue:E.func,SelectDisplayProps:E.object,sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),value:E.oneOfType([E.oneOf([""]),E.any]),variant:E.oneOf(["filled","outlined","standard"])};zF.muiName="Select";const Nye=zF;function Bye(t){return nn("MuiTextField",t)}const zye=fn("MuiTextField",["root"]),Z6e=zye,$ye=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Fye={standard:mK,filled:fK,outlined:IK},Vye=t=>{const{classes:e}=t;return _n({root:["root"]},Bye,e)},Uye=nt(Bge,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),LK=Y.forwardRef(function(e,r){const n=hn({props:e,name:"MuiTextField"}),{autoComplete:a,autoFocus:i=!1,children:o,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:p,fullWidth:v=!1,helperText:g,id:m,InputLabelProps:x,inputProps:_,InputProps:w,inputRef:T,label:A,maxRows:M,minRows:D,multiline:P=!1,name:O,onBlur:k,onChange:N,onFocus:$,placeholder:H,required:F=!1,rows:W,select:j=!1,SelectProps:X,type:te,value:J,variant:ie="outlined"}=n,se=Gt(n,$ye),le=oe({},n,{autoFocus:i,color:l,disabled:c,error:d,fullWidth:v,multiline:P,required:F,select:j,variant:ie}),be=Vye(le);j&&!o&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Me={};ie==="outlined"&&(x&&typeof x.shrink<"u"&&(Me.notched=x.shrink),Me.label=A),j&&((!X||!X.native)&&(Me.id=void 0),Me["aria-describedby"]=void 0);const Se=bce(m),Ue=g&&Se?`${Se}-helper-text`:void 0,Xe=A&&Se?`${Se}-label`:void 0,st=Fye[ie],$e=re.jsx(st,oe({"aria-describedby":Ue,autoComplete:a,autoFocus:i,defaultValue:u,fullWidth:v,multiline:P,name:O,rows:W,maxRows:M,minRows:D,type:te,value:J,id:Se,inputRef:T,onBlur:k,onChange:N,onFocus:$,placeholder:H,inputProps:_},Me,w));return re.jsxs(Uye,oe({className:ar(be.root,s),disabled:c,error:d,fullWidth:v,ref:r,required:F,color:l,variant:ie,ownerState:le},se,{children:[A!=null&&A!==""&&re.jsx(Cme,oe({htmlFor:Se,id:Xe},x,{children:A})),j?re.jsx(Nye,oe({"aria-describedby":Ue,id:Se,labelId:Xe,value:J,input:$e},X,{children:o})):$e,g&&re.jsx(Wge,oe({id:Ue},p,{children:g}))]}))});LK.propTypes={autoComplete:E.string,autoFocus:E.bool,children:E.node,classes:E.object,className:E.string,color:E.oneOfType([E.oneOf(["primary","secondary","error","info","success","warning"]),E.string]),defaultValue:E.any,disabled:E.bool,error:E.bool,FormHelperTextProps:E.object,fullWidth:E.bool,helperText:E.node,id:E.string,InputLabelProps:E.object,inputProps:E.object,InputProps:E.object,inputRef:Cf,label:E.node,margin:E.oneOf(["dense","none","normal"]),maxRows:E.oneOfType([E.number,E.string]),minRows:E.oneOfType([E.number,E.string]),multiline:E.bool,name:E.string,onBlur:E.func,onChange:E.func,onFocus:E.func,placeholder:E.string,required:E.bool,rows:E.oneOfType([E.number,E.string]),select:E.bool,SelectProps:E.object,size:E.oneOfType([E.oneOf(["medium","small"]),E.string]),sx:E.oneOfType([E.arrayOf(E.oneOfType([E.func,E.object,E.bool])),E.func,E.object]),type:E.string,value:E.any,variant:E.oneOf(["filled","outlined","standard"])};const Wye=LK;/** * @remix-run/router v1.3.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function $1(){return $1=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},$1.apply(this,arguments)}var qd;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(qd||(qd={}));const mG="popstate";function Hye(t){t===void 0&&(t={});function e(n,a){let{pathname:i,search:o,hash:s}=n.location;return Gz("",{pathname:i,search:o,hash:s},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(n,a){return typeof a=="string"?a:S0(a)}return jye(e,r,null,t)}function Ia(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Gye(){return Math.random().toString(36).substr(2,8)}function yG(t,e){return{usr:t.state,key:t.key,idx:e}}function Gz(t,e,r,n){return r===void 0&&(r=null),$1({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?V0(e):e,{state:r,key:e&&e.key||n||Gye()})}function S0(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function V0(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function jye(t,e,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:i=!1}=n,o=a.history,s=qd.Pop,l=null,u=c();u==null&&(u=0,o.replaceState($1({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){s=qd.Pop;let x=c(),_=x==null?null:x-u;u=x,l&&l({action:s,location:m.location,delta:_})}function p(x,_){s=qd.Push;let w=Gz(m.location,x,_);r&&r(w,x),u=c()+1;let T=yG(w,u),A=m.createHref(w);try{o.pushState(T,"",A)}catch{a.location.assign(A)}i&&l&&l({action:s,location:m.location,delta:1})}function v(x,_){s=qd.Replace;let w=Gz(m.location,x,_);r&&r(w,x),u=c();let T=yG(w,u),A=m.createHref(w);o.replaceState(T,"",A),i&&l&&l({action:s,location:m.location,delta:0})}function g(x){let _=a.location.origin!=="null"?a.location.origin:a.location.href,w=typeof x=="string"?x:S0(x);return Ia(_,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,_)}let m={get action(){return s},get location(){return t(a,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(mG,d),l=x,()=>{a.removeEventListener(mG,d),l=null}},createHref(x){return e(a,x)},createURL:g,encodeLocation(x){let _=g(x);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:p,replace:v,go(x){return o.go(x)}};return m}var bG;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(bG||(bG={}));function Yye(t,e,r){r===void 0&&(r="/");let n=typeof e=="string"?V0(e):e,a=NK(n.pathname||"/",r);if(a==null)return null;let i=OK(t);qye(i);let o=null;for(let s=0;o==null&&s<i.length;++s)o=n0e(i[s],o0e(a));return o}function OK(t,e,r,n){e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(i,o,s)=>{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(Ia(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=ff([n,l.relativePath]),c=r.concat(l);i.children&&i.children.length>0&&(Ia(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),OK(i.children,e,c,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:t0e(u,i.index),routesMeta:c})};return t.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))a(i,o);else for(let l of kK(i.path))a(i,o,l)}),e}function kK(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,a=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return a?[i,""]:[i];let o=kK(n.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&s.push(...o),s.map(l=>t.startsWith("/")&&l===""?"/":l)}function qye(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:r0e(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Xye=/^:\w+$/,Zye=3,Kye=2,Qye=1,Jye=10,e0e=-2,xG=t=>t==="*";function t0e(t,e){let r=t.split("/"),n=r.length;return r.some(xG)&&(n+=e0e),e&&(n+=Kye),r.filter(a=>!xG(a)).reduce((a,i)=>a+(Xye.test(i)?Zye:i===""?Qye:Jye),n)}function r0e(t,e){return t.length===e.length&&t.slice(0,-1).every((n,a)=>n===e[a])?t[t.length-1]-e[e.length-1]:0}function n0e(t,e){let{routesMeta:r}=t,n={},a="/",i=[];for(let o=0;o<r.length;++o){let s=r[o],l=o===r.length-1,u=a==="/"?e:e.slice(a.length)||"/",c=a0e({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u);if(!c)return null;Object.assign(n,c.params);let d=s.route;i.push({params:n,pathname:ff([a,c.pathname]),pathnameBase:c0e(ff([a,c.pathnameBase])),route:d}),c.pathnameBase!=="/"&&(a=ff([a,c.pathnameBase]))}return i}function a0e(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=i0e(t.path,t.caseSensitive,t.end),a=e.match(r);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:n.reduce((u,c,d)=>{if(c==="*"){let p=s[d]||"";o=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}return u[c]=s0e(s[d]||"",c),u},{}),pathname:i,pathnameBase:o,pattern:t}}function i0e(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),vf(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(n.push(s),"/([^\\/]+)"));return t.endsWith("*")?(n.push("*"),a+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":t!==""&&t!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),n]}function o0e(t){try{return decodeURI(t)}catch(e){return vf(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function s0e(t,e){try{return decodeURIComponent(t)}catch(r){return vf(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),t}}function NK(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function vf(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function l0e(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:a=""}=typeof t=="string"?V0(t):t;return{pathname:r?r.startsWith("/")?r:u0e(r,e):e,search:f0e(n),hash:d0e(a)}}function u0e(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function xk(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function BK(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function zK(t,e,r,n){n===void 0&&(n=!1);let a;typeof t=="string"?a=V0(t):(a=$1({},t),Ia(!a.pathname||!a.pathname.includes("?"),xk("?","pathname","search",a)),Ia(!a.pathname||!a.pathname.includes("#"),xk("#","pathname","hash",a)),Ia(!a.search||!a.search.includes("#"),xk("#","search","hash",a)));let i=t===""||a.pathname==="",o=i?"/":a.pathname,s;if(n||o==null)s=r;else{let d=e.length-1;if(o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),d-=1;a.pathname=p.join("/")}s=d>=0?e[d]:"/"}let l=l0e(a,s),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const ff=t=>t.join("/").replace(/\/\/+/g,"/"),c0e=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),f0e=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,d0e=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function h0e(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}/** * React Router v6.8.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function jz(){return jz=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},jz.apply(this,arguments)}function p0e(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}const $K=typeof Object.is=="function"?Object.is:p0e,{useState:v0e,useEffect:g0e,useLayoutEffect:m0e,useDebugValue:y0e}=rg;let _G=!1,SG=!1;function b0e(t,e,r){_G||"startTransition"in rg&&(_G=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));const n=e();if(!SG){const o=e();$K(n,o)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),SG=!0)}const[{inst:a},i]=v0e({inst:{value:n,getSnapshot:e}});return m0e(()=>{a.value=n,a.getSnapshot=e,_k(a)&&i({inst:a})},[t,n,e]),g0e(()=>(_k(a)&&i({inst:a}),t(()=>{_k(a)&&i({inst:a})})),[t]),y0e(n),n}function _k(t){const e=t.getSnapshot,r=t.value;try{const n=e();return!$K(r,n)}catch{return!0}}function x0e(t,e,r){return e()}const _0e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",S0e=!_0e,w0e=S0e?x0e:b0e;"useSyncExternalStore"in rg&&(t=>t.useSyncExternalStore)(rg);const $F=Y.createContext(null);$F.displayName="DataRouter";const CS=Y.createContext(null);CS.displayName="DataRouterState";const T0e=Y.createContext(null);T0e.displayName="Await";const Rh=Y.createContext(null);Rh.displayName="Navigation";const AS=Y.createContext(null);AS.displayName="Location";const pc=Y.createContext({outlet:null,matches:[]});pc.displayName="Route";const FF=Y.createContext(null);FF.displayName="RouteError";function C0e(t,e){let{relative:r}=e===void 0?{}:e;U0()||Ia(!1,"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:a}=Y.useContext(Rh),{hash:i,pathname:o,search:s}=vD(t,{relative:r}),l=o;return n!=="/"&&(l=o==="/"?n:ff([n,o])),a.createHref({pathname:l,search:s,hash:i})}function U0(){return Y.useContext(AS)!=null}function Mh(){return U0()||Ia(!1,"useLocation() may be used only in the context of a <Router> component."),Y.useContext(AS).location}function VF(){U0()||Ia(!1,"useNavigate() may be used only in the context of a <Router> component.");let{basename:t,navigator:e}=Y.useContext(Rh),{matches:r}=Y.useContext(pc),{pathname:n}=Mh(),a=JSON.stringify(BK(r).map(s=>s.pathnameBase)),i=Y.useRef(!1);return Y.useEffect(()=>{i.current=!0}),Y.useCallback(function(s,l){if(l===void 0&&(l={}),vf(i.current,"You should call navigate() in a React.useEffect(), not when your component is first rendered."),!i.current)return;if(typeof s=="number"){e.go(s);return}let u=zK(s,JSON.parse(a),n,l.relative==="path");t!=="/"&&(u.pathname=u.pathname==="/"?t:ff([t,u.pathname])),(l.replace?e.replace:e.push)(u,l.state,l)},[t,e,a,n])}const A0e=Y.createContext(null);function E0e(t){let e=Y.useContext(pc).outlet;return e&&Y.createElement(A0e.Provider,{value:t},e)}function K6e(){let{matches:t}=Y.useContext(pc),e=t[t.length-1];return e?e.params:{}}function vD(t,e){let{relative:r}=e===void 0?{}:e,{matches:n}=Y.useContext(pc),{pathname:a}=Mh(),i=JSON.stringify(BK(n).map(o=>o.pathnameBase));return Y.useMemo(()=>zK(t,JSON.parse(i),a,r==="path"),[t,i,a,r])}function R0e(t,e){U0()||Ia(!1,"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=Y.useContext(Rh),n=Y.useContext(CS),{matches:a}=Y.useContext(pc),i=a[a.length-1],o=i?i.params:{},s=i?i.pathname:"/",l=i?i.pathnameBase:"/",u=i&&i.route;{let _=u&&u.path||"";B0e(s,!u||_.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+s+'" (under <Route path="'+_+'">) but the ')+`parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. `+('Please change the parent <Route path="'+_+'"> to <Route ')+('path="'+(_==="/"?"*":_+"/*")+'">.'))}let c=Mh(),d;if(e){var p;let _=typeof e=="string"?V0(e):e;l==="/"||(p=_.pathname)!=null&&p.startsWith(l)||Ia(!1,"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was "+('matched by all parent routes. The current pathname base is "'+l+'" ')+('but pathname "'+_.pathname+'" was given in the `location` prop.')),d=_}else d=c;let v=d.pathname||"/",g=l==="/"?v:v.slice(l.length)||"/",m=Yye(t,{pathname:g});vf(u||m!=null,'No routes matched location "'+d.pathname+d.search+d.hash+'" '),vf(m==null||m[m.length-1].route.element!==void 0,'Matched leaf route at location "'+d.pathname+d.search+d.hash+'" does not have an element. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.');let x=P0e(m&&m.map(_=>Object.assign({},_,{params:Object.assign({},o,_.params),pathname:ff([l,r.encodeLocation?r.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?l:ff([l,r.encodeLocation?r.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),a,n||void 0);return e&&x?Y.createElement(AS.Provider,{value:{location:jz({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:qd.Pop}},x):x}function M0e(){let t=N0e(),e=h0e(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n},o=null;return o=Y.createElement(Y.Fragment,null,Y.createElement("p",null,"💿 Hey developer 👋"),Y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",Y.createElement("code",{style:i},"errorElement")," props on ",Y.createElement("code",{style:i},"<Route>"))),Y.createElement(Y.Fragment,null,Y.createElement("h2",null,"Unexpected Application Error!"),Y.createElement("h3",{style:{fontStyle:"italic"}},e),r?Y.createElement("pre",{style:a},r):null,o)}class D0e extends Y.Component{constructor(e){super(e),this.state={location:e.location,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location?{error:e.error,location:e.location}:{error:e.error||r.error,location:r.location}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error?Y.createElement(pc.Provider,{value:this.props.routeContext},Y.createElement(FF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function I0e(t){let{routeContext:e,match:r,children:n}=t,a=Y.useContext($F);return a&&a.static&&a.staticContext&&r.route.errorElement&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),Y.createElement(pc.Provider,{value:e},n)}function P0e(t,e,r){if(e===void 0&&(e=[]),t==null)if(r!=null&&r.errors)t=r.matches;else return null;let n=t,a=r==null?void 0:r.errors;if(a!=null){let i=n.findIndex(o=>o.route.id&&(a==null?void 0:a[o.route.id]));i>=0||Ia(!1,"Could not find a matching route for the current errors: "+a),n=n.slice(0,Math.min(n.length,i+1))}return n.reduceRight((i,o,s)=>{let l=o.route.id?a==null?void 0:a[o.route.id]:null,u=r?o.route.errorElement||Y.createElement(M0e,null):null,c=e.concat(n.slice(0,s+1)),d=()=>Y.createElement(I0e,{match:o,routeContext:{outlet:i,matches:c}},l?u:o.route.element!==void 0?o.route.element:i);return r&&(o.route.errorElement||s===0)?Y.createElement(D0e,{location:r.location,component:u,error:l,children:d(),routeContext:{outlet:null,matches:c}}):d()},null)}var wG;(function(t){t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator"})(wG||(wG={}));var SR;(function(t){t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator"})(SR||(SR={}));function FK(t){return t+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function L0e(t){let e=Y.useContext(CS);return e||Ia(!1,FK(t)),e}function O0e(t){let e=Y.useContext(pc);return e||Ia(!1,FK(t)),e}function k0e(t){let e=O0e(t),r=e.matches[e.matches.length-1];return r.route.id||Ia(!1,t+' can only be used on routes that contain a unique "id"'),r.route.id}function N0e(){var t;let e=Y.useContext(FF),r=L0e(SR.UseRouteError),n=k0e(SR.UseRouteError);return e||((t=r.errors)==null?void 0:t[n])}const TG={};function B0e(t,e,r){!e&&!TG[t]&&(TG[t]=!0,vf(!1,r))}function VK(t){let{to:e,replace:r,state:n,relative:a}=t;U0()||Ia(!1,"<Navigate> may be used only in the context of a <Router> component."),vf(!Y.useContext(Rh).static,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let i=Y.useContext(CS),o=VF();return Y.useEffect(()=>{i&&i.navigation.state!=="idle"||o(e,{replace:r,state:n,relative:a})}),null}function Q6e(t){return E0e(t.context)}function z0e(t){let{basename:e="/",children:r=null,location:n,navigationType:a=qd.Pop,navigator:i,static:o=!1}=t;U0()&&Ia(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=Y.useMemo(()=>({basename:s,navigator:i,static:o}),[s,i,o]);typeof n=="string"&&(n=V0(n));let{pathname:u="/",search:c="",hash:d="",state:p=null,key:v="default"}=n,g=Y.useMemo(()=>{let m=NK(u,s);return m==null?null:{pathname:m,search:c,hash:d,state:p,key:v}},[s,u,c,d,p,v]);return vf(g!=null,'<Router basename="'+s+'"> is not able to match the URL '+('"'+u+c+d+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),g==null?null:Y.createElement(Rh.Provider,{value:l},Y.createElement(AS.Provider,{children:r,value:{location:g,navigationType:a}}))}var CG;(function(t){t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error"})(CG||(CG={}));new Promise(()=>{});/** * React Router DOM v6.8.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function og(){return og=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},og.apply(this,arguments)}function UF(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}const WE="get",Sk="application/x-www-form-urlencoded";function gD(t){return t!=null&&typeof t.tagName=="string"}function $0e(t){return gD(t)&&t.tagName.toLowerCase()==="button"}function F0e(t){return gD(t)&&t.tagName.toLowerCase()==="form"}function V0e(t){return gD(t)&&t.tagName.toLowerCase()==="input"}function U0e(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function W0e(t,e){return t.button===0&&(!e||e==="_self")&&!U0e(t)}function H0e(t,e,r){let n,a,i,o;if(F0e(t)){let c=r.submissionTrigger;n=r.method||t.getAttribute("method")||WE,a=r.action||t.getAttribute("action")||e,i=r.encType||t.getAttribute("enctype")||Sk,o=new FormData(t),c&&c.name&&o.append(c.name,c.value)}else if($0e(t)||V0e(t)&&(t.type==="submit"||t.type==="image")){let c=t.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');n=r.method||t.getAttribute("formmethod")||c.getAttribute("method")||WE,a=r.action||t.getAttribute("formaction")||c.getAttribute("action")||e,i=r.encType||t.getAttribute("formenctype")||c.getAttribute("enctype")||Sk,o=new FormData(c),t.name&&o.append(t.name,t.value)}else{if(gD(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');if(n=r.method||WE,a=r.action||e,i=r.encType||Sk,t instanceof FormData)o=t;else if(o=new FormData,t instanceof URLSearchParams)for(let[c,d]of t)o.append(c,d);else if(t!=null)for(let c of Object.keys(t))o.append(c,t[c])}let{protocol:s,host:l}=window.location;return{url:new URL(a,s+"//"+l),method:n.toLowerCase(),encType:i,formData:o}}const G0e=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],j0e=["aria-current","caseSensitive","className","end","style","to","children"],Y0e=["reloadDocument","replace","method","action","onSubmit","fetcherKey","routeId","relative","preventScrollReset"];function q0e(t){let{basename:e,children:r,window:n}=t,a=Y.useRef();a.current==null&&(a.current=Hye({window:n,v5Compat:!0}));let i=a.current,[o,s]=Y.useState({action:i.action,location:i.location});return Y.useLayoutEffect(()=>i.listen(s),[i]),Y.createElement(z0e,{basename:e,children:r,location:o.location,navigationType:o.action,navigator:i})}const X0e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",UK=Y.forwardRef(function(e,r){let{onClick:n,relative:a,reloadDocument:i,replace:o,state:s,target:l,to:u,preventScrollReset:c}=e,d=UF(e,G0e),p=typeof u=="string"?u:S0(u),v=/^[a-z+]+:\/\//i.test(p)||p.startsWith("//"),g=p,m=!1;if(X0e&&v){let T=new URL(window.location.href),A=p.startsWith("//")?new URL(T.protocol+p):new URL(p);A.origin===T.origin?g=A.pathname+A.search+A.hash:m=!0}let x=C0e(g,{relative:a}),_=J0e(g,{replace:o,state:s,target:l,preventScrollReset:c,relative:a});function w(T){n&&n(T),T.defaultPrevented||_(T)}return Y.createElement("a",og({},d,{href:v?p:x,onClick:m||i?n:w,ref:r,target:l}))});UK.displayName="Link";const WK=Y.forwardRef(function(e,r){let{"aria-current":n="page",caseSensitive:a=!1,className:i="",end:o=!1,style:s,to:l,children:u}=e,c=UF(e,j0e),d=vD(l,{relative:c.relative}),p=Mh(),v=Y.useContext(CS),{navigator:g}=Y.useContext(Rh),m=g.encodeLocation?g.encodeLocation(d).pathname:d.pathname,x=p.pathname,_=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;a||(x=x.toLowerCase(),_=_?_.toLowerCase():null,m=m.toLowerCase());let w=x===m||!o&&x.startsWith(m)&&x.charAt(m.length)==="/",T=_!=null&&(_===m||!o&&_.startsWith(m)&&_.charAt(m.length)==="/"),A=w?n:void 0,M;typeof i=="function"?M=i({isActive:w,isPending:T}):M=[i,w?"active":null,T?"pending":null].filter(Boolean).join(" ");let D=typeof s=="function"?s({isActive:w,isPending:T}):s;return Y.createElement(UK,og({},c,{"aria-current":A,className:M,ref:r,style:D,to:l}),typeof u=="function"?u({isActive:w,isPending:T}):u)});WK.displayName="NavLink";const Z0e=Y.forwardRef((t,e)=>Y.createElement(HK,og({},t,{ref:e})));Z0e.displayName="Form";const HK=Y.forwardRef((t,e)=>{let{reloadDocument:r,replace:n,method:a=WE,action:i,onSubmit:o,fetcherKey:s,routeId:l,relative:u,preventScrollReset:c}=t,d=UF(t,Y0e),p=ebe(s,l),v=a.toLowerCase()==="get"?"get":"post",g=GK(i,{relative:u}),m=x=>{if(o&&o(x),x.defaultPrevented)return;x.preventDefault();let _=x.nativeEvent.submitter,w=(_==null?void 0:_.getAttribute("formmethod"))||a;p(_||x.currentTarget,{method:w,replace:n,relative:u,preventScrollReset:c})};return Y.createElement("form",og({ref:e,method:v,action:g,onSubmit:r?o:m},d))});HK.displayName="FormImpl";var Yz;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmitImpl="useSubmitImpl",t.UseFetcher="useFetcher"})(Yz||(Yz={}));var AG;(function(t){t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(AG||(AG={}));function K0e(t){return t+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function Q0e(t){let e=Y.useContext($F);return e||Ia(!1,K0e(t)),e}function J0e(t,e){let{target:r,replace:n,state:a,preventScrollReset:i,relative:o}=e===void 0?{}:e,s=VF(),l=Mh(),u=vD(t,{relative:o});return Y.useCallback(c=>{if(W0e(c,r)){c.preventDefault();let d=n!==void 0?n:S0(l)===S0(u);s(t,{replace:d,state:a,preventScrollReset:i,relative:o})}},[l,s,u,n,a,r,t,i,o])}function ebe(t,e){let{router:r}=Q0e(Yz.UseSubmitImpl),n=GK();return Y.useCallback(function(a,i){if(i===void 0&&(i={}),typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");let{method:o,encType:s,formData:l,url:u}=H0e(a,n,i),c=u.pathname+u.search,d={replace:i.replace,preventScrollReset:i.preventScrollReset,formData:l,formMethod:o,formEncType:s};t?(e==null&&Ia(!1,"No routeId available for useFetcher()"),r.fetch(t,e,c,d)):r.navigate(c,d)},[n,r,t,e])}function GK(t,e){let{relative:r}=e===void 0?{}:e,{basename:n}=Y.useContext(Rh),a=Y.useContext(pc);a||Ia(!1,"useFormAction must be used inside a RouteContext");let[i]=a.matches.slice(-1),o=og({},vD(t||".",{relative:r})),s=Mh();if(t==null&&(o.search=s.search,o.hash=s.hash,i.route.index)){let l=new URLSearchParams(o.search);l.delete("index"),o.search=l.toString()?"?"+l.toString():""}return(!t||t===".")&&i.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:ff([n,o.pathname])),S0(o)}var wR={},tbe={get exports(){return wR},set exports(t){wR=t}},TR={},rbe={get exports(){return TR},set exports(t){TR=t}},CR={},nbe={get exports(){return CR},set exports(t){CR=t}},jK=function(e,r){return function(){for(var a=new Array(arguments.length),i=0;i<a.length;i++)a[i]=arguments[i];return e.apply(r,a)}},abe=jK,xg=Object.prototype.toString;function WF(t){return xg.call(t)==="[object Array]"}function qz(t){return typeof t>"u"}function ibe(t){return t!==null&&!qz(t)&&t.constructor!==null&&!qz(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function obe(t){return xg.call(t)==="[object ArrayBuffer]"}function sbe(t){return typeof FormData<"u"&&t instanceof FormData}function lbe(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function ube(t){return typeof t=="string"}function cbe(t){return typeof t=="number"}function YK(t){return t!==null&&typeof t=="object"}function HE(t){if(xg.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function fbe(t){return xg.call(t)==="[object Date]"}function dbe(t){return xg.call(t)==="[object File]"}function hbe(t){return xg.call(t)==="[object Blob]"}function qK(t){return xg.call(t)==="[object Function]"}function pbe(t){return YK(t)&&qK(t.pipe)}function vbe(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function gbe(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function mbe(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function HF(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),WF(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.call(null,t[a],a,t)}function Xz(){var t={};function e(a,i){HE(t[i])&&HE(a)?t[i]=Xz(t[i],a):HE(a)?t[i]=Xz({},a):WF(a)?t[i]=a.slice():t[i]=a}for(var r=0,n=arguments.length;r<n;r++)HF(arguments[r],e);return t}function ybe(t,e,r){return HF(e,function(a,i){r&&typeof a=="function"?t[i]=abe(a,r):t[i]=a}),t}function bbe(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}var gs={isArray:WF,isArrayBuffer:obe,isBuffer:ibe,isFormData:sbe,isArrayBufferView:lbe,isString:ube,isNumber:cbe,isObject:YK,isPlainObject:HE,isUndefined:qz,isDate:fbe,isFile:dbe,isBlob:hbe,isFunction:qK,isStream:pbe,isURLSearchParams:vbe,isStandardBrowserEnv:mbe,forEach:HF,merge:Xz,extend:ybe,trim:gbe,stripBOM:bbe},py=gs;function EG(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var XK=function(e,r,n){if(!r)return e;var a;if(n)a=n(r);else if(py.isURLSearchParams(r))a=r.toString();else{var i=[];py.forEach(r,function(l,u){l===null||typeof l>"u"||(py.isArray(l)?u=u+"[]":l=[l],py.forEach(l,function(d){py.isDate(d)?d=d.toISOString():py.isObject(d)&&(d=JSON.stringify(d)),i.push(EG(u)+"="+EG(d))}))}),a=i.join("&")}if(a){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e},xbe=gs;function mD(){this.handlers=[]}mD.prototype.use=function(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};mD.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};mD.prototype.forEach=function(e){xbe.forEach(this.handlers,function(n){n!==null&&e(n)})};var _be=mD,Sbe=gs,wbe=function(e,r){Sbe.forEach(e,function(a,i){i!==r&&i.toUpperCase()===r.toUpperCase()&&(e[r]=a,delete e[i])})},ZK=function(e,r,n,a,i){return e.config=r,n&&(e.code=n),e.request=a,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},wk,RG;function KK(){if(RG)return wk;RG=1;var t=ZK;return wk=function(r,n,a,i,o){var s=new Error(r);return t(s,n,a,i,o)},wk}var Tk,MG;function Tbe(){if(MG)return Tk;MG=1;var t=KK();return Tk=function(r,n,a){var i=a.config.validateStatus;!a.status||!i||i(a.status)?r(a):n(t("Request failed with status code "+a.status,a.config,null,a.request,a))},Tk}var Ck,DG;function Cbe(){if(DG)return Ck;DG=1;var t=gs;return Ck=t.isStandardBrowserEnv()?function(){return{write:function(n,a,i,o,s,l){var u=[];u.push(n+"="+encodeURIComponent(a)),t.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),t.isString(o)&&u.push("path="+o),t.isString(s)&&u.push("domain="+s),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){var a=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Ck}var Ak,IG;function Abe(){return IG||(IG=1,Ak=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}),Ak}var Ek,PG;function Ebe(){return PG||(PG=1,Ek=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}),Ek}var Rk,LG;function Rbe(){if(LG)return Rk;LG=1;var t=Abe(),e=Ebe();return Rk=function(n,a){return n&&!t(a)?e(n,a):a},Rk}var Mk,OG;function Mbe(){if(OG)return Mk;OG=1;var t=gs,e=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Mk=function(n){var a={},i,o,s;return n&&t.forEach(n.split(` `),function(u){if(s=u.indexOf(":"),i=t.trim(u.substr(0,s)).toLowerCase(),o=t.trim(u.substr(s+1)),i){if(a[i]&&e.indexOf(i)>=0)return;i==="set-cookie"?a[i]=(a[i]?a[i]:[]).concat([o]):a[i]=a[i]?a[i]+", "+o:o}}),a},Mk}var Dk,kG;function Dbe(){if(kG)return Dk;kG=1;var t=gs;return Dk=t.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),a;function i(o){var s=o;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return a=i(window.location.href),function(s){var l=t.isString(s)?i(s):s;return l.protocol===a.protocol&&l.host===a.host}}():function(){return function(){return!0}}(),Dk}var Ik,NG;function yD(){if(NG)return Ik;NG=1;function t(e){this.message=e}return t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,Ik=t,Ik}var Pk,BG;function zG(){if(BG)return Pk;BG=1;var t=gs,e=Tbe(),r=Cbe(),n=XK,a=Rbe(),i=Mbe(),o=Dbe(),s=KK(),l=bD(),u=yD();return Pk=function(d){return new Promise(function(v,g){var m=d.data,x=d.headers,_=d.responseType,w;function T(){d.cancelToken&&d.cancelToken.unsubscribe(w),d.signal&&d.signal.removeEventListener("abort",w)}t.isFormData(m)&&delete x["Content-Type"];var A=new XMLHttpRequest;if(d.auth){var M=d.auth.username||"",D=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";x.Authorization="Basic "+btoa(M+":"+D)}var P=a(d.baseURL,d.url);A.open(d.method.toUpperCase(),n(P,d.params,d.paramsSerializer),!0),A.timeout=d.timeout;function O(){if(A){var N="getAllResponseHeaders"in A?i(A.getAllResponseHeaders()):null,$=!_||_==="text"||_==="json"?A.responseText:A.response,H={data:$,status:A.status,statusText:A.statusText,headers:N,config:d,request:A};e(function(W){v(W),T()},function(W){g(W),T()},H),A=null}}if("onloadend"in A?A.onloadend=O:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(O)},A.onabort=function(){A&&(g(s("Request aborted",d,"ECONNABORTED",A)),A=null)},A.onerror=function(){g(s("Network Error",d,null,A)),A=null},A.ontimeout=function(){var $=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",H=d.transitional||l.transitional;d.timeoutErrorMessage&&($=d.timeoutErrorMessage),g(s($,d,H.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",A)),A=null},t.isStandardBrowserEnv()){var k=(d.withCredentials||o(P))&&d.xsrfCookieName?r.read(d.xsrfCookieName):void 0;k&&(x[d.xsrfHeaderName]=k)}"setRequestHeader"in A&&t.forEach(x,function($,H){typeof m>"u"&&H.toLowerCase()==="content-type"?delete x[H]:A.setRequestHeader(H,$)}),t.isUndefined(d.withCredentials)||(A.withCredentials=!!d.withCredentials),_&&_!=="json"&&(A.responseType=d.responseType),typeof d.onDownloadProgress=="function"&&A.addEventListener("progress",d.onDownloadProgress),typeof d.onUploadProgress=="function"&&A.upload&&A.upload.addEventListener("progress",d.onUploadProgress),(d.cancelToken||d.signal)&&(w=function(N){A&&(g(!N||N&&N.type?new u("canceled"):N),A.abort(),A=null)},d.cancelToken&&d.cancelToken.subscribe(w),d.signal&&(d.signal.aborted?w():d.signal.addEventListener("abort",w))),m||(m=null),A.send(m)})},Pk}var Lk,$G;function bD(){if($G)return Lk;$G=1;var t=gs,e=wbe,r=ZK,n={"Content-Type":"application/x-www-form-urlencoded"};function a(l,u){!t.isUndefined(l)&&t.isUndefined(l["Content-Type"])&&(l["Content-Type"]=u)}function i(){var l;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(l=zG()),l}function o(l,u,c){if(t.isString(l))try{return(u||JSON.parse)(l),t.trim(l)}catch(d){if(d.name!=="SyntaxError")throw d}return(c||JSON.stringify)(l)}var s={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:i(),transformRequest:[function(u,c){return e(c,"Accept"),e(c,"Content-Type"),t.isFormData(u)||t.isArrayBuffer(u)||t.isBuffer(u)||t.isStream(u)||t.isFile(u)||t.isBlob(u)?u:t.isArrayBufferView(u)?u.buffer:t.isURLSearchParams(u)?(a(c,"application/x-www-form-urlencoded;charset=utf-8"),u.toString()):t.isObject(u)||c&&c["Content-Type"]==="application/json"?(a(c,"application/json"),o(u)):u}],transformResponse:[function(u){var c=this.transitional||s.transitional,d=c&&c.silentJSONParsing,p=c&&c.forcedJSONParsing,v=!d&&this.responseType==="json";if(v||p&&t.isString(u)&&u.length)try{return JSON.parse(u)}catch(g){if(v)throw g.name==="SyntaxError"?r(g,this,"E_JSON_PARSE"):g}return u}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(u){return u>=200&&u<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return t.forEach(["delete","get","head"],function(u){s.headers[u]={}}),t.forEach(["post","put","patch"],function(u){s.headers[u]=t.merge(n)}),Lk=s,Lk}var Ibe=gs,Pbe=bD(),Lbe=function(e,r,n){var a=this||Pbe;return Ibe.forEach(n,function(o){e=o.call(a,e,r)}),e},Ok,FG;function QK(){return FG||(FG=1,Ok=function(e){return!!(e&&e.__CANCEL__)}),Ok}var VG=gs,kk=Lbe,Obe=QK(),kbe=bD(),Nbe=yD();function Nk(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Nbe("canceled")}var Bbe=function(e){Nk(e),e.headers=e.headers||{},e.data=kk.call(e,e.data,e.headers,e.transformRequest),e.headers=VG.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),VG.forEach(["delete","get","head","post","put","patch","common"],function(a){delete e.headers[a]});var r=e.adapter||kbe.adapter;return r(e).then(function(a){return Nk(e),a.data=kk.call(e,a.data,a.headers,e.transformResponse),a},function(a){return Obe(a)||(Nk(e),a&&a.response&&(a.response.data=kk.call(e,a.response.data,a.response.headers,e.transformResponse))),Promise.reject(a)})},Qo=gs,JK=function(e,r){r=r||{};var n={};function a(c,d){return Qo.isPlainObject(c)&&Qo.isPlainObject(d)?Qo.merge(c,d):Qo.isPlainObject(d)?Qo.merge({},d):Qo.isArray(d)?d.slice():d}function i(c){if(Qo.isUndefined(r[c])){if(!Qo.isUndefined(e[c]))return a(void 0,e[c])}else return a(e[c],r[c])}function o(c){if(!Qo.isUndefined(r[c]))return a(void 0,r[c])}function s(c){if(Qo.isUndefined(r[c])){if(!Qo.isUndefined(e[c]))return a(void 0,e[c])}else return a(void 0,r[c])}function l(c){if(c in r)return a(e[c],r[c]);if(c in e)return a(void 0,e[c])}var u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return Qo.forEach(Object.keys(e).concat(Object.keys(r)),function(d){var p=u[d]||i,v=p(d);Qo.isUndefined(v)&&p!==l||(n[d]=v)}),n},Bk,UG;function eQ(){return UG||(UG=1,Bk={version:"0.24.0"}),Bk}var zbe=eQ().version,GF={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){GF[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var WG={};GF.transitional=function(e,r,n){function a(i,o){return"[Axios v"+zbe+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return function(i,o,s){if(e===!1)throw new Error(a(o," has been removed"+(r?" in "+r:"")));return r&&!WG[o]&&(WG[o]=!0,console.warn(a(o," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(i,o,s):!0}};function $be(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var n=Object.keys(t),a=n.length;a-- >0;){var i=n[a],o=e[i];if(o){var s=t[i],l=s===void 0||o(s,i,t);if(l!==!0)throw new TypeError("option "+i+" must be "+l);continue}if(r!==!0)throw Error("Unknown option "+i)}}var Fbe={assertOptions:$be,validators:GF},tQ=gs,Vbe=XK,HG=_be,GG=Bbe,xD=JK,rQ=Fbe,vy=rQ.validators;function ES(t){this.defaults=t,this.interceptors={request:new HG,response:new HG}}ES.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=xD(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&rQ.assertOptions(r,{silentJSONParsing:vy.transitional(vy.boolean),forcedJSONParsing:vy.transitional(vy.boolean),clarifyTimeoutError:vy.transitional(vy.boolean)},!1);var n=[],a=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(e)===!1||(a=a&&p.synchronous,n.unshift(p.fulfilled,p.rejected))});var i=[];this.interceptors.response.forEach(function(p){i.push(p.fulfilled,p.rejected)});var o;if(!a){var s=[GG,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(i),o=Promise.resolve(e);s.length;)o=o.then(s.shift(),s.shift());return o}for(var l=e;n.length;){var u=n.shift(),c=n.shift();try{l=u(l)}catch(d){c(d);break}}try{o=GG(l)}catch(d){return Promise.reject(d)}for(;i.length;)o=o.then(i.shift(),i.shift());return o};ES.prototype.getUri=function(e){return e=xD(this.defaults,e),Vbe(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};tQ.forEach(["delete","get","head","options"],function(e){ES.prototype[e]=function(r,n){return this.request(xD(n||{},{method:e,url:r,data:(n||{}).data}))}});tQ.forEach(["post","put","patch"],function(e){ES.prototype[e]=function(r,n,a){return this.request(xD(a||{},{method:e,url:r,data:n}))}});var Ube=ES,zk,jG;function Wbe(){if(jG)return zk;jG=1;var t=yD();function e(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(o){n=o});var a=this;this.promise.then(function(i){if(a._listeners){var o,s=a._listeners.length;for(o=0;o<s;o++)a._listeners[o](i);a._listeners=null}}),this.promise.then=function(i){var o,s=new Promise(function(l){a.subscribe(l),o=l}).then(i);return s.cancel=function(){a.unsubscribe(o)},s},r(function(o){a.reason||(a.reason=new t(o),n(a.reason))})}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]},e.prototype.unsubscribe=function(n){if(this._listeners){var a=this._listeners.indexOf(n);a!==-1&&this._listeners.splice(a,1)}},e.source=function(){var n,a=new e(function(o){n=o});return{token:a,cancel:n}},zk=e,zk}var $k,YG;function Hbe(){return YG||(YG=1,$k=function(e){return function(n){return e.apply(null,n)}}),$k}var Fk,qG;function Gbe(){return qG||(qG=1,Fk=function(e){return typeof e=="object"&&e.isAxiosError===!0}),Fk}var XG=gs,jbe=jK,GE=Ube,Ybe=JK,qbe=bD();function nQ(t){var e=new GE(t),r=jbe(GE.prototype.request,e);return XG.extend(r,GE.prototype,e),XG.extend(r,e),r.create=function(a){return nQ(Ybe(t,a))},r}var vc=nQ(qbe);vc.Axios=GE;vc.Cancel=yD();vc.CancelToken=Wbe();vc.isCancel=QK();vc.VERSION=eQ().version;vc.all=function(e){return Promise.all(e)};vc.spread=Hbe();vc.isAxiosError=Gbe();nbe.exports=vc;CR.default=vc;(function(t){t.exports=CR})(rbe);const Dh=xS(TR);var Xbe=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,a,i;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!t(e[a],r[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(i=Object.keys(e),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(!t(e[o],r[o]))return!1}return!0}return e!==e&&r!==r};/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */var Zbe=function(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)};/*! * MIT License * * Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com) * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit * persons to whom the Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the * Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */function Kbe(t){return typeof Blob>"u"?!1:t instanceof Blob||Object.prototype.toString.call(t)==="[object Blob]"}var Qbe=Kbe,ZG=TR,aQ=Xbe,Jbe=Zbe,exe=Qbe,iQ=Object.prototype.toString;function oQ(t,e){for(var r=t.length,n=0;n<r;n++){var a=t[n];if(e(a))return a}}function sQ(t){return iQ.call(t)==="[object Function]"}function lQ(t){return t!==null&&typeof t=="object"}function txe(t){return lQ(t)&&sQ(t.pipe)}function rxe(t){return iQ.call(t)==="[object ArrayBuffer]"}function KG(t,e){return t?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):e}function nxe(t,e,r,n,a,i,o){return oQ(t[e.toLowerCase()],function(s){if(typeof s[0]=="string")return(QG(r,s[0])||QG(KG(o,r),s[0]))&&Zz(e,n,a,s[1])&&AR(i,s[2]);if(s[0]instanceof RegExp)return(s[0].test(r)||s[0].test(KG(o,r)))&&Zz(e,n,a,s[1])&&AR(i,s[2])})}function QG(t,e){var r=t[0]==="/"?t.substr(1):t,n=e[0]==="/"?e.substr(1):e;return r===n}function Zz(t,e,r,n){var a=["delete","get","head","options"];if(a.indexOf(t.toLowerCase())>=0){var i=n?n.data:void 0,o=n?n.params:void 0;return AR(r,o)&&JG(e,i)}else return JG(e,n)}function AR(t,e){return e===void 0?!0:typeof e.asymmetricMatch=="function"?e.asymmetricMatch(t):aQ(t,e)}function JG(t,e){if(e===void 0)return!0;var r;try{r=JSON.parse(t)}catch{}return AR(r||t,e)}function axe(t,e){Object.keys(t.handlers).forEach(function(r){var n=t.handlers[r].indexOf(e);n>-1&&t.handlers[r].splice(n,1)})}function uQ(t,e,r,n){if(n>0){setTimeout(uQ,n,t,e,r);return}!r.config.validateStatus||r.config.validateStatus(r.status)?t(r):e(cQ("Request failed with status code "+r.status,r.config,r))}function cQ(t,e,r,n){if(typeof ZG.AxiosError=="function")return ZG.AxiosError.from(new Error(t),n,e,null,r);var a=new Error(t);return a.isAxiosError=!0,a.config=e,r!==void 0&&(a.response=r),n!==void 0&&(a.code=n),a.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},a}function ixe(t){var e=`Could not find mock for: `+JSON.stringify(t,["method","url"],2),r=new Error(e);return r.isCouldNotFindMockError=!0,r.url=t.url,r.method=t.method,r}var fQ={find:oQ,findHandler:nxe,purgeIfReplyOnce:axe,settle:uQ,isStream:txe,isArrayBuffer:rxe,isFunction:sQ,isObjectOrArray:lQ,isBuffer:Jbe,isBlob:exe,isBodyOrParametersMatching:Zz,isEqual:aQ,createAxiosError:cQ,createCouldNotFindMockError:ixe},rs=fQ;function oxe(t){return rs.isArrayBuffer(t)||rs.isBuffer(t)||rs.isStream(t)||rs.isBlob(t)?t:rs.isObjectOrArray(t)?JSON.parse(JSON.stringify(t)):t}function IA(t,e){return{status:t[0],data:oxe(t[1]),headers:t[2],config:e,request:{responseURL:e.url}}}function sxe(t,e,r,n){var a=n.url||"";n.baseURL&&a.substr(0,n.baseURL.length)===n.baseURL&&(a=a.slice(n.baseURL.length)),delete n.adapter,t.history[n.method].push(n);var i=rs.findHandler(t.handlers,n.method,a,n.data,n.params,n.headers,n.baseURL);if(i)if(i.length===7&&rs.purgeIfReplyOnce(t,i),i.length===2)t.originalAdapter(n).then(e,r);else if(typeof i[3]!="function")rs.settle(e,r,IA(i.slice(3),n),t.delayResponse);else{var o=i[3](n);typeof o.then!="function"?rs.settle(e,r,IA(o,n),t.delayResponse):o.then(function(s){s.config&&s.status?rs.settle(e,r,IA([s.status,s.data,s.headers],s.config),0):rs.settle(e,r,IA(s,n),t.delayResponse)},function(s){t.delayResponse>0?setTimeout(function(){r(s)},t.delayResponse):r(s)})}else switch(t.onNoMatch){case"passthrough":t.originalAdapter(n).then(e,r);break;case"throwException":throw rs.createCouldNotFindMockError(n);default:rs.settle(e,r,{status:404,config:n},t.delayResponse)}}var lxe=sxe,uxe=lxe,Wd=fQ,jF=["get","post","head","delete","patch","put","options","list","link","unlink"];function cxe(){return function(t){var e=this;return new Promise(function(r,n){uxe(e,r,n,t)})}.bind(this)}function dQ(){return jF.reduce(function(t,e){return t[e]=[],t},{})}function hQ(){pQ.call(this),vQ.call(this)}function pQ(){this.handlers=dQ()}function vQ(){this.history=dQ()}function Ih(t,e){if(hQ.call(this),t)this.axiosInstance=t,this.originalAdapter=t.defaults.adapter,this.delayResponse=e&&e.delayResponse>0?e.delayResponse:null,this.onNoMatch=e&&e.onNoMatch||null,t.defaults.adapter=this.adapter.call(this);else throw new Error("Please provide an instance of axios to mock")}Ih.prototype.adapter=cxe;Ih.prototype.restore=function(){this.axiosInstance&&(this.axiosInstance.defaults.adapter=this.originalAdapter,this.axiosInstance=void 0)};Ih.prototype.reset=hQ;Ih.prototype.resetHandlers=pQ;Ih.prototype.resetHistory=vQ;jF.concat("any").forEach(function(t){var e="on"+t.charAt(0).toUpperCase()+t.slice(1);Ih.prototype[e]=function(o,n,a){var i=this,o=o===void 0?/.*/:o;function s(u,c,d){var p=[o,n,a,u,c,d];return Vk(t,i.handlers,p),i}function l(u,c,d){var p=[o,n,a,u,c,d,!0];return Vk(t,i.handlers,p),i}return{reply:s,replyOnce:l,passThrough:function(){var c=[o,n];return Vk(t,i.handlers,c),i},abortRequest:function(){return s(function(u){var c=Wd.createAxiosError("Request aborted",u,void 0,"ECONNABORTED");return Promise.reject(c)})},abortRequestOnce:function(){return l(function(u){var c=Wd.createAxiosError("Request aborted",u,void 0,"ECONNABORTED");return Promise.reject(c)})},networkError:function(){return s(function(u){var c=Wd.createAxiosError("Network Error",u);return Promise.reject(c)})},networkErrorOnce:function(){return l(function(u){var c=Wd.createAxiosError("Network Error",u);return Promise.reject(c)})},timeout:function(){return s(function(u){var c=Wd.createAxiosError(u.timeoutErrorMessage||"timeout of "+u.timeout+"ms exceeded",u,void 0,"ECONNABORTED");return Promise.reject(c)})},timeoutOnce:function(){return l(function(u){var c=Wd.createAxiosError(u.timeoutErrorMessage||"timeout of "+u.timeout+"ms exceeded",u,void 0,"ECONNABORTED");return Promise.reject(c)})}}}});function fxe(t,e,r){for(var n=-1,a=0;a<e[t].length;a+=1){var i=e[t][a],o=i.length===7,s=i[0]instanceof RegExp&&r[0]instanceof RegExp?String(i[0])===String(r[0]):i[0]===r[0],l=s&&Wd.isEqual(i[1],r[1])&&Wd.isEqual(i[2],r[2]);l&&!o&&(n=a)}return n}function Vk(t,e,r){if(t==="any")jF.forEach(function(a){e[a].push(r)});else{var n=fxe(t,e,r);n>-1&&r.length<7?e[t].splice(n,1,r):e[t].push(r)}}tbe.exports=Ih;wR.default=Ih;const Hi=new wR(Dh),ER=[{id:1,role:"SA",name:"Jason Alexander",username:"jason_alexander",email:"jason@ui-lib.com",avatar:"/assets/images/face-6.jpg",age:25}];Hi.onPost("/api/auth/login").reply(async t=>{try{await new Promise(r=>setTimeout(r,1e3));const e=ER.find(r=>r.email==="email");return e?[200,{user:{id:e.id,avatar:e.avatar,email:e.email,name:e.name,role:e.role}}]:[400,{message:"Invalid email or password"}]}catch(e){return console.error(e),[500,{message:"Internal server error"}]}});Hi.onPost("/api/auth/register").reply(t=>{try{const{email:e,username:r}=JSON.parse(t.data);if(ER.find(i=>i.email===e))return[400,{message:"User already exists!"}];const a={id:2,role:"GUEST",name:"",username:r,email:e,avatar:"/assets/images/face-6.jpg",age:25};return ER.push(a),[200,{user:{id:a.id,avatar:a.avatar,email:a.email,name:a.name,username:a.username,role:a.role}}]}catch(e){return console.error(e),[500,{message:"Internal server error"}]}});Hi.onGet("/api/auth/profile").reply(t=>{try{const{Authorization:e}=t.headers;if(!e)return[401,{message:"Invalid Authorization token"}];const r=ER.find(n=>n.id==="");return r?[200,{user:{id:r.id,avatar:r.avatar,email:r.email,name:r.name,role:r.role}}]:[401,{message:"Invalid authorization token"}]}catch(e){return console.error(e),[500,{message:"Internal server error"}]}});var Kz={},dxe={get exports(){return Kz},set exports(t){Kz=t}},Qz={},hxe={get exports(){return Qz},set exports(t){Qz=t}},jE=1;function pxe(){return jE=(jE*9301+49297)%233280,jE/233280}function vxe(t){jE=t}var gxe={nextValue:pxe,seed:vxe},Jz=gxe,Ov="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-",Xd,ej,Y_;function e$(){Y_=!1}function gQ(t){if(!t){Xd!==Ov&&(Xd=Ov,e$());return}if(t!==Xd){if(t.length!==Ov.length)throw new Error("Custom alphabet for shortid must be "+Ov.length+" unique characters. You submitted "+t.length+" characters: "+t);var e=t.split("").filter(function(r,n,a){return n!==a.lastIndexOf(r)});if(e.length)throw new Error("Custom alphabet for shortid must be "+Ov.length+" unique characters. These characters were not unique: "+e.join(", "));Xd=t,e$()}}function mxe(t){return gQ(t),Xd}function yxe(t){Jz.seed(t),ej!==t&&(e$(),ej=t)}function bxe(){Xd||gQ(Ov);for(var t=Xd.split(""),e=[],r=Jz.nextValue(),n;t.length>0;)r=Jz.nextValue(),n=Math.floor(r*t.length),e.push(t.splice(n,1)[0]);return e.join("")}function mQ(){return Y_||(Y_=bxe(),Y_)}function xxe(t){var e=mQ();return e[t]}function _xe(){return Xd||Ov}var YF={get:_xe,characters:mxe,seed:yxe,lookup:xxe,shuffled:mQ},Uk=typeof window=="object"&&(window.crypto||window.msCrypto),t$;!Uk||!Uk.getRandomValues?t$=function(t){for(var e=[],r=0;r<t;r++)e.push(Math.floor(Math.random()*256));return e}:t$=function(t){return Uk.getRandomValues(new Uint8Array(t))};var Sxe=t$,wxe=function(t,e,r){for(var n=(2<<Math.log(e.length-1)/Math.LN2)-1,a=-~(1.6*n*r/e.length),i="";;)for(var o=t(a),s=a;s--;)if(i+=e[o[s]&n]||"",i.length===+r)return i},Txe=YF,Cxe=Sxe,Axe=wxe;function Exe(t){for(var e=0,r,n="";!r;)n=n+Axe(Cxe,Txe.get(),1),r=t<Math.pow(16,e+1),e++;return n}var Rxe=Exe,PA=Rxe,Mxe=1567752802062,Dxe=7,LA,tj;function Ixe(t){var e="",r=Math.floor((Date.now()-Mxe)*.001);return r===tj?LA++:(LA=0,tj=r),e=e+PA(Dxe),e=e+PA(t),LA>0&&(e=e+PA(LA)),e=e+PA(r),e}var Pxe=Ixe,Lxe=YF;function Oxe(t){if(!t||typeof t!="string"||t.length<6)return!1;var e=new RegExp("[^"+Lxe.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]");return!e.test(t)}var kxe=Oxe;(function(t){var e=YF,r=Pxe,n=kxe,a=0;function i(u){return e.seed(u),t.exports}function o(u){return a=u,t.exports}function s(u){return u!==void 0&&e.characters(u),e.shuffled()}function l(){return r(a)}t.exports=l,t.exports.generate=l,t.exports.seed=i,t.exports.worker=o,t.exports.characters=s,t.exports.isValid=n})(hxe);(function(t){t.exports=Qz})(dxe);const jl=xS(Kz),sl={productList:[{id:"323sa680b32497dsfdsgga21rt47",imgUrl:"/assets/images/products/speaker-1.jpg",price:324,totalUnit:100,title:"Bass Speaker Venue 8 - 8 - Intel Atom - 16GB - Black",category:"audio",brand:"Microlab",rating:1,freeShipping:!1,description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged."},{id:"323sa680b324976dfgga21rt47",imgUrl:"/assets/images/products/speaker-2.jpg",price:454,totalUnit:100,title:"Bass Speaker",category:"audio",brand:"Microlab",rating:3,freeShipping:!0,description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged."},{id:"323sa680bdf4976dfgga21rt4",imgUrl:"/assets/images/products/headphone-1.jpg",price:134,totalUnit:100,title:"Bass Speaker",category:"audio",brand:"Sony",rating:4,freeShipping:!0,description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged."},{id:"333sa680bdf4976dfgga21rt4",imgUrl:"/assets/images/products/headphone-2.jpg",price:987,totalUnit:100,title:"Bit Bass Headphone",category:"audio",brand:"Sony",rating:5,freeShipping:!0,description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged."},{id:jl.generate(),imgUrl:"/assets/images/products/headphone-3.jpg",price:870,totalUnit:100,title:"Sony Headphone",category:"audio",brand:"Sony",rating:4,freeShipping:!1,description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged."},{id:jl.generate(),imgUrl:"/assets/images/products/watch-1.jpg",price:23,totalUnit:100,title:"Comlion Watch",category:"fashion",brand:"Comlion",rating:3,freeShipping:!0,description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged."},{id:"323sa680b32497dfdfgga21rt47",imgUrl:"/assets/images/products/speaker-2.jpg",price:454,totalUnit:100,title:"Bass Speaker",category:"audio",brand:"Microlab",rating:1,freeShipping:!0,description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged."},{id:jl.generate(),imgUrl:"/assets/images/products/headphone-4.jpg",price:299,totalUnit:100,title:"Beats Headphone",category:"audio",brand:"Beats",rating:5,freeShipping:!0,description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged."},{id:jl.generate(),imgUrl:"/assets/images/products/iphone-1.jpg",price:978,totalUnit:100,title:"Iphone 11 Max Pro",category:"cellphone",brand:"Iphone",rating:2,freeShipping:!0,description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged."},{id:jl.generate(),imgUrl:"/assets/images/products/iphone-2.jpg",price:12,totalUnit:100,title:"IPhone 11 Max Pro Case",category:"accessories",brand:"Iphone",rating:4,freeShipping:!0,description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged."},{id:jl.generate(),imgUrl:"/assets/images/products/watch-1.jpg",price:23,totalUnit:100,title:"Comlion Watch",category:"fashion",brand:"Comlion",rating:1,freeShipping:!0,description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged."},{id:jl.generate(),imgUrl:"/assets/images/products/watch-2.jpg",price:75,totalUnit:100,title:"Kurren Watch",category:"fashion",brand:"Kurren",rating:3,freeShipping:!0,description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged."},{id:jl.generate(),imgUrl:"/assets/images/products/iphone-1.jpg",price:978,totalUnit:100,title:"Iphone 11 Max Pro",category:"cellphone",brand:"Iphone",rating:5,freeShipping:!0,description:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged."}],category:[{title:"audio",product:321},{title:"fashion",product:123},{title:"cellphone",product:546},{title:"accessories",product:76}],brand:[{title:"Microlab",product:32},{title:"Sony",product:534},{title:"Beats",product:23},{title:"Iphone",product:65},{title:"Comlion",product:198}],rating:[{rate:5,product:345},{rate:4,product:53},{rate:3,product:765},{rate:2,product:32},{rate:1,product:64}],cart:[{uid:"PPFDrVGsojfZoDxeYLMdIAWxSzd2",list:[{productId:"323sa680b32497dsfdsgga21rt47",amount:1},{productId:"323sa680b324976dfgga21rt47",amount:1},{productId:"323sa680bdf4976dfgga21rt4",amount:1},{productId:"333sa680bdf4976dfgga21rt4",amount:1}]}],userList:[{id:"1",name:"John Doe",avatar:"/assets/images/face-7.jpg"},{id:"323sa680b3249760ea21rt47",name:"Frank Powell",avatar:"/assets/images/faces/13.jpg"},{id:"7863a6802ez0e277a0f98534",name:"John Doe",avatar:"/assets/images/face-1.jpg"}]},_D=t=>sl.cart[0].list.map(r=>({amount:r.amount,...sl.productList.find(n=>n.id===r.productId)}));Hi.onGet("/api/ecommerce/get-product-list").reply(t=>[200,sl.productList]);Hi.onGet("/api/ecommerce/get-category-list").reply(t=>[200,sl.category]);Hi.onGet("/api/ecommerce/get-rating-list").reply(t=>[200,sl.rating]);Hi.onGet("/api/ecommerce/get-brand-list").reply(t=>[200,sl.brand]);Hi.onGet("/api/ecommerce/get-cart-list").reply(t=>{let e=t.data,r=[];return e&&(r=_D()),[200,r]});Hi.onPost("/api/ecommerce/add-to-cart").reply(t=>{let{uid:e,productId:r}=JSON.parse(t.data),n=sl.cart.map(i=>i.list.find(s=>s.productId===r)?{...i,list:i.list.map(s=>s.productId===r?{...s,amount:s.amount+1}:s)}:(i.list.push({productId:r,amount:1}),i));return sl.cart=n,[200,_D()]});Hi.onPost("/api/ecommerce/delete-from-cart").reply(t=>{let{uid:e,productId:r}=JSON.parse(t.data),n=sl.cart.map(i=>({...i,list:i.list.filter(o=>o.productId!==r)}));return sl.cart=n,[200,_D()]});Hi.onPost("/api/ecommerce/update-cart-amount").reply(t=>{let{uid:e,productId:r,amount:n}=JSON.parse(t.data),a=sl.cart.map(o=>({...o,list:o.list.map(s=>(s.productId===r&&(console.log("found"),s.amount=n),s))}));return sl.cart=a,[200,_D()]});const w0={list:[{id:jl.generate(),heading:"Message",icon:{name:"chat",color:"primary"},timestamp:1570702802573,title:"New message from Devid",subtitle:"Hello, Any progress...",path:"chat"},{id:jl.generate(),heading:"Alert",icon:{name:"notifications",color:"error"},timestamp:1570702702573,title:"Server overloaded",subtitle:"Traffice reached 2M",path:"page-layouts/user-profile"},{id:jl.generate(),heading:"Message",icon:{name:"chat",color:"primary"},timestamp:1570502502573,title:"New message from Goustove",subtitle:"Hello, send me details",path:"chat"}]};Hi.onGet("/api/notification").reply(t=>[200,w0.list]);Hi.onPost("/api/notification/add").reply(t=>[200,w0.list]);Hi.onPost("/api/notification/delete").reply(t=>{let{id:e}=JSON.parse(t.data);console.log(t.data);const r=w0.list.filter(n=>n.id!==e);return w0.list=[...r],[200,r]});Hi.onPost("/api/notification/delete-all").reply(t=>(w0.list=[],[200,w0.list]));Hi.onAny().passThrough();var sg=bi.createContext(null);sg.displayName="ReactRedux";function Nxe(t){t()}var yQ=Nxe,Bxe=function(e){return yQ=e},zxe=function(){return yQ};function $xe(){var t=zxe(),e=null,r=null;return{clear:function(){e=null,r=null},notify:function(){t(function(){for(var a=e;a;)a.callback(),a=a.next})},get:function(){for(var a=[],i=e;i;)a.push(i),i=i.next;return a},subscribe:function(a){var i=!0,o=r={callback:a,next:null,prev:r};return o.prev?o.prev.next=o:e=o,function(){!i||e===null||(i=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var rj={notify:function(){},get:function(){return[]}};function Fxe(t,e){var r,n=rj;function a(d){return l(),n.subscribe(d)}function i(){n.notify()}function o(){c.onStateChange&&c.onStateChange()}function s(){return Boolean(r)}function l(){r||(r=e?e.addNestedSub(o):t.subscribe(o),n=$xe())}function u(){r&&(r(),r=void 0,n.clear(),n=rj)}var c={addNestedSub:a,notifyNestedSubs:i,handleChangeWrapper:o,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:function(){return n}};return c}var Vxe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Y.useLayoutEffect:Y.useEffect;function bQ(t){var e=t.store,r=t.context,n=t.children,a=Y.useMemo(function(){var s=Fxe(e);return{store:e,subscription:s}},[e]),i=Y.useMemo(function(){return e.getState()},[e]);Vxe(function(){var s=a.subscription;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),i!==e.getState()&&s.notifyNestedSubs(),function(){s.tryUnsubscribe(),s.onStateChange=null}},[a,i]);var o=r||sg;return bi.createElement(o.Provider,{value:a},n)}bQ.propTypes={store:E.shape({subscribe:E.func.isRequired,dispatch:E.func.isRequired,getState:E.func.isRequired}),context:E.object,children:E.any};var nj={},Uxe={get exports(){return nj},set exports(t){nj=t}},Dn={};/** @license React v17.0.2 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */(function(){var t=60103,e=60106,r=60107,n=60108,a=60114,i=60109,o=60110,s=60112,l=60113,u=60120,c=60115,d=60116,p=60121,v=60122,g=60117,m=60129,x=60131;if(typeof Symbol=="function"&&Symbol.for){var _=Symbol.for;t=_("react.element"),e=_("react.portal"),r=_("react.fragment"),n=_("react.strict_mode"),a=_("react.profiler"),i=_("react.provider"),o=_("react.context"),s=_("react.forward_ref"),l=_("react.suspense"),u=_("react.suspense_list"),c=_("react.memo"),d=_("react.lazy"),p=_("react.block"),v=_("react.server.block"),g=_("react.fundamental"),_("react.scope"),_("react.opaque.id"),m=_("react.debug_trace_mode"),_("react.offscreen"),x=_("react.legacy_hidden")}var w=!1;function T(de){return!!(typeof de=="string"||typeof de=="function"||de===r||de===a||de===m||de===n||de===l||de===u||de===x||w||typeof de=="object"&&de!==null&&(de.$$typeof===d||de.$$typeof===c||de.$$typeof===i||de.$$typeof===o||de.$$typeof===s||de.$$typeof===g||de.$$typeof===p||de[0]===v))}function A(de){if(typeof de=="object"&&de!==null){var xe=de.$$typeof;switch(xe){case t:var xt=de.type;switch(xt){case r:case a:case n:case l:case u:return xt;default:var Ie=xt&&xt.$$typeof;switch(Ie){case o:case s:case d:case c:case i:return Ie;default:return xe}}case e:return xe}}}var M=o,D=i,P=t,O=s,k=r,N=d,$=c,H=e,F=a,W=n,j=l,X=!1,te=!1;function J(de){return X||(X=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ie(de){return te||(te=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function se(de){return A(de)===o}function le(de){return A(de)===i}function be(de){return typeof de=="object"&&de!==null&&de.$$typeof===t}function Me(de){return A(de)===s}function Se(de){return A(de)===r}function Ue(de){return A(de)===d}function Xe(de){return A(de)===c}function st(de){return A(de)===e}function $e(de){return A(de)===a}function Be(de){return A(de)===n}function et(de){return A(de)===l}Dn.ContextConsumer=M,Dn.ContextProvider=D,Dn.Element=P,Dn.ForwardRef=O,Dn.Fragment=k,Dn.Lazy=N,Dn.Memo=$,Dn.Portal=H,Dn.Profiler=F,Dn.StrictMode=W,Dn.Suspense=j,Dn.isAsyncMode=J,Dn.isConcurrentMode=ie,Dn.isContextConsumer=se,Dn.isContextProvider=le,Dn.isElement=be,Dn.isForwardRef=Me,Dn.isFragment=Se,Dn.isLazy=Ue,Dn.isMemo=Xe,Dn.isPortal=st,Dn.isProfiler=$e,Dn.isStrictMode=Be,Dn.isSuspense=et,Dn.isValidElementType=T,Dn.typeOf=A})();(function(t){t.exports=Dn})(Uxe);function Wxe(){var t=Y.useContext(sg);if(!t)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return t}function xQ(t){t===void 0&&(t=sg);var e=t===sg?Wxe:function(){return Y.useContext(t)};return function(){var n=e(),a=n.store;return a}}var Hxe=xQ();function Gxe(t){t===void 0&&(t=sg);var e=t===sg?Hxe:xQ(t);return function(){var n=e();return n.dispatch}}var jxe=Gxe();Bxe(x0.unstable_batchedUpdates);nt("div")(()=>({display:"flex",flexWrap:"wrap",alignItems:"center"}));nt("h4")(()=>({margin:0,fontSize:"16px",paddingBottom:"1px",verticalAlign:"middle",textTransform:"capitalize"}));nt("span")(({theme:t})=>({textTransform:"capitalize",color:t.palette.text.secondary}));nt("h4")(({theme:t})=>({margin:0,marginLeft:8,paddingBottom:"3px",color:t.palette.text.hint}));nt(oc)(()=>({marginLeft:8,marginBottom:"4px",verticalAlign:"middle"}));const J6e=({routeSegments:t})=>(Eh().palette.text.hint,re.jsx(re.Fragment,{})),Yxe=nt(JZ)(()=>({height:"40px",width:"40px"})),qxe=nt("div")(({theme:t,status:e})=>({height:"14px",width:"14px",bottom:"0px",right:"-3px",borderRadius:"7px",position:"absolute",border:"2px solid white",background:e==="online"?t.palette.primary.main:t.palette.error.main,color:e!=="online"&&"white !important"})),Xxe=({src:t,status:e})=>re.jsxs(ns,{position:"relative",children:[re.jsx(Yxe,{src:t}),re.jsx(qxe,{status:e})]});function lg(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function oi(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function YE(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?YE=function(r){return typeof r}:YE=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},YE(t)}function ds(t){oi(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||YE(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Zxe(t,e){oi(2,arguments);var r=ds(t).getTime(),n=lg(e);return new Date(r+n)}var Kxe={};function SD(){return Kxe}function Qxe(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function qE(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qE=function(r){return typeof r}:qE=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},qE(t)}function Jxe(t){return oi(1,arguments),t instanceof Date||qE(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function e_e(t){if(oi(1,arguments),!Jxe(t)&&typeof t!="number")return!1;var e=ds(t);return!isNaN(Number(e))}function t_e(t,e){return oi(2,arguments),ds(t).getTime()-ds(e).getTime()}var aj={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},r_e="trunc";function n_e(t){return t?aj[t]:aj[r_e]}function a_e(t,e,r){oi(2,arguments);var n=t_e(t,e)/1e3;return n_e(r==null?void 0:r.roundingMethod)(n)}function i_e(t,e){oi(2,arguments);var r=lg(e);return Zxe(t,-r)}var o_e=864e5;function s_e(t){oi(1,arguments);var e=ds(t),r=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var n=e.getTime(),a=r-n;return Math.floor(a/o_e)+1}function RR(t){oi(1,arguments);var e=1,r=ds(t),n=r.getUTCDay(),a=(n<e?7:0)+n-e;return r.setUTCDate(r.getUTCDate()-a),r.setUTCHours(0,0,0,0),r}function _Q(t){oi(1,arguments);var e=ds(t),r=e.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=RR(n),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var o=RR(i);return e.getTime()>=a.getTime()?r+1:e.getTime()>=o.getTime()?r:r-1}function l_e(t){oi(1,arguments);var e=_Q(t),r=new Date(0);r.setUTCFullYear(e,0,4),r.setUTCHours(0,0,0,0);var n=RR(r);return n}var u_e=6048e5;function c_e(t){oi(1,arguments);var e=ds(t),r=RR(e).getTime()-l_e(e).getTime();return Math.round(r/u_e)+1}function MR(t,e){var r,n,a,i,o,s,l,u;oi(1,arguments);var c=SD(),d=lg((r=(n=(a=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&n!==void 0?n:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=ds(t),v=p.getUTCDay(),g=(v<d?7:0)+v-d;return p.setUTCDate(p.getUTCDate()-g),p.setUTCHours(0,0,0,0),p}function SQ(t,e){var r,n,a,i,o,s,l,u;oi(1,arguments);var c=ds(t),d=c.getUTCFullYear(),p=SD(),v=lg((r=(n=(a=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:p.firstWeekContainsDate)!==null&&n!==void 0?n:(l=p.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(d+1,0,v),g.setUTCHours(0,0,0,0);var m=MR(g,e),x=new Date(0);x.setUTCFullYear(d,0,v),x.setUTCHours(0,0,0,0);var _=MR(x,e);return c.getTime()>=m.getTime()?d+1:c.getTime()>=_.getTime()?d:d-1}function f_e(t,e){var r,n,a,i,o,s,l,u;oi(1,arguments);var c=SD(),d=lg((r=(n=(a=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&n!==void 0?n:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1),p=SQ(t,e),v=new Date(0);v.setUTCFullYear(p,0,d),v.setUTCHours(0,0,0,0);var g=MR(v,e);return g}var d_e=6048e5;function h_e(t,e){oi(1,arguments);var r=ds(t),n=MR(r,e).getTime()-f_e(r,e).getTime();return Math.round(n/d_e)+1}function Mr(t,e){for(var r=t<0?"-":"",n=Math.abs(t).toString();n.length<e;)n="0"+n;return r+n}var p_e={y:function(e,r){var n=e.getUTCFullYear(),a=n>0?n:1-n;return Mr(r==="yy"?a%100:a,r.length)},M:function(e,r){var n=e.getUTCMonth();return r==="M"?String(n+1):Mr(n+1,2)},d:function(e,r){return Mr(e.getUTCDate(),r.length)},a:function(e,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(e,r){return Mr(e.getUTCHours()%12||12,r.length)},H:function(e,r){return Mr(e.getUTCHours(),r.length)},m:function(e,r){return Mr(e.getUTCMinutes(),r.length)},s:function(e,r){return Mr(e.getUTCSeconds(),r.length)},S:function(e,r){var n=r.length,a=e.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,n-3));return Mr(i,r.length)}};const Pd=p_e;var gy={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},v_e={G:function(e,r,n){var a=e.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(e,r,n){if(r==="yo"){var a=e.getUTCFullYear(),i=a>0?a:1-a;return n.ordinalNumber(i,{unit:"year"})}return Pd.y(e,r)},Y:function(e,r,n,a){var i=SQ(e,a),o=i>0?i:1-i;if(r==="YY"){var s=o%100;return Mr(s,2)}return r==="Yo"?n.ordinalNumber(o,{unit:"year"}):Mr(o,r.length)},R:function(e,r){var n=_Q(e);return Mr(n,r.length)},u:function(e,r){var n=e.getUTCFullYear();return Mr(n,r.length)},Q:function(e,r,n){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(r){case"Q":return String(a);case"QQ":return Mr(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,r,n){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(r){case"q":return String(a);case"qq":return Mr(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,r,n){var a=e.getUTCMonth();switch(r){case"M":case"MM":return Pd.M(e,r);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(e,r,n){var a=e.getUTCMonth();switch(r){case"L":return String(a+1);case"LL":return Mr(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(e,r,n,a){var i=h_e(e,a);return r==="wo"?n.ordinalNumber(i,{unit:"week"}):Mr(i,r.length)},I:function(e,r,n){var a=c_e(e);return r==="Io"?n.ordinalNumber(a,{unit:"week"}):Mr(a,r.length)},d:function(e,r,n){return r==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Pd.d(e,r)},D:function(e,r,n){var a=s_e(e);return r==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):Mr(a,r.length)},E:function(e,r,n){var a=e.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(e,r,n,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return Mr(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,r,n,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return Mr(o,r.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,r,n){var a=e.getUTCDay(),i=a===0?7:a;switch(r){case"i":return String(i);case"ii":return Mr(i,r.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(e,r,n){var a=e.getUTCHours(),i=a/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,r,n){var a=e.getUTCHours(),i;switch(a===12?i=gy.noon:a===0?i=gy.midnight:i=a/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,r,n){var a=e.getUTCHours(),i;switch(a>=17?i=gy.evening:a>=12?i=gy.afternoon:a>=4?i=gy.morning:i=gy.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,r,n){if(r==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return Pd.h(e,r)},H:function(e,r,n){return r==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Pd.H(e,r)},K:function(e,r,n){var a=e.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(a,{unit:"hour"}):Mr(a,r.length)},k:function(e,r,n){var a=e.getUTCHours();return a===0&&(a=24),r==="ko"?n.ordinalNumber(a,{unit:"hour"}):Mr(a,r.length)},m:function(e,r,n){return r==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Pd.m(e,r)},s:function(e,r,n){return r==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Pd.s(e,r)},S:function(e,r){return Pd.S(e,r)},X:function(e,r,n,a){var i=a._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(r){case"X":return oj(o);case"XXXX":case"XX":return wv(o);case"XXXXX":case"XXX":default:return wv(o,":")}},x:function(e,r,n,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(r){case"x":return oj(o);case"xxxx":case"xx":return wv(o);case"xxxxx":case"xxx":default:return wv(o,":")}},O:function(e,r,n,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+ij(o,":");case"OOOO":default:return"GMT"+wv(o,":")}},z:function(e,r,n,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+ij(o,":");case"zzzz":default:return"GMT"+wv(o,":")}},t:function(e,r,n,a){var i=a._originalDate||e,o=Math.floor(i.getTime()/1e3);return Mr(o,r.length)},T:function(e,r,n,a){var i=a._originalDate||e,o=i.getTime();return Mr(o,r.length)}};function ij(t,e){var r=t>0?"-":"+",n=Math.abs(t),a=Math.floor(n/60),i=n%60;if(i===0)return r+String(a);var o=e||"";return r+String(a)+o+Mr(i,2)}function oj(t,e){if(t%60===0){var r=t>0?"-":"+";return r+Mr(Math.abs(t)/60,2)}return wv(t,e)}function wv(t,e){var r=e||"",n=t>0?"-":"+",a=Math.abs(t),i=Mr(Math.floor(a/60),2),o=Mr(a%60,2);return n+i+r+o}const g_e=v_e;var sj=function(e,r){switch(e){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},wQ=function(e,r){switch(e){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},m_e=function(e,r){var n=e.match(/(P+)(p+)?/)||[],a=n[1],i=n[2];if(!i)return sj(e,r);var o;switch(a){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",sj(a,r)).replace("{{time}}",wQ(i,r))},y_e={p:wQ,P:m_e};const b_e=y_e;var x_e=["D","DD"],__e=["YY","YYYY"];function S_e(t){return x_e.indexOf(t)!==-1}function w_e(t){return __e.indexOf(t)!==-1}function lj(t,e,r){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var T_e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},C_e=function(e,r,n){var a,i=T_e[e];return typeof i=="string"?a=i:r===1?a=i.one:a=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};const A_e=C_e;function o0(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.width?String(e.width):t.defaultWidth,n=t.formats[r]||t.formats[t.defaultWidth];return n}}var E_e={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},R_e={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},M_e={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},D_e={date:o0({formats:E_e,defaultWidth:"full"}),time:o0({formats:R_e,defaultWidth:"full"}),dateTime:o0({formats:M_e,defaultWidth:"full"})};const I_e=D_e;var P_e={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},L_e=function(e,r,n,a){return P_e[e]};const O_e=L_e;function Ku(t){return function(e,r){var n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,o=r!=null&&r.width?String(r.width):i;a=t.formattingValues[o]||t.formattingValues[i]}else{var s=t.defaultWidth,l=r!=null&&r.width?String(r.width):t.defaultWidth;a=t.values[l]||t.values[s]}var u=t.argumentCallback?t.argumentCallback(e):e;return a[u]}}var k_e={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},N_e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},B_e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},z_e={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},$_e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},F_e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},V_e=function(e,r){var n=Number(e),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},U_e={ordinalNumber:V_e,era:Ku({values:k_e,defaultWidth:"wide"}),quarter:Ku({values:N_e,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ku({values:B_e,defaultWidth:"wide"}),day:Ku({values:z_e,defaultWidth:"wide"}),dayPeriod:Ku({values:$_e,defaultWidth:"wide",formattingValues:F_e,defaultFormattingWidth:"wide"})};const W_e=U_e;function Qu(t){return function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],i=e.match(a);if(!i)return null;var o=i[0],s=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?G_e(s,function(d){return d.test(o)}):H_e(s,function(d){return d.test(o)}),u;u=t.valueCallback?t.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;var c=e.slice(o.length);return{value:u,rest:c}}}function H_e(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}function G_e(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return r}function TQ(t){return function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.match(t.matchPattern);if(!n)return null;var a=n[0],i=e.match(t.parsePattern);if(!i)return null;var o=t.valueCallback?t.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;var s=e.slice(a.length);return{value:o,rest:s}}}var j_e=/^(\d+)(th|st|nd|rd)?/i,Y_e=/\d+/i,q_e={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},X_e={any:[/^b/i,/^(a|c)/i]},Z_e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},K_e={any:[/1/i,/2/i,/3/i,/4/i]},Q_e={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},J_e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},e1e={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},t1e={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},r1e={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},n1e={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},a1e={ordinalNumber:TQ({matchPattern:j_e,parsePattern:Y_e,valueCallback:function(e){return parseInt(e,10)}}),era:Qu({matchPatterns:q_e,defaultMatchWidth:"wide",parsePatterns:X_e,defaultParseWidth:"any"}),quarter:Qu({matchPatterns:Z_e,defaultMatchWidth:"wide",parsePatterns:K_e,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Qu({matchPatterns:Q_e,defaultMatchWidth:"wide",parsePatterns:J_e,defaultParseWidth:"any"}),day:Qu({matchPatterns:e1e,defaultMatchWidth:"wide",parsePatterns:t1e,defaultParseWidth:"any"}),dayPeriod:Qu({matchPatterns:r1e,defaultMatchWidth:"any",parsePatterns:n1e,defaultParseWidth:"any"})};const i1e=a1e;var o1e={code:"en-US",formatDistance:A_e,formatLong:I_e,formatRelative:O_e,localize:W_e,match:i1e,options:{weekStartsOn:0,firstWeekContainsDate:1}};const s1e=o1e;var l1e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,u1e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,c1e=/^'([^]*?)'?$/,f1e=/''/g,d1e=/[a-zA-Z]/;function qF(t,e,r){var n,a,i,o,s,l,u,c,d,p,v,g,m,x,_,w,T,A;oi(2,arguments);var M=String(e),D=SD(),P=(n=(a=r==null?void 0:r.locale)!==null&&a!==void 0?a:D.locale)!==null&&n!==void 0?n:s1e,O=lg((i=(o=(s=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(u=r.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:D.firstWeekContainsDate)!==null&&o!==void 0?o:(d=D.locale)===null||d===void 0||(p=d.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=lg((v=(g=(m=(x=r==null?void 0:r.weekStartsOn)!==null&&x!==void 0?x:r==null||(_=r.locale)===null||_===void 0||(w=_.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&m!==void 0?m:D.weekStartsOn)!==null&&g!==void 0?g:(T=D.locale)===null||T===void 0||(A=T.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&v!==void 0?v:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!P.localize)throw new RangeError("locale must contain localize property");if(!P.formatLong)throw new RangeError("locale must contain formatLong property");var N=ds(t);if(!e_e(N))throw new RangeError("Invalid time value");var $=Qxe(N),H=i_e(N,$),F={firstWeekContainsDate:O,weekStartsOn:k,locale:P,_originalDate:N},W=M.match(u1e).map(function(j){var X=j[0];if(X==="p"||X==="P"){var te=b_e[X];return te(j,P.formatLong)}return j}).join("").match(l1e).map(function(j){if(j==="''")return"'";var X=j[0];if(X==="'")return h1e(j);var te=g_e[X];if(te)return!(r!=null&&r.useAdditionalWeekYearTokens)&&w_e(j)&&lj(j,e,String(t)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&S_e(j)&&lj(j,e,String(t)),te(H,j,P.localize,F);if(X.match(d1e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+X+"`");return j}).join("");return W}function h1e(t){var e=t.match(c1e);return e?e[1].replace(f1e,"'"):t}function p1e(t,e){var r,n;oi(1,arguments);var a=ds(t);if(isNaN(a.getTime()))throw new RangeError("Invalid time value");var i=String((r=e==null?void 0:e.format)!==null&&r!==void 0?r:"extended"),o=String((n=e==null?void 0:e.representation)!==null&&n!==void 0?n:"complete");if(i!=="extended"&&i!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(o!=="date"&&o!=="time"&&o!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",l="",u=i==="extended"?"-":"",c=i==="extended"?":":"";if(o!=="time"){var d=Mr(a.getDate(),2),p=Mr(a.getMonth()+1,2),v=Mr(a.getFullYear(),4);s="".concat(v).concat(u).concat(p).concat(u).concat(d)}if(o!=="date"){var g=a.getTimezoneOffset();if(g!==0){var m=Math.abs(g),x=Mr(Math.floor(m/60),2),_=Mr(m%60,2),w=g<0?"+":"-";l="".concat(w).concat(x,":").concat(_)}else l="Z";var T=Mr(a.getHours(),2),A=Mr(a.getMinutes(),2),M=Mr(a.getSeconds(),2),D=s===""?"":"T",P=[T,A,M].join(c);s="".concat(s).concat(D).concat(P).concat(l)}return s}var v1e={lessThanXSeconds:{one:"dưới 1 giây",other:"dưới {{count}} giây"},xSeconds:{one:"1 giây",other:"{{count}} giây"},halfAMinute:"nửa phút",lessThanXMinutes:{one:"dưới 1 phút",other:"dưới {{count}} phút"},xMinutes:{one:"1 phút",other:"{{count}} phút"},aboutXHours:{one:"khoảng 1 giờ",other:"khoảng {{count}} giờ"},xHours:{one:"1 giờ",other:"{{count}} giờ"},xDays:{one:"1 ngày",other:"{{count}} ngày"},aboutXWeeks:{one:"khoảng 1 tuần",other:"khoảng {{count}} tuần"},xWeeks:{one:"1 tuần",other:"{{count}} tuần"},aboutXMonths:{one:"khoảng 1 tháng",other:"khoảng {{count}} tháng"},xMonths:{one:"1 tháng",other:"{{count}} tháng"},aboutXYears:{one:"khoảng 1 năm",other:"khoảng {{count}} năm"},xYears:{one:"1 năm",other:"{{count}} năm"},overXYears:{one:"hơn 1 năm",other:"hơn {{count}} năm"},almostXYears:{one:"gần 1 năm",other:"gần {{count}} năm"}},g1e=function(e,r,n){var a,i=v1e[e];return typeof i=="string"?a=i:r===1?a=i.one:a=i.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?a+" nữa":a+" trước":a};const m1e=g1e;var y1e={full:"EEEE, 'ngày' d MMMM 'năm' y",long:"'ngày' d MMMM 'năm' y",medium:"d MMM 'năm' y",short:"dd/MM/y"},b1e={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},x1e={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},_1e={date:o0({formats:y1e,defaultWidth:"full"}),time:o0({formats:b1e,defaultWidth:"full"}),dateTime:o0({formats:x1e,defaultWidth:"full"})};const S1e=_1e;var w1e={lastWeek:"eeee 'tuần trước vào lúc' p",yesterday:"'hôm qua vào lúc' p",today:"'hôm nay vào lúc' p",tomorrow:"'ngày mai vào lúc' p",nextWeek:"eeee 'tới vào lúc' p",other:"P"},T1e=function(e,r,n,a){return w1e[e]};const C1e=T1e;var A1e={narrow:["TCN","SCN"],abbreviated:["trước CN","sau CN"],wide:["trước Công Nguyên","sau Công Nguyên"]},E1e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["Quý 1","Quý 2","Quý 3","Quý 4"]},R1e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["quý I","quý II","quý III","quý IV"]},M1e={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],wide:["Tháng Một","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"]},D1e={narrow:["01","02","03","04","05","06","07","08","09","10","11","12"],abbreviated:["thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12"],wide:["tháng 01","tháng 02","tháng 03","tháng 04","tháng 05","tháng 06","tháng 07","tháng 08","tháng 09","tháng 10","tháng 11","tháng 12"]},I1e={narrow:["CN","T2","T3","T4","T5","T6","T7"],short:["CN","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7"],abbreviated:["CN","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"],wide:["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"]},P1e={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"}},L1e={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"giữa trưa",morning:"vào buổi sáng",afternoon:"vào buổi chiều",evening:"vào buổi tối",night:"vào ban đêm"}},O1e=function(e,r){var n=Number(e),a=r==null?void 0:r.unit;if(a==="quarter")switch(n){case 1:return"I";case 2:return"II";case 3:return"III";case 4:return"IV"}else if(a==="day")switch(n){case 1:return"thứ 2";case 2:return"thứ 3";case 3:return"thứ 4";case 4:return"thứ 5";case 5:return"thứ 6";case 6:return"thứ 7";case 7:return"chủ nhật"}else{if(a==="week")return n===1?"thứ nhất":"thứ "+n;if(a==="dayOfYear")return n===1?"đầu tiên":"thứ "+n}return String(n)},k1e={ordinalNumber:O1e,era:Ku({values:A1e,defaultWidth:"wide"}),quarter:Ku({values:E1e,defaultWidth:"wide",formattingValues:R1e,defaultFormattingWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ku({values:M1e,defaultWidth:"wide",formattingValues:D1e,defaultFormattingWidth:"wide"}),day:Ku({values:I1e,defaultWidth:"wide"}),dayPeriod:Ku({values:P1e,defaultWidth:"wide",formattingValues:L1e,defaultFormattingWidth:"wide"})};const N1e=k1e;var B1e=/^(\d+)/i,z1e=/\d+/i,$1e={narrow:/^(tcn|scn)/i,abbreviated:/^(trước CN|sau CN)/i,wide:/^(trước Công Nguyên|sau Công Nguyên)/i},F1e={any:[/^t/i,/^s/i]},V1e={narrow:/^([1234]|i{1,3}v?)/i,abbreviated:/^q([1234]|i{1,3}v?)/i,wide:/^quý ([1234]|i{1,3}v?)/i},U1e={any:[/(1|i)$/i,/(2|ii)$/i,/(3|iii)$/i,/(4|iv)$/i]},W1e={narrow:/^(0?[2-9]|10|11|12|0?1)/i,abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,wide:/^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i},H1e={narrow:[/0?1$/i,/0?2/i,/3/,/4/,/5/,/6/,/7/,/8/,/9/,/10/,/11/,/12/],abbreviated:[/^thg[ _]?0?1(?!\d)/i,/^thg[ _]?0?2/i,/^thg[ _]?0?3/i,/^thg[ _]?0?4/i,/^thg[ _]?0?5/i,/^thg[ _]?0?6/i,/^thg[ _]?0?7/i,/^thg[ _]?0?8/i,/^thg[ _]?0?9/i,/^thg[ _]?10/i,/^thg[ _]?11/i,/^thg[ _]?12/i],wide:[/^tháng ?(Một|0?1(?!\d))/i,/^tháng ?(Hai|0?2)/i,/^tháng ?(Ba|0?3)/i,/^tháng ?(Tư|0?4)/i,/^tháng ?(Năm|0?5)/i,/^tháng ?(Sáu|0?6)/i,/^tháng ?(Bảy|0?7)/i,/^tháng ?(Tám|0?8)/i,/^tháng ?(Chín|0?9)/i,/^tháng ?(Mười|10)/i,/^tháng ?(Mười ?Một|11)/i,/^tháng ?(Mười ?Hai|12)/i]},G1e={narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i,short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,wide:/^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i},j1e={narrow:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],short:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],abbreviated:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],wide:[/(Chủ|Chúa) ?Nhật/i,/Hai/i,/Ba/i,/Tư/i,/Năm/i,/Sáu/i,/Bảy/i]},Y1e={narrow:/^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,abbreviated:/^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,wide:/^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i},q1e={any:{am:/^(a|sa)/i,pm:/^(p|ch[^i]*)/i,midnight:/nửa đêm/i,noon:/trưa/i,morning:/sáng/i,afternoon:/chiều/i,evening:/tối/i,night:/^đêm/i}},X1e={ordinalNumber:TQ({matchPattern:B1e,parsePattern:z1e,valueCallback:function(e){return parseInt(e,10)}}),era:Qu({matchPatterns:$1e,defaultMatchWidth:"wide",parsePatterns:F1e,defaultParseWidth:"any"}),quarter:Qu({matchPatterns:V1e,defaultMatchWidth:"wide",parsePatterns:U1e,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Qu({matchPatterns:W1e,defaultMatchWidth:"wide",parsePatterns:H1e,defaultParseWidth:"wide"}),day:Qu({matchPatterns:G1e,defaultMatchWidth:"wide",parsePatterns:j1e,defaultParseWidth:"wide"}),dayPeriod:Qu({matchPatterns:Y1e,defaultMatchWidth:"wide",parsePatterns:q1e,defaultParseWidth:"any"})};const Z1e=X1e;var K1e={code:"vi",formatDistance:m1e,formatLong:S1e,formatRelative:C1e,localize:N1e,match:Z1e,options:{weekStartsOn:1,firstWeekContainsDate:1}};const XF=K1e;function eYe(t){return t?qF(new Date(t),"HH:mm:ss",{locale:XF}):""}function tYe(t,e="dd/MM/yyyy"){return t?qF(new Date(t),e,{locale:XF}):""}function rYe(t,e="dd/MM/yyyy HH:mm:ss"){return t?qF(new Date(t),e,{locale:XF}):""}function nYe(t){return t?p1e(new Date(t)):null}const Q1e=t=>{if(t.match("rgba"))return t.slice(5).split(",").slice(0,-1).join(",");let e;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(t))return e=t.substring(1).split(""),e.length===3&&(e=[e[0],e[0],e[1],e[1],e[2],e[2]]),e="0x"+e.join(""),[e>>16&255,e>>8&255,e&255].join(",")};function aYe(t){let e=a_e(new Date,t);return e<60?`${Math.floor(e)} sec`:e<3600?`${Math.floor(e/60)} min`:e<86400?`${Math.floor(e/3660)} h`:e<86400*30?`${Math.floor(e/86400)} d`:e<86400*30*12?`${Math.floor(e/86400/30)} mon`:`${(e/86400/30/12).toFixed(1)} y`}var DR={},J1e={get exports(){return DR},set exports(t){DR=t}},IR={},eSe={get exports(){return IR},set exports(t){IR=t}};/*! * perfect-scrollbar v1.5.3 * Copyright 2021 Hyunje Jun, MDBootstrap and Contributors * Licensed under MIT */function tc(t){return getComputedStyle(t)}function Lo(t,e){for(var r in e){var n=e[r];typeof n=="number"&&(n=n+"px"),t.style[r]=n}return t}function OA(t){var e=document.createElement("div");return e.className=t,e}var uj=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Zd(t,e){if(!uj)throw new Error("No element matching method supported");return uj.call(t,e)}function Ky(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function cj(t,e){return Array.prototype.filter.call(t.children,function(r){return Zd(r,e)})}var Ra={main:"ps",rtl:"ps__rtl",element:{thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}}},CQ={x:null,y:null};function AQ(t,e){var r=t.element.classList,n=Ra.state.scrolling(e);r.contains(n)?clearTimeout(CQ[e]):r.add(n)}function EQ(t,e){CQ[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(Ra.state.scrolling(e))},t.settings.scrollingThreshold)}function tSe(t,e){AQ(t,e),EQ(t,e)}var RS=function(e){this.element=e,this.handlers={}},RQ={isEmpty:{configurable:!0}};RS.prototype.bind=function(e,r){typeof this.handlers[e]>"u"&&(this.handlers[e]=[]),this.handlers[e].push(r),this.element.addEventListener(e,r,!1)};RS.prototype.unbind=function(e,r){var n=this;this.handlers[e]=this.handlers[e].filter(function(a){return r&&a!==r?!0:(n.element.removeEventListener(e,a,!1),!1)})};RS.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)};RQ.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return t.handlers[e].length===0})};Object.defineProperties(RS.prototype,RQ);var W0=function(){this.eventElements=[]};W0.prototype.eventElement=function(e){var r=this.eventElements.filter(function(n){return n.element===e})[0];return r||(r=new RS(e),this.eventElements.push(r)),r};W0.prototype.bind=function(e,r,n){this.eventElement(e).bind(r,n)};W0.prototype.unbind=function(e,r,n){var a=this.eventElement(e);a.unbind(r,n),a.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(a),1)};W0.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]};W0.prototype.once=function(e,r,n){var a=this.eventElement(e),i=function(o){a.unbind(r,i),n(o)};a.bind(r,i)};function kA(t){if(typeof window.CustomEvent=="function")return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function PR(t,e,r,n,a){n===void 0&&(n=!0),a===void 0&&(a=!1);var i;if(e==="top")i=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(e==="left")i=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");rSe(t,r,i,n,a)}function rSe(t,e,r,n,a){var i=r[0],o=r[1],s=r[2],l=r[3],u=r[4],c=r[5];n===void 0&&(n=!0),a===void 0&&(a=!1);var d=t.element;t.reach[l]=null,d[s]<1&&(t.reach[l]="start"),d[s]>t[i]-t[o]-1&&(t.reach[l]="end"),e&&(d.dispatchEvent(kA("ps-scroll-"+l)),e<0?d.dispatchEvent(kA("ps-scroll-"+u)):e>0&&d.dispatchEvent(kA("ps-scroll-"+c)),n&&tSe(t,l)),t.reach[l]&&(e||a)&&d.dispatchEvent(kA("ps-"+l+"-reach-"+t.reach[l]))}function ea(t){return parseInt(t,10)||0}function nSe(t){return Zd(t,"input,[contenteditable]")||Zd(t,"select,[contenteditable]")||Zd(t,"textarea,[contenteditable]")||Zd(t,"button,[contenteditable]")}function aSe(t){var e=tc(t);return ea(e.width)+ea(e.paddingLeft)+ea(e.paddingRight)+ea(e.borderLeftWidth)+ea(e.borderRightWidth)}var Hy={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function gf(t){var e=t.element,r=Math.floor(e.scrollTop),n=e.getBoundingClientRect();t.containerWidth=Math.round(n.width),t.containerHeight=Math.round(n.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(cj(e,Ra.element.rail("x")).forEach(function(a){return Ky(a)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(cj(e,Ra.element.rail("y")).forEach(function(a){return Ky(a)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=fj(t,ea(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=ea((t.negativeScrollAdjustment+e.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=fj(t,ea(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=ea(r*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),iSe(e,t),t.scrollbarXActive?e.classList.add(Ra.state.active("x")):(e.classList.remove(Ra.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=t.isRtl===!0?t.contentWidth:0),t.scrollbarYActive?e.classList.add(Ra.state.active("y")):(e.classList.remove(Ra.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function fj(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function iSe(t,e){var r={width:e.railXWidth},n=Math.floor(t.scrollTop);e.isRtl?r.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:r.left=t.scrollLeft,e.isScrollbarXUsingBottom?r.bottom=e.scrollbarXBottom-n:r.top=e.scrollbarXTop+n,Lo(e.scrollbarXRail,r);var a={top:n,height:e.railYHeight};e.isScrollbarYUsingRight?e.isRtl?a.right=e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:a.right=e.scrollbarYRight-t.scrollLeft:e.isRtl?a.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth*2-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:a.left=e.scrollbarYLeft+t.scrollLeft,Lo(e.scrollbarYRail,a),Lo(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),Lo(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}function oSe(t){t.element,t.event.bind(t.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var r=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top,n=r>t.scrollbarYTop?1:-1;t.element.scrollTop+=n*t.containerHeight,gf(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var r=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left,n=r>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=n*t.containerWidth,gf(t),e.stopPropagation()})}function sSe(t){dj(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),dj(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])}function dj(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],d=t.element,p=null,v=null,g=null;function m(w){w.touches&&w.touches[0]&&(w[a]=w.touches[0].pageY),d[l]=p+g*(w[a]-v),AQ(t,u),gf(t),w.stopPropagation(),w.type.startsWith("touch")&&w.changedTouches.length>1&&w.preventDefault()}function x(){EQ(t,u),t[c].classList.remove(Ra.state.clicking),t.event.unbind(t.ownerDocument,"mousemove",m)}function _(w,T){p=d[l],T&&w.touches&&(w[a]=w.touches[0].pageY),v=w[a],g=(t[n]-t[r])/(t[i]-t[s]),T?t.event.bind(t.ownerDocument,"touchmove",m):(t.event.bind(t.ownerDocument,"mousemove",m),t.event.once(t.ownerDocument,"mouseup",x),w.preventDefault()),t[c].classList.add(Ra.state.clicking),w.stopPropagation()}t.event.bind(t[o],"mousedown",function(w){_(w)}),t.event.bind(t[o],"touchstart",function(w){_(w,!0)})}function lSe(t){var e=t.element,r=function(){return Zd(e,":hover")},n=function(){return Zd(t.scrollbarX,":focus")||Zd(t.scrollbarY,":focus")};function a(i,o){var s=Math.floor(e.scrollTop);if(i===0){if(!t.scrollbarYActive)return!1;if(s===0&&o>0||s>=t.contentHeight-t.containerHeight&&o<0)return!t.settings.wheelPropagation}var l=e.scrollLeft;if(o===0){if(!t.scrollbarXActive)return!1;if(l===0&&i<0||l>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}t.event.bind(t.ownerDocument,"keydown",function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&!(!r()&&!n())){var o=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(o){if(o.tagName==="IFRAME")o=o.contentDocument.activeElement;else for(;o.shadowRoot;)o=o.shadowRoot.activeElement;if(nSe(o))return}var s=0,l=0;switch(i.which){case 37:i.metaKey?s=-t.contentWidth:i.altKey?s=-t.containerWidth:s=-30;break;case 38:i.metaKey?l=t.contentHeight:i.altKey?l=t.containerHeight:l=30;break;case 39:i.metaKey?s=t.contentWidth:i.altKey?s=t.containerWidth:s=30;break;case 40:i.metaKey?l=-t.contentHeight:i.altKey?l=-t.containerHeight:l=-30;break;case 32:i.shiftKey?l=t.containerHeight:l=-t.containerHeight;break;case 33:l=t.containerHeight;break;case 34:l=-t.containerHeight;break;case 36:l=t.contentHeight;break;case 35:l=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&s!==0||t.settings.suppressScrollY&&l!==0||(e.scrollTop-=l,e.scrollLeft+=s,gf(t),a(s,l)&&i.preventDefault())}})}function uSe(t){var e=t.element;function r(o,s){var l=Math.floor(e.scrollTop),u=e.scrollTop===0,c=l+e.offsetHeight===e.scrollHeight,d=e.scrollLeft===0,p=e.scrollLeft+e.offsetWidth===e.scrollWidth,v;return Math.abs(s)>Math.abs(o)?v=u||c:v=d||p,v?!t.settings.wheelPropagation:!0}function n(o){var s=o.deltaX,l=-1*o.deltaY;return(typeof s>"u"||typeof l>"u")&&(s=-1*o.wheelDeltaX/6,l=o.wheelDeltaY/6),o.deltaMode&&o.deltaMode===1&&(s*=10,l*=10),s!==s&&l!==l&&(s=0,l=o.wheelDelta),o.shiftKey?[-l,-s]:[s,l]}function a(o,s,l){if(!Hy.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(o))return!1;for(var u=o;u&&u!==e;){if(u.classList.contains(Ra.element.consuming))return!0;var c=tc(u);if(l&&c.overflowY.match(/(scroll|auto)/)){var d=u.scrollHeight-u.clientHeight;if(d>0&&(u.scrollTop>0&&l<0||u.scrollTop<d&&l>0))return!0}if(s&&c.overflowX.match(/(scroll|auto)/)){var p=u.scrollWidth-u.clientWidth;if(p>0&&(u.scrollLeft>0&&s<0||u.scrollLeft<p&&s>0))return!0}u=u.parentNode}return!1}function i(o){var s=n(o),l=s[0],u=s[1];if(!a(o.target,l,u)){var c=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(u?e.scrollTop-=u*t.settings.wheelSpeed:e.scrollTop+=l*t.settings.wheelSpeed,c=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(l?e.scrollLeft+=l*t.settings.wheelSpeed:e.scrollLeft-=u*t.settings.wheelSpeed,c=!0):(e.scrollTop-=u*t.settings.wheelSpeed,e.scrollLeft+=l*t.settings.wheelSpeed),gf(t),c=c||r(l,u),c&&!o.ctrlKey&&(o.stopPropagation(),o.preventDefault())}}typeof window.onwheel<"u"?t.event.bind(e,"wheel",i):typeof window.onmousewheel<"u"&&t.event.bind(e,"mousewheel",i)}function cSe(t){if(!Hy.supportsTouch&&!Hy.supportsIePointer)return;var e=t.element;function r(g,m){var x=Math.floor(e.scrollTop),_=e.scrollLeft,w=Math.abs(g),T=Math.abs(m);if(T>w){if(m<0&&x===t.contentHeight-t.containerHeight||m>0&&x===0)return window.scrollY===0&&m>0&&Hy.isChrome}else if(w>T&&(g<0&&_===t.contentWidth-t.containerWidth||g>0&&_===0))return!0;return!0}function n(g,m){e.scrollTop-=m,e.scrollLeft-=g,gf(t)}var a={},i=0,o={},s=null;function l(g){return g.targetTouches?g.targetTouches[0]:g}function u(g){return g.pointerType&&g.pointerType==="pen"&&g.buttons===0?!1:!!(g.targetTouches&&g.targetTouches.length===1||g.pointerType&&g.pointerType!=="mouse"&&g.pointerType!==g.MSPOINTER_TYPE_MOUSE)}function c(g){if(u(g)){var m=l(g);a.pageX=m.pageX,a.pageY=m.pageY,i=new Date().getTime(),s!==null&&clearInterval(s)}}function d(g,m,x){if(!e.contains(g))return!1;for(var _=g;_&&_!==e;){if(_.classList.contains(Ra.element.consuming))return!0;var w=tc(_);if(x&&w.overflowY.match(/(scroll|auto)/)){var T=_.scrollHeight-_.clientHeight;if(T>0&&(_.scrollTop>0&&x<0||_.scrollTop<T&&x>0))return!0}if(m&&w.overflowX.match(/(scroll|auto)/)){var A=_.scrollWidth-_.clientWidth;if(A>0&&(_.scrollLeft>0&&m<0||_.scrollLeft<A&&m>0))return!0}_=_.parentNode}return!1}function p(g){if(u(g)){var m=l(g),x={pageX:m.pageX,pageY:m.pageY},_=x.pageX-a.pageX,w=x.pageY-a.pageY;if(d(g.target,_,w))return;n(_,w),a=x;var T=new Date().getTime(),A=T-i;A>0&&(o.x=_/A,o.y=w/A,i=T),r(_,w)&&g.preventDefault()}}function v(){t.settings.swipeEasing&&(clearInterval(s),s=setInterval(function(){if(t.isInitialized){clearInterval(s);return}if(!o.x&&!o.y){clearInterval(s);return}if(Math.abs(o.x)<.01&&Math.abs(o.y)<.01){clearInterval(s);return}if(!t.element){clearInterval(s);return}n(o.x*30,o.y*30),o.x*=.8,o.y*=.8},10))}Hy.supportsTouch?(t.event.bind(e,"touchstart",c),t.event.bind(e,"touchmove",p),t.event.bind(e,"touchend",v)):Hy.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",c),t.event.bind(e,"pointermove",p),t.event.bind(e,"pointerup",v)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",c),t.event.bind(e,"MSPointerMove",p),t.event.bind(e,"MSPointerUp",v)))}var fSe=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},dSe={"click-rail":oSe,"drag-thumb":sSe,keyboard:lSe,wheel:uSe,touch:cSe},MS=function(e,r){var n=this;if(r===void 0&&(r={}),typeof e=="string"&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=e,e.classList.add(Ra.main),this.settings=fSe();for(var a in r)this.settings[a]=r[a];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var i=function(){return e.classList.add(Ra.state.focus)},o=function(){return e.classList.remove(Ra.state.focus)};this.isRtl=tc(e).direction==="rtl",this.isRtl===!0&&e.classList.add(Ra.rtl),this.isNegativeScroll=function(){var u=e.scrollLeft,c=null;return e.scrollLeft=-1,c=e.scrollLeft<0,e.scrollLeft=u,c}(),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new W0,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=OA(Ra.element.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=OA(Ra.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",i),this.event.bind(this.scrollbarX,"blur",o),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var s=tc(this.scrollbarXRail);this.scrollbarXBottom=parseInt(s.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=ea(s.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=ea(s.borderLeftWidth)+ea(s.borderRightWidth),Lo(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=ea(s.marginLeft)+ea(s.marginRight),Lo(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=OA(Ra.element.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=OA(Ra.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",i),this.event.bind(this.scrollbarY,"blur",o),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var l=tc(this.scrollbarYRail);this.scrollbarYRight=parseInt(l.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=ea(l.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?aSe(this.scrollbarY):null,this.railBorderYWidth=ea(l.borderTopWidth)+ea(l.borderBottomWidth),Lo(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=ea(l.marginTop)+ea(l.marginBottom),Lo(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(u){return dSe[u](n)}),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",function(u){return n.onScroll(u)}),gf(this)};MS.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Lo(this.scrollbarXRail,{display:"block"}),Lo(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=ea(tc(this.scrollbarXRail).marginLeft)+ea(tc(this.scrollbarXRail).marginRight),this.railYMarginHeight=ea(tc(this.scrollbarYRail).marginTop)+ea(tc(this.scrollbarYRail).marginBottom),Lo(this.scrollbarXRail,{display:"none"}),Lo(this.scrollbarYRail,{display:"none"}),gf(this),PR(this,"top",0,!1,!0),PR(this,"left",0,!1,!0),Lo(this.scrollbarXRail,{display:""}),Lo(this.scrollbarYRail,{display:""}))};MS.prototype.onScroll=function(e){this.isAlive&&(gf(this),PR(this,"top",this.element.scrollTop-this.lastScrollTop),PR(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)};MS.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),Ky(this.scrollbarX),Ky(this.scrollbarY),Ky(this.scrollbarXRail),Ky(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)};MS.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(" ")};const hSe=Object.freeze(Object.defineProperty({__proto__:null,default:MS},Symbol.toStringTag,{value:"Module"})),pSe=Oue(hSe);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(x){for(var _=1;_<arguments.length;_++){var w=arguments[_];for(var T in w)Object.prototype.hasOwnProperty.call(w,T)&&(x[T]=w[T])}return x},n=function(){function x(_,w){for(var T=0;T<w.length;T++){var A=w[T];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(_,A.key,A)}}return function(_,w,T){return w&&x(_.prototype,w),T&&x(_,T),_}}(),a=Y,i=u(a),o=E,s=pSe,l=u(s);function u(x){return x&&x.__esModule?x:{default:x}}function c(x,_){var w={};for(var T in x)_.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(x,T)&&(w[T]=x[T]);return w}function d(x,_){if(!(x instanceof _))throw new TypeError("Cannot call a class as a function")}function p(x,_){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:x}function v(x,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);x.prototype=Object.create(_&&_.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(x,_):x.__proto__=_)}var g={"ps-scroll-y":"onScrollY","ps-scroll-x":"onScrollX","ps-scroll-up":"onScrollUp","ps-scroll-down":"onScrollDown","ps-scroll-left":"onScrollLeft","ps-scroll-right":"onScrollRight","ps-y-reach-start":"onYReachStart","ps-y-reach-end":"onYReachEnd","ps-x-reach-start":"onXReachStart","ps-x-reach-end":"onXReachEnd"};Object.freeze(g);var m=function(x){v(_,x);function _(w){d(this,_);var T=p(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,w));return T.handleRef=T.handleRef.bind(T),T._handlerByEvent={},T}return n(_,[{key:"componentDidMount",value:function(){this.props.option&&console.warn('react-perfect-scrollbar: the "option" prop has been deprecated in favor of "options"'),this._ps=new l.default(this._container,this.props.options||this.props.option),this._updateEventHook(),this._updateClassName()}},{key:"componentDidUpdate",value:function(T){this._updateEventHook(T),this.updateScroll(),T.className!==this.props.className&&this._updateClassName()}},{key:"componentWillUnmount",value:function(){var T=this;Object.keys(this._handlerByEvent).forEach(function(A){var M=T._handlerByEvent[A];M&&T._container.removeEventListener(A,M,!1)}),this._handlerByEvent={},this._ps.destroy(),this._ps=null}},{key:"_updateEventHook",value:function(){var T=this,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object.keys(g).forEach(function(M){var D=T.props[g[M]],P=A[g[M]];if(D!==P){if(P){var O=T._handlerByEvent[M];T._container.removeEventListener(M,O,!1),T._handlerByEvent[M]=null}if(D){var k=function(){return D(T._container)};T._container.addEventListener(M,k,!1),T._handlerByEvent[M]=k}}})}},{key:"_updateClassName",value:function(){var T=this.props.className,A=this._container.className.split(" ").filter(function(M){return M.match(/^ps([-_].+|)$/)}).join(" ");this._container&&(this._container.className="scrollbar-container"+(T?" "+T:"")+(A?" "+A:""))}},{key:"updateScroll",value:function(){this.props.onSync(this._ps)}},{key:"handleRef",value:function(T){this._container=T,this.props.containerRef(T)}},{key:"render",value:function(){var T=this.props;T.className;var A=T.style;T.option,T.options,T.containerRef,T.onScrollY,T.onScrollX,T.onScrollUp,T.onScrollDown,T.onScrollLeft,T.onScrollRight,T.onYReachStart,T.onYReachEnd,T.onXReachStart,T.onXReachEnd;var M=T.component;T.onSync;var D=T.children,P=c(T,["className","style","option","options","containerRef","onScrollY","onScrollX","onScrollUp","onScrollDown","onScrollLeft","onScrollRight","onYReachStart","onYReachEnd","onXReachStart","onXReachEnd","component","onSync","children"]),O=M;return i.default.createElement(O,r({style:A,ref:this.handleRef},P),D)}}]),_}(a.Component);e.default=m,m.defaultProps={className:"",style:void 0,option:void 0,options:void 0,containerRef:function(){},onScrollY:void 0,onScrollX:void 0,onScrollUp:void 0,onScrollDown:void 0,onScrollLeft:void 0,onScrollRight:void 0,onYReachStart:void 0,onYReachEnd:void 0,onXReachStart:void 0,onXReachEnd:void 0,onSync:function(_){return _.update()},component:"div"},m.propTypes={children:o.PropTypes.node.isRequired,className:o.PropTypes.string,style:o.PropTypes.object,option:o.PropTypes.object,options:o.PropTypes.object,containerRef:o.PropTypes.func,onScrollY:o.PropTypes.func,onScrollX:o.PropTypes.func,onScrollUp:o.PropTypes.func,onScrollDown:o.PropTypes.func,onScrollLeft:o.PropTypes.func,onScrollRight:o.PropTypes.func,onYReachStart:o.PropTypes.func,onYReachEnd:o.PropTypes.func,onXReachStart:o.PropTypes.func,onXReachEnd:o.PropTypes.func,onSync:o.PropTypes.func,component:o.PropTypes.string},t.exports=e.default})(eSe,IR);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=IR,n=a(r);function a(i){return i&&i.__esModule?i:{default:i}}e.default=n.default,t.exports=e.default})(J1e,DR);const vSe=xS(DR),DS=nt(ns)(({theme:t,textTransformStyle:e,ellipsis:r})=>({textTransform:e||"none",whiteSpace:r?"nowrap":"normal",overflow:r?"hidden":"",textOverflow:r?"ellipsis":""})),hj=({children:t,className:e,ellipsis:r,textTransform:n,...a})=>re.jsx(DS,{textTransformStyle:n,ellipsis:r,className:ar({[e||""]:!0}),component:"h5",mb:0,mt:0,fontSize:"14px",fontWeight:"500",lineHeight:"1.5",...a,children:t}),gSe=({children:t,className:e,ellipsis:r,textTransform:n,...a})=>re.jsx(DS,{textTransformStyle:n,ellipsis:r,className:ar({[e||""]:!0}),component:"h6",mb:0,mt:0,fontSize:"13px",fontWeight:"500",lineHeight:"1.5",...a,children:t}),mSe=({children:t,className:e,ellipsis:r,textTransform:n,...a})=>re.jsx(DS,{textTransformStyle:n,ellipsis:r,className:ar({[e||""]:!0}),component:"p",mb:0,mt:0,fontSize:"14px",...a,children:t}),ySe=({children:t,className:e,ellipsis:r,textTransform:n,...a})=>re.jsx(DS,{textTransformStyle:n,ellipsis:r,className:ar({[e||""]:!0}),component:"small",fontSize:"12px",fontWeight:"500",lineHeight:"1.5",...a,children:t}),MQ=({children:t,className:e,ellipsis:r,textTransform:n,...a})=>re.jsx(DS,{textTransformStyle:n,ellipsis:r,className:ar({[e||""]:!0}),component:"span",lineHeight:"1.5",...a,children:t}),bSe=nt("div")(()=>({height:"100%",display:"flex",flexDirection:"column",background:"#fff"})),xSe=nt(vSe)(()=>({flexGrow:1})),_Se=nt("div")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 12px 12px 20px",color:t.palette.primary.main,background:"#fafafa"})),SSe=nt("div")(({theme:t})=>({marginLeft:"12px",color:t.palette.primary.main,"& h5":{marginTop:0,fontSize:"14px",marginBottom:"3px"},"& span":{fontWeight:"500"}})),wSe=nt("div")(({theme:t})=>({padding:"8px",maxWidth:240,fontSize:"14px",borderRadius:"4px",marginBottom:"8px",whiteSpace:"pre-wrap",wordBreak:"break-word",color:t.palette.primary.main,background:"#fafafa"})),r$=nt("span")(({theme:t})=>({fontSize:"13px",fontWeight:"500",color:t.palette.primary.main})),TSe=nt("div")(({theme:t})=>({padding:"20px",display:"flex",justifyContent:"flex-end"})),CSe=nt("div")(({theme:t})=>({padding:"8px",fontSize:"14px",maxWidth:240,borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"flex-end",color:t.palette.primary.main,background:"#fafafa"})),ASe=nt("img")(()=>({width:"40px"})),ESe=nt(r$)(()=>({})),Wk=[],iYe=({togglePopup:t})=>{const[e,r]=Y.useState(!0),[n,a]=Y.useState(""),[i,o]=Y.useState([]),s="7863a6802ez0e277a0f98534",l=document.querySelector("#chat-scroll"),u=m=>{if(m.key==="Enter"&&!m.shiftKey){let x=n.trim();if(x!==""){let _=[...i],w={text:x,contactId:s};_.push(w),Wk.push(w),e&&o(_),c()}a("")}},c=async()=>{setTimeout(()=>{[...i];let m={text:"Good to hear from you. enjoy!!!",contactId:"opponents contact id",avatar:"/assets/images/faces/13.jpg",name:"Frank Powell"};Wk.push(m),e&&o(Wk)},2e3)},d=Y.useCallback(()=>{l&&l.scrollTo({top:l.scrollHeight,behavior:"smooth"})},[l]);Y.useEffect(()=>{e&&o([{contactId:"323sa680b3249760ea21rt47",text:"Do you ever find yourself falling into the “discount trap?”",time:"2018-02-10T08:45:28.291Z",id:"323sa680b3249760ea21rt47",name:"Frank Powell",avatar:"/assets/images/faces/13.jpg",status:"online",mood:""},{contactId:"7863a6802ez0e277a0f98534",text:"Giving away your knowledge or product just to gain clients?",time:"2018-02-10T08:45:28.291Z",id:"7863a6802ez0e277a0f98534",name:"John Doe",avatar:"/assets/images/face-1.jpg",status:"online",mood:""},{contactId:"323sa680b3249760ea21rt47",text:"Yes",time:"2018-02-10T08:45:28.291Z",id:"323sa680b3249760ea21rt47",name:"Frank Powell",avatar:"/assets/images/faces/13.jpg",status:"online",mood:""},{contactId:"7863a6802ez0e277a0f98534",text:"Don’t feel bad. It happens to a lot of us",time:"2018-02-10T08:45:28.291Z",id:"7863a6802ez0e277a0f98534",name:"John Doe",avatar:"/assets/images/face-1.jpg",status:"online",mood:""},{contactId:"323sa680b3249760ea21rt47",text:"Do you ever find yourself falling into the “discount trap?”",time:"2018-02-10T08:45:28.291Z",id:"323sa680b3249760ea21rt47",name:"Frank Powell",avatar:"/assets/images/faces/13.jpg",status:"online",mood:""},{contactId:"7863a6802ez0e277a0f98534",text:"Giving away your knowledge or product just to gain clients?",time:"2018-02-10T08:45:28.291Z",id:"7863a6802ez0e277a0f98534",name:"John Doe",avatar:"/assets/images/face-1.jpg",status:"online",mood:""},{contactId:"323sa680b3249760ea21rt47",text:"Yes",time:"2018-02-10T08:45:28.291Z",id:"323sa680b3249760ea21rt47",name:"Frank Powell",avatar:"/assets/images/faces/13.jpg",status:"online",mood:""},{contactId:"7863a6802ez0e277a0f98534",text:"Don’t feel bad. It happens to a lot of us",time:"2018-02-10T08:45:28.291Z",id:"7863a6802ez0e277a0f98534",name:"John Doe",avatar:"/assets/images/face-1.jpg",status:"online",mood:""}])},[e]),Y.useEffect(()=>(d(),()=>r(!1)),[i,d]);const{palette:p}=Eh(),v=p.primary.main,g=p.text.primary;return re.jsxs(bSe,{children:[re.jsxs(_Se,{children:[re.jsxs(ns,{display:"flex",alignItems:"center",children:[re.jsx(Xxe,{src:"/assets/images/face-2.jpg",status:"online"}),re.jsxs(SSe,{children:[re.jsx(hj,{children:"Ryan Todd"}),re.jsx(MQ,{children:"Active"})]})]}),re.jsx(f1,{onClick:t,children:re.jsx(oc,{fontSize:"small",children:"clear"})})]}),re.jsxs(xSe,{id:"chat-scroll",children:[i.map((m,x)=>re.jsxs(ns,{p:"20px",display:"flex",sx:{justifyContent:s===m.contactId&&"flex-end"},children:[s!==m.contactId&&re.jsx(JZ,{src:m.avatar}),re.jsxs(ns,{ml:"12px",children:[s!==m.contactId&&re.jsx(hj,{sx:{mb:"4px",fontSize:"14px",color:v},children:m.name}),re.jsx(wSe,{children:m.text}),re.jsx(r$,{children:"1 minute ago"})]})]},x)),re.jsx(TSe,{children:re.jsxs(ns,{ml:"12px",children:[re.jsxs(CSe,{children:[re.jsx(ASe,{alt:"laptop",src:"/assets/images/laptop-1.png"}),re.jsxs(ns,{ml:"12px",children:[re.jsx(gSe,{sx:{mt:0,mb:"4px"},children:"Asus K555LA.png"}),re.jsx(ESe,{children:"21.5KB"})]})]}),re.jsx(r$,{children:"1 minute ago"})]})})]}),re.jsxs("div",{children:[re.jsx(Rge,{sx:{background:`rgba(${Q1e(g)}, 0.15)`}}),re.jsx(Wye,{placeholder:"Type here ...",multiline:!0,rowsMax:4,fullWidth:!0,sx:{"& textarea":{color:v}},InputProps:{endAdornment:re.jsxs(ns,{display:"flex",children:[re.jsx(f1,{size:"small",children:re.jsx(oc,{children:"tag_faces"})}),re.jsx(f1,{size:"small",children:re.jsx(oc,{children:"attachment"})})]}),classes:{root:"pl-5 pr-3 py-3 text-body"}},value:n,onChange:m=>a(m.target.value),onKeyUp:u})]})]})},oYe="1.5rem",DQ=64,sYe=260,lYe=80,Hk="/admin",NA="/auth",my="/public",v_="/allow",IS="/api",RSe=nt("div")(({theme:t})=>({"& .popupOpen":{top:DQ+16,[t.breakpoints.down("sm")]:{bottom:0}},"& .closeIcon":{position:"absolute",top:6,right:6}})),MSe=nt("div")(({theme:t})=>({position:"fixed",right:t.spacing(2),bottom:t.spacing(2),top:"100vh",transition:"top 250ms ease-in-out",boxShadow:t.shadows[6],borderRadius:6,zIndex:99999,width:360,overflow:"hidden","@media only screen and (max-width: 450px)":{width:"calc(100% - 32px)",left:t.spacing(2)}})),uYe=({icon:t,children:e})=>{const[r,n]=Y.useState(!1),a=async()=>{n(i=>!i)};return re.jsxs(RSe,{children:[Y.cloneElement(t,{onClick:a}),re.jsx(MSe,{className:ar({popupOpen:r}),children:r?Y.cloneElement(e,{togglePopup:a}):null})]})};nt("div")(()=>({width:360,padding:"32px",textAlign:"center",marginLeft:"auto",marginRight:"auto"}));nt("h4")(()=>({margin:0,marginBottom:"8px",textTransform:"capitalize"}));nt("div")(()=>({margin:"8px",paddingTop:"8px",display:"flex",justifyContent:"center"}));nt(oK)(({theme:t})=>({margin:"8px",paddingLeft:"24px",paddingRight:"24px",overflow:"hidden",borderRadius:"300px",transition:"all 250ms","&.yesBtn":{"&:hover":{color:"#ffffff",background:`${t.palette.primary.main} !important`,backgroundColor:`${t.palette.primary.main} !important`,fallbacks:[{color:"white !important"}]}},"&.noBtn":{"&:hover":{color:"#ffffff",background:`${t.palette.secondary.main} !important`,backgroundColor:`${t.palette.secondary.main} !important`,fallbacks:[{color:"white !important"}]}}}));const DSe="modulepreload",ISe=function(t){return"/"+t},pj={},Qr=function(e,r,n){if(!r||r.length===0)return e();const a=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=ISe(i),i in pj)return;pj[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!n)for(let c=a.length-1;c>=0;c--){const d=a[c];if(d.href===i&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":DSe,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e())},PSe={layout1:bi.lazy(()=>Qr(()=>import("./Layout1-aa20c4ec.js"),["assets/Layout1-aa20c4ec.js","assets/Toolbar-d5f2ec66.js","assets/AppBar-a2b92a6e.js","assets/Badge-bc5cbe8c.js","assets/shouldSpreadAdditionalProps-98202fee.js","assets/Tooltip-4d2e5457.js","assets/Popper-151dcaf9.js","assets/popper-578b62a7.js","assets/Slide-d13e3d86.js","assets/Fab-ba6297ee.js","assets/Hidden-5cc502db.js","assets/useMediaQuery-72cdd2fe.js","assets/Switch-04a62a88.js","assets/SwitchBase-f2562236.js","assets/MenuItem-3ea292e1.js","assets/listItemIconClasses-873dc6a3.js"]))};var T0={},LSe={get exports(){return T0},set exports(t){T0=t}};/** * @license * Lodash <https://lodash.com/> * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(t,e){(function(){var r,n="4.17.21",a=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",d=1,p=2,v=4,g=1,m=2,x=1,_=2,w=4,T=8,A=16,M=32,D=64,P=128,O=256,k=512,N=30,$="...",H=800,F=16,W=1,j=2,X=3,te=1/0,J=9007199254740991,ie=17976931348623157e292,se=0/0,le=4294967295,be=le-1,Me=le>>>1,Se=[["ary",P],["bind",x],["bindKey",_],["curry",T],["curryRight",A],["flip",k],["partial",M],["partialRight",D],["rearg",O]],Ue="[object Arguments]",Xe="[object Array]",st="[object AsyncFunction]",$e="[object Boolean]",Be="[object Date]",et="[object DOMException]",de="[object Error]",xe="[object Function]",xt="[object GeneratorFunction]",Ie="[object Map]",Ct="[object Number]",Ot="[object Null]",jt="[object Object]",nr="[object Promise]",Tr="[object Proxy]",Er="[object RegExp]",Xt="[object Set]",Sn="[object String]",zr="[object Symbol]",ge="[object Undefined]",Ee="[object WeakMap]",ke="[object WeakSet]",Ge="[object ArrayBuffer]",Ke="[object DataView]",ft="[object Float32Array]",We="[object Float64Array]",Ae="[object Int8Array]",Pe="[object Int16Array]",rt="[object Int32Array]",gt="[object Uint8Array]",cr="[object Uint8ClampedArray]",$r="[object Uint16Array]",Rr="[object Uint32Array]",Un=/\b__p \+= '';/g,Dr=/\b(__p \+=) '' \+/g,da=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ho=/&(?:amp|lt|gt|quot|#39);/g,$o=/[&<>"']/g,ml=RegExp(ho.source),iu=RegExp($o.source),Fo=/<%-([\s\S]+?)%>/g,Vo=/<%([\s\S]+?)%>/g,po=/<%=([\s\S]+?)%>/g,ms=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wn=/^\w*$/,ou=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ue=/[\\^$.*+?()[\]{}|]/g,Je=RegExp(ue.source),dt=/^\s+/,Nt=/\s/,Ir=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Zt=/\{\n\/\* \[wrapped with (.+)\] \*/,Cr=/,? & /,br=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,An=/[()=,{}\[\]\/\s]/,kr=/\\(\\)?/g,wn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Va=/\w*$/,vo=/^[-+]0x[0-9a-f]+$/i,su=/^0b[01]+$/i,li=/^\[object .+?Constructor\]$/,Bh=/^0o[0-7]+$/i,zh=/^(?:0|[1-9]\d*)$/,$h=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ui=/($^)/,go=/['\n\r\u2028\u2029\\]/g,ys="\\ud800-\\udfff",yc="\\u0300-\\u036f",Gi="\\ufe20-\\ufe2f",bc="\\u20d0-\\u20ff",bs=yc+Gi+bc,Dg="\\u2700-\\u27bf",xc="a-z\\xdf-\\xf6\\xf8-\\xff",Ig="\\xac\\xb1\\xd7\\xf7",_c="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Df="\\u2000-\\u206f",If=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Fh="A-Z\\xc0-\\xd6\\xd8-\\xde",lu="\\ufe0e\\ufe0f",Pg=Ig+_c+Df+If,Uo="['’]",ht="["+ys+"]",Pf="["+Pg+"]",ha="["+bs+"]",yl="\\d+",uu="["+Dg+"]",Lg="["+xc+"]",Sa="[^"+ys+Pg+yl+Dg+xc+Fh+"]",Bn="\\ud83c[\\udffb-\\udfff]",ji="(?:"+ha+"|"+Bn+")",Og="[^"+ys+"]",Pa="(?:\\ud83c[\\udde6-\\uddff]){2}",Yi="[\\ud800-\\udbff][\\udc00-\\udfff]",cu="["+Fh+"]",Lf="\\u200d",Of="(?:"+Lg+"|"+Sa+")",kg="(?:"+cu+"|"+Sa+")",Ng="(?:"+Uo+"(?:d|ll|m|re|s|t|ve))?",Bg="(?:"+Uo+"(?:D|LL|M|RE|S|T|VE))?",zg=ji+"?",Z="["+lu+"]?",pe="(?:"+Lf+"(?:"+[Og,Pa,Yi].join("|")+")"+Z+zg+")*",Re="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",He="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",pt=Z+zg+pe,Jt="(?:"+[uu,Pa,Yi].join("|")+")"+pt,Yt="(?:"+[Og+ha+"?",ha,Pa,Yi,ht].join("|")+")",Vt=RegExp(Uo,"g"),Wr=RegExp(ha,"g"),Jr=RegExp(Bn+"(?="+Bn+")|"+Yt+pt,"g"),En=RegExp([cu+"?"+Lg+"+"+Ng+"(?="+[Pf,cu,"$"].join("|")+")",kg+"+"+Bg+"(?="+[Pf,cu+Of,"$"].join("|")+")",cu+"?"+Of+"+"+Ng,cu+"+"+Bg,He,Re,yl,Jt].join("|"),"g"),zn=RegExp("["+Lf+ys+bs+lu+"]"),Ua=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wa=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ci=-1,Fr={};Fr[ft]=Fr[We]=Fr[Ae]=Fr[Pe]=Fr[rt]=Fr[gt]=Fr[cr]=Fr[$r]=Fr[Rr]=!0,Fr[Ue]=Fr[Xe]=Fr[Ge]=Fr[$e]=Fr[Ke]=Fr[Be]=Fr[de]=Fr[xe]=Fr[Ie]=Fr[Ct]=Fr[jt]=Fr[Er]=Fr[Xt]=Fr[Sn]=Fr[Ee]=!1;var Hr={};Hr[Ue]=Hr[Xe]=Hr[Ge]=Hr[Ke]=Hr[$e]=Hr[Be]=Hr[ft]=Hr[We]=Hr[Ae]=Hr[Pe]=Hr[rt]=Hr[Ie]=Hr[Ct]=Hr[jt]=Hr[Er]=Hr[Xt]=Hr[Sn]=Hr[zr]=Hr[gt]=Hr[cr]=Hr[$r]=Hr[Rr]=!0,Hr[de]=Hr[xe]=Hr[Ee]=!1;var Vh={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},cb={"&":"&","<":"<",">":">",'"':""","'":"'"},Uh={"&":"&","<":"<",">":">",""":'"',"'":"'"},fb={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},kf=parseFloat,Wh=parseInt,db=typeof Pv=="object"&&Pv&&Pv.Object===Object&&Pv,aw=typeof self=="object"&&self&&self.Object===Object&&self,La=db||aw||Function("return this")(),fu=e&&!e.nodeType&&e,bl=fu&&!0&&t&&!t.nodeType&&t,hb=bl&&bl.exports===fu,pb=hb&&db.process,mo=function(){try{var ve=bl&&bl.require&&bl.require("util").types;return ve||pb&&pb.binding&&pb.binding("util")}catch{}}(),iw=mo&&mo.isArrayBuffer,vb=mo&&mo.isDate,$g=mo&&mo.isMap,gb=mo&&mo.isRegExp,mb=mo&&mo.isSet,yb=mo&&mo.isTypedArray;function qi(ve,Ne,De){switch(De.length){case 0:return ve.call(Ne);case 1:return ve.call(Ne,De[0]);case 2:return ve.call(Ne,De[0],De[1]);case 3:return ve.call(Ne,De[0],De[1],De[2])}return ve.apply(Ne,De)}function Fg(ve,Ne,De,lt){for(var or=-1,Vr=ve==null?0:ve.length;++or<Vr;){var pa=ve[or];Ne(lt,pa,De(pa),ve)}return lt}function Xi(ve,Ne){for(var De=-1,lt=ve==null?0:ve.length;++De<lt&&Ne(ve[De],De,ve)!==!1;);return ve}function bb(ve,Ne){for(var De=ve==null?0:ve.length;De--&&Ne(ve[De],De,ve)!==!1;);return ve}function xb(ve,Ne){for(var De=-1,lt=ve==null?0:ve.length;++De<lt;)if(!Ne(ve[De],De,ve))return!1;return!0}function xs(ve,Ne){for(var De=-1,lt=ve==null?0:ve.length,or=0,Vr=[];++De<lt;){var pa=ve[De];Ne(pa,De,ve)&&(Vr[or++]=pa)}return Vr}function Nf(ve,Ne){var De=ve==null?0:ve.length;return!!De&&Bf(ve,Ne,0)>-1}function _b(ve,Ne,De){for(var lt=-1,or=ve==null?0:ve.length;++lt<or;)if(De(Ne,ve[lt]))return!0;return!1}function pn(ve,Ne){for(var De=-1,lt=ve==null?0:ve.length,or=Array(lt);++De<lt;)or[De]=Ne(ve[De],De,ve);return or}function xl(ve,Ne){for(var De=-1,lt=Ne.length,or=ve.length;++De<lt;)ve[or+De]=Ne[De];return ve}function Ai(ve,Ne,De,lt){var or=-1,Vr=ve==null?0:ve.length;for(lt&&Vr&&(De=ve[++or]);++or<Vr;)De=Ne(De,ve[or],or,ve);return De}function _l(ve,Ne,De,lt){var or=ve==null?0:ve.length;for(lt&&or&&(De=ve[--or]);or--;)De=Ne(De,ve[or],or,ve);return De}function ci(ve,Ne){for(var De=-1,lt=ve==null?0:ve.length;++De<lt;)if(Ne(ve[De],De,ve))return!0;return!1}var du=Sb("length");function ow(ve){return ve.split("")}function Vg(ve){return ve.match(br)||[]}function sw(ve,Ne,De){var lt;return De(ve,function(or,Vr,pa){if(Ne(or,Vr,pa))return lt=Vr,!1}),lt}function hu(ve,Ne,De,lt){for(var or=ve.length,Vr=De+(lt?1:-1);lt?Vr--:++Vr<or;)if(Ne(ve[Vr],Vr,ve))return Vr;return-1}function Bf(ve,Ne,De){return Ne===Ne?Eb(ve,Ne,De):hu(ve,Ug,De)}function mI(ve,Ne,De,lt){for(var or=De-1,Vr=ve.length;++or<Vr;)if(lt(ve[or],Ne))return or;return-1}function Ug(ve){return ve!==ve}function lw(ve,Ne){var De=ve==null?0:ve.length;return De?Cb(ve,Ne)/De:se}function Sb(ve){return function(Ne){return Ne==null?r:Ne[ve]}}function wb(ve){return function(Ne){return ve==null?r:ve[Ne]}}function Tb(ve,Ne,De,lt,or){return or(ve,function(Vr,pa,vn){De=lt?(lt=!1,Vr):Ne(De,Vr,pa,vn)}),De}function yI(ve,Ne){var De=ve.length;for(ve.sort(Ne);De--;)ve[De]=ve[De].value;return ve}function Cb(ve,Ne){for(var De,lt=-1,or=ve.length;++lt<or;){var Vr=Ne(ve[lt]);Vr!==r&&(De=De===r?Vr:De+Vr)}return De}function Ab(ve,Ne){for(var De=-1,lt=Array(ve);++De<ve;)lt[De]=Ne(De);return lt}function uw(ve,Ne){return pn(Ne,function(De){return[De,ve[De]]})}function Sc(ve){return ve&&ve.slice(0,Tc(ve)+1).replace(dt,"")}function fi(ve){return function(Ne){return ve(Ne)}}function Wg(ve,Ne){return pn(Ne,function(De){return ve[De]})}function zf(ve,Ne){return ve.has(Ne)}function cw(ve,Ne){for(var De=-1,lt=ve.length;++De<lt&&Bf(Ne,ve[De],0)>-1;);return De}function fw(ve,Ne){for(var De=ve.length;De--&&Bf(Ne,ve[De],0)>-1;);return De}function bI(ve,Ne){for(var De=ve.length,lt=0;De--;)ve[De]===Ne&&++lt;return lt}var xI=wb(Vh),_I=wb(cb);function SI(ve){return"\\"+fb[ve]}function wI(ve,Ne){return ve==null?r:ve[Ne]}function $f(ve){return zn.test(ve)}function dw(ve){return Ua.test(ve)}function TI(ve){for(var Ne,De=[];!(Ne=ve.next()).done;)De.push(Ne.value);return De}function Hg(ve){var Ne=-1,De=Array(ve.size);return ve.forEach(function(lt,or){De[++Ne]=[or,lt]}),De}function hw(ve,Ne){return function(De){return ve(Ne(De))}}function pu(ve,Ne){for(var De=-1,lt=ve.length,or=0,Vr=[];++De<lt;){var pa=ve[De];(pa===Ne||pa===c)&&(ve[De]=c,Vr[or++]=De)}return Vr}function Gg(ve){var Ne=-1,De=Array(ve.size);return ve.forEach(function(lt){De[++Ne]=lt}),De}function CI(ve){var Ne=-1,De=Array(ve.size);return ve.forEach(function(lt){De[++Ne]=[lt,lt]}),De}function Eb(ve,Ne,De){for(var lt=De-1,or=ve.length;++lt<or;)if(ve[lt]===Ne)return lt;return-1}function wc(ve,Ne,De){for(var lt=De+1;lt--;)if(ve[lt]===Ne)return lt;return lt}function Sl(ve){return $f(ve)?EI(ve):du(ve)}function yo(ve){return $f(ve)?RI(ve):ow(ve)}function Tc(ve){for(var Ne=ve.length;Ne--&&Nt.test(ve.charAt(Ne)););return Ne}var AI=wb(Uh);function EI(ve){for(var Ne=Jr.lastIndex=0;Jr.test(ve);)++Ne;return Ne}function RI(ve){return ve.match(Jr)||[]}function MI(ve){return ve.match(En)||[]}var DI=function ve(Ne){Ne=Ne==null?La:Ff.defaults(La.Object(),Ne,Ff.pick(La,Wa));var De=Ne.Array,lt=Ne.Date,or=Ne.Error,Vr=Ne.Function,pa=Ne.Math,vn=Ne.Object,Rb=Ne.RegExp,II=Ne.String,bo=Ne.TypeError,Hh=De.prototype,jg=Vr.prototype,_s=vn.prototype,Gh=Ne["__core-js_shared__"],Yg=jg.toString,Gr=_s.hasOwnProperty,Mb=0,Cc=function(){var y=/[^.]+$/.exec(Gh&&Gh.keys&&Gh.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),wl=_s.toString,pw=Yg.call(vn),PI=La._,vw=Rb("^"+Yg.call(Gr).replace(ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qg=hb?Ne.Buffer:r,Tl=Ne.Symbol,Vf=Ne.Uint8Array,Db=qg?qg.allocUnsafe:r,Uf=hw(vn.getPrototypeOf,vn),Ib=vn.create,Cl=_s.propertyIsEnumerable,Wf=Hh.splice,Xg=Tl?Tl.isConcatSpreadable:r,jh=Tl?Tl.iterator:r,Ac=Tl?Tl.toStringTag:r,Zg=function(){try{var y=ga(vn,"defineProperty");return y({},"",{}),y}catch{}}(),LI=Ne.clearTimeout!==La.clearTimeout&&Ne.clearTimeout,OI=lt&<.now!==La.Date.now&<.now,kI=Ne.setTimeout!==La.setTimeout&&Ne.setTimeout,Kg=pa.ceil,vu=pa.floor,Yh=vn.getOwnPropertySymbols,qh=qg?qg.isBuffer:r,Pb=Ne.isFinite,gw=Hh.join,Lb=hw(vn.keys,vn),va=pa.max,Kn=pa.min,Qg=lt.now,Jg=Ne.parseInt,em=pa.random,NI=Hh.reverse,xo=ga(Ne,"DataView"),Xh=ga(Ne,"Map"),Ob=ga(Ne,"Promise"),Ei=ga(Ne,"Set"),Ri=ga(Ne,"WeakMap"),Ss=ga(vn,"create"),tm=Ri&&new Ri,Hf={},$n=wu(xo),gu=wu(Xh),Qn=wu(Ob),gn=wu(Ei),BI=wu(Ri),_o=Tl?Tl.prototype:r,mu=_o?_o.valueOf:r,kb=_o?_o.toString:r;function K(y){if(Ln(y)&&!lr(y)&&!(y instanceof hr)){if(y instanceof Ha)return y;if(Gr.call(y,"__wrapped__"))return od(y)}return new Ha(y)}var Al=function(){function y(){}return function(S){if(!Fn(S))return{};if(Ib)return Ib(S);y.prototype=S;var I=new y;return y.prototype=r,I}}();function ws(){}function Ha(y,S){this.__wrapped__=y,this.__actions__=[],this.__chain__=!!S,this.__index__=0,this.__values__=r}K.templateSettings={escape:Fo,evaluate:Vo,interpolate:po,variable:"",imports:{_:K}},K.prototype=ws.prototype,K.prototype.constructor=K,Ha.prototype=Al(ws.prototype),Ha.prototype.constructor=Ha;function hr(y){this.__wrapped__=y,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=le,this.__views__=[]}function El(){var y=new hr(this.__wrapped__);return y.__actions__=tn(this.__actions__),y.__dir__=this.__dir__,y.__filtered__=this.__filtered__,y.__iteratees__=tn(this.__iteratees__),y.__takeCount__=this.__takeCount__,y.__views__=tn(this.__views__),y}function zI(){if(this.__filtered__){var y=new hr(this);y.__dir__=-1,y.__filtered__=!0}else y=this.clone(),y.__dir__*=-1;return y}function $I(){var y=this.__wrapped__.value(),S=this.__dir__,I=lr(y),B=S<0,G=I?y.length:0,Q=cx(0,G,this.__views__),ae=Q.start,ce=Q.end,me=ce-ae,Fe=B?ce:ae-1,Ve=this.__iteratees__,je=Ve.length,ut=0,Dt=Kn(me,this.__takeCount__);if(!I||!B&&G==me&&Dt==me)return Bw(y,this.__actions__);var qt=[];e:for(;me--&&ut<Dt;){Fe+=S;for(var Kt=-1,Bt=y[Fe];++Kt<je;){var xr=Ve[Kt],Ar=xr.iteratee,Ja=xr.type,na=Ar(Bt);if(Ja==j)Bt=na;else if(!na){if(Ja==W)continue e;break e}}qt[ut++]=Bt}return qt}hr.prototype=Al(ws.prototype),hr.prototype.constructor=hr;function Ec(y){var S=-1,I=y==null?0:y.length;for(this.clear();++S<I;){var B=y[S];this.set(B[0],B[1])}}function Zh(){this.__data__=Ss?Ss(null):{},this.size=0}function Rl(y){var S=this.has(y)&&delete this.__data__[y];return this.size-=S?1:0,S}function Nb(y){var S=this.__data__;if(Ss){var I=S[y];return I===l?r:I}return Gr.call(S,y)?S[y]:r}function FI(y){var S=this.__data__;return Ss?S[y]!==r:Gr.call(S,y)}function Rc(y,S){var I=this.__data__;return this.size+=this.has(y)?0:1,I[y]=Ss&&S===r?l:S,this}Ec.prototype.clear=Zh,Ec.prototype.delete=Rl,Ec.prototype.get=Nb,Ec.prototype.has=FI,Ec.prototype.set=Rc;function Ts(y){var S=-1,I=y==null?0:y.length;for(this.clear();++S<I;){var B=y[S];this.set(B[0],B[1])}}function mw(){this.__data__=[],this.size=0}function VI(y){var S=this.__data__,I=ep(S,y);if(I<0)return!1;var B=S.length-1;return I==B?S.pop():Wf.call(S,I,1),--this.size,!0}function UI(y){var S=this.__data__,I=ep(S,y);return I<0?r:S[I][1]}function yw(y){return ep(this.__data__,y)>-1}function bw(y,S){var I=this.__data__,B=ep(I,y);return B<0?(++this.size,I.push([y,S])):I[B][1]=S,this}Ts.prototype.clear=mw,Ts.prototype.delete=VI,Ts.prototype.get=UI,Ts.prototype.has=yw,Ts.prototype.set=bw;function Cs(y){var S=-1,I=y==null?0:y.length;for(this.clear();++S<I;){var B=y[S];this.set(B[0],B[1])}}function WI(){this.size=0,this.__data__={hash:new Ec,map:new(Xh||Ts),string:new Ec}}function xw(y){var S=Vc(this,y).delete(y);return this.size-=S?1:0,S}function _w(y){return Vc(this,y).get(y)}function HI(y){return Vc(this,y).has(y)}function Bb(y,S){var I=Vc(this,y),B=I.size;return I.set(y,S),this.size+=I.size==B?0:1,this}Cs.prototype.clear=WI,Cs.prototype.delete=xw,Cs.prototype.get=_w,Cs.prototype.has=HI,Cs.prototype.set=Bb;function Mc(y){var S=-1,I=y==null?0:y.length;for(this.__data__=new Cs;++S<I;)this.add(y[S])}function Sw(y){return this.__data__.set(y,l),this}function GI(y){return this.__data__.has(y)}Mc.prototype.add=Mc.prototype.push=Sw,Mc.prototype.has=GI;function So(y){var S=this.__data__=new Ts(y);this.size=S.size}function jI(){this.__data__=new Ts,this.size=0}function zb(y){var S=this.__data__,I=S.delete(y);return this.size=S.size,I}function Ml(y){return this.__data__.get(y)}function yu(y){return this.__data__.has(y)}function bu(y,S){var I=this.__data__;if(I instanceof Ts){var B=I.__data__;if(!Xh||B.length<a-1)return B.push([y,S]),this.size=++I.size,this;I=this.__data__=new Cs(B)}return I.set(y,S),this.size=I.size,this}So.prototype.clear=jI,So.prototype.delete=zb,So.prototype.get=Ml,So.prototype.has=yu,So.prototype.set=bu;function Dl(y,S){var I=lr(y),B=!I&&Cu(y),G=!I&&!B&&Au(y),Q=!I&&!B&&!G&&hd(y),ae=I||B||G||Q,ce=ae?Ab(y.length,II):[],me=ce.length;for(var Fe in y)(S||Gr.call(y,Fe))&&!(ae&&(Fe=="length"||G&&(Fe=="offset"||Fe=="parent")||Q&&(Fe=="buffer"||Fe=="byteLength"||Fe=="byteOffset")||Ol(Fe,me)))&&ce.push(Fe);return ce}function Gf(y){var S=y.length;return S?y[Oc(0,S-1)]:r}function Kh(y,S){return xm(tn(y),Dc(S,0,y.length))}function Qh(y){return xm(tn(y))}function $b(y,S,I){(I!==r&&!To(y[S],I)||I===r&&!(S in y))&&Zi(y,S,I)}function Jh(y,S,I){var B=y[S];(!(Gr.call(y,S)&&To(B,I))||I===r&&!(S in y))&&Zi(y,S,I)}function ep(y,S){for(var I=y.length;I--;)if(To(y[I][0],S))return I;return-1}function ww(y,S,I,B){return As(y,function(G,Q,ae){S(B,G,I(G),ae)}),B}function Fb(y,S){return y&&ja(S,Ca(S),y)}function Tw(y,S){return y&&ja(S,Ii(S),y)}function Zi(y,S,I){S=="__proto__"&&Zg?Zg(y,S,{configurable:!0,enumerable:!0,value:I,writable:!0}):y[S]=I}function Vb(y,S){for(var I=-1,B=S.length,G=De(B),Q=y==null;++I<B;)G[I]=Q?r:Ax(y,S[I]);return G}function Dc(y,S,I){return y===y&&(I!==r&&(y=y<=I?y:I),S!==r&&(y=y>=S?y:S)),y}function di(y,S,I,B,G,Q){var ae,ce=S&d,me=S&p,Fe=S&v;if(I&&(ae=G?I(y,B,G,Q):I(y)),ae!==r)return ae;if(!Fn(y))return y;var Ve=lr(y);if(Ve){if(ae=oP(y),!ce)return tn(y,ae)}else{var je=Ya(y),ut=je==xe||je==xt;if(Au(y))return $w(y,ce);if(je==jt||je==Ue||ut&&!G){if(ae=me||ut?{}:pp(y),!ce)return me?dm(y,Tw(ae,y)):jr(y,Fb(ae,y))}else{if(!Hr[je])return G?y:{};ae=Kw(y,je,ce)}}Q||(Q=new So);var Dt=Q.get(y);if(Dt)return Dt;Q.set(y,ae),Im(y)?y.forEach(function(Bt){ae.add(di(Bt,S,I,Bt,y,Q))}):Dm(y)&&y.forEach(function(Bt,xr){ae.set(xr,di(Bt,S,I,xr,y,Q))});var qt=Fe?me?lx:$c:me?Ii:Ca,Kt=Ve?r:qt(y);return Xi(Kt||y,function(Bt,xr){Kt&&(xr=Bt,Bt=y[xr]),Jh(ae,xr,di(Bt,S,I,xr,y,Q))}),ae}function Cw(y){var S=Ca(y);return function(I){return Aw(I,y,S)}}function Aw(y,S,I){var B=I.length;if(y==null)return!B;for(y=vn(y);B--;){var G=I[B],Q=S[G],ae=y[G];if(ae===r&&!(G in y)||!Q(ae))return!1}return!0}function jf(y,S,I){if(typeof y!="function")throw new bo(o);return vp(function(){y.apply(r,I)},S)}function Yf(y,S,I,B){var G=-1,Q=Nf,ae=!0,ce=y.length,me=[],Fe=S.length;if(!ce)return me;I&&(S=pn(S,fi(I))),B?(Q=_b,ae=!1):S.length>=a&&(Q=zf,ae=!1,S=new Mc(S));e:for(;++G<ce;){var Ve=y[G],je=I==null?Ve:I(Ve);if(Ve=B||Ve!==0?Ve:0,ae&&je===je){for(var ut=Fe;ut--;)if(S[ut]===je)continue e;me.push(Ve)}else Q(S,je,B)||me.push(Ve)}return me}var As=hm(Wo),Ub=hm(nm,!0);function Wb(y,S){var I=!0;return As(y,function(B,G,Q){return I=!!S(B,G,Q),I}),I}function Ic(y,S,I){for(var B=-1,G=y.length;++B<G;){var Q=y[B],ae=S(Q);if(ae!=null&&(ce===r?ae===ae&&!Di(ae):I(ae,ce)))var ce=ae,me=Q}return me}function qf(y,S,I,B){var G=y.length;for(I=fr(I),I<0&&(I=-I>G?0:G+I),B=B===r||B>G?G:fr(B),B<0&&(B+=G),B=I>B?0:YT(B);I<B;)y[I++]=S;return y}function rm(y,S){var I=[];return As(y,function(B,G,Q){S(B,G,Q)&&I.push(B)}),I}function wa(y,S,I,B,G){var Q=-1,ae=y.length;for(I||(I=lP),G||(G=[]);++Q<ae;){var ce=y[Q];S>0&&I(ce)?S>1?wa(ce,S-1,I,B,G):xl(G,ce):B||(G[G.length]=ce)}return G}var Xf=sp(),Hb=sp(!0);function Wo(y,S){return y&&Xf(y,S,Ca)}function nm(y,S){return y&&Hb(y,S,Ca)}function tp(y,S){return xs(S,function(I){return Ms(y[I])})}function xu(y,S){S=Pl(S,y);for(var I=0,B=S.length;y!=null&&I<B;)y=y[Es(S[I++])];return I&&I==B?y:r}function am(y,S,I){var B=S(y);return lr(y)?B:xl(B,I(y))}function hi(y){return y==null?y===r?ge:Ot:Ac&&Ac in vn(y)?rd(y):vP(y)}function Gb(y,S){return y>S}function YI(y,S){return y!=null&&Gr.call(y,S)}function qI(y,S){return y!=null&&S in vn(y)}function jb(y,S,I){return y>=Kn(S,I)&&y<va(S,I)}function Yb(y,S,I){for(var B=I?_b:Nf,G=y[0].length,Q=y.length,ae=Q,ce=De(Q),me=1/0,Fe=[];ae--;){var Ve=y[ae];ae&&S&&(Ve=pn(Ve,fi(S))),me=Kn(Ve.length,me),ce[ae]=!I&&(S||G>=120&&Ve.length>=120)?new Mc(ae&&Ve):r}Ve=y[0];var je=-1,ut=ce[0];e:for(;++je<G&&Fe.length<me;){var Dt=Ve[je],qt=S?S(Dt):Dt;if(Dt=I||Dt!==0?Dt:0,!(ut?zf(ut,qt):B(Fe,qt,I))){for(ae=Q;--ae;){var Kt=ce[ae];if(!(Kt?zf(Kt,qt):B(y[ae],qt,I)))continue e}ut&&ut.push(qt),Fe.push(Dt)}}return Fe}function XI(y,S,I,B){return Wo(y,function(G,Q,ae){S(B,I(G),Q,ae)}),B}function rp(y,S,I){S=Pl(S,y),y=eT(y,S);var B=y==null?y:y[Es(qa(S))];return B==null?r:qi(B,y,I)}function Ew(y){return Ln(y)&&hi(y)==Ue}function Rw(y){return Ln(y)&&hi(y)==Ge}function Mw(y){return Ln(y)&&hi(y)==Be}function Zf(y,S,I,B,G){return y===S?!0:y==null||S==null||!Ln(y)&&!Ln(S)?y!==y&&S!==S:ZI(y,S,I,B,Zf,G)}function ZI(y,S,I,B,G,Q){var ae=lr(y),ce=lr(S),me=ae?Xe:Ya(y),Fe=ce?Xe:Ya(S);me=me==Ue?jt:me,Fe=Fe==Ue?jt:Fe;var Ve=me==jt,je=Fe==jt,ut=me==Fe;if(ut&&Au(y)){if(!Au(S))return!1;ae=!0,Ve=!1}if(ut&&!Ve)return Q||(Q=new So),ae||hd(y)?Zw(y,S,I,B,G,Q):iP(y,S,me,I,B,G,Q);if(!(I&g)){var Dt=Ve&&Gr.call(y,"__wrapped__"),qt=je&&Gr.call(S,"__wrapped__");if(Dt||qt){var Kt=Dt?y.value():y,Bt=qt?S.value():S;return Q||(Q=new So),G(Kt,Bt,I,B,Q)}}return ut?(Q||(Q=new So),fp(y,S,I,B,G,Q)):!1}function Dw(y){return Ln(y)&&Ya(y)==Ie}function qb(y,S,I,B){var G=I.length,Q=G,ae=!B;if(y==null)return!Q;for(y=vn(y);G--;){var ce=I[G];if(ae&&ce[2]?ce[1]!==y[ce[0]]:!(ce[0]in y))return!1}for(;++G<Q;){ce=I[G];var me=ce[0],Fe=y[me],Ve=ce[1];if(ae&&ce[2]){if(Fe===r&&!(me in y))return!1}else{var je=new So;if(B)var ut=B(Fe,Ve,me,y,S,je);if(!(ut===r?Zf(Ve,Fe,g|m,B,je):ut))return!1}}return!0}function Pc(y){if(!Fn(y)||cP(y))return!1;var S=Ms(y)?vw:li;return S.test(wu(y))}function im(y){return Ln(y)&&hi(y)==Er}function Iw(y){return Ln(y)&&Ya(y)==Xt}function om(y){return Ln(y)&&dd(y.length)&&!!Fr[hi(y)]}function Xb(y){return typeof y=="function"?y:y==null?Ka:typeof y=="object"?lr(y)?sm(y[0],y[1]):np(y):Du(y)}function _u(y){if(!id(y))return Lb(y);var S=[];for(var I in vn(y))Gr.call(y,I)&&I!="constructor"&&S.push(I);return S}function Pw(y){if(!Fn(y))return pP(y);var S=id(y),I=[];for(var B in y)B=="constructor"&&(S||!Gr.call(y,B))||I.push(B);return I}function Il(y,S){return y<S}function Zb(y,S){var I=-1,B=Ta(y)?De(y.length):[];return As(y,function(G,Q,ae){B[++I]=S(G,Q,ae)}),B}function np(y){var S=ym(y);return S.length==1&&S[0][2]?Jw(S[0][0],S[0][1]):function(I){return I===y||qb(I,y,S)}}function sm(y,S){return dx(y)&&Qw(S)?Jw(Es(y),S):function(I){var B=Ax(I,y);return B===r&&B===S?Ex(I,y):Zf(S,B,g|m)}}function ap(y,S,I,B,G){y!==S&&Xf(S,function(Q,ae){if(G||(G=new So),Fn(Q))Lw(y,S,ae,I,ap,B,G);else{var ce=B?B(px(y,ae),Q,ae+"",y,S,G):r;ce===r&&(ce=Q),$b(y,ae,ce)}},Ii)}function Lw(y,S,I,B,G,Q,ae){var ce=px(y,I),me=px(S,I),Fe=ae.get(me);if(Fe){$b(y,I,Fe);return}var Ve=Q?Q(ce,me,I+"",y,S,ae):r,je=Ve===r;if(je){var ut=lr(me),Dt=!ut&&Au(me),qt=!ut&&!Dt&&hd(me);Ve=me,ut||Dt||qt?lr(ce)?Ve=ce:Jn(ce)?Ve=tn(ce):Dt?(je=!1,Ve=$w(me,!0)):qt?(je=!1,Ve=Fw(me,!0)):Ve=[]:Dp(me)||Cu(me)?(Ve=ce,Cu(ce)?Ve=qT(ce):(!Fn(ce)||Ms(ce))&&(Ve=pp(me))):je=!1}je&&(ae.set(me,Ve),G(Ve,me,B,Q,ae),ae.delete(me)),$b(y,I,Ve)}function ip(y,S){var I=y.length;if(I)return S+=S<0?I:0,Ol(S,I)?y[S]:r}function Kb(y,S,I){S.length?S=pn(S,function(Q){return lr(Q)?function(ae){return xu(ae,Q.length===1?Q[0]:Q)}:Q}):S=[Ka];var B=-1;S=pn(S,fi(kt()));var G=Zb(y,function(Q,ae,ce){var me=pn(S,function(Fe){return Fe(Q)});return{criteria:me,index:++B,value:Q}});return yI(G,function(Q,ae){return pi(Q,ae,I)})}function Lc(y,S){return Ow(y,S,function(I,B){return Ex(y,B)})}function Ow(y,S,I){for(var B=-1,G=S.length,Q={};++B<G;){var ae=S[B],ce=xu(y,ae);I(ce,ae)&&kc(Q,Pl(ae,y),ce)}return Q}function qe(y){return function(S){return xu(S,y)}}function Ga(y,S,I,B){var G=B?mI:Bf,Q=-1,ae=S.length,ce=y;for(y===S&&(S=tn(S)),I&&(ce=pn(y,fi(I)));++Q<ae;)for(var me=0,Fe=S[Q],Ve=I?I(Fe):Fe;(me=G(ce,Ve,me,B))>-1;)ce!==y&&Wf.call(ce,me,1),Wf.call(y,me,1);return y}function en(y,S){for(var I=y?S.length:0,B=I-1;I--;){var G=S[I];if(I==B||G!==Q){var Q=G;Ol(G)?Wf.call(y,G,1):on(y,G)}}return y}function Oc(y,S){return y+vu(em()*(S-y+1))}function Qb(y,S,I,B){for(var G=-1,Q=va(Kg((S-y)/(I||1)),0),ae=De(Q);Q--;)ae[B?Q:++G]=y,y+=I;return ae}function Kf(y,S){var I="";if(!y||S<1||S>J)return I;do S%2&&(I+=y),S=vu(S/2),S&&(y+=y);while(S);return I}function pr(y,S){return gx(bm(y,S,Ka),y+"")}function kw(y){return Gf(Yo(y))}function Nw(y,S){var I=Yo(y);return xm(I,Dc(S,0,I.length))}function kc(y,S,I,B){if(!Fn(y))return y;S=Pl(S,y);for(var G=-1,Q=S.length,ae=Q-1,ce=y;ce!=null&&++G<Q;){var me=Es(S[G]),Fe=I;if(me==="__proto__"||me==="constructor"||me==="prototype")return y;if(G!=ae){var Ve=ce[me];Fe=B?B(Ve,me,ce):r,Fe===r&&(Fe=Fn(Ve)?Ve:Ol(S[G+1])?[]:{})}Jh(ce,me,Fe),ce=ce[me]}return y}var Jb=tm?function(y,S){return tm.set(y,S),y}:Ka,Qf=Zg?function(y,S){return Zg(y,"toString",{configurable:!0,enumerable:!1,value:Ox(S),writable:!0})}:Ka;function lm(y){return xm(Yo(y))}function Oa(y,S,I){var B=-1,G=y.length;S<0&&(S=-S>G?0:G+S),I=I>G?G:I,I<0&&(I+=G),G=S>I?0:I-S>>>0,S>>>=0;for(var Q=De(G);++B<G;)Q[B]=y[B+S];return Q}function ex(y,S){var I;return As(y,function(B,G,Q){return I=S(B,G,Q),!I}),!!I}function op(y,S,I){var B=0,G=y==null?B:y.length;if(typeof S=="number"&&S===S&&G<=Me){for(;B<G;){var Q=B+G>>>1,ae=y[Q];ae!==null&&!Di(ae)&&(I?ae<=S:ae<S)?B=Q+1:G=Q}return G}return um(y,S,Ka,I)}function um(y,S,I,B){var G=0,Q=y==null?0:y.length;if(Q===0)return 0;S=I(S);for(var ae=S!==S,ce=S===null,me=Di(S),Fe=S===r;G<Q;){var Ve=vu((G+Q)/2),je=I(y[Ve]),ut=je!==r,Dt=je===null,qt=je===je,Kt=Di(je);if(ae)var Bt=B||qt;else Fe?Bt=qt&&(B||ut):ce?Bt=qt&&ut&&(B||!Dt):me?Bt=qt&&ut&&!Dt&&(B||!Kt):Dt||Kt?Bt=!1:Bt=B?je<=S:je<S;Bt?G=Ve+1:Q=Ve}return Kn(Q,be)}function cm(y,S){for(var I=-1,B=y.length,G=0,Q=[];++I<B;){var ae=y[I],ce=S?S(ae):ae;if(!I||!To(ce,me)){var me=ce;Q[G++]=ae===0?0:ae}}return Q}function Ho(y){return typeof y=="number"?y:Di(y)?se:+y}function Pr(y){if(typeof y=="string")return y;if(lr(y))return pn(y,Pr)+"";if(Di(y))return kb?kb.call(y):"";var S=y+"";return S=="0"&&1/y==-te?"-0":S}function Nc(y,S,I){var B=-1,G=Nf,Q=y.length,ae=!0,ce=[],me=ce;if(I)ae=!1,G=_b;else if(Q>=a){var Fe=S?null:nP(y);if(Fe)return Gg(Fe);ae=!1,G=zf,me=new Mc}else me=S?[]:ce;e:for(;++B<Q;){var Ve=y[B],je=S?S(Ve):Ve;if(Ve=I||Ve!==0?Ve:0,ae&&je===je){for(var ut=me.length;ut--;)if(me[ut]===je)continue e;S&&me.push(je),ce.push(Ve)}else G(me,je,I)||(me!==ce&&me.push(je),ce.push(Ve))}return ce}function on(y,S){return S=Pl(S,y),y=eT(y,S),y==null||delete y[Es(qa(S))]}function Bc(y,S,I,B){return kc(y,S,I(xu(y,S)),B)}function fm(y,S,I,B){for(var G=y.length,Q=B?G:-1;(B?Q--:++Q<G)&&S(y[Q],Q,y););return I?Oa(y,B?0:Q,B?Q+1:G):Oa(y,B?Q+1:0,B?G:Q)}function Bw(y,S){var I=y;return I instanceof hr&&(I=I.value()),Ai(S,function(B,G){return G.func.apply(G.thisArg,xl([B],G.args))},I)}function zc(y,S,I){var B=y.length;if(B<2)return B?Nc(y[0]):[];for(var G=-1,Q=De(B);++G<B;)for(var ae=y[G],ce=-1;++ce<B;)ce!=G&&(Q[G]=Yf(Q[G]||ae,y[ce],S,I));return Nc(wa(Q,1),S,I)}function zw(y,S,I){for(var B=-1,G=y.length,Q=S.length,ae={};++B<G;){var ce=B<Q?S[B]:r;I(ae,y[B],ce)}return ae}function tx(y){return Jn(y)?y:[]}function rx(y){return typeof y=="function"?y:Ka}function Pl(y,S){return lr(y)?y:dx(y,S)?[y]:nT(Yr(y))}var KI=pr;function Ll(y,S,I){var B=y.length;return I=I===r?B:I,!S&&I>=B?y:Oa(y,S,I)}var nx=LI||function(y){return La.clearTimeout(y)};function $w(y,S){if(S)return y.slice();var I=y.length,B=Db?Db(I):new y.constructor(I);return y.copy(B),B}function Jf(y){var S=new y.constructor(y.byteLength);return new Vf(S).set(new Vf(y)),S}function QI(y,S){var I=S?Jf(y.buffer):y.buffer;return new y.constructor(I,y.byteOffset,y.byteLength)}function JI(y){var S=new y.constructor(y.source,Va.exec(y));return S.lastIndex=y.lastIndex,S}function eP(y){return mu?vn(mu.call(y)):{}}function Fw(y,S){var I=S?Jf(y.buffer):y.buffer;return new y.constructor(I,y.byteOffset,y.length)}function Vw(y,S){if(y!==S){var I=y!==r,B=y===null,G=y===y,Q=Di(y),ae=S!==r,ce=S===null,me=S===S,Fe=Di(S);if(!ce&&!Fe&&!Q&&y>S||Q&&ae&&me&&!ce&&!Fe||B&&ae&&me||!I&&me||!G)return 1;if(!B&&!Q&&!Fe&&y<S||Fe&&I&&G&&!B&&!Q||ce&&I&&G||!ae&&G||!me)return-1}return 0}function pi(y,S,I){for(var B=-1,G=y.criteria,Q=S.criteria,ae=G.length,ce=I.length;++B<ae;){var me=Vw(G[B],Q[B]);if(me){if(B>=ce)return me;var Fe=I[B];return me*(Fe=="desc"?-1:1)}}return y.index-S.index}function Su(y,S,I,B){for(var G=-1,Q=y.length,ae=I.length,ce=-1,me=S.length,Fe=va(Q-ae,0),Ve=De(me+Fe),je=!B;++ce<me;)Ve[ce]=S[ce];for(;++G<ae;)(je||G<Q)&&(Ve[I[G]]=y[G]);for(;Fe--;)Ve[ce++]=y[G++];return Ve}function Uw(y,S,I,B){for(var G=-1,Q=y.length,ae=-1,ce=I.length,me=-1,Fe=S.length,Ve=va(Q-ce,0),je=De(Ve+Fe),ut=!B;++G<Ve;)je[G]=y[G];for(var Dt=G;++me<Fe;)je[Dt+me]=S[me];for(;++ae<ce;)(ut||G<Q)&&(je[Dt+I[ae]]=y[G++]);return je}function tn(y,S){var I=-1,B=y.length;for(S||(S=De(B));++I<B;)S[I]=y[I];return S}function ja(y,S,I,B){var G=!I;I||(I={});for(var Q=-1,ae=S.length;++Q<ae;){var ce=S[Q],me=B?B(I[ce],y[ce],ce,I,y):r;me===r&&(me=y[ce]),G?Zi(I,ce,me):Jh(I,ce,me)}return I}function jr(y,S){return ja(y,hp(y),S)}function dm(y,S){return ja(y,nd(y),S)}function ax(y,S){return function(I,B){var G=lr(I)?Fg:ww,Q=S?S():{};return G(I,y,kt(B,2),Q)}}function ed(y){return pr(function(S,I){var B=-1,G=I.length,Q=G>1?I[G-1]:r,ae=G>2?I[2]:r;for(Q=y.length>3&&typeof Q=="function"?(G--,Q):r,ae&&ka(I[0],I[1],ae)&&(Q=G<3?r:Q,G=1),S=vn(S);++B<G;){var ce=I[B];ce&&y(S,ce,B,Q)}return S})}function hm(y,S){return function(I,B){if(I==null)return I;if(!Ta(I))return y(I,B);for(var G=I.length,Q=S?G:-1,ae=vn(I);(S?Q--:++Q<G)&&B(ae[Q],Q,ae)!==!1;);return I}}function sp(y){return function(S,I,B){for(var G=-1,Q=vn(S),ae=B(S),ce=ae.length;ce--;){var me=ae[y?ce:++G];if(I(Q[me],me,Q)===!1)break}return S}}function tP(y,S,I){var B=S&x,G=lp(y);function Q(){var ae=this&&this!==La&&this instanceof Q?G:y;return ae.apply(B?I:this,arguments)}return Q}function ix(y){return function(S){S=Yr(S);var I=$f(S)?yo(S):r,B=I?I[0]:S.charAt(0),G=I?Ll(I,1).join(""):S.slice(1);return B[y]()+G}}function td(y){return function(S){return Ai(Op(Ao(S).replace(Vt,"")),y,"")}}function lp(y){return function(){var S=arguments;switch(S.length){case 0:return new y;case 1:return new y(S[0]);case 2:return new y(S[0],S[1]);case 3:return new y(S[0],S[1],S[2]);case 4:return new y(S[0],S[1],S[2],S[3]);case 5:return new y(S[0],S[1],S[2],S[3],S[4]);case 6:return new y(S[0],S[1],S[2],S[3],S[4],S[5]);case 7:return new y(S[0],S[1],S[2],S[3],S[4],S[5],S[6])}var I=Al(y.prototype),B=y.apply(I,S);return Fn(B)?B:I}}function Ww(y,S,I){var B=lp(y);function G(){for(var Q=arguments.length,ae=De(Q),ce=Q,me=Fc(G);ce--;)ae[ce]=arguments[ce];var Fe=Q<3&&ae[0]!==me&&ae[Q-1]!==me?[]:pu(ae,me);if(Q-=Fe.length,Q<I)return Yw(y,S,up,G.placeholder,r,ae,Fe,r,r,I-Q);var Ve=this&&this!==La&&this instanceof G?B:y;return qi(Ve,this,ae)}return G}function Hw(y){return function(S,I,B){var G=vn(S);if(!Ta(S)){var Q=kt(I,3);S=Ca(S),I=function(ce){return Q(G[ce],ce,G)}}var ae=y(S,I,B);return ae>-1?G[Q?S[ae]:ae]:r}}function Gw(y){return jo(function(S){var I=S.length,B=I,G=Ha.prototype.thru;for(y&&S.reverse();B--;){var Q=S[B];if(typeof Q!="function")throw new bo(o);if(G&&!ae&&dp(Q)=="wrapper")var ae=new Ha([],!0)}for(B=ae?B:I;++B<I;){Q=S[B];var ce=dp(Q),me=ce=="wrapper"?ux(Q):r;me&&hx(me[0])&&me[1]==(P|T|M|O)&&!me[4].length&&me[9]==1?ae=ae[dp(me[0])].apply(ae,me[3]):ae=Q.length==1&&hx(Q)?ae[ce]():ae.thru(Q)}return function(){var Fe=arguments,Ve=Fe[0];if(ae&&Fe.length==1&&lr(Ve))return ae.plant(Ve).value();for(var je=0,ut=I?S[je].apply(this,Fe):Ve;++je<I;)ut=S[je].call(this,ut);return ut}})}function up(y,S,I,B,G,Q,ae,ce,me,Fe){var Ve=S&P,je=S&x,ut=S&_,Dt=S&(T|A),qt=S&k,Kt=ut?r:lp(y);function Bt(){for(var xr=arguments.length,Ar=De(xr),Ja=xr;Ja--;)Ar[Ja]=arguments[Ja];if(Dt)var na=Fc(Bt),ei=bI(Ar,na);if(B&&(Ar=Su(Ar,B,G,Dt)),Q&&(Ar=Uw(Ar,Q,ae,Dt)),xr-=ei,Dt&&xr<Fe){var kn=pu(Ar,na);return Yw(y,S,up,Bt.placeholder,I,Ar,kn,ce,me,Fe-xr)}var Li=je?I:this,Ls=ut?Li[y]:y;return xr=Ar.length,ce?Ar=gP(Ar,ce):qt&&xr>1&&Ar.reverse(),Ve&&me<xr&&(Ar.length=me),this&&this!==La&&this instanceof Bt&&(Ls=Kt||lp(Ls)),Ls.apply(Li,Ar)}return Bt}function jw(y,S){return function(I,B){return XI(I,y,S(B),{})}}function pm(y,S){return function(I,B){var G;if(I===r&&B===r)return S;if(I!==r&&(G=I),B!==r){if(G===r)return B;typeof I=="string"||typeof B=="string"?(I=Pr(I),B=Pr(B)):(I=Ho(I),B=Ho(B)),G=y(I,B)}return G}}function ox(y){return jo(function(S){return S=pn(S,fi(kt())),pr(function(I){var B=this;return y(S,function(G){return qi(G,B,I)})})})}function vm(y,S){S=S===r?" ":Pr(S);var I=S.length;if(I<2)return I?Kf(S,y):S;var B=Kf(S,Kg(y/Sl(S)));return $f(S)?Ll(yo(B),0,y).join(""):B.slice(0,y)}function rP(y,S,I,B){var G=S&x,Q=lp(y);function ae(){for(var ce=-1,me=arguments.length,Fe=-1,Ve=B.length,je=De(Ve+me),ut=this&&this!==La&&this instanceof ae?Q:y;++Fe<Ve;)je[Fe]=B[Fe];for(;me--;)je[Fe++]=arguments[++ce];return qi(ut,G?I:this,je)}return ae}function gm(y){return function(S,I,B){return B&&typeof B!="number"&&ka(S,I,B)&&(I=B=r),S=kl(S),I===r?(I=S,S=0):I=kl(I),B=B===r?S<I?1:-1:kl(B),Qb(S,I,B,y)}}function cp(y){return function(S,I){return typeof S=="string"&&typeof I=="string"||(S=Co(S),I=Co(I)),y(S,I)}}function Yw(y,S,I,B,G,Q,ae,ce,me,Fe){var Ve=S&T,je=Ve?ae:r,ut=Ve?r:ae,Dt=Ve?Q:r,qt=Ve?r:Q;S|=Ve?M:D,S&=~(Ve?D:M),S&w||(S&=~(x|_));var Kt=[y,S,G,Dt,je,qt,ut,ce,me,Fe],Bt=I.apply(r,Kt);return hx(y)&&vx(Bt,Kt),Bt.placeholder=B,tT(Bt,y,S)}function sx(y){var S=pa[y];return function(I,B){if(I=Co(I),B=B==null?0:Kn(fr(B),292),B&&Pb(I)){var G=(Yr(I)+"e").split("e"),Q=S(G[0]+"e"+(+G[1]+B));return G=(Yr(Q)+"e").split("e"),+(G[0]+"e"+(+G[1]-B))}return S(I)}}var nP=Ei&&1/Gg(new Ei([,-0]))[1]==te?function(y){return new Ei(y)}:Wm;function qw(y){return function(S){var I=Ya(S);return I==Ie?Hg(S):I==Xt?CI(S):uw(S,y(S))}}function Go(y,S,I,B,G,Q,ae,ce){var me=S&_;if(!me&&typeof y!="function")throw new bo(o);var Fe=B?B.length:0;if(Fe||(S&=~(M|D),B=G=r),ae=ae===r?ae:va(fr(ae),0),ce=ce===r?ce:fr(ce),Fe-=G?G.length:0,S&D){var Ve=B,je=G;B=G=r}var ut=me?r:ux(y),Dt=[y,S,I,B,G,Ve,je,Q,ae,ce];if(ut&&hP(Dt,ut),y=Dt[0],S=Dt[1],I=Dt[2],B=Dt[3],G=Dt[4],ce=Dt[9]=Dt[9]===r?me?0:y.length:va(Dt[9]-Fe,0),!ce&&S&(T|A)&&(S&=~(T|A)),!S||S==x)var qt=tP(y,S,I);else S==T||S==A?qt=Ww(y,S,ce):(S==M||S==(x|M))&&!G.length?qt=rP(y,S,I,B):qt=up.apply(r,Dt);var Kt=ut?Jb:vx;return tT(Kt(qt,Dt),y,S)}function mm(y,S,I,B){return y===r||To(y,_s[I])&&!Gr.call(B,I)?S:y}function Xw(y,S,I,B,G,Q){return Fn(y)&&Fn(S)&&(Q.set(S,y),ap(y,S,r,Xw,Q),Q.delete(S)),y}function aP(y){return Dp(y)?r:y}function Zw(y,S,I,B,G,Q){var ae=I&g,ce=y.length,me=S.length;if(ce!=me&&!(ae&&me>ce))return!1;var Fe=Q.get(y),Ve=Q.get(S);if(Fe&&Ve)return Fe==S&&Ve==y;var je=-1,ut=!0,Dt=I&m?new Mc:r;for(Q.set(y,S),Q.set(S,y);++je<ce;){var qt=y[je],Kt=S[je];if(B)var Bt=ae?B(Kt,qt,je,S,y,Q):B(qt,Kt,je,y,S,Q);if(Bt!==r){if(Bt)continue;ut=!1;break}if(Dt){if(!ci(S,function(xr,Ar){if(!zf(Dt,Ar)&&(qt===xr||G(qt,xr,I,B,Q)))return Dt.push(Ar)})){ut=!1;break}}else if(!(qt===Kt||G(qt,Kt,I,B,Q))){ut=!1;break}}return Q.delete(y),Q.delete(S),ut}function iP(y,S,I,B,G,Q,ae){switch(I){case Ke:if(y.byteLength!=S.byteLength||y.byteOffset!=S.byteOffset)return!1;y=y.buffer,S=S.buffer;case Ge:return!(y.byteLength!=S.byteLength||!Q(new Vf(y),new Vf(S)));case $e:case Be:case Ct:return To(+y,+S);case de:return y.name==S.name&&y.message==S.message;case Er:case Sn:return y==S+"";case Ie:var ce=Hg;case Xt:var me=B&g;if(ce||(ce=Gg),y.size!=S.size&&!me)return!1;var Fe=ae.get(y);if(Fe)return Fe==S;B|=m,ae.set(y,S);var Ve=Zw(ce(y),ce(S),B,G,Q,ae);return ae.delete(y),Ve;case zr:if(mu)return mu.call(y)==mu.call(S)}return!1}function fp(y,S,I,B,G,Q){var ae=I&g,ce=$c(y),me=ce.length,Fe=$c(S),Ve=Fe.length;if(me!=Ve&&!ae)return!1;for(var je=me;je--;){var ut=ce[je];if(!(ae?ut in S:Gr.call(S,ut)))return!1}var Dt=Q.get(y),qt=Q.get(S);if(Dt&&qt)return Dt==S&&qt==y;var Kt=!0;Q.set(y,S),Q.set(S,y);for(var Bt=ae;++je<me;){ut=ce[je];var xr=y[ut],Ar=S[ut];if(B)var Ja=ae?B(Ar,xr,ut,S,y,Q):B(xr,Ar,ut,y,S,Q);if(!(Ja===r?xr===Ar||G(xr,Ar,I,B,Q):Ja)){Kt=!1;break}Bt||(Bt=ut=="constructor")}if(Kt&&!Bt){var na=y.constructor,ei=S.constructor;na!=ei&&"constructor"in y&&"constructor"in S&&!(typeof na=="function"&&na instanceof na&&typeof ei=="function"&&ei instanceof ei)&&(Kt=!1)}return Q.delete(y),Q.delete(S),Kt}function jo(y){return gx(bm(y,r,cT),y+"")}function $c(y){return am(y,Ca,hp)}function lx(y){return am(y,Ii,nd)}var ux=tm?function(y){return tm.get(y)}:Wm;function dp(y){for(var S=y.name+"",I=Hf[S],B=Gr.call(Hf,S)?I.length:0;B--;){var G=I[B],Q=G.func;if(Q==null||Q==y)return G.name}return S}function Fc(y){var S=Gr.call(K,"placeholder")?K:y;return S.placeholder}function kt(){var y=K.iteratee||Um;return y=y===Um?Xb:y,arguments.length?y(arguments[0],arguments[1]):y}function Vc(y,S){var I=y.__data__;return uP(S)?I[typeof S=="string"?"string":"hash"]:I.map}function ym(y){for(var S=Ca(y),I=S.length;I--;){var B=S[I],G=y[B];S[I]=[B,G,Qw(G)]}return S}function ga(y,S){var I=wI(y,S);return Pc(I)?I:r}function rd(y){var S=Gr.call(y,Ac),I=y[Ac];try{y[Ac]=r;var B=!0}catch{}var G=wl.call(y);return B&&(S?y[Ac]=I:delete y[Ac]),G}var hp=Yh?function(y){return y==null?[]:(y=vn(y),xs(Yh(y),function(S){return Cl.call(y,S)}))}:kp,nd=Yh?function(y){for(var S=[];y;)xl(S,hp(y)),y=Uf(y);return S}:kp,Ya=hi;(xo&&Ya(new xo(new ArrayBuffer(1)))!=Ke||Xh&&Ya(new Xh)!=Ie||Ob&&Ya(Ob.resolve())!=nr||Ei&&Ya(new Ei)!=Xt||Ri&&Ya(new Ri)!=Ee)&&(Ya=function(y){var S=hi(y),I=S==jt?y.constructor:r,B=I?wu(I):"";if(B)switch(B){case $n:return Ke;case gu:return Ie;case Qn:return nr;case gn:return Xt;case BI:return Ee}return S});function cx(y,S,I){for(var B=-1,G=I.length;++B<G;){var Q=I[B],ae=Q.size;switch(Q.type){case"drop":y+=ae;break;case"dropRight":S-=ae;break;case"take":S=Kn(S,y+ae);break;case"takeRight":y=va(y,S-ae);break}}return{start:y,end:S}}function fx(y){var S=y.match(Zt);return S?S[1].split(Cr):[]}function ad(y,S,I){S=Pl(S,y);for(var B=-1,G=S.length,Q=!1;++B<G;){var ae=Es(S[B]);if(!(Q=y!=null&&I(y,ae)))break;y=y[ae]}return Q||++B!=G?Q:(G=y==null?0:y.length,!!G&&dd(G)&&Ol(ae,G)&&(lr(y)||Cu(y)))}function oP(y){var S=y.length,I=new y.constructor(S);return S&&typeof y[0]=="string"&&Gr.call(y,"index")&&(I.index=y.index,I.input=y.input),I}function pp(y){return typeof y.constructor=="function"&&!id(y)?Al(Uf(y)):{}}function Kw(y,S,I){var B=y.constructor;switch(S){case Ge:return Jf(y);case $e:case Be:return new B(+y);case Ke:return QI(y,I);case ft:case We:case Ae:case Pe:case rt:case gt:case cr:case $r:case Rr:return Fw(y,I);case Ie:return new B;case Ct:case Sn:return new B(y);case Er:return JI(y);case Xt:return new B;case zr:return eP(y)}}function sP(y,S){var I=S.length;if(!I)return y;var B=I-1;return S[B]=(I>1?"& ":"")+S[B],S=S.join(I>2?", ":" "),y.replace(Ir,`{ /* [wrapped with `+S+`] */ `)}function lP(y){return lr(y)||Cu(y)||!!(Xg&&y&&y[Xg])}function Ol(y,S){var I=typeof y;return S=S??J,!!S&&(I=="number"||I!="symbol"&&zh.test(y))&&y>-1&&y%1==0&&y<S}function ka(y,S,I){if(!Fn(I))return!1;var B=typeof S;return(B=="number"?Ta(I)&&Ol(S,I.length):B=="string"&&S in I)?To(I[S],y):!1}function dx(y,S){if(lr(y))return!1;var I=typeof y;return I=="number"||I=="symbol"||I=="boolean"||y==null||Di(y)?!0:Wn.test(y)||!ms.test(y)||S!=null&&y in vn(S)}function uP(y){var S=typeof y;return S=="string"||S=="number"||S=="symbol"||S=="boolean"?y!=="__proto__":y===null}function hx(y){var S=dp(y),I=K[S];if(typeof I!="function"||!(S in hr.prototype))return!1;if(y===I)return!0;var B=ux(I);return!!B&&y===B[0]}function cP(y){return!!Cc&&Cc in y}var fP=Gh?Ms:Nx;function id(y){var S=y&&y.constructor,I=typeof S=="function"&&S.prototype||_s;return y===I}function Qw(y){return y===y&&!Fn(y)}function Jw(y,S){return function(I){return I==null?!1:I[y]===S&&(S!==r||y in vn(I))}}function dP(y){var S=Tu(y,function(B){return I.size===u&&I.clear(),B}),I=S.cache;return S}function hP(y,S){var I=y[1],B=S[1],G=I|B,Q=G<(x|_|P),ae=B==P&&I==T||B==P&&I==O&&y[7].length<=S[8]||B==(P|O)&&S[7].length<=S[8]&&I==T;if(!(Q||ae))return y;B&x&&(y[2]=S[2],G|=I&x?0:w);var ce=S[3];if(ce){var me=y[3];y[3]=me?Su(me,ce,S[4]):ce,y[4]=me?pu(y[3],c):S[4]}return ce=S[5],ce&&(me=y[5],y[5]=me?Uw(me,ce,S[6]):ce,y[6]=me?pu(y[5],c):S[6]),ce=S[7],ce&&(y[7]=ce),B&P&&(y[8]=y[8]==null?S[8]:Kn(y[8],S[8])),y[9]==null&&(y[9]=S[9]),y[0]=S[0],y[1]=G,y}function pP(y){var S=[];if(y!=null)for(var I in vn(y))S.push(I);return S}function vP(y){return wl.call(y)}function bm(y,S,I){return S=va(S===r?y.length-1:S,0),function(){for(var B=arguments,G=-1,Q=va(B.length-S,0),ae=De(Q);++G<Q;)ae[G]=B[S+G];G=-1;for(var ce=De(S+1);++G<S;)ce[G]=B[G];return ce[S]=I(ae),qi(y,this,ce)}}function eT(y,S){return S.length<2?y:xu(y,Oa(S,0,-1))}function gP(y,S){for(var I=y.length,B=Kn(S.length,I),G=tn(y);B--;){var Q=S[B];y[B]=Ol(Q,I)?G[Q]:r}return y}function px(y,S){if(!(S==="constructor"&&typeof y[S]=="function")&&S!="__proto__")return y[S]}var vx=rT(Jb),vp=kI||function(y,S){return La.setTimeout(y,S)},gx=rT(Qf);function tT(y,S,I){var B=S+"";return gx(y,sP(B,mx(fx(B),I)))}function rT(y){var S=0,I=0;return function(){var B=Qg(),G=F-(B-I);if(I=B,G>0){if(++S>=H)return arguments[0]}else S=0;return y.apply(r,arguments)}}function xm(y,S){var I=-1,B=y.length,G=B-1;for(S=S===r?B:S;++I<S;){var Q=Oc(I,G),ae=y[Q];y[Q]=y[I],y[I]=ae}return y.length=S,y}var nT=dP(function(y){var S=[];return y.charCodeAt(0)===46&&S.push(""),y.replace(ou,function(I,B,G,Q){S.push(G?Q.replace(kr,"$1"):B||I)}),S});function Es(y){if(typeof y=="string"||Di(y))return y;var S=y+"";return S=="0"&&1/y==-te?"-0":S}function wu(y){if(y!=null){try{return Yg.call(y)}catch{}try{return y+""}catch{}}return""}function mx(y,S){return Xi(Se,function(I){var B="_."+I[0];S&I[1]&&!Nf(y,B)&&y.push(B)}),y.sort()}function od(y){if(y instanceof hr)return y.clone();var S=new Ha(y.__wrapped__,y.__chain__);return S.__actions__=tn(y.__actions__),S.__index__=y.__index__,S.__values__=y.__values__,S}function mP(y,S,I){(I?ka(y,S,I):S===r)?S=1:S=va(fr(S),0);var B=y==null?0:y.length;if(!B||S<1)return[];for(var G=0,Q=0,ae=De(Kg(B/S));G<B;)ae[Q++]=Oa(y,G,G+=S);return ae}function aT(y){for(var S=-1,I=y==null?0:y.length,B=0,G=[];++S<I;){var Q=y[S];Q&&(G[B++]=Q)}return G}function iT(){var y=arguments.length;if(!y)return[];for(var S=De(y-1),I=arguments[0],B=y;B--;)S[B-1]=arguments[B];return xl(lr(I)?tn(I):[I],wa(S,1))}var oT=pr(function(y,S){return Jn(y)?Yf(y,wa(S,1,Jn,!0)):[]}),yP=pr(function(y,S){var I=qa(S);return Jn(I)&&(I=r),Jn(y)?Yf(y,wa(S,1,Jn,!0),kt(I,2)):[]}),sT=pr(function(y,S){var I=qa(S);return Jn(I)&&(I=r),Jn(y)?Yf(y,wa(S,1,Jn,!0),r,I):[]});function bP(y,S,I){var B=y==null?0:y.length;return B?(S=I||S===r?1:fr(S),Oa(y,S<0?0:S,B)):[]}function xP(y,S,I){var B=y==null?0:y.length;return B?(S=I||S===r?1:fr(S),S=B-S,Oa(y,0,S<0?0:S)):[]}function _P(y,S){return y&&y.length?fm(y,kt(S,3),!0,!0):[]}function lT(y,S){return y&&y.length?fm(y,kt(S,3),!0):[]}function uT(y,S,I,B){var G=y==null?0:y.length;return G?(I&&typeof I!="number"&&ka(y,S,I)&&(I=0,B=G),qf(y,S,I,B)):[]}function yx(y,S,I){var B=y==null?0:y.length;if(!B)return-1;var G=I==null?0:fr(I);return G<0&&(G=va(B+G,0)),hu(y,kt(S,3),G)}function Uc(y,S,I){var B=y==null?0:y.length;if(!B)return-1;var G=B-1;return I!==r&&(G=fr(I),G=I<0?va(B+G,0):Kn(G,B-1)),hu(y,kt(S,3),G,!0)}function cT(y){var S=y==null?0:y.length;return S?wa(y,1):[]}function SP(y){var S=y==null?0:y.length;return S?wa(y,te):[]}function wP(y,S){var I=y==null?0:y.length;return I?(S=S===r?1:fr(S),wa(y,S)):[]}function TP(y){for(var S=-1,I=y==null?0:y.length,B={};++S<I;){var G=y[S];B[G[0]]=G[1]}return B}function fT(y){return y&&y.length?y[0]:r}function CP(y,S,I){var B=y==null?0:y.length;if(!B)return-1;var G=I==null?0:fr(I);return G<0&&(G=va(B+G,0)),Bf(y,S,G)}function dT(y){var S=y==null?0:y.length;return S?Oa(y,0,-1):[]}var AP=pr(function(y){var S=pn(y,tx);return S.length&&S[0]===y[0]?Yb(S):[]}),EP=pr(function(y){var S=qa(y),I=pn(y,tx);return S===qa(I)?S=r:I.pop(),I.length&&I[0]===y[0]?Yb(I,kt(S,2)):[]}),hT=pr(function(y){var S=qa(y),I=pn(y,tx);return S=typeof S=="function"?S:r,S&&I.pop(),I.length&&I[0]===y[0]?Yb(I,r,S):[]});function gp(y,S){return y==null?"":gw.call(y,S)}function qa(y){var S=y==null?0:y.length;return S?y[S-1]:r}function RP(y,S,I){var B=y==null?0:y.length;if(!B)return-1;var G=B;return I!==r&&(G=fr(I),G=G<0?va(B+G,0):Kn(G,B-1)),S===S?wc(y,S,G):hu(y,Ug,G,!0)}function MP(y,S){return y&&y.length?ip(y,fr(S)):r}var DP=pr(mp);function mp(y,S){return y&&y.length&&S&&S.length?Ga(y,S):y}function IP(y,S,I){return y&&y.length&&S&&S.length?Ga(y,S,kt(I,2)):y}function pT(y,S,I){return y&&y.length&&S&&S.length?Ga(y,S,r,I):y}var PP=jo(function(y,S){var I=y==null?0:y.length,B=Vb(y,S);return en(y,pn(S,function(G){return Ol(G,I)?+G:G}).sort(Vw)),B});function vT(y,S){var I=[];if(!(y&&y.length))return I;var B=-1,G=[],Q=y.length;for(S=kt(S,3);++B<Q;){var ae=y[B];S(ae,B,y)&&(I.push(ae),G.push(B))}return en(y,G),I}function _m(y){return y==null?y:NI.call(y)}function LP(y,S,I){var B=y==null?0:y.length;return B?(I&&typeof I!="number"&&ka(y,S,I)?(S=0,I=B):(S=S==null?0:fr(S),I=I===r?B:fr(I)),Oa(y,S,I)):[]}function OP(y,S){return op(y,S)}function kP(y,S,I){return um(y,S,kt(I,2))}function NP(y,S){var I=y==null?0:y.length;if(I){var B=op(y,S);if(B<I&&To(y[B],S))return B}return-1}function BP(y,S){return op(y,S,!0)}function zP(y,S,I){return um(y,S,kt(I,2),!0)}function $P(y,S){var I=y==null?0:y.length;if(I){var B=op(y,S,!0)-1;if(To(y[B],S))return B}return-1}function FP(y){return y&&y.length?cm(y):[]}function VP(y,S){return y&&y.length?cm(y,kt(S,2)):[]}function UP(y){var S=y==null?0:y.length;return S?Oa(y,1,S):[]}function wo(y,S,I){return y&&y.length?(S=I||S===r?1:fr(S),Oa(y,0,S<0?0:S)):[]}function WP(y,S,I){var B=y==null?0:y.length;return B?(S=I||S===r?1:fr(S),S=B-S,Oa(y,S<0?0:S,B)):[]}function yp(y,S){return y&&y.length?fm(y,kt(S,3),!1,!0):[]}function gT(y,S){return y&&y.length?fm(y,kt(S,3)):[]}var HP=pr(function(y){return Nc(wa(y,1,Jn,!0))}),mT=pr(function(y){var S=qa(y);return Jn(S)&&(S=r),Nc(wa(y,1,Jn,!0),kt(S,2))}),GP=pr(function(y){var S=qa(y);return S=typeof S=="function"?S:r,Nc(wa(y,1,Jn,!0),r,S)});function jP(y){return y&&y.length?Nc(y):[]}function YP(y,S){return y&&y.length?Nc(y,kt(S,2)):[]}function yT(y,S){return S=typeof S=="function"?S:r,y&&y.length?Nc(y,r,S):[]}function Sm(y){if(!(y&&y.length))return[];var S=0;return y=xs(y,function(I){if(Jn(I))return S=va(I.length,S),!0}),Ab(S,function(I){return pn(y,Sb(I))})}function bT(y,S){if(!(y&&y.length))return[];var I=Sm(y);return S==null?I:pn(I,function(B){return qi(S,r,B)})}var qP=pr(function(y,S){return Jn(y)?Yf(y,S):[]}),xT=pr(function(y){return zc(xs(y,Jn))}),bx=pr(function(y){var S=qa(y);return Jn(S)&&(S=r),zc(xs(y,Jn),kt(S,2))}),XP=pr(function(y){var S=qa(y);return S=typeof S=="function"?S:r,zc(xs(y,Jn),r,S)}),ZP=pr(Sm);function KP(y,S){return zw(y||[],S||[],Jh)}function QP(y,S){return zw(y||[],S||[],kc)}var JP=pr(function(y){var S=y.length,I=S>1?y[S-1]:r;return I=typeof I=="function"?(y.pop(),I):r,bT(y,I)});function _T(y){var S=K(y);return S.__chain__=!0,S}function sd(y,S){return S(y),y}function ld(y,S){return S(y)}var bp=jo(function(y){var S=y.length,I=S?y[0]:0,B=this.__wrapped__,G=function(Q){return Vb(Q,y)};return S>1||this.__actions__.length||!(B instanceof hr)||!Ol(I)?this.thru(G):(B=B.slice(I,+I+(S?1:0)),B.__actions__.push({func:ld,args:[G],thisArg:r}),new Ha(B,this.__chain__).thru(function(Q){return S&&!Q.length&&Q.push(r),Q}))});function xx(){return _T(this)}function eL(){return new Ha(this.value(),this.__chain__)}function tL(){this.__values__===r&&(this.__values__=jT(this.value()));var y=this.__index__>=this.__values__.length,S=y?r:this.__values__[this.__index__++];return{done:y,value:S}}function ST(){return this}function rL(y){for(var S,I=this;I instanceof ws;){var B=od(I);B.__index__=0,B.__values__=r,S?G.__wrapped__=B:S=B;var G=B;I=I.__wrapped__}return G.__wrapped__=y,S}function nL(){var y=this.__wrapped__;if(y instanceof hr){var S=y;return this.__actions__.length&&(S=new hr(this)),S=S.reverse(),S.__actions__.push({func:ld,args:[_m],thisArg:r}),new Ha(S,this.__chain__)}return this.thru(_m)}function aL(){return Bw(this.__wrapped__,this.__actions__)}var xp=ax(function(y,S,I){Gr.call(y,I)?++y[I]:Zi(y,I,1)});function wT(y,S,I){var B=lr(y)?xb:Wb;return I&&ka(y,S,I)&&(S=r),B(y,kt(S,3))}function TT(y,S){var I=lr(y)?xs:rm;return I(y,kt(S,3))}var iL=Hw(yx),CT=Hw(Uc);function oL(y,S){return wa(wm(y,S),1)}function Rn(y,S){return wa(wm(y,S),te)}function AT(y,S,I){return I=I===r?1:fr(I),wa(wm(y,S),I)}function _x(y,S){var I=lr(y)?Xi:As;return I(y,kt(S,3))}function Sx(y,S){var I=lr(y)?bb:Ub;return I(y,kt(S,3))}var ET=ax(function(y,S,I){Gr.call(y,I)?y[I].push(S):Zi(y,I,[S])});function RT(y,S,I,B){y=Ta(y)?y:Yo(y),I=I&&!B?fr(I):0;var G=y.length;return I<0&&(I=va(G+I,0)),Pm(y)?I<=G&&y.indexOf(S,I)>-1:!!G&&Bf(y,S,I)>-1}var MT=pr(function(y,S,I){var B=-1,G=typeof S=="function",Q=Ta(y)?De(y.length):[];return As(y,function(ae){Q[++B]=G?qi(S,ae,I):rp(ae,S,I)}),Q}),_p=ax(function(y,S,I){Zi(y,I,S)});function wm(y,S){var I=lr(y)?pn:Zb;return I(y,kt(S,3))}function Tm(y,S,I,B){return y==null?[]:(lr(S)||(S=S==null?[]:[S]),I=B?r:I,lr(I)||(I=I==null?[]:[I]),Kb(y,S,I))}var ud=ax(function(y,S,I){y[I?0:1].push(S)},function(){return[[],[]]});function sL(y,S,I){var B=lr(y)?Ai:Tb,G=arguments.length<3;return B(y,kt(S,4),I,G,As)}function DT(y,S,I){var B=lr(y)?_l:Tb,G=arguments.length<3;return B(y,kt(S,4),I,G,Ub)}function lL(y,S){var I=lr(y)?xs:rm;return I(y,Rp(kt(S,3)))}function IT(y){var S=lr(y)?Gf:kw;return S(y)}function Mi(y,S,I){(I?ka(y,S,I):S===r)?S=1:S=fr(S);var B=lr(y)?Kh:Nw;return B(y,S)}function Sp(y){var S=lr(y)?Qh:lm;return S(y)}function Cm(y){if(y==null)return 0;if(Ta(y))return Pm(y)?Sl(y):y.length;var S=Ya(y);return S==Ie||S==Xt?y.size:_u(y).length}function wp(y,S,I){var B=lr(y)?ci:ex;return I&&ka(y,S,I)&&(S=r),B(y,kt(S,3))}var PT=pr(function(y,S){if(y==null)return[];var I=S.length;return I>1&&ka(y,S[0],S[1])?S=[]:I>2&&ka(S[0],S[1],S[2])&&(S=[S[0]]),Kb(y,wa(S,1),[])}),Rs=OI||function(){return La.Date.now()};function Wc(y,S){if(typeof S!="function")throw new bo(o);return y=fr(y),function(){if(--y<1)return S.apply(this,arguments)}}function Tp(y,S,I){return S=I?r:S,S=y&&S==null?y.length:S,Go(y,P,r,r,r,r,S)}function Hc(y,S){var I;if(typeof S!="function")throw new bo(o);return y=fr(y),function(){return--y>0&&(I=S.apply(this,arguments)),y<=1&&(S=r),I}}var Cp=pr(function(y,S,I){var B=x;if(I.length){var G=pu(I,Fc(Cp));B|=M}return Go(y,B,S,I,G)}),cd=pr(function(y,S,I){var B=x|_;if(I.length){var G=pu(I,Fc(cd));B|=M}return Go(S,B,y,I,G)});function Ap(y,S,I){S=I?r:S;var B=Go(y,T,r,r,r,r,r,S);return B.placeholder=Ap.placeholder,B}function Ep(y,S,I){S=I?r:S;var B=Go(y,A,r,r,r,r,r,S);return B.placeholder=Ep.placeholder,B}function fd(y,S,I){var B,G,Q,ae,ce,me,Fe=0,Ve=!1,je=!1,ut=!0;if(typeof y!="function")throw new bo(o);S=Co(S)||0,Fn(I)&&(Ve=!!I.leading,je="maxWait"in I,Q=je?va(Co(I.maxWait)||0,S):Q,ut="trailing"in I?!!I.trailing:ut);function Dt(kn){var Li=B,Ls=G;return B=G=r,Fe=kn,ae=y.apply(Ls,Li),ae}function qt(kn){return Fe=kn,ce=vp(xr,S),Ve?Dt(kn):ae}function Kt(kn){var Li=kn-me,Ls=kn-Fe,zx=S-Li;return je?Kn(zx,Q-Ls):zx}function Bt(kn){var Li=kn-me,Ls=kn-Fe;return me===r||Li>=S||Li<0||je&&Ls>=Q}function xr(){var kn=Rs();if(Bt(kn))return Ar(kn);ce=vp(xr,Kt(kn))}function Ar(kn){return ce=r,ut&&B?Dt(kn):(B=G=r,ae)}function Ja(){ce!==r&&nx(ce),Fe=0,B=me=G=ce=r}function na(){return ce===r?ae:Ar(Rs())}function ei(){var kn=Rs(),Li=Bt(kn);if(B=arguments,G=this,me=kn,Li){if(ce===r)return qt(me);if(je)return nx(ce),ce=vp(xr,S),Dt(me)}return ce===r&&(ce=vp(xr,S)),ae}return ei.cancel=Ja,ei.flush=na,ei}var LT=pr(function(y,S){return jf(y,1,S)}),Am=pr(function(y,S,I){return jf(y,Co(S)||0,I)});function OT(y){return Go(y,k)}function Tu(y,S){if(typeof y!="function"||S!=null&&typeof S!="function")throw new bo(o);var I=function(){var B=arguments,G=S?S.apply(this,B):B[0],Q=I.cache;if(Q.has(G))return Q.get(G);var ae=y.apply(this,B);return I.cache=Q.set(G,ae)||Q,ae};return I.cache=new(Tu.Cache||Cs),I}Tu.Cache=Cs;function Rp(y){if(typeof y!="function")throw new bo(o);return function(){var S=arguments;switch(S.length){case 0:return!y.call(this);case 1:return!y.call(this,S[0]);case 2:return!y.call(this,S[0],S[1]);case 3:return!y.call(this,S[0],S[1],S[2])}return!y.apply(this,S)}}function uL(y){return Hc(2,y)}var cL=KI(function(y,S){S=S.length==1&&lr(S[0])?pn(S[0],fi(kt())):pn(wa(S,1),fi(kt()));var I=S.length;return pr(function(B){for(var G=-1,Q=Kn(B.length,I);++G<Q;)B[G]=S[G].call(this,B[G]);return qi(y,this,B)})}),Em=pr(function(y,S){var I=pu(S,Fc(Em));return Go(y,M,r,S,I)}),kT=pr(function(y,S){var I=pu(S,Fc(kT));return Go(y,D,r,S,I)}),Rm=jo(function(y,S){return Go(y,O,r,r,r,S)});function fL(y,S){if(typeof y!="function")throw new bo(o);return S=S===r?S:fr(S),pr(y,S)}function dL(y,S){if(typeof y!="function")throw new bo(o);return S=S==null?0:va(fr(S),0),pr(function(I){var B=I[S],G=Ll(I,0,S);return B&&xl(G,B),qi(y,this,G)})}function hL(y,S,I){var B=!0,G=!0;if(typeof y!="function")throw new bo(o);return Fn(I)&&(B="leading"in I?!!I.leading:B,G="trailing"in I?!!I.trailing:G),fd(y,S,{leading:B,maxWait:S,trailing:G})}function pL(y){return Tp(y,1)}function vL(y,S){return Em(rx(S),y)}function gL(){if(!arguments.length)return[];var y=arguments[0];return lr(y)?y:[y]}function mL(y){return di(y,v)}function yL(y,S){return S=typeof S=="function"?S:r,di(y,v,S)}function bL(y){return di(y,d|v)}function xL(y,S){return S=typeof S=="function"?S:r,di(y,d|v,S)}function NT(y,S){return S==null||Aw(y,S,Ca(S))}function To(y,S){return y===S||y!==y&&S!==S}var BT=cp(Gb),zT=cp(function(y,S){return y>=S}),Cu=Ew(function(){return arguments}())?Ew:function(y){return Ln(y)&&Gr.call(y,"callee")&&!Cl.call(y,"callee")},lr=De.isArray,Mp=iw?fi(iw):Rw;function Ta(y){return y!=null&&dd(y.length)&&!Ms(y)}function Jn(y){return Ln(y)&&Ta(y)}function $T(y){return y===!0||y===!1||Ln(y)&&hi(y)==$e}var Au=qh||Nx,_L=vb?fi(vb):Mw;function FT(y){return Ln(y)&&y.nodeType===1&&!Dp(y)}function SL(y){if(y==null)return!0;if(Ta(y)&&(lr(y)||typeof y=="string"||typeof y.splice=="function"||Au(y)||hd(y)||Cu(y)))return!y.length;var S=Ya(y);if(S==Ie||S==Xt)return!y.size;if(id(y))return!_u(y).length;for(var I in y)if(Gr.call(y,I))return!1;return!0}function wL(y,S){return Zf(y,S)}function VT(y,S,I){I=typeof I=="function"?I:r;var B=I?I(y,S):r;return B===r?Zf(y,S,r,I):!!B}function Eu(y){if(!Ln(y))return!1;var S=hi(y);return S==de||S==et||typeof y.message=="string"&&typeof y.name=="string"&&!Dp(y)}function UT(y){return typeof y=="number"&&Pb(y)}function Ms(y){if(!Fn(y))return!1;var S=hi(y);return S==xe||S==xt||S==st||S==Tr}function Mm(y){return typeof y=="number"&&y==fr(y)}function dd(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=J}function Fn(y){var S=typeof y;return y!=null&&(S=="object"||S=="function")}function Ln(y){return y!=null&&typeof y=="object"}var Dm=$g?fi($g):Dw;function WT(y,S){return y===S||qb(y,S,ym(S))}function TL(y,S,I){return I=typeof I=="function"?I:r,qb(y,S,ym(S),I)}function CL(y){return HT(y)&&y!=+y}function AU(y){if(fP(y))throw new or(i);return Pc(y)}function AL(y){return y===null}function EL(y){return y==null}function HT(y){return typeof y=="number"||Ln(y)&&hi(y)==Ct}function Dp(y){if(!Ln(y)||hi(y)!=jt)return!1;var S=Uf(y);if(S===null)return!0;var I=Gr.call(S,"constructor")&&S.constructor;return typeof I=="function"&&I instanceof I&&Yg.call(I)==pw}var Tx=gb?fi(gb):im;function RL(y){return Mm(y)&&y>=-J&&y<=J}var Im=mb?fi(mb):Iw;function Pm(y){return typeof y=="string"||!lr(y)&&Ln(y)&&hi(y)==Sn}function Di(y){return typeof y=="symbol"||Ln(y)&&hi(y)==zr}var hd=yb?fi(yb):om;function Cx(y){return y===r}function ML(y){return Ln(y)&&Ya(y)==Ee}function DL(y){return Ln(y)&&hi(y)==ke}var GT=cp(Il),IL=cp(function(y,S){return y<=S});function jT(y){if(!y)return[];if(Ta(y))return Pm(y)?yo(y):tn(y);if(jh&&y[jh])return TI(y[jh]());var S=Ya(y),I=S==Ie?Hg:S==Xt?Gg:Yo;return I(y)}function kl(y){if(!y)return y===0?y:0;if(y=Co(y),y===te||y===-te){var S=y<0?-1:1;return S*ie}return y===y?y:0}function fr(y){var S=kl(y),I=S%1;return S===S?I?S-I:S:0}function YT(y){return y?Dc(fr(y),0,le):0}function Co(y){if(typeof y=="number")return y;if(Di(y))return se;if(Fn(y)){var S=typeof y.valueOf=="function"?y.valueOf():y;y=Fn(S)?S+"":S}if(typeof y!="string")return y===0?y:+y;y=Sc(y);var I=su.test(y);return I||Bh.test(y)?Wh(y.slice(2),I?2:8):vo.test(y)?se:+y}function qT(y){return ja(y,Ii(y))}function PL(y){return y?Dc(fr(y),-J,J):y===0?y:0}function Yr(y){return y==null?"":Pr(y)}var LL=ed(function(y,S){if(id(S)||Ta(S)){ja(S,Ca(S),y);return}for(var I in S)Gr.call(S,I)&&Jh(y,I,S[I])}),XT=ed(function(y,S){ja(S,Ii(S),y)}),pd=ed(function(y,S,I,B){ja(S,Ii(S),y,B)}),OL=ed(function(y,S,I,B){ja(S,Ca(S),y,B)}),kL=jo(Vb);function NL(y,S){var I=Al(y);return S==null?I:Fb(I,S)}var BL=pr(function(y,S){y=vn(y);var I=-1,B=S.length,G=B>2?S[2]:r;for(G&&ka(S[0],S[1],G)&&(B=1);++I<B;)for(var Q=S[I],ae=Ii(Q),ce=-1,me=ae.length;++ce<me;){var Fe=ae[ce],Ve=y[Fe];(Ve===r||To(Ve,_s[Fe])&&!Gr.call(y,Fe))&&(y[Fe]=Q[Fe])}return y}),ZT=pr(function(y){return y.push(r,Xw),qi(JT,r,y)});function Lm(y,S){return sw(y,kt(S,3),Wo)}function KT(y,S){return sw(y,kt(S,3),nm)}function zL(y,S){return y==null?y:Xf(y,kt(S,3),Ii)}function $L(y,S){return y==null?y:Hb(y,kt(S,3),Ii)}function FL(y,S){return y&&Wo(y,kt(S,3))}function QT(y,S){return y&&nm(y,kt(S,3))}function VL(y){return y==null?[]:tp(y,Ca(y))}function UL(y){return y==null?[]:tp(y,Ii(y))}function Ax(y,S,I){var B=y==null?r:xu(y,S);return B===r?I:B}function WL(y,S){return y!=null&&ad(y,S,YI)}function Ex(y,S){return y!=null&&ad(y,S,qI)}var HL=jw(function(y,S,I){S!=null&&typeof S.toString!="function"&&(S=wl.call(S)),y[S]=I},Ox(Ka)),GL=jw(function(y,S,I){S!=null&&typeof S.toString!="function"&&(S=wl.call(S)),Gr.call(y,S)?y[S].push(I):y[S]=[I]},kt),jL=pr(rp);function Ca(y){return Ta(y)?Dl(y):_u(y)}function Ii(y){return Ta(y)?Dl(y,!0):Pw(y)}function YL(y,S){var I={};return S=kt(S,3),Wo(y,function(B,G,Q){Zi(I,S(B,G,Q),B)}),I}function qL(y,S){var I={};return S=kt(S,3),Wo(y,function(B,G,Q){Zi(I,G,S(B,G,Q))}),I}var XL=ed(function(y,S,I){ap(y,S,I)}),JT=ed(function(y,S,I,B){ap(y,S,I,B)}),ZL=jo(function(y,S){var I={};if(y==null)return I;var B=!1;S=pn(S,function(Q){return Q=Pl(Q,y),B||(B=Q.length>1),Q}),ja(y,lx(y),I),B&&(I=di(I,d|p|v,aP));for(var G=S.length;G--;)on(I,S[G]);return I});function KL(y,S){return vd(y,Rp(kt(S)))}var Om=jo(function(y,S){return y==null?{}:Lc(y,S)});function vd(y,S){if(y==null)return{};var I=pn(lx(y),function(B){return[B]});return S=kt(S),Ow(y,I,function(B,G){return S(B,G[0])})}function eC(y,S,I){S=Pl(S,y);var B=-1,G=S.length;for(G||(G=1,y=r);++B<G;){var Q=y==null?r:y[Es(S[B])];Q===r&&(B=G,Q=I),y=Ms(Q)?Q.call(y):Q}return y}function Ip(y,S,I){return y==null?y:kc(y,S,I)}function tC(y,S,I,B){return B=typeof B=="function"?B:r,y==null?y:kc(y,S,I,B)}var Pp=qw(Ca),rC=qw(Ii);function nC(y,S,I){var B=lr(y),G=B||Au(y)||hd(y);if(S=kt(S,4),I==null){var Q=y&&y.constructor;G?I=B?new Q:[]:Fn(y)?I=Ms(Q)?Al(Uf(y)):{}:I={}}return(G?Xi:Wo)(y,function(ae,ce,me){return S(I,ae,ce,me)}),I}function km(y,S){return y==null?!0:on(y,S)}function Gc(y,S,I){return y==null?y:Bc(y,S,rx(I))}function Ru(y,S,I,B){return B=typeof B=="function"?B:r,y==null?y:Bc(y,S,rx(I),B)}function Yo(y){return y==null?[]:Wg(y,Ca(y))}function Nm(y){return y==null?[]:Wg(y,Ii(y))}function Rx(y,S,I){return I===r&&(I=S,S=r),I!==r&&(I=Co(I),I=I===I?I:0),S!==r&&(S=Co(S),S=S===S?S:0),Dc(Co(y),S,I)}function aC(y,S,I){return S=kl(S),I===r?(I=S,S=0):I=kl(I),y=Co(y),jb(y,S,I)}function iC(y,S,I){if(I&&typeof I!="boolean"&&ka(y,S,I)&&(S=I=r),I===r&&(typeof S=="boolean"?(I=S,S=r):typeof y=="boolean"&&(I=y,y=r)),y===r&&S===r?(y=0,S=1):(y=kl(y),S===r?(S=y,y=0):S=kl(S)),y>S){var B=y;y=S,S=B}if(I||y%1||S%1){var G=em();return Kn(y+G*(S-y+kf("1e-"+((G+"").length-1))),S)}return Oc(y,S)}var oC=td(function(y,S,I){return S=S.toLowerCase(),y+(I?Lp(S):S)});function Lp(y){return Vm(Yr(y).toLowerCase())}function Ao(y){return y=Yr(y),y&&y.replace($h,xI).replace(Wr,"")}function Mx(y,S,I){y=Yr(y),S=Pr(S);var B=y.length;I=I===r?B:Dc(fr(I),0,B);var G=I;return I-=S.length,I>=0&&y.slice(I,G)==S}function Bm(y){return y=Yr(y),y&&iu.test(y)?y.replace($o,_I):y}function Nl(y){return y=Yr(y),y&&Je.test(y)?y.replace(ue,"\\$&"):y}var Mu=td(function(y,S,I){return y+(I?"-":"")+S.toLowerCase()}),Xa=td(function(y,S,I){return y+(I?" ":"")+S.toLowerCase()}),Za=ix("toLowerCase");function Dx(y,S,I){y=Yr(y),S=fr(S);var B=S?Sl(y):0;if(!S||B>=S)return y;var G=(S-B)/2;return vm(vu(G),I)+y+vm(Kg(G),I)}function Ki(y,S,I){y=Yr(y),S=fr(S);var B=S?Sl(y):0;return S&&B<S?y+vm(S-B,I):y}function Bl(y,S,I){y=Yr(y),S=fr(S);var B=S?Sl(y):0;return S&&B<S?vm(S-B,I)+y:y}function Ds(y,S,I){return I||S==null?S=0:S&&(S=+S),Jg(Yr(y).replace(dt,""),S||0)}function Ix(y,S,I){return(I?ka(y,S,I):S===r)?S=1:S=fr(S),Kf(Yr(y),S)}function gd(){var y=arguments,S=Yr(y[0]);return y.length<3?S:S.replace(y[1],y[2])}var sC=td(function(y,S,I){return y+(I?"_":"")+S.toLowerCase()});function md(y,S,I){return I&&typeof I!="number"&&ka(y,S,I)&&(S=I=r),I=I===r?le:I>>>0,I?(y=Yr(y),y&&(typeof S=="string"||S!=null&&!Tx(S))&&(S=Pr(S),!S&&$f(y))?Ll(yo(y),0,I):y.split(S,I)):[]}var zm=td(function(y,S,I){return y+(I?" ":"")+Vm(S)});function Is(y,S,I){return y=Yr(y),I=I==null?0:Dc(fr(I),0,y.length),S=Pr(S),y.slice(I,I+S.length)==S}function $m(y,S,I){var B=K.templateSettings;I&&ka(y,S,I)&&(S=r),y=Yr(y),S=pd({},S,B,mm);var G=pd({},S.imports,B.imports,mm),Q=Ca(G),ae=Wg(G,Q),ce,me,Fe=0,Ve=S.interpolate||ui,je="__p += '",ut=Rb((S.escape||ui).source+"|"+Ve.source+"|"+(Ve===po?wn:ui).source+"|"+(S.evaluate||ui).source+"|$","g"),Dt="//# sourceURL="+(Gr.call(S,"sourceURL")?(S.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ci+"]")+` `;y.replace(ut,function(Bt,xr,Ar,Ja,na,ei){return Ar||(Ar=Ja),je+=y.slice(Fe,ei).replace(go,SI),xr&&(ce=!0,je+=`' + __e(`+xr+`) + '`),na&&(me=!0,je+=`'; `+na+`; __p += '`),Ar&&(je+=`' + ((__t = (`+Ar+`)) == null ? '' : __t) + '`),Fe=ei+Bt.length,Bt}),je+=`'; `;var qt=Gr.call(S,"variable")&&S.variable;if(!qt)je=`with (obj) { `+je+` } `;else if(An.test(qt))throw new or(s);je=(me?je.replace(Un,""):je).replace(Dr,"$1").replace(da,"$1;"),je="function("+(qt||"obj")+`) { `+(qt?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(ce?", __e = _.escape":"")+(me?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+je+`return __p }`;var Kt=qo(function(){return Vr(Q,Dt+"return "+je).apply(r,ae)});if(Kt.source=je,Eu(Kt))throw Kt;return Kt}function Px(y){return Yr(y).toLowerCase()}function lC(y){return Yr(y).toUpperCase()}function uC(y,S,I){if(y=Yr(y),y&&(I||S===r))return Sc(y);if(!y||!(S=Pr(S)))return y;var B=yo(y),G=yo(S),Q=cw(B,G),ae=fw(B,G)+1;return Ll(B,Q,ae).join("")}function Fm(y,S,I){if(y=Yr(y),y&&(I||S===r))return y.slice(0,Tc(y)+1);if(!y||!(S=Pr(S)))return y;var B=yo(y),G=fw(B,yo(S))+1;return Ll(B,0,G).join("")}function cC(y,S,I){if(y=Yr(y),y&&(I||S===r))return y.replace(dt,"");if(!y||!(S=Pr(S)))return y;var B=yo(y),G=cw(B,yo(S));return Ll(B,G).join("")}function QL(y,S){var I=N,B=$;if(Fn(S)){var G="separator"in S?S.separator:G;I="length"in S?fr(S.length):I,B="omission"in S?Pr(S.omission):B}y=Yr(y);var Q=y.length;if($f(y)){var ae=yo(y);Q=ae.length}if(I>=Q)return y;var ce=I-Sl(B);if(ce<1)return B;var me=ae?Ll(ae,0,ce).join(""):y.slice(0,ce);if(G===r)return me+B;if(ae&&(ce+=me.length-ce),Tx(G)){if(y.slice(ce).search(G)){var Fe,Ve=me;for(G.global||(G=Rb(G.source,Yr(Va.exec(G))+"g")),G.lastIndex=0;Fe=G.exec(Ve);)var je=Fe.index;me=me.slice(0,je===r?ce:je)}}else if(y.indexOf(Pr(G),ce)!=ce){var ut=me.lastIndexOf(G);ut>-1&&(me=me.slice(0,ut))}return me+B}function Lx(y){return y=Yr(y),y&&ml.test(y)?y.replace(ho,AI):y}var fC=td(function(y,S,I){return y+(I?" ":"")+S.toUpperCase()}),Vm=ix("toUpperCase");function Op(y,S,I){return y=Yr(y),S=I?r:S,S===r?dw(y)?MI(y):Vg(y):y.match(S)||[]}var qo=pr(function(y,S){try{return qi(y,r,S)}catch(I){return Eu(I)?I:new or(I)}}),yd=jo(function(y,S){return Xi(S,function(I){I=Es(I),Zi(y,I,Cp(y[I],y))}),y});function JL(y){var S=y==null?0:y.length,I=kt();return y=S?pn(y,function(B){if(typeof B[1]!="function")throw new bo(o);return[I(B[0]),B[1]]}):[],pr(function(B){for(var G=-1;++G<S;){var Q=y[G];if(qi(Q[0],this,B))return qi(Q[1],this,B)}})}function e2(y){return Cw(di(y,d))}function Ox(y){return function(){return y}}function t2(y,S){return y==null||y!==y?S:y}var r2=Gw(),n2=Gw(!0);function Ka(y){return y}function Um(y){return Xb(typeof y=="function"?y:di(y,d))}function a2(y){return np(di(y,d))}function dC(y,S){return sm(y,di(S,d))}var kx=pr(function(y,S){return function(I){return rp(I,y,S)}}),i2=pr(function(y,S){return function(I){return rp(y,I,S)}});function bd(y,S,I){var B=Ca(S),G=tp(S,B);I==null&&!(Fn(S)&&(G.length||!B.length))&&(I=S,S=y,y=this,G=tp(S,Ca(S)));var Q=!(Fn(I)&&"chain"in I)||!!I.chain,ae=Ms(y);return Xi(G,function(ce){var me=S[ce];y[ce]=me,ae&&(y.prototype[ce]=function(){var Fe=this.__chain__;if(Q||Fe){var Ve=y(this.__wrapped__),je=Ve.__actions__=tn(this.__actions__);return je.push({func:me,args:arguments,thisArg:y}),Ve.__chain__=Fe,Ve}return me.apply(y,xl([this.value()],arguments))})}),y}function hC(){return La._===this&&(La._=PI),this}function Wm(){}function pC(y){return y=fr(y),pr(function(S){return ip(S,y)})}var vC=ox(pn),gC=ox(xb),Eo=ox(ci);function Du(y){return dx(y)?Sb(Es(y)):qe(y)}function zl(y){return function(S){return y==null?r:xu(y,S)}}var mC=gm(),yC=gm(!0);function kp(){return[]}function Nx(){return!1}function o2(){return{}}function $l(){return""}function Hm(){return!0}function Bx(y,S){if(y=fr(y),y<1||y>J)return[];var I=le,B=Kn(y,le);S=kt(S),y-=le;for(var G=Ab(B,S);++I<y;)S(I);return G}function bC(y){return lr(y)?pn(y,Es):Di(y)?[y]:tn(nT(Yr(y)))}function Qa(y){var S=++Mb;return Yr(y)+S}var xd=pm(function(y,S){return y+S},0),xC=sx("ceil"),jc=pm(function(y,S){return y/S},1),Iu=sx("floor");function s2(y){return y&&y.length?Ic(y,Ka,Gb):r}function _C(y,S){return y&&y.length?Ic(y,kt(S,2),Gb):r}function Ps(y){return lw(y,Ka)}function SC(y,S){return lw(y,kt(S,2))}function wC(y){return y&&y.length?Ic(y,Ka,Il):r}function On(y,S){return y&&y.length?Ic(y,kt(S,2),Il):r}var Hn=pm(function(y,S){return y*S},1),Pi=sx("round"),Yc=pm(function(y,S){return y-S},0);function Qi(y){return y&&y.length?Cb(y,Ka):0}function l2(y,S){return y&&y.length?Cb(y,kt(S,2)):0}return K.after=Wc,K.ary=Tp,K.assign=LL,K.assignIn=XT,K.assignInWith=pd,K.assignWith=OL,K.at=kL,K.before=Hc,K.bind=Cp,K.bindAll=yd,K.bindKey=cd,K.castArray=gL,K.chain=_T,K.chunk=mP,K.compact=aT,K.concat=iT,K.cond=JL,K.conforms=e2,K.constant=Ox,K.countBy=xp,K.create=NL,K.curry=Ap,K.curryRight=Ep,K.debounce=fd,K.defaults=BL,K.defaultsDeep=ZT,K.defer=LT,K.delay=Am,K.difference=oT,K.differenceBy=yP,K.differenceWith=sT,K.drop=bP,K.dropRight=xP,K.dropRightWhile=_P,K.dropWhile=lT,K.fill=uT,K.filter=TT,K.flatMap=oL,K.flatMapDeep=Rn,K.flatMapDepth=AT,K.flatten=cT,K.flattenDeep=SP,K.flattenDepth=wP,K.flip=OT,K.flow=r2,K.flowRight=n2,K.fromPairs=TP,K.functions=VL,K.functionsIn=UL,K.groupBy=ET,K.initial=dT,K.intersection=AP,K.intersectionBy=EP,K.intersectionWith=hT,K.invert=HL,K.invertBy=GL,K.invokeMap=MT,K.iteratee=Um,K.keyBy=_p,K.keys=Ca,K.keysIn=Ii,K.map=wm,K.mapKeys=YL,K.mapValues=qL,K.matches=a2,K.matchesProperty=dC,K.memoize=Tu,K.merge=XL,K.mergeWith=JT,K.method=kx,K.methodOf=i2,K.mixin=bd,K.negate=Rp,K.nthArg=pC,K.omit=ZL,K.omitBy=KL,K.once=uL,K.orderBy=Tm,K.over=vC,K.overArgs=cL,K.overEvery=gC,K.overSome=Eo,K.partial=Em,K.partialRight=kT,K.partition=ud,K.pick=Om,K.pickBy=vd,K.property=Du,K.propertyOf=zl,K.pull=DP,K.pullAll=mp,K.pullAllBy=IP,K.pullAllWith=pT,K.pullAt=PP,K.range=mC,K.rangeRight=yC,K.rearg=Rm,K.reject=lL,K.remove=vT,K.rest=fL,K.reverse=_m,K.sampleSize=Mi,K.set=Ip,K.setWith=tC,K.shuffle=Sp,K.slice=LP,K.sortBy=PT,K.sortedUniq=FP,K.sortedUniqBy=VP,K.split=md,K.spread=dL,K.tail=UP,K.take=wo,K.takeRight=WP,K.takeRightWhile=yp,K.takeWhile=gT,K.tap=sd,K.throttle=hL,K.thru=ld,K.toArray=jT,K.toPairs=Pp,K.toPairsIn=rC,K.toPath=bC,K.toPlainObject=qT,K.transform=nC,K.unary=pL,K.union=HP,K.unionBy=mT,K.unionWith=GP,K.uniq=jP,K.uniqBy=YP,K.uniqWith=yT,K.unset=km,K.unzip=Sm,K.unzipWith=bT,K.update=Gc,K.updateWith=Ru,K.values=Yo,K.valuesIn=Nm,K.without=qP,K.words=Op,K.wrap=vL,K.xor=xT,K.xorBy=bx,K.xorWith=XP,K.zip=ZP,K.zipObject=KP,K.zipObjectDeep=QP,K.zipWith=JP,K.entries=Pp,K.entriesIn=rC,K.extend=XT,K.extendWith=pd,bd(K,K),K.add=xd,K.attempt=qo,K.camelCase=oC,K.capitalize=Lp,K.ceil=xC,K.clamp=Rx,K.clone=mL,K.cloneDeep=bL,K.cloneDeepWith=xL,K.cloneWith=yL,K.conformsTo=NT,K.deburr=Ao,K.defaultTo=t2,K.divide=jc,K.endsWith=Mx,K.eq=To,K.escape=Bm,K.escapeRegExp=Nl,K.every=wT,K.find=iL,K.findIndex=yx,K.findKey=Lm,K.findLast=CT,K.findLastIndex=Uc,K.findLastKey=KT,K.floor=Iu,K.forEach=_x,K.forEachRight=Sx,K.forIn=zL,K.forInRight=$L,K.forOwn=FL,K.forOwnRight=QT,K.get=Ax,K.gt=BT,K.gte=zT,K.has=WL,K.hasIn=Ex,K.head=fT,K.identity=Ka,K.includes=RT,K.indexOf=CP,K.inRange=aC,K.invoke=jL,K.isArguments=Cu,K.isArray=lr,K.isArrayBuffer=Mp,K.isArrayLike=Ta,K.isArrayLikeObject=Jn,K.isBoolean=$T,K.isBuffer=Au,K.isDate=_L,K.isElement=FT,K.isEmpty=SL,K.isEqual=wL,K.isEqualWith=VT,K.isError=Eu,K.isFinite=UT,K.isFunction=Ms,K.isInteger=Mm,K.isLength=dd,K.isMap=Dm,K.isMatch=WT,K.isMatchWith=TL,K.isNaN=CL,K.isNative=AU,K.isNil=EL,K.isNull=AL,K.isNumber=HT,K.isObject=Fn,K.isObjectLike=Ln,K.isPlainObject=Dp,K.isRegExp=Tx,K.isSafeInteger=RL,K.isSet=Im,K.isString=Pm,K.isSymbol=Di,K.isTypedArray=hd,K.isUndefined=Cx,K.isWeakMap=ML,K.isWeakSet=DL,K.join=gp,K.kebabCase=Mu,K.last=qa,K.lastIndexOf=RP,K.lowerCase=Xa,K.lowerFirst=Za,K.lt=GT,K.lte=IL,K.max=s2,K.maxBy=_C,K.mean=Ps,K.meanBy=SC,K.min=wC,K.minBy=On,K.stubArray=kp,K.stubFalse=Nx,K.stubObject=o2,K.stubString=$l,K.stubTrue=Hm,K.multiply=Hn,K.nth=MP,K.noConflict=hC,K.noop=Wm,K.now=Rs,K.pad=Dx,K.padEnd=Ki,K.padStart=Bl,K.parseInt=Ds,K.random=iC,K.reduce=sL,K.reduceRight=DT,K.repeat=Ix,K.replace=gd,K.result=eC,K.round=Pi,K.runInContext=ve,K.sample=IT,K.size=Cm,K.snakeCase=sC,K.some=wp,K.sortedIndex=OP,K.sortedIndexBy=kP,K.sortedIndexOf=NP,K.sortedLastIndex=BP,K.sortedLastIndexBy=zP,K.sortedLastIndexOf=$P,K.startCase=zm,K.startsWith=Is,K.subtract=Yc,K.sum=Qi,K.sumBy=l2,K.template=$m,K.times=Bx,K.toFinite=kl,K.toInteger=fr,K.toLength=YT,K.toLower=Px,K.toNumber=Co,K.toSafeInteger=PL,K.toString=Yr,K.toUpper=lC,K.trim=uC,K.trimEnd=Fm,K.trimStart=cC,K.truncate=QL,K.unescape=Lx,K.uniqueId=Qa,K.upperCase=fC,K.upperFirst=Vm,K.each=_x,K.eachRight=Sx,K.first=fT,bd(K,function(){var y={};return Wo(K,function(S,I){Gr.call(K.prototype,I)||(y[I]=S)}),y}(),{chain:!1}),K.VERSION=n,Xi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(y){K[y].placeholder=K}),Xi(["drop","take"],function(y,S){hr.prototype[y]=function(I){I=I===r?1:va(fr(I),0);var B=this.__filtered__&&!S?new hr(this):this.clone();return B.__filtered__?B.__takeCount__=Kn(I,B.__takeCount__):B.__views__.push({size:Kn(I,le),type:y+(B.__dir__<0?"Right":"")}),B},hr.prototype[y+"Right"]=function(I){return this.reverse()[y](I).reverse()}}),Xi(["filter","map","takeWhile"],function(y,S){var I=S+1,B=I==W||I==X;hr.prototype[y]=function(G){var Q=this.clone();return Q.__iteratees__.push({iteratee:kt(G,3),type:I}),Q.__filtered__=Q.__filtered__||B,Q}}),Xi(["head","last"],function(y,S){var I="take"+(S?"Right":"");hr.prototype[y]=function(){return this[I](1).value()[0]}}),Xi(["initial","tail"],function(y,S){var I="drop"+(S?"":"Right");hr.prototype[y]=function(){return this.__filtered__?new hr(this):this[I](1)}}),hr.prototype.compact=function(){return this.filter(Ka)},hr.prototype.find=function(y){return this.filter(y).head()},hr.prototype.findLast=function(y){return this.reverse().find(y)},hr.prototype.invokeMap=pr(function(y,S){return typeof y=="function"?new hr(this):this.map(function(I){return rp(I,y,S)})}),hr.prototype.reject=function(y){return this.filter(Rp(kt(y)))},hr.prototype.slice=function(y,S){y=fr(y);var I=this;return I.__filtered__&&(y>0||S<0)?new hr(I):(y<0?I=I.takeRight(-y):y&&(I=I.drop(y)),S!==r&&(S=fr(S),I=S<0?I.dropRight(-S):I.take(S-y)),I)},hr.prototype.takeRightWhile=function(y){return this.reverse().takeWhile(y).reverse()},hr.prototype.toArray=function(){return this.take(le)},Wo(hr.prototype,function(y,S){var I=/^(?:filter|find|map|reject)|While$/.test(S),B=/^(?:head|last)$/.test(S),G=K[B?"take"+(S=="last"?"Right":""):S],Q=B||/^find/.test(S);G&&(K.prototype[S]=function(){var ae=this.__wrapped__,ce=B?[1]:arguments,me=ae instanceof hr,Fe=ce[0],Ve=me||lr(ae),je=function(xr){var Ar=G.apply(K,xl([xr],ce));return B&&ut?Ar[0]:Ar};Ve&&I&&typeof Fe=="function"&&Fe.length!=1&&(me=Ve=!1);var ut=this.__chain__,Dt=!!this.__actions__.length,qt=Q&&!ut,Kt=me&&!Dt;if(!Q&&Ve){ae=Kt?ae:new hr(this);var Bt=y.apply(ae,ce);return Bt.__actions__.push({func:ld,args:[je],thisArg:r}),new Ha(Bt,ut)}return qt&&Kt?y.apply(this,ce):(Bt=this.thru(je),qt?B?Bt.value()[0]:Bt.value():Bt)})}),Xi(["pop","push","shift","sort","splice","unshift"],function(y){var S=Hh[y],I=/^(?:push|sort|unshift)$/.test(y)?"tap":"thru",B=/^(?:pop|shift)$/.test(y);K.prototype[y]=function(){var G=arguments;if(B&&!this.__chain__){var Q=this.value();return S.apply(lr(Q)?Q:[],G)}return this[I](function(ae){return S.apply(lr(ae)?ae:[],G)})}}),Wo(hr.prototype,function(y,S){var I=K[S];if(I){var B=I.name+"";Gr.call(Hf,B)||(Hf[B]=[]),Hf[B].push({name:S,func:I})}}),Hf[up(r,_).name]=[{name:"wrapper",func:r}],hr.prototype.clone=El,hr.prototype.reverse=zI,hr.prototype.value=$I,K.prototype.at=bp,K.prototype.chain=xx,K.prototype.commit=eL,K.prototype.next=tL,K.prototype.plant=rL,K.prototype.reverse=nL,K.prototype.toJSON=K.prototype.valueOf=K.prototype.value=aL,K.prototype.first=K.prototype.head,jh&&(K.prototype[jh]=ST),K},Ff=DI();bl?((bl.exports=Ff)._=Ff,fu._=Ff):La._=Ff}).call(Pv)})(LSe,T0);const $i={primary:"rgba(52, 49, 76, 1)",secondary:"rgba(52, 49, 76, 0.54)",disabled:"rgba(52, 49, 76, 0.38)",hint:"rgba(52, 49, 76, 0.38)"},yy={primary:"#fff",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.64)",hint:"rgba(255, 255, 255, 0.64)"},OSe={light:"#f9a352",main:"#ff9e43",dark:"#ff932e",contrastText:$i.primary},$u={main:"#FF3D57"},kSe={whitePurple:{palette:{type:"light",primary:{main:"#ffffff",contrastText:$i.primary},secondary:{main:"#7467ef",contrastText:"#ffffff"},background:{paper:"#fff",default:"#fafafa"},error:$u,text:$i}},whiteBlue:{palette:{type:"light",primary:{main:"#ffffff",contrastText:$i.primary},secondary:{main:"#1976d2",contrastText:"#ffffff"},background:{paper:"#fff",default:"#fafafa"},text:$i}},slateDark1:{palette:{type:"dark",primary:{main:"#222A45",contrastText:"#ffffff"},secondary:{main:"#ff9e43",contrastText:$i.primary},error:$u,background:{paper:"#222A45",default:"#1a2038"},text:yy}},slateDark2:{palette:{type:"dark",primary:{main:"#1a2038",contrastText:"#ffffff"},secondary:{main:"#ff9e43",contrastText:$i.primary},error:$u,background:{paper:"#222A45",default:"#1a2038"},text:yy}},purple1:{palette:{type:"light",primary:{main:"#7467ef",contrastText:"#ffffff"},secondary:OSe,error:$u,background:{paper:"#fff",default:"#fafafa"},text:$i}},purple2:{palette:{type:"light",primary:{main:"#6a75c9",contrastText:"#ffffff"},secondary:{main:"#ff9e43",contrastText:$i.primary},error:$u,background:{paper:"#fff",default:"#fafafa"},text:$i}},purpleDark1:{palette:{type:"dark",primary:{main:"#7467ef",contrastText:"#ffffff"},secondary:{main:"#ff9e43",contrastText:$i.primary},error:$u,background:{paper:"#222A45",default:"#1a2038"},text:yy}},purpleDark2:{palette:{type:"dark",primary:{main:"#6a75c9",contrastText:"#ffffff"},secondary:{main:"#ff9e43",contrastText:$i.primary},error:$u,background:{paper:"#222A45",default:"#1a2038"},text:yy}},blue:{palette:{type:"light",primary:{main:"#1976d2",contrastText:"#ffffff"},secondary:{main:"#FFAF38",contrastText:$i.primary},error:$u,background:{paper:"#fff",default:"#fafafa"},text:$i}},blueDark:{palette:{type:"dark",primary:{main:"#1976d2",contrastText:"#ffffff"},secondary:{main:"#FF4F30",contrastText:$i.primary},error:$u,background:{paper:"#222A45",default:"#1a2038"},text:yy}},red:{palette:{type:"dark",primary:{main:"#e53935",contrastText:"#ffffff"},secondary:{main:"#FFAF38",contrastText:$i.primary},error:$u,text:yy}}},vj=["none","0px 2px 1px -1px rgba(0, 0, 0, 0.06),0px 1px 1px 0px rgba(0, 0, 0, 0.042),0px 1px 3px 0px rgba(0, 0, 0, 0.036)","0px 3px 1px -2px rgba(0, 0, 0, 0.06),0px 2px 2px 0px rgba(0, 0, 0, 0.042),0px 1px 5px 0px rgba(0, 0, 0, 0.036)","0px 3px 3px -2px rgba(0, 0, 0, 0.06),0px 3px 4px 0px rgba(0, 0, 0, 0.042),0px 1px 8px 0px rgba(0, 0, 0, 0.036)","0px 2px 4px -1px rgba(0, 0, 0, 0.06),0px 4px 5px 0px rgba(0, 0, 0, 0.042),0px 1px 10px 0px rgba(0, 0, 0, 0.036)","0px 3px 5px -1px rgba(0, 0, 0, 0.06),0px 5px 8px 0px rgba(0, 0, 0, 0.042),0px 1px 14px 0px rgba(0, 0, 0, 0.036)","0px 3px 5px -1px rgba(0, 0, 0, 0.06),0px 6px 10px 0px rgba(0, 0, 0, 0.042),0px 1px 18px 0px rgba(0, 0, 0, 0.036)","0px 4px 5px -2px rgba(0, 0, 0, 0.06),0px 7px 10px 1px rgba(0, 0, 0, 0.042),0px 2px 16px 1px rgba(0, 0, 0, 0.036)","0px 5px 5px -3px rgba(0, 0, 0, 0.06),0px 8px 10px 1px rgba(0, 0, 0, 0.042),0px 3px 14px 2px rgba(0, 0, 0, 0.036)","0px 5px 6px -3px rgba(0, 0, 0, 0.06),0px 9px 12px 1px rgba(0, 0, 0, 0.042),0px 3px 16px 2px rgba(0, 0, 0, 0.036)","0px 6px 6px -3px rgba(0, 0, 0, 0.06),0px 10px 14px 1px rgba(0, 0, 0, 0.042),0px 4px 18px 3px rgba(0, 0, 0, 0.036)","0px 6px 7px -4px rgba(0, 0, 0, 0.06),0px 11px 15px 1px rgba(0, 0, 0, 0.042),0px 4px 20px 3px rgba(0, 0, 0, 0.036)","0px 7px 8px -4px rgba(0, 0, 0, 0.06),0px 12px 17px 2px rgba(0, 0, 0, 0.042),0px 5px 22px 4px rgba(0, 0, 0, 0.036)","0px 7px 8px -4px rgba(0, 0, 0, 0.06),0px 13px 19px 2px rgba(0, 0, 0, 0.042),0px 5px 24px 4px rgba(0, 0, 0, 0.036)","0px 7px 9px -4px rgba(0, 0, 0, 0.06),0px 14px 21px 2px rgba(0, 0, 0, 0.042),0px 5px 26px 4px rgba(0, 0, 0, 0.036)","0px 8px 9px -5px rgba(0, 0, 0, 0.06),0px 15px 22px 2px rgba(0, 0, 0, 0.042),0px 6px 28px 5px rgba(0, 0, 0, 0.036)","0px 8px 10px -5px rgba(0, 0, 0, 0.06),0px 16px 24px 2px rgba(0, 0, 0, 0.042),0px 6px 30px 5px rgba(0, 0, 0, 0.036)","0px 8px 11px -5px rgba(0, 0, 0, 0.06),0px 17px 26px 2px rgba(0, 0, 0, 0.042),0px 6px 32px 5px rgba(0, 0, 0, 0.036)","0px 9px 11px -5px rgba(0, 0, 0, 0.06),0px 18px 28px 2px rgba(0, 0, 0, 0.042),0px 7px 34px 6px rgba(0, 0, 0, 0.036)","0px 9px 12px -6px rgba(0, 0, 0, 0.06),0px 19px 29px 2px rgba(0, 0, 0, 0.042),0px 7px 36px 6px rgba(0, 0, 0, 0.036)","0px 10px 13px -6px rgba(0, 0, 0, 0.06),0px 20px 31px 3px rgba(0, 0, 0, 0.042),0px 8px 38px 7px rgba(0, 0, 0, 0.036)","0px 10px 13px -6px rgba(0, 0, 0, 0.06),0px 20px 31px 3px rgba(0, 0, 0, 0.042),0px 8px 38px 7px rgba(0, 0, 0, 0.036)","0px 10px 13px -6px rgba(0, 0, 0, 0.06),0px 20px 31px 3px rgba(0, 0, 0, 0.042),0px 8px 38px 7px rgba(0, 0, 0, 0.036)","0px 10px 13px -6px rgba(0, 0, 0, 0.06),0px 20px 31px 3px rgba(0, 0, 0, 0.042),0px 8px 38px 7px rgba(0, 0, 0, 0.036)","0px 10px 13px -6px rgba(0, 0, 0, 0.06),0px 20px 31px 3px rgba(0, 0, 0, 0.042),0px 8px 38px 7px rgba(0, 0, 0, 0.036)"],NSe={MuiTable:{styleOverrides:{root:{tableLayout:"fixed"}}},MuiTableCell:{styleOverrides:{head:{fontSize:"13px",padding:"12px 0px"},root:{fontSize:"14px",whiteSpace:"pre-wrap",wordBreak:"break-all",padding:"12px 8px 12px 0px"}}},MUIDataTableSelectCell:{styleOverrides:{root:{paddingLeft:12}}},MUIDataTableHeadCell:{styleOverrides:{root:{paddingLeft:16}}},MUIDataTableBodyCell:{styleOverrides:{root:{paddingLeft:8}}},MuiButton:{styleOverrides:{root:{fontSize:"14px",textTransform:"none",fontWeight:"400"},contained:{boxShadow:vj[8]}}},MuiCssBaseline:{styleOverrides:{"*":{boxSizing:"border-box"},html:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",height:"100%",width:"100%"},body:{height:"100%"},a:{textDecoration:"none",color:"inherit"},"#root":{height:"100%"},"#nprogress .bar":{zIndex:"2000 !important"}}},MuiFab:{styleOverrides:{root:{boxShadow:vj[12]}}},MuiAccordion:{styleOverrides:{root:{"&:before":{display:"none"}}}},MuiTooltip:{styleOverrides:{tooltip:{fontSize:"11px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:"0.875rem"}}},MuiExpansionPanel:{styleOverrides:{root:{"&:before":{display:"none"}}}},MuiCard:{styleOverrides:{root:{borderRadius:"8px",boxShadow:"0px 3px 3px -2px rgb(0 0 0 / 6%), 0px 3px 4px 0px rgb(0 0 0 / 4%), 0px 1px 8px 0px rgb(0 0 0 / 4%) !important"}}}},BSe={typography:{fontSize:14,body1:{fontSize:"14px"}},status:{danger:xv[500]},components:{...NSe}};function zSe(){let t={};return T0.forEach(kSe,(e,r)=>{t[r]=xF(T0.merge({},BSe,e))}),t}const $Se=zSe(),FSe={leftSidebar:{show:!0,mode:"full",theme:"slateDark1",bgImgURL:"/assets/images/sidebar/sidebar-bg-dark.jpg"},topbar:{show:!0,fixed:!0,theme:"whiteBlue"}},IQ={activeLayout:"layout1",activeTheme:"blue",perfectScrollbar:!1,themes:$Se,layout1Settings:FSe,secondarySidebar:{show:!0,open:!1,theme:"slateDark1"},footer:{show:!0,fixed:!1,theme:"slateDark1"}},PQ=Y.createContext({settings:IQ,updateSettings:t=>{}}),VSe=({settings:t,children:e})=>{const[r,n]=Y.useState(t||IQ),a=(i={})=>{const o=T0.merge({},r,i);n(o)};return re.jsx(PQ.Provider,{value:{settings:r,updateSettings:a},children:e})},wD=()=>Y.useContext(PQ),USe=t=>{const{settings:e}=wD(),r=PSe[e.activeLayout];return re.jsx(qSe,{children:re.jsx(r,{...t})})},WSe=fl("div")(()=>({width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center","& img":{width:"auto",height:"25px"},"& .circleProgress":{position:"absolute",left:-7,right:0,top:"calc(50% - 25px)"}})),ZF=()=>re.jsx(WSe,{children:re.jsxs(oD,{position:"relative",children:[re.jsx("img",{src:"/assets/images/logo-circle.svg",alt:""}),re.jsx(hge,{className:"circleProgress"})]})}),HSe=fl(oD)(({theme:t})=>({display:"inline-block",color:t.palette.text.primary,"& div:hover":{backgroundColor:t.palette.action.hover}})),cYe=t=>{const[e,r]=bi.useState(null),n=bi.Children.toArray(t.children);let{shouldCloseOnItemClick:a=!0,horizontalPosition:i="left"}=t;const{settings:o}=wD(),s=u=>{r(u.currentTarget)},l=()=>{r(null)};return re.jsxs(Y.Fragment,{children:[re.jsx(HSe,{onClick:s,children:t.menuButton}),re.jsx(N1,{theme:o.themes[o.activeTheme],children:re.jsx(AK,{elevation:8,getContentAnchorEl:null,anchorEl:e,open:!!e,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:i},transformOrigin:{vertical:"top",horizontal:i},children:n.map((u,c)=>re.jsx("div",{onClick:a?l:()=>{},children:u},c))})})]})},GSe=fl(Nme)(()=>({borderRadius:2,background:"rgba(0, 0, 0, 0.1)"})),fYe=({value:t=75,color:e="primary",text:r="",spacing:n=2,coloredText:a=!1})=>{const o=B0().palette.text.secondary;return re.jsxs(mk,{container:!0,spacing:n,alignItems:"center",children:[re.jsx(mk,{item:!0,xs:r?8:12,children:re.jsx(GSe,{color:e,value:t,variant:"determinate"})}),r!==""&&re.jsx(mk,{item:!0,xs:r?4:!1,children:re.jsx(vve,{color:e,children:re.jsx(ySe,{sx:{color:a?"":o},children:r})})})]})},jSe=fl("div")(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:9,width:"100%",display:"flex",alignItems:"center",height:DQ,background:t.palette.primary.main,color:t.palette.text.primary,"&::placeholder":{color:t.palette.text.primary}})),YSe=fl("input")(({theme:t})=>({width:"100%",border:"none",outline:"none",fontSize:"1rem",paddingLeft:"20px",height:"calc(100% - 5px)",background:t.palette.primary.main,color:t.palette.text.primary,"&::placeholder":{color:t.palette.text.primary}})),dYe=()=>{const[t,e]=Y.useState(!1),r=()=>{e(!t)},{palette:n}=B0(),a=n.text.primary;return re.jsxs(bi.Fragment,{children:[!t&&re.jsx(f1,{onClick:r,children:re.jsx(oc,{sx:{color:a},children:"search"})}),t&&re.jsxs(jSe,{children:[re.jsx(YSe,{type:"text",placeholder:"Search here...",autoFocus:!0}),re.jsx(f1,{onClick:r,sx:{mx:2,verticalAlign:"middle"},children:re.jsx(oc,{sx:{color:a},children:"close"})})]})]})};nt("div")(({theme:t,width:e})=>({zIndex:91,width:e,overflow:"hidden",position:"relative",transition:"width 250ms ease",background:t.palette.background.default,[t.breakpoints.down("sm")]:{top:0,left:0,bottom:0,position:"absolute"}}));nt("div")(()=>({zIndex:90,width:"100%",height:"100%",position:"absolute",background:"rgba(0, 0, 0, 0.74)"}));nt("div")(()=>({height:"100%",display:"flex",position:"relative"}));nt("div")(()=>({flexGrow:1,height:"100%",position:"relative"}));const qSe=({children:t})=>re.jsx(Y.Suspense,{fallback:re.jsx(ZF,{}),children:t});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var n$=function(t,e){return n$=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])},n$(t,e)};function he(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n$(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var XSe=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),ZSe=function(){function t(){this.browser=new XSe,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 t}(),Tv=new ZSe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Tv.wxa=!0,Tv.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Tv.worker=!0:typeof navigator>"u"?(Tv.node=!0,Tv.svgSupported=!0):KSe(navigator.userAgent,Tv);function KSe(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),i=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);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),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}const gr=Tv;var KF=12,LQ="sans-serif",hh=KF+"px "+LQ,QSe=20,JSe=100,ewe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function twe(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),a=(t.charCodeAt(r)-QSe)/JSe;e[n]=a}return e}var rwe=twe(ewe),Jl={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(r,n){if(!t){var a=Jl.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==n&&(e=t.font=n||hh),t.measureText(r);r=r||"",n=n||hh;var i=/(\d+)px/.exec(n),o=i&&+i[1]||KF,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=rwe[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n}};function OQ(t){for(var e in Jl)t[e]&&(Jl[e]=t[e])}var kQ=ll(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),NQ=ll(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),H0=Object.prototype.toString,TD=Array.prototype,nwe=TD.forEach,awe=TD.filter,QF=TD.slice,iwe=TD.map,gj=function(){}.constructor,BA=gj?gj.prototype:null,JF="__proto__",owe=2311;function e3(){return owe++}function rl(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Et(t){if(t==null||typeof t!="object")return t;var e=t,r=H0.call(t);if(r==="[object Array]"){if(!s0(t)){e=[];for(var n=0,a=t.length;n<a;n++)e[n]=Et(t[n])}}else if(NQ[r]){if(!s0(t)){var i=t.constructor;if(i.from)e=i.from(t);else{e=new i(t.length);for(var n=0,a=t.length;n<a;n++)e[n]=t[n]}}}else if(!kQ[r]&&!s0(t)&&!ug(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==JF&&(e[o]=Et(t[o]))}return e}function Ft(t,e,r){if(!St(e)||!St(t))return r?Et(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==JF){var a=t[n],i=e[n];St(i)&&St(a)&&!Le(i)&&!Le(a)&&!ug(i)&&!ug(a)&&!a$(i)&&!a$(a)&&!s0(i)&&!s0(a)?Ft(a,i,r):(r||!(n in t))&&(t[n]=Et(e[n]))}return t}function CD(t,e){for(var r=t[0],n=1,a=t.length;n<a;n++)r=Ft(r,t[n],e);return r}function Ce(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==JF&&(t[r]=e[r]);return t}function wt(t,e,r){for(var n=sr(e),a=0;a<n.length;a++){var i=n[a];(r?e[i]!=null:t[i]==null)&&(t[i]=e[i])}return t}var swe=Jl.createCanvas;function Qt(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function t3(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var a in r)r.hasOwnProperty(a)&&(t.prototype[a]=r[a]);t.prototype.constructor=t,t.superClass=e}function ra(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(r?e[i]!=null:t[i]==null)&&(t[i]=e[i])}else wt(t,e,r)}function _i(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function V(t,e,r){if(t&&e)if(t.forEach&&t.forEach===nwe)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(r,t[i],i,t)}function Oe(t,e,r){if(!t)return[];if(!e)return AD(t);if(t.map&&t.map===iwe)return t.map(e,r);for(var n=[],a=0,i=t.length;a<i;a++)n.push(e.call(r,t[a],a,t));return n}function ll(t,e,r,n){if(t&&e){for(var a=0,i=t.length;a<i;a++)r=e.call(n,r,t[a],a,t);return r}}function Br(t,e,r){if(!t)return[];if(!e)return AD(t);if(t.filter&&t.filter===awe)return t.filter(e,r);for(var n=[],a=0,i=t.length;a<i;a++)e.call(r,t[a],a,t)&&n.push(t[a]);return n}function BQ(t,e,r){if(t&&e){for(var n=0,a=t.length;n<a;n++)if(e.call(r,t[n],n,t))return t[n]}}function sr(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function lwe(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(QF.call(arguments)))}}var ot=BA&&vt(BA.bind)?BA.call.bind(BA.bind):lwe;function Lt(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(QF.call(arguments)))}}function Le(t){return Array.isArray?Array.isArray(t):H0.call(t)==="[object Array]"}function vt(t){return typeof t=="function"}function at(t){return typeof t=="string"}function F1(t){return H0.call(t)==="[object String]"}function _r(t){return typeof t=="number"}function St(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function a$(t){return!!kQ[H0.call(t)]}function oo(t){return!!NQ[H0.call(t)]}function ug(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function PS(t){return t.colorStops!=null}function zQ(t){return t.image!=null}function r3(t){return H0.call(t)==="[object RegExp]"}function ph(t){return t!==t}function ca(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function $t(t,e){return t??e}function nl(t,e,r){return t??e??r}function AD(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return QF.apply(t,e)}function ED(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Tt(t,e){if(!t)throw new Error(e)}function tl(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var $Q="__ec_primitive__";function V1(t){t[$Q]=!0}function s0(t){return t[$Q]}var uwe=function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return sr(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t}(),FQ=typeof Map=="function";function cwe(){return FQ?new Map:new uwe}var VQ=function(){function t(e){var r=Le(e);this.data=cwe();var n=this;e instanceof t?e.each(a):e&&V(e,a);function a(i,o){r?n.set(i,o):n.set(o,i)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,a){e.call(r,n,a)})},t.prototype.keys=function(){var e=this.data.keys();return FQ?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function yt(t){return new VQ(t)}function U1(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var a=t.length,n=0;n<e.length;n++)r[n+a]=e[n];return r}function LS(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&Ce(r,e),r}function n3(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function it(t,e){return t.hasOwnProperty(e)}function ta(){}var p1=180/Math.PI;const fwe=Object.freeze(Object.defineProperty({__proto__:null,HashMap:VQ,RADIAN_TO_DEGREE:p1,assert:Tt,bind:ot,clone:Et,concatArray:U1,createCanvas:swe,createHashMap:yt,createObject:LS,curry:Lt,defaults:wt,disableUserSelect:n3,each:V,eqNaN:ph,extend:Ce,filter:Br,find:BQ,guid:e3,hasOwn:it,indexOf:Qt,inherits:t3,isArray:Le,isArrayLike:_i,isBuiltInObject:a$,isDom:ug,isFunction:vt,isGradientObject:PS,isImagePatternObject:zQ,isNumber:_r,isObject:St,isPrimitive:s0,isRegExp:r3,isString:at,isStringSafe:F1,isTypedArray:oo,keys:sr,logError:rl,map:Oe,merge:Ft,mergeAll:CD,mixin:ra,noop:ta,normalizeCssArray:ED,reduce:ll,retrieve:ca,retrieve2:$t,retrieve3:nl,setAsPrimitive:V1,slice:AD,trim:tl},Symbol.toStringTag,{value:"Module"}));function Ph(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function Fi(t,e){return t[0]=e[0],t[1]=e[1],t}function sc(t){return[t[0],t[1]]}function UQ(t,e,r){return t[0]=e,t[1]=r,t}function i$(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function LR(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function Kd(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function W1(t){return Math.sqrt(a3(t))}var dwe=W1;function a3(t){return t[0]*t[0]+t[1]*t[1]}var hwe=a3;function pwe(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function vwe(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function gwe(t,e){return t[0]*e[0]+t[1]*e[1]}function v1(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function _g(t,e){var r=W1(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function OR(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var of=OR;function WQ(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var ih=WQ;function mwe(t,e){return t[0]=-e[0],t[1]=-e[1],t}function g1(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function ii(t,e,r){var n=e[0],a=e[1];return t[0]=r[0]*n+r[2]*a+r[4],t[1]=r[1]*n+r[3]*a+r[5],t}function sf(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function lf(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}const ywe=Object.freeze(Object.defineProperty({__proto__:null,add:i$,applyTransform:ii,clone:sc,copy:Fi,create:Ph,dist:of,distSquare:ih,distance:OR,distanceSquare:WQ,div:vwe,dot:gwe,len:W1,lenSquare:a3,length:dwe,lengthSquare:hwe,lerp:g1,max:lf,min:sf,mul:pwe,negate:mwe,normalize:_g,scale:v1,scaleAndAdd:LR,set:UQ,sub:Kd},Symbol.toStringTag,{value:"Module"}));var by=function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t}(),bwe=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new by(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,a=e.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,r.drift(i,o,e),this.handler.dispatchToElement(new by(r,e),"drag",e.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 by(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new by(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new by(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new by(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}();const xwe=bwe;var _we=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===n)return this;var l={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[e].length-1,c=i[e][u];return c&&c.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var a=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==r&&a.push(n[e][i]);n[e]=a}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],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(e,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(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],l=a.length,u=0;u<l;u++){var c=a[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t}();const dl=_we;var Swe=Math.log(2);function o$(t,e,r,n,a,i){var o=n+"-"+a,s=t.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~a)/Swe);return t[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var d=0,p=0,v=0;p<s;p++){var g=1<<p;g&a||(d+=(v%2?-1:1)*t[r][p]*o$(t,e-1,c,u,a|g,i),v++)}return i[o]=d,d}function mj(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},a=o$(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)*o$(r,7,o===0?1:0,1<<o,1<<s,n)/a*e[o];return function(l,u,c){var d=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/d,l[1]=(u*i[3]+c*i[4]+i[5])/d}}}var yj="___zrEVENTSAVED",Gk=[];function wwe(t,e,r,n,a){return s$(Gk,e,n,a,!0)&&s$(t,r,Gk[0],Gk[1])}function s$(t,e,r,n,a){if(e.getBoundingClientRect&&gr.domSupported&&!HQ(e)){var i=e[yj]||(e[yj]={}),o=Twe(e,i),s=Cwe(o,i,a);if(s)return s(t,r,n),!0}return!1}function Twe(t,e){var r=e.markers;if(r)return r;r=e.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;"),t.appendChild(o),r.push(o)}return r}function Cwe(t,e,r){for(var n=r?"invTrans":"trans",a=e[n],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),d=2*u,p=c.left,v=c.top;o.push(p,v),l=l&&i&&p===i[d]&&v===i[d+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[n]=r?mj(s,o):mj(o,s))}function HQ(t){return t.nodeName.toUpperCase()==="CANVAS"}var Awe=/([&<>"'])/g,Ewe={"&":"&","<":"<",">":">",'"':""","'":"'"};function ao(t){return t==null?"":(t+"").replace(Awe,function(e,r){return Ewe[r]})}var Rwe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,jk=[],Mwe=gr.browser.firefox&&+gr.browser.version.split(".")[0]<39;function l$(t,e,r,n){return r=r||{},n?bj(t,e,r):Mwe&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):bj(t,e,r),r}function bj(t,e,r){if(gr.domSupported&&t.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(HQ(t)){var i=t.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(s$(jk,t,n,a)){r.zrX=jk[0],r.zrY=jk[1];return}}r.zrX=r.zrY=0}function i3(t){return t||window.event}function js(t,e,r){if(e=i3(e),e.zrX!=null)return e;var n=e.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&l$(t,o,e,r)}else{l$(t,e,e,r);var i=Dwe(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Rwe.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Dwe(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var a=Math.abs(n!==0?n:r),i=n>0?-1:n<0?1:r>0?-1:1;return 3*a*i}function u$(t,e,r,n){t.addEventListener(e,r,n)}function Iwe(t,e,r,n){t.removeEventListener(e,r,n)}var mf=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function xj(t){return t.which===2||t.which===3}var Pwe=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var a=e.touches;if(a){for(var i={points:[],touches:[],target:r,event:e},o=0,s=a.length;o<s;o++){var l=a[o],u=l$(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},t.prototype._recognize=function(e){for(var r in Yk)if(Yk.hasOwnProperty(r)){var n=Yk[r](this._track,e);if(n)return n}},t}();function _j(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function Lwe(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Yk={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,a=(t[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=_j(n)/_j(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=Lwe(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function hs(){return[1,0,0,1,0,0]}function OS(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function RD(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function lc(t,e,r){var n=e[0]*r[0]+e[2]*r[1],a=e[1]*r[0]+e[3]*r[1],i=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=a,t[2]=i,t[3]=o,t[4]=s,t[5]=l,t}function eu(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function Lh(t,e,r){var n=e[0],a=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(r),c=Math.cos(r);return t[0]=n*c+o*u,t[1]=-n*u+o*c,t[2]=a*c+s*u,t[3]=-a*u+c*s,t[4]=c*i+u*l,t[5]=c*l-u*i,t}function MD(t,e,r){var n=r[0],a=r[1];return t[0]=e[0]*n,t[1]=e[1]*a,t[2]=e[2]*n,t[3]=e[3]*a,t[4]=e[4]*n,t[5]=e[5]*a,t}function Sg(t,e){var r=e[0],n=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=r*o-i*n;return l?(l=1/l,t[0]=o*l,t[1]=-i*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*a)*l,t[5]=(i*a-r*s)*l,t):null}function GQ(t){var e=hs();return RD(e,t),e}const Owe=Object.freeze(Object.defineProperty({__proto__:null,clone:GQ,copy:RD,create:hs,identity:OS,invert:Sg,mul:lc,rotate:Lh,scale:MD,translate:eu},Symbol.toStringTag,{value:"Module"}));var kwe=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,a){e.x=r.x+n.x*a,e.y=r.y+n.y*a},t.lerp=function(e,r,n,a){var i=1-a;e.x=i*r.x+a*n.x,e.y=i*r.y+a*n.y},t}();const Wt=kwe;var zA=Math.min,$A=Math.max,Zp=new Wt,Kp=new Wt,Qp=new Wt,Jp=new Wt,g_=new Wt,m_=new Wt,Nwe=function(){function t(e,r,n,a){n<0&&(e=e+n,n=-n),a<0&&(r=r+a,a=-a),this.x=e,this.y=r,this.width=n,this.height=a}return t.prototype.union=function(e){var r=zA(e.x,this.x),n=zA(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=$A(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=$A(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,a=e.height/r.height,i=hs();return eu(i,i,[-r.x,-r.y]),MD(i,i,[n,a]),eu(i,i,[e.x,e.y]),i},t.prototype.intersect=function(e,r){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,a=n.x,i=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,c=e.y,d=e.y+e.height,p=!(i<l||u<a||s<c||d<o);if(r){var v=1/0,g=0,m=Math.abs(i-l),x=Math.abs(u-a),_=Math.abs(s-c),w=Math.abs(d-o),T=Math.min(m,x),A=Math.min(_,w);i<l||u<a?T>g&&(g=T,m<x?Wt.set(m_,-m,0):Wt.set(m_,x,0)):T<v&&(v=T,m<x?Wt.set(g_,m,0):Wt.set(g_,-x,0)),s<c||d<o?A>g&&(g=A,_<w?Wt.set(m_,0,-_):Wt.set(m_,0,w)):T<v&&(v=T,_<w?Wt.set(g_,0,_):Wt.set(g_,0,-w))}return r&&Wt.copy(r,p?g_:m_),p},t.prototype.contain=function(e,r){var n=this;return e>=n.x&&e<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,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];e.x=r.x*a+o,e.y=r.y*i+s,e.width=r.width*a,e.height=r.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Zp.x=Qp.x=r.x,Zp.y=Jp.y=r.y,Kp.x=Jp.x=r.x+r.width,Kp.y=Qp.y=r.y+r.height,Zp.transform(n),Jp.transform(n),Kp.transform(n),Qp.transform(n),e.x=zA(Zp.x,Kp.x,Qp.x,Jp.x),e.y=zA(Zp.y,Kp.y,Qp.y,Jp.y);var l=$A(Zp.x,Kp.x,Qp.x,Jp.x),u=$A(Zp.y,Kp.y,Qp.y,Jp.y);e.width=l-e.x,e.height=u-e.y},t}();const Ht=Nwe;var jQ="silent";function Bwe(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.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:zwe}}function zwe(){mf(this.event)}var $we=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(dl),y_=function(){function t(e,r){this.x=e,this.y=r}return t}(),Fwe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],qk=new Ht(0,0,0,0),YQ=function(t){he(e,t);function e(r,n,a,i,o){var s=t.call(this)||this;return s._hovered=new y_(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new $we,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new xwe(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(V(Fwe,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=qQ(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 y_(n,a):this.findHover(n,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.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})},e.prototype.resize=function(){this._hovered=new y_(0,0)},e.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,a){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+n,s=Bwe(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)}))}},e.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),o=new y_(r,n);if(Sj(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Ht(r-u,n-u,l,l),d=i.length-1;d>=0;d--){var p=i[d];p!==a&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(qk.copy(p.getBoundingRect()),p.transform&&qk.applyTransform(p.transform),qk.intersect(c)&&s.push(p))}if(s.length)for(var v=4,g=Math.PI/12,m=Math.PI*2,x=0;x<u;x+=v)for(var _=0;_<m;_+=g){var w=r+x*Math.cos(_),T=n+x*Math.sin(_);if(Sj(s,o,w,T,a),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new Pwe);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 y_;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e}(dl);V(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){YQ.prototype[t]=function(e){var r=e.zrX,n=e.zrY,a=qQ(this,r,n),i,o;if((t!=="mouseup"||!a)&&(i=this.findHover(r,n),o=i.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||of(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});function Vwe(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1;n.silent&&(a=!0)}var s=n.__hostTarget;n=s||n.parent}return a?jQ:!0}return!1}function Sj(t,e,r,n,a){for(var i=t.length-1;i>=0;i--){var o=t[i],s=void 0;if(o!==a&&!o.ignore&&(s=Vwe(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==jQ)){e.target=o;break}}}function qQ(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}const Uwe=YQ;var XQ=32,b_=7;function Wwe(t){for(var e=0;t>=XQ;)e|=t&1,t>>=1;return t+e}function wj(t,e,r,n){var a=e+1;if(a===r)return 1;if(n(t[a++],t[e])<0){for(;a<r&&n(t[a],t[a-1])<0;)a++;Hwe(t,e,a)}else for(;a<r&&n(t[a],t[a-1])>=0;)a++;return a-e}function Hwe(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function Tj(t,e,r,n,a){for(n===e&&n++;n<r;n++){for(var i=t[n],o=e,s=n,l;o<s;)l=o+s>>>1,a(i,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=i}}function Xk(t,e,r,n,a,i){var o=0,s=0,l=1;if(i(t,e[r+a])>0){for(s=n-a;l<s&&i(t,e[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(t,e[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 c=o+(l-o>>>1);i(t,e[r+c])>0?o=c+1:l=c}return l}function Zk(t,e,r,n,a,i){var o=0,s=0,l=1;if(i(t,e[r+a])<0){for(s=a+1;l<s&&i(t,e[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(t,e[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 c=o+(l-o>>>1);i(t,e[r+c])<0?l=c:o=c+1}return l}function Gwe(t,e){var r=b_,n,a,i=0;t.length;var o=[];n=[],a=[];function s(v,g){n[i]=v,a[i]=g,i+=1}function l(){for(;i>1;){var v=i-2;if(v>=1&&a[v-1]<=a[v]+a[v+1]||v>=2&&a[v-2]<=a[v]+a[v-1])a[v-1]<a[v+1]&&v--;else if(a[v]>a[v+1])break;c(v)}}function u(){for(;i>1;){var v=i-2;v>0&&a[v-1]<a[v+1]&&v--,c(v)}}function c(v){var g=n[v],m=a[v],x=n[v+1],_=a[v+1];a[v]=m+_,v===i-3&&(n[v+1]=n[v+2],a[v+1]=a[v+2]),i--;var w=Zk(t[x],t,g,m,0,e);g+=w,m-=w,m!==0&&(_=Xk(t[g+m-1],t,x,_,_-1,e),_!==0&&(m<=_?d(g,m,x,_):p(g,m,x,_)))}function d(v,g,m,x){var _=0;for(_=0;_<g;_++)o[_]=t[v+_];var w=0,T=m,A=v;if(t[A++]=t[T++],--x===0){for(_=0;_<g;_++)t[A+_]=o[w+_];return}if(g===1){for(_=0;_<x;_++)t[A+_]=t[T+_];t[A+x]=o[w];return}for(var M=r,D,P,O;;){D=0,P=0,O=!1;do if(e(t[T],o[w])<0){if(t[A++]=t[T++],P++,D=0,--x===0){O=!0;break}}else if(t[A++]=o[w++],D++,P=0,--g===1){O=!0;break}while((D|P)<M);if(O)break;do{if(D=Zk(t[T],o,w,g,0,e),D!==0){for(_=0;_<D;_++)t[A+_]=o[w+_];if(A+=D,w+=D,g-=D,g<=1){O=!0;break}}if(t[A++]=t[T++],--x===0){O=!0;break}if(P=Xk(o[w],t,T,x,0,e),P!==0){for(_=0;_<P;_++)t[A+_]=t[T+_];if(A+=P,T+=P,x-=P,x===0){O=!0;break}}if(t[A++]=o[w++],--g===1){O=!0;break}M--}while(D>=b_||P>=b_);if(O)break;M<0&&(M=0),M+=2}if(r=M,r<1&&(r=1),g===1){for(_=0;_<x;_++)t[A+_]=t[T+_];t[A+x]=o[w]}else{if(g===0)throw new Error;for(_=0;_<g;_++)t[A+_]=o[w+_]}}function p(v,g,m,x){var _=0;for(_=0;_<x;_++)o[_]=t[m+_];var w=v+g-1,T=x-1,A=m+x-1,M=0,D=0;if(t[A--]=t[w--],--g===0){for(M=A-(x-1),_=0;_<x;_++)t[M+_]=o[_];return}if(x===1){for(A-=g,w-=g,D=A+1,M=w+1,_=g-1;_>=0;_--)t[D+_]=t[M+_];t[A]=o[T];return}for(var P=r;;){var O=0,k=0,N=!1;do if(e(o[T],t[w])<0){if(t[A--]=t[w--],O++,k=0,--g===0){N=!0;break}}else if(t[A--]=o[T--],k++,O=0,--x===1){N=!0;break}while((O|k)<P);if(N)break;do{if(O=g-Zk(o[T],t,v,g,g-1,e),O!==0){for(A-=O,w-=O,g-=O,D=A+1,M=w+1,_=O-1;_>=0;_--)t[D+_]=t[M+_];if(g===0){N=!0;break}}if(t[A--]=o[T--],--x===1){N=!0;break}if(k=x-Xk(t[w],o,0,x,x-1,e),k!==0){for(A-=k,T-=k,x-=k,D=A+1,M=T+1,_=0;_<k;_++)t[D+_]=o[M+_];if(x<=1){N=!0;break}}if(t[A--]=t[w--],--g===0){N=!0;break}P--}while(O>=b_||k>=b_);if(N)break;P<0&&(P=0),P+=2}if(r=P,r<1&&(r=1),x===1){for(A-=g,w-=g,D=A+1,M=w+1,_=g-1;_>=0;_--)t[D+_]=t[M+_];t[A]=o[T]}else{if(x===0)throw new Error;for(M=A-(x-1),_=0;_<x;_++)t[M+_]=o[_]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function XE(t,e,r,n){r||(r=0),n||(n=t.length);var a=n-r;if(!(a<2)){var i=0;if(a<XQ){i=wj(t,r,n,e),Tj(t,r,n,r+i,e);return}var o=Gwe(t,e),s=Wwe(a);do{if(i=wj(t,r,n,e),i<s){var l=a;l>s&&(l=s),Tj(t,r,r+l,r+i,e),i=l}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(a!==0);o.forceMergeRuns()}}var is=1,q_=2,Gy=4,Cj=!1;function Kk(){Cj||(Cj=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Aj(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var jwe=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Aj}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,e);n.length=this._displayListLen,XE(n,Aj)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath();if(e.ignoreClip)r=null;else if(a){r?r=r.slice():r=[];for(var i=a,o=e;i;)i.parent=o,i.updateTransform(),r.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=is),this._updateAndAddDisplayable(u,r,n)}e.__dirty=0}else{var c=e;r&&r.length?c.__clipPaths=r:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(Kk(),c.z=0),isNaN(c.z2)&&(Kk(),c.z2=0),isNaN(c.zlevel)&&(Kk(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,r,n);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,r,n);var v=e.getTextContent();v&&this._updateAndAddDisplayable(v,r,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var a=Qt(this._roots,e);a>=0&&this._roots.splice(a,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const Ywe=jwe;var ZQ;ZQ=gr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};const c$=ZQ;var ZE={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-ZE.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?ZE.bounceIn(t*2)*.5:ZE.bounceOut(t*2-1)*.5+.5}};const KQ=ZE;var FA=Math.pow,oh=Math.sqrt,kR=1e-8,QQ=1e-4,Ej=oh(3),VA=1/3,Ju=Ph(),Ks=Ph(),l0=Ph();function Qd(t){return t>-kR&&t<kR}function JQ(t){return t>kR||t<-kR}function Na(t,e,r,n,a){var i=1-a;return i*i*(i*t+3*a*e)+a*a*(a*n+3*i*r)}function Rj(t,e,r,n,a){var i=1-a;return 3*(((e-t)*i+2*(r-e)*a)*i+(n-r)*a*a)}function NR(t,e,r,n,a,i){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-a,c=s*s-3*o*l,d=s*l-9*o*u,p=l*l-3*s*u,v=0;if(Qd(c)&&Qd(d))if(Qd(s))i[0]=0;else{var g=-l/s;g>=0&&g<=1&&(i[v++]=g)}else{var m=d*d-4*c*p;if(Qd(m)){var x=d/c,g=-s/o+x,_=-x/2;g>=0&&g<=1&&(i[v++]=g),_>=0&&_<=1&&(i[v++]=_)}else if(m>0){var w=oh(m),T=c*s+1.5*o*(-d+w),A=c*s+1.5*o*(-d-w);T<0?T=-FA(-T,VA):T=FA(T,VA),A<0?A=-FA(-A,VA):A=FA(A,VA);var g=(-s-(T+A))/(3*o);g>=0&&g<=1&&(i[v++]=g)}else{var M=(2*c*s-3*o*d)/(2*oh(c*c*c)),D=Math.acos(M)/3,P=oh(c),O=Math.cos(D),g=(-s-2*P*O)/(3*o),_=(-s+P*(O+Ej*Math.sin(D)))/(3*o),k=(-s+P*(O-Ej*Math.sin(D)))/(3*o);g>=0&&g<=1&&(i[v++]=g),_>=0&&_<=1&&(i[v++]=_),k>=0&&k<=1&&(i[v++]=k)}}return v}function eJ(t,e,r,n,a){var i=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(Qd(o)){if(JQ(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(Qd(c))a[0]=-i/(2*o);else if(c>0){var d=oh(c),u=(-i+d)/(2*o),p=(-i-d)/(2*o);u>=0&&u<=1&&(a[l++]=u),p>=0&&p<=1&&(a[l++]=p)}}return l}function vh(t,e,r,n,a,i){var o=(e-t)*a+t,s=(r-e)*a+e,l=(n-r)*a+r,u=(s-o)*a+o,c=(l-s)*a+s,d=(c-u)*a+u;i[0]=t,i[1]=o,i[2]=u,i[3]=d,i[4]=d,i[5]=c,i[6]=l,i[7]=n}function tJ(t,e,r,n,a,i,o,s,l,u,c){var d,p=.005,v=1/0,g,m,x,_;Ju[0]=l,Ju[1]=u;for(var w=0;w<1;w+=.05)Ks[0]=Na(t,r,a,o,w),Ks[1]=Na(e,n,i,s,w),x=ih(Ju,Ks),x<v&&(d=w,v=x);v=1/0;for(var T=0;T<32&&!(p<QQ);T++)g=d-p,m=d+p,Ks[0]=Na(t,r,a,o,g),Ks[1]=Na(e,n,i,s,g),x=ih(Ks,Ju),g>=0&&x<v?(d=g,v=x):(l0[0]=Na(t,r,a,o,m),l0[1]=Na(e,n,i,s,m),_=ih(l0,Ju),m<=1&&_<v?(d=m,v=_):p*=.5);return c&&(c[0]=Na(t,r,a,o,d),c[1]=Na(e,n,i,s,d)),oh(v)}function qwe(t,e,r,n,a,i,o,s,l){for(var u=t,c=e,d=0,p=1/l,v=1;v<=l;v++){var g=v*p,m=Na(t,r,a,o,g),x=Na(e,n,i,s,g),_=m-u,w=x-c;d+=Math.sqrt(_*_+w*w),u=m,c=x}return d}function ni(t,e,r,n){var a=1-n;return a*(a*t+2*n*e)+n*n*r}function f$(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function Xwe(t,e,r,n,a){var i=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(Qd(i)){if(JQ(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(Qd(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var d=oh(c),u=(-o+d)/(2*i),p=(-o-d)/(2*i);u>=0&&u<=1&&(a[l++]=u),p>=0&&p<=1&&(a[l++]=p)}}return l}function rJ(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function H1(t,e,r,n,a){var i=(e-t)*n+t,o=(r-e)*n+e,s=(o-i)*n+i;a[0]=t,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function nJ(t,e,r,n,a,i,o,s,l){var u,c=.005,d=1/0;Ju[0]=o,Ju[1]=s;for(var p=0;p<1;p+=.05){Ks[0]=ni(t,r,a,p),Ks[1]=ni(e,n,i,p);var v=ih(Ju,Ks);v<d&&(u=p,d=v)}d=1/0;for(var g=0;g<32&&!(c<QQ);g++){var m=u-c,x=u+c;Ks[0]=ni(t,r,a,m),Ks[1]=ni(e,n,i,m);var v=ih(Ks,Ju);if(m>=0&&v<d)u=m,d=v;else{l0[0]=ni(t,r,a,x),l0[1]=ni(e,n,i,x);var _=ih(l0,Ju);x<=1&&_<d?(u=x,d=_):c*=.5}}return l&&(l[0]=ni(t,r,a,u),l[1]=ni(e,n,i,u)),oh(d)}function Zwe(t,e,r,n,a,i,o){for(var s=t,l=e,u=0,c=1/o,d=1;d<=o;d++){var p=d*c,v=ni(t,r,a,p),g=ni(e,n,i,p),m=v-s,x=g-l;u+=Math.sqrt(m*m+x*x),s=v,l=g}return u}var Kwe=/cubic-bezier\(([0-9,\.e ]+)\)/;function o3(t){var e=t&&Kwe.exec(t);if(e){var r=e[1].split(","),n=+tl(r[0]),a=+tl(r[1]),i=+tl(r[2]),o=+tl(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:NR(0,n,i,1,l,s)&&Na(0,a,o,1,s[0])}}}var Qwe=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||ta,this.ondestroy=e.ondestroy||ta,this.onrestart=e.onrestart||ta,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=e-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=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=vt(e)?e:KQ[e]||o3(e)},t}();const Jwe=Qwe;var aJ=function(){function t(e){this.value=e}return t}(),eTe=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new aJ(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),tTe=function(){function t(e){this._list=new eTe,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,a=this._map,i=null;if(a[e]==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 aJ(r),s.key=e,n.insertEntry(s),a[e]=s}return i},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const kS=tTe;var Mj={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 Zl(t){return t=Math.round(t),t<0?0:t>255?255:t}function rTe(t){return t=Math.round(t),t<0?0:t>360?360:t}function G1(t){return t<0?0:t>1?1:t}function Qk(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Zl(parseFloat(e)/100*255):Zl(parseInt(e,10))}function Yv(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?G1(parseFloat(e)/100):G1(parseFloat(e))}function Jk(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function Jd(t,e,r){return t+(e-t)*r}function Gs(t,e,r,n,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t}function d$(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var iJ=new kS(20),UA=null;function xy(t,e){UA&&d$(UA,e),UA=iJ.put(t,UA||e.slice())}function io(t,e){if(t){e=e||[];var r=iJ.get(t);if(r)return d$(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in Mj)return d$(e,Mj[n]),xy(t,e),e;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)){Gs(e,0,0,0,1);return}return Gs(e,(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),xy(t,e),e}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Gs(e,0,0,0,1);return}return Gs(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),xy(t,e),e}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(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Gs(e,+u[0],+u[1],+u[2],1):Gs(e,0,0,0,1);c=Yv(u.pop());case"rgb":if(u.length>=3)return Gs(e,Qk(u[0]),Qk(u[1]),Qk(u[2]),u.length===3?c:Yv(u[3])),xy(t,e),e;Gs(e,0,0,0,1);return;case"hsla":if(u.length!==4){Gs(e,0,0,0,1);return}return u[3]=Yv(u[3]),h$(u,e),xy(t,e),e;case"hsl":if(u.length!==3){Gs(e,0,0,0,1);return}return h$(u,e),xy(t,e),e;default:return}}Gs(e,0,0,0,1)}}function h$(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=Yv(t[1]),a=Yv(t[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return e=e||[],Gs(e,Zl(Jk(o,i,r+1/3)*255),Zl(Jk(o,i,r)*255),Zl(Jk(o,i,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function nTe(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,a=Math.min(e,r,n),i=Math.max(e,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 c=((i-e)/6+o/2)/o,d=((i-r)/6+o/2)/o,p=((i-n)/6+o/2)/o;e===i?l=p-d:r===i?l=1/3+c-p:n===i&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return t[3]!=null&&v.push(t[3]),v}}function BR(t,e){var r=io(t);if(r){for(var n=0;n<3;n++)e<0?r[n]=r[n]*(1-e)|0:r[n]=(255-r[n])*e+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Kl(r,r.length===4?"rgba":"rgb")}}function aTe(t){var e=io(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function m1(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var n=t*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=e[a],s=e[i],l=n-a;return r[0]=Zl(Jd(o[0],s[0],l)),r[1]=Zl(Jd(o[1],s[1],l)),r[2]=Zl(Jd(o[2],s[2],l)),r[3]=G1(Jd(o[3],s[3],l)),r}}var iTe=m1;function s3(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=io(e[a]),s=io(e[i]),l=n-a,u=Kl([Zl(Jd(o[0],s[0],l)),Zl(Jd(o[1],s[1],l)),Zl(Jd(o[2],s[2],l)),G1(Jd(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}var oTe=s3;function u0(t,e,r,n){var a=io(t);if(t)return a=nTe(a),e!=null&&(a[0]=rTe(e)),r!=null&&(a[1]=Yv(r)),n!=null&&(a[2]=Yv(n)),Kl(h$(a),"rgba")}function j1(t,e){var r=io(t);if(r&&e!=null)return r[3]=G1(e),Kl(r,"rgba")}function Kl(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function Y1(t,e){var r=io(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function sTe(){return Kl([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const lTe=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:m1,fastMapToColor:iTe,lerp:s3,lift:BR,lum:Y1,mapToColor:oTe,modifyAlpha:j1,modifyHSL:u0,parse:io,random:sTe,stringify:Kl,toHex:aTe},Symbol.toStringTag,{value:"Module"}));var zR=Math.round;function q1(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=io(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var Dj=1e-4;function eh(t){return t<Dj&&t>-Dj}function WA(t){return zR(t*1e3)/1e3}function p$(t){return zR(t*1e4)/1e4}function uTe(t){return"matrix("+WA(t[0])+","+WA(t[1])+","+WA(t[2])+","+WA(t[3])+","+p$(t[4])+","+p$(t[5])+")"}var cTe={left:"start",right:"end",center:"middle",middle:"middle"};function fTe(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function dTe(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function hTe(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function oJ(t){return t&&!!t.image}function pTe(t){return t&&!!t.svgElement}function l3(t){return oJ(t)||pTe(t)}function sJ(t){return t.type==="linear"}function lJ(t){return t.type==="radial"}function uJ(t){return t&&(t.type==="linear"||t.type==="radial")}function DD(t){return"url(#"+t+")"}function cJ(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function fJ(t){var e=t.x||0,r=t.y||0,n=(t.rotation||0)*p1,a=$t(t.scaleX,1),i=$t(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push("translate("+e+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+zR(o*p1)+"deg, "+zR(s*p1)+"deg)"),l.join(" ")}var vTe=function(){return gr.hasGlobalWindow&&vt(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return rl("Base64 isn't natively supported in the current environment."),null}}(),v$=Array.prototype.slice;function rf(t,e,r){return(e-t)*r+t}function eN(t,e,r,n){for(var a=e.length,i=0;i<a;i++)t[i]=rf(e[i],r[i],n);return t}function gTe(t,e,r,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=rf(e[o][s],r[o][s],n)}return t}function HA(t,e,r,n){for(var a=e.length,i=0;i<a;i++)t[i]=e[i]+r[i]*n;return t}function Ij(t,e,r,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function mTe(t,e){for(var r=t.length,n=e.length,a=r>n?e:t,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 yTe(t,e,r){var n=t,a=e;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]:v$.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 c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=a[l][c])}}function y1(t){if(_i(t)){var e=t.length;if(_i(t[0])){for(var r=[],n=0;n<e;n++)r.push(v$.call(t[n]));return r}return v$.call(t)}return t}function KE(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function bTe(t){return _i(t&&t[0])?2:1}var GA=0,QE=1,dJ=2,X_=3,g$=4,m$=5,Pj=6;function Lj(t){return t===g$||t===m$}function jA(t){return t===QE||t===dJ}var x_=[0,0,0,0],xTe=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=Pj,l=r;if(_i(r)){var u=bTe(r);s=u,(u===1&&!_r(r[0])||u===2&&!_r(r[0][0]))&&(o=!0)}else if(_r(r)&&!ph(r))s=GA;else if(at(r))if(!isNaN(+r))s=GA;else{var c=io(r);c&&(l=c,s=X_)}else if(PS(r)){var d=Ce({},l);d.colorStops=Oe(r.colorStops,function(v){return{offset:v.offset,color:io(v.color)}}),sJ(r)?s=g$:lJ(r)&&(s=m$),l=d}i===0?this.valType=s:(s!==this.valType||s===Pj)&&(o=!0),this.discrete=this.discrete||o;var p={time:e,value:l,rawValue:r,percent:0};return n&&(p.easing=n,p.easingFunc=vt(n)?n:KQ[n]||o3(n)),a.push(p),p},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(m,x){return m.time-x.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=jA(a),u=Lj(a),c=0;c<i;c++){var d=n[c],p=d.value,v=o.value;d.percent=d.time/e,s||(l&&c!==i-1?yTe(p,v,a):u&&mTe(p.colorStops,v.colorStops))}if(!s&&a!==m$&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var g=n[0].value,c=0;c<i;c++)a===GA?n[c].additiveValue=n[c].value-g:a===X_?n[c].additiveValue=HA([],n[c].value,g,-1):jA(a)&&(n[c].additiveValue=a===QE?HA([],n[c].value,g,-1):Ij([],n[c].value,g,-1))}},t.prototype.step=function(e,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===X_,c,d=this._lastFr,p=Math.min,v,g;if(s===1)v=g=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var m=p(d+1,s-1);for(c=m;c>=0&&!(o[c].percent<=r);c--);c=p(c,s-2)}else{for(c=d;c<s&&!(o[c].percent>r);c++);c=p(c-1,s-2)}g=o[c+1],v=o[c]}if(v&&g){this._lastFr=c,this._lastFrP=r;var x=g.percent-v.percent,_=x===0?1:p((r-v.percent)/x,1);g.easingFunc&&(_=g.easingFunc(_));var w=n?this._additiveValue:u?x_:e[l];if((jA(i)||u)&&!w&&(w=this._additiveValue=[]),this.discrete)e[l]=_<1?v.rawValue:g.rawValue;else if(jA(i))i===QE?eN(w,v[a],g[a],_):gTe(w,v[a],g[a],_);else if(Lj(i)){var T=v[a],A=g[a],M=i===g$;e[l]={type:M?"linear":"radial",x:rf(T.x,A.x,_),y:rf(T.y,A.y,_),colorStops:Oe(T.colorStops,function(P,O){var k=A.colorStops[O];return{offset:rf(P.offset,k.offset,_),color:KE(eN([],P.color,k.color,_))}}),global:A.global},M?(e[l].x2=rf(T.x2,A.x2,_),e[l].y2=rf(T.y2,A.y2,_)):e[l].r=rf(T.r,A.r,_)}else if(u)eN(w,v[a],g[a],_),n||(e[l]=KE(w));else{var D=rf(v[a],g[a],_);n?this._additiveValue=D:e[l]=D}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,a=this._additiveValue;r===GA?e[n]=e[n]+a:r===X_?(io(e[n],x_),HA(x_,x_,a,1),e[n]=KE(x_)):r===QE?HA(e[n],e[n],a,1):r===dJ&&Ij(e[n],e[n],a,1)},t}(),_Te=function(){function t(e,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&a){rl("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,sr(r),n)},t.prototype.whenWithKeys=function(e,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 xTe(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var d=c.keyframes,p=d[d.length-1];u=p&&p.value,c.valType===X_&&u&&(u=KE(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,y1(u),a),this._trackKeys.push(s)}l.addKeyframe(e,y1(r[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(e);i&&(r=i)}return r},t.prototype.start=function(e){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,c=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var d=u[c-1];d&&(r._target[s.propName]=d.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var p=new Jwe({life:a,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var g=r._additiveAnimators;if(g){for(var m=!1,x=0;x<g.length;x++)if(g[x]._clip){m=!0;break}m||(r._additiveAnimators=null)}for(var x=0;x<n.length;x++)n[x].step(r._target,v);var _=r._onframeCbs;if(_)for(var x=0;x<_.length;x++)_[x](r._target,v)},ondestroy:function(){r._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return Oe(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<e.length;i++){var o=n[e[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},t.prototype.saveTo=function(e,r,n){if(e){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&&(e[i]=y1(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||sr(e);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,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();const u3=_Te;function Qy(){return new Date().getTime()}var STe=function(t){he(e,t);function e(r){var n=t.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 e.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},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.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}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=Qy()-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())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(c$(n),!r._paused&&r.update())}c$(n)},e.prototype.start=function(){this._running||(this._time=Qy(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Qy(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Qy()-this._pauseStart,this._paused=!1)},e.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},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var a=new u3(r,n.loop);return this.addAnimator(a),a},e}(dl);const wTe=STe;var TTe=300,tN=gr.domSupported,rN=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Oe(t,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:t,touch:e,pointer:n}}(),Oj={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},kj=!1;function y$(t){var e=t.pointerType;return e==="pen"||e==="touch"}function CTe(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function nN(t){t&&(t.zrByTouch=!0)}function ATe(t,e){return js(t.dom,new ETe(t,e),!0)}function hJ(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var ETe=function(){function t(e,r){this.stopPropagation=ta,this.stopImmediatePropagation=ta,this.preventDefault=ta,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),Hl={mousedown:function(t){t=js(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=js(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=js(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=js(this.dom,t);var e=t.toElement||t.relatedTarget;hJ(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){kj=!0,t=js(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){kj||(t=js(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=js(this.dom,t),nN(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Hl.mousemove.call(this,t),Hl.mousedown.call(this,t)},touchmove:function(t){t=js(this.dom,t),nN(t),this.handler.processGesture(t,"change"),Hl.mousemove.call(this,t)},touchend:function(t){t=js(this.dom,t),nN(t),this.handler.processGesture(t,"end"),Hl.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<TTe&&Hl.click.call(this,t)},pointerdown:function(t){Hl.mousedown.call(this,t)},pointermove:function(t){y$(t)||Hl.mousemove.call(this,t)},pointerup:function(t){Hl.mouseup.call(this,t)},pointerout:function(t){y$(t)||Hl.mouseout.call(this,t)}};V(["click","dblclick","contextmenu"],function(t){Hl[t]=function(e){e=js(this.dom,e),this.trigger(t,e)}});var b$={pointermove:function(t){y$(t)||b$.mousemove.call(this,t)},pointerup:function(t){b$.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function RTe(t,e){var r=e.domHandlers;gr.pointerEventsSupported?V(rN.pointer,function(n){JE(e,n,function(a){r[n].call(t,a)})}):(gr.touchEventsSupported&&V(rN.touch,function(n){JE(e,n,function(a){r[n].call(t,a),CTe(e)})}),V(rN.mouse,function(n){JE(e,n,function(a){a=i3(a),e.touching||r[n].call(t,a)})}))}function MTe(t,e){gr.pointerEventsSupported?V(Oj.pointer,r):gr.touchEventsSupported||V(Oj.mouse,r);function r(n){function a(i){i=i3(i),hJ(t,i.target)||(i=ATe(t,i),e.domHandlers[n].call(t,i))}JE(e,n,a,{capture:!0})}}function JE(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,u$(t.domTarget,e,r,n)}function aN(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&Iwe(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Nj=function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t}(),DTe=function(t){he(e,t);function e(r,n){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new Nj(r,Hl),tN&&(a._globalHandlerScope=new Nj(document,b$)),RTe(a,a._localHandlerScope),a}return e.prototype.dispose=function(){aN(this._localHandlerScope),tN&&aN(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,tN&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?MTe(this,n):aN(n)}},e}(dl);const ITe=DTe;var pJ=1;gr.hasGlobalWindow&&(pJ=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var $R=pJ,x$=.4,_$="#333",S$="#ccc",PTe="#eee",Bj=OS,zj=5e-5;function ev(t){return t>zj||t<-zj}var tv=[],_y=[],iN=hs(),oN=Math.abs,LTe=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return ev(this.rotation)||ev(this.x)||ev(this.y)||ev(this.scaleX-1)||ev(this.scaleY-1)||ev(this.skewX)||ev(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&Bj(n);return}n=n||hs(),r?this.getLocalTransform(n):Bj(n),e&&(r?lc(n,e,n):RD(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(tv);var n=tv[0]<0?-1:1,a=tv[1]<0?-1:1,i=((tv[0]-n)*r+n)/tv[0]||0,o=((tv[1]-a)*r+a)/tv[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||hs(),Sg(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(lc(_y,e.invTransform,r),r=_y);var n=this.originX,a=this.originY;(n||a)&&(iN[4]=n,iN[5]=a,lc(_y,r,iN),_y[4]-=n,_y[5]-=a,r=_y),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],a=this.invTransform;return a&&ii(n,n,a),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],a=this.transform;return a&&ii(n,n,a),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&oN(e[0]-1)>1e-10&&oN(e[3]-1)>1e-10?Math.sqrt(oN(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){vJ(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,d=e.y,p=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(n||a||s||l){var g=n+s,m=a+l;r[4]=-g*i-p*m*o,r[5]=-m*o-v*g*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=v*i,r[2]=p*o,u&&Lh(r,r,u),r[4]+=n+c,r[5]+=a+d,r},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),fc=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function vJ(t,e){for(var r=0;r<fc.length;r++){var n=fc[r];t[n]=e[n]}}const uf=LTe;var $j={};function fs(t,e){e=e||hh;var r=$j[e];r||(r=$j[e]=new kS(500));var n=r.get(t);return n==null&&(n=Jl.measureText(t,e).width,r.put(t,n)),n}function Fj(t,e,r,n){var a=fs(t,e),i=ID(e),o=Z_(0,a,r),s=jy(0,i,n),l=new Ht(o,s,a,i);return l}function NS(t,e,r,n){var a=((t||"")+"").split(` `),i=a.length;if(i===1)return Fj(a[0],e,r,n);for(var o=new Ht(0,0,0,0),s=0;s<a.length;s++){var l=Fj(a[s],e,r,n);s===0?o.copy(l):o.union(l)}return o}function Z_(t,e,r){return r==="right"?t-=e:r==="center"&&(t-=e/2),t}function jy(t,e,r){return r==="middle"?t-=e/2:r==="bottom"&&(t-=e),t}function ID(t){return fs("国",t)}function tu(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function FR(t,e,r){var n=e.position||"inside",a=e.distance!=null?e.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,u=r.y,c="left",d="top";if(n instanceof Array)l+=tu(n[0],r.width),u+=tu(n[1],r.height),c=null,d=null;else switch(n){case"left":l-=a,u+=s,c="right",d="middle";break;case"right":l+=a+o,u+=s,d="middle";break;case"top":l+=o/2,u-=a,c="center",d="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=a,u+=s,d="middle";break;case"insideRight":l+=o-a,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",d="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,d="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",d="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=d,t}var sN="__zr_normal__",lN=fc.concat(["ignore"]),OTe=ll(fc,function(t,e){return t[e]=!0,t},{ignore:!1}),Sy={},kTe=new Ht(0,0,0,0),c3=function(){function t(e){this.id=e3(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){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;if(i.copyTransform(r),n.position!=null){var c=kTe;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Sy,n,c):FR(Sy,n,c),i.x=Sy.x,i.y=Sy.y,o=Sy.align,s=Sy.verticalAlign;var d=n.origin;if(d&&n.rotation!=null){var p=void 0,v=void 0;d==="center"?(p=c.width*.5,v=c.height*.5):(p=tu(d[0],c.width),v=tu(d[1],c.height)),u=!0,i.originX=-i.x+p+(a?0:c.x),i.originY=-i.y+v+(a?0:c.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 m=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,x=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),_=void 0,w=void 0,T=void 0;m&&this.canBeInsideText()?(_=n.insideFill,w=n.insideStroke,(_==null||_==="auto")&&(_=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(_),T=!0)):(_=n.outsideFill,w=n.outsideStroke,(_==null||_==="auto")&&(_=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(_),T=!0)),_=_||"#000",(_!==x.fill||w!==x.stroke||T!==x.autoStroke||o!==x.align||s!==x.verticalAlign)&&(l=!0,x.fill=_,x.stroke=w,x.autoStroke=T,x.align=o,x.verticalAlign=s,r.setDefaultTextStyle(x)),r.__dirty|=is,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?S$:_$},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&io(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,Kl(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},Ce(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(St(e))for(var n=e,a=sr(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);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!==sN)){var o=a.targetName,s=o?r[o]:r;a.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,lN)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var a=0;a<n.length;a++){var i=n[a];e[i]!=null&&!(i in r)&&(r[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(sN,!1,e)},t.prototype.useState=function(e,r,n,a){var i=e===sN,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Qt(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){rl("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,p=this._textGuide;return d&&d.useState(e,r,n,c),p&&p.useState(e,r,n,c),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~is),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&a.push(c)}var d=a[o-1],p=!!(d&&d.hoverLayer||n);p&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(a),g=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,!r&&!this.__inHover&&g&&g.duration>0,g);var m=this._textContent,x=this._textGuide;m&&m.useStates(e,r,p),x&&x.useStates(e,r,p),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~is)}},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=Qt(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var a=this.currentStates.slice(),i=Qt(a,e),o=Qt(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,a=0;a<e.length;a++){var i=e[a];Ce(r,i),i.textConfig&&(n=n||{},Ce(n,i.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,a,i,o){var s=!(r&&a);r&&r.textConfig?(this.textConfig=Ce({},a?this.textConfig:n.textConfig),Ce(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<lN.length;c++){var d=lN[c],p=i&&OTe[d];r&&r[d]!=null?p?(u=!0,l[d]=r[d]):this[d]=r[d]:s&&n[d]!=null&&(p?(u=!0,l[d]=n[d]):this[d]=n[d])}if(!i)for(var c=0;c<this.animators.length;c++){var v=this.animators[c],g=v.targetName;v.getLoop()||v.__changeFinalValue(g?(r||n)[g]:r||n)}u&&this._transitionState(e,l,o)},t.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");if(e===this)throw new Error("Recursive component attachment.");var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;if(r!==e){if(r&&r!==e&&this.removeTextContent(),e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new uf,this._attachComponent(e),this._textContent=e,this.markRedraw()}},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Ce(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=is;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=e),n&&(n.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var a=e?this[e]:this;if(!a){rl('Property "'+e+'" is not existed in element '+this.id);return}var i=new u3(a,r,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},t.prototype.addAnimator=function(e,r){var n=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(r)}).done(function(){var i=a.animators,o=Qt(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!e||e===s.scope?s.stop(r):i.push(s)}return this.animators=i,this},t.prototype.animateTo=function(e,r,n){uN(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){uN(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,a){for(var i=uN(this,r,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=is;var r={};function n(i,o,s){r[i+o+s]||(console.warn("DEPRECATED: '"+i+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[i+o+s]=!0)}function a(i,o,s,l){Object.defineProperty(e,i,{get:function(){if(n(i,s,l),!this[o]){var c=this[o]=[];u(this,c)}return this[o]},set:function(c){n(i,s,l),this[s]=c[0],this[l]=c[1],this[o]=c,u(this,c)}});function u(c,d){Object.defineProperty(d,0,{get:function(){return c[s]},set:function(p){c[s]=p}}),Object.defineProperty(d,1,{get:function(){return c[l]},set:function(p){c[l]=p}})}}Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))}(),t}();ra(c3,dl);ra(c3,uf);function uN(t,e,r,n,a){r=r||{};var i=[];gJ(t,"",t,e,r,n,i,a);var o=i.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},d=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&r.during&&i[0].during(function(g,m){r.during(m)});for(var p=0;p<i.length;p++){var v=i[p];c&&v.done(c),d&&v.aborted(d),r.force&&v.duration(r.duration),v.start(r.easing)}return i}function cN(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function NTe(t){return _i(t[0])}function BTe(t,e,r){if(_i(e[r]))if(_i(t[r])||(t[r]=[]),oo(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),cN(t[r],e[r],n))}else{var a=e[r],i=t[r],o=a.length;if(NTe(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?cN(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else cN(i,a,o);i.length=a.length}else t[r]=e[r]}function zTe(t,e){return t===e||_i(t)&&_i(e)&&$Te(t,e)}function $Te(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function gJ(t,e,r,n,a,i,o,s){for(var l=sr(n),u=a.duration,c=a.delay,d=a.additive,p=a.setToFinal,v=!St(i),g=t.animators,m=[],x=0;x<l.length;x++){var _=l[x],w=n[_];if(w!=null&&r[_]!=null&&(v||i[_]))if(St(w)&&!_i(w)&&!PS(w)){if(e){s||(r[_]=w,t.updateDuringAnimation(e));continue}gJ(t,_,r[_],w,a,i&&i[_],o,s)}else m.push(_);else s||(r[_]=w,t.updateDuringAnimation(e),m.push(_))}var T=m.length;if(!d&&T)for(var A=0;A<g.length;A++){var M=g[A];if(M.targetName===e){var D=M.stopTracks(m);if(D){var P=Qt(g,M);g.splice(P,1)}}}if(a.force||(m=Br(m,function($){return!zTe(n[$],r[$])}),T=m.length),T>0||a.force&&!o.length){var O=void 0,k=void 0,N=void 0;if(s){k={},p&&(O={});for(var A=0;A<T;A++){var _=m[A];k[_]=r[_],p?O[_]=n[_]:r[_]=n[_]}}else if(p){N={};for(var A=0;A<T;A++){var _=m[A];N[_]=y1(r[_]),BTe(r,n,_)}}var M=new u3(r,!1,!1,d?Br(g,function(H){return H.targetName===e}):null);M.targetName=e,a.scope&&(M.scope=a.scope),p&&O&&M.whenWithKeys(0,O,m),N&&M.whenWithKeys(0,N,m),M.whenWithKeys(u??500,s?k:n,m).delay(c||0),t.addAnimator(M,e),o.push(M)}}const mJ=c3;var yJ=function(t){he(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){if(r&&(r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),r.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.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},e.prototype.replace=function(r,n){var a=Qt(this._children,r);return a>=0&&this.replaceAt(n,a),this},e.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},e.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()},e.prototype.remove=function(r){var n=this.__zr,a=this._children,i=Qt(a,r);return i<0?this:(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.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},e.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},e.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},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new Ht(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(),c=l.getLocalTransform(i);c?(Ht.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e}(mJ);yJ.prototype.type="group";const It=yJ;/*! * ZRender, a high performance 2d drawing library. * * Copyright (c) 2013, Baidu Inc. * All rights reserved. * * LICENSE * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt */var K_={},Fv={};function FTe(t){delete Fv[t]}function VTe(t){if(!t)return!1;if(typeof t=="string")return Y1(t,1)<x$;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,a=0;a<n;a++)r+=Y1(e[a].color,1);return r/=n,r<x$}return!1}var UTe=function(){function t(e,r,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var i=new Ywe,o=n.renderer||"canvas";if(K_[o]||(o=sr(K_)[0]),!K_[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new K_[o](r,i,n,e),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!gr.node&&!gr.worker&&!l?new ITe(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,d=c==null||c==="auto"?gr.touchEventsSupported:!!c,p=44,v;d&&(v=$t(n.pointerSize,p)),this.handler=new Uwe(i,s,u,s.root,v),this.animation=new wTe({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh()},t.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=VTe(e)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(e){var r,n=Qy();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=Qy();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},t.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this.handler.off(e,r)},t.prototype.trigger=function(e,r){this.handler.trigger(e,r)},t.prototype.clear=function(){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof It&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,FTe(this.id)},t}();function w$(t,e){var r=new UTe(e3(),t,e);return Fv[r.id]=r,r}function WTe(t){t.dispose()}function HTe(){for(var t in Fv)Fv.hasOwnProperty(t)&&Fv[t].dispose();Fv={}}function GTe(t){return Fv[t]}function bJ(t,e){K_[t]=e}var jTe="5.4.1";const YTe=Object.freeze(Object.defineProperty({__proto__:null,dispose:WTe,disposeAll:HTe,getInstance:GTe,init:w$,registerPainter:bJ,version:jTe},Symbol.toStringTag,{value:"Module"}));var Vj=1e-4,xJ=20;function qTe(t){return t.replace(/^\s+|\s+$/g,"")}function Nr(t,e,r,n){var a=e[0],i=e[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(t<=a)return o;if(t>=i)return s}else{if(t>=a)return o;if(t<=i)return s}else{if(t===a)return o;if(t===i)return s}return(t-a)/l*u+o}function Qe(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return at(t)?qTe(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function Xn(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),xJ),t=(+t).toFixed(e),r?t:+t}function ss(t){return t.sort(function(e,r){return e-r}),t}function ql(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return VR(t)}function VR(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,a=r>0?r:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function f3(t,e){var r=Math.log,n=Math.LN10,a=Math.floor(r(t[1]-t[0])/n),i=Math.round(r(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function XTe(t,e,r){if(!t[e])return 0;var n=_J(t,r);return n[e]||0}function _J(t,e){var r=ll(t,function(v,g){return v+(isNaN(g)?0:g)},0);if(r===0)return[];for(var n=Math.pow(10,e),a=Oe(t,function(v){return(isNaN(v)?0:v)/r*n*100}),i=n*100,o=Oe(a,function(v){return Math.floor(v)}),s=ll(o,function(v,g){return v+g},0),l=Oe(a,function(v,g){return v-o[g]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,d=0,p=l.length;d<p;++d)l[d]>u&&(u=l[d],c=d);++o[c],l[c]=0,++s}return Oe(o,function(v){return v/n})}function ZTe(t,e){var r=Math.max(ql(t),ql(e)),n=t+e;return r>xJ?n:Xn(n,r)}var T$=9007199254740991;function d3(t){var e=Math.PI*2;return(t%e+e)%e}function X1(t){return t>-Vj&&t<Vj}var KTe=/^(?:(\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 ps(t){if(t instanceof Date)return t;if(at(t)){var e=KTe.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function SJ(t){return Math.pow(10,BS(t))}function BS(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function h3(t,e){var r=BS(t),n=Math.pow(10,r),a=t/n,i;return e?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,t=i*n,r>=-20?+t.toFixed(r<0?-r:0):t}function eR(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),a=+t[n-1],i=r-n;return i?a+i*(t[n]-a):a}function C$(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,r=1,n=0;n<t.length;){for(var a=t[n].interval,i=t[n].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,i[o]=o?1:1-r),e=a[o],r=i[o];a[0]===a[1]&&i[0]*i[1]!==1?t.splice(n,1):n++}return t;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function dc(t){var e=parseFloat(t);return e==t&&(e!==0||!at(t)||t.indexOf("x")<=0)?e:NaN}function PD(t){return!isNaN(dc(t))}function wJ(){return Math.round(Math.random()*9)}function TJ(t,e){return e===0?t:TJ(e,t%e)}function Uj(t,e){return t==null?e:e==null?t:t*e/TJ(t,e)}var QTe="[ECharts] ",Wj={},JTe=typeof console<"u"&&console.warn&&console.log;function LD(t,e,r){if(JTe){if(r){if(Wj[e])return;Wj[e]=!0}console[t](QTe+e)}}function eCe(t,e){LD("log",t,e)}function Vn(t,e){LD("warn",t,e)}function Si(t,e){LD("error",t,e)}function ul(t){LD("warn","DEPRECATED: "+t,!0)}function ua(t,e,r){ul((r?"["+r+"]":"")+(t+" is deprecated, use "+e+" instead."))}function so(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r="";{var n=function(a){return a===void 0?"undefined":a===1/0?"Infinity":a===-1/0?"-Infinity":ph(a)?"NaN":a instanceof Date?"Date("+a.toISOString()+")":vt(a)?"function () { ... }":r3(a)?a+"":null};r=Oe(t,function(a){if(at(a))return a;var i=n(a);if(i!=null)return i;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(a,function(o,s){var l=n(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return r}function Or(t){throw new Error(t)}function Hj(t,e,r){return(e-t)*r+t}var CJ="series\0",AJ="\0_ec_\0";function Zr(t){return t instanceof Array?t:t==null?[]:[t]}function cg(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!t.emphasis[e].hasOwnProperty(i)&&t[e].hasOwnProperty(i)&&(t.emphasis[e][i]=t[e][i])}}}var Gj=["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 G0(t){return St(t)&&!Le(t)&&!(t instanceof Date)?t.value:t}function tCe(t){return St(t)&&!(t instanceof Array)}function EJ(t,e,r){var n=r==="normalMerge",a=r==="replaceMerge",i=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=yt();V(e,function(l,u){if(!St(l)){e[u]=null;return}l.id!=null&&!Yj(l.id)&&jj(l.id),l.name!=null&&!Yj(l.name)&&jj(l.name)});var s=rCe(t,o,r);return(n||a)&&nCe(s,t,o,e),n&&aCe(s,e),n||a?iCe(s,e,a):i&&oCe(s,e),sCe(s),s}function rCe(t,e,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<t.length;a++){var i=t[a];i&&i.id!=null&&e.set(i.id,a),n.push({existing:r==="replaceMerge"||C0(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function nCe(t,e,r,n){V(n,function(a,i){if(!(!a||a.id==null)){var o=b1(a.id),s=r.get(o);if(s!=null){var l=t[s];Tt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],n[i]=null}}})}function aCe(t,e){V(e,function(r,n){if(!(!r||r.name==null))for(var a=0;a<t.length;a++){var i=t[a].existing;if(!t[a].newOption&&i&&(i.id==null||r.id==null)&&!C0(r)&&!C0(i)&&RJ("name",i,r)){t[a].newOption=r,e[n]=null;return}}})}function iCe(t,e,r){V(e,function(n){if(n){for(var a,i=0;(a=t[i])&&(a.newOption||C0(a.existing)||a.existing&&n.id!=null&&!RJ("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}function oCe(t,e){V(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function sCe(t){var e=yt();V(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),V(t,function(r){var n=r.newOption;Tt(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),V(t,function(r,n){var a=r.existing,i=r.newOption,o=r.keyInfo;if(St(i)){if(o.name=i.name!=null?b1(i.name):a?a.name:CJ+n,a)o.id=b1(a.id);else if(i.id!=null)o.id=b1(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function RJ(t,e,r){var n=Da(e[t],null),a=Da(r[t],null);return n!=null&&a!=null&&n===a}function b1(t){if(t==null)throw new Error;return Da(t,"")}function Da(t,e){return t==null?e:at(t)?t:_r(t)||F1(t)?t+"":e}function jj(t){Vn("`"+t+"` is invalid id or name. Must be a string or number.")}function Yj(t){return F1(t)||PD(t)}function p3(t){var e=t.name;return!!(e&&e.indexOf(CJ))}function C0(t){return t&&t.id!=null&&b1(t.id).indexOf(AJ)===0}function lCe(t){return AJ+t}function uCe(t,e,r){V(t,function(n){var a=n.newOption;St(a)&&(n.keyInfo.mainType=e,n.keyInfo.subType=cCe(e,a,n.existing,r))})}function cCe(t,e,r,n){var a=e.type?e.type:r?r.subType:n.determineSubType(t,e);return a}function fCe(t,e){var r={},n={};return a(t||[],r),a(e||[],n,r),[i(r),i(n)];function a(o,s,l){for(var u=0,c=o.length;u<c;u++){var d=Da(o[u].seriesId,null);if(d==null)return;for(var p=Zr(o[u].dataIndex),v=l&&l[d],g=0,m=p.length;g<m;g++){var x=p[g];v&&v[x]?v[x]=null:(s[d]||(s[d]={}))[x]=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 c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function fg(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return Le(e.dataIndex)?Oe(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return Le(e.name)?Oe(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function wr(){var t="__ec_inner_"+dCe++;return function(e){return e[t]||(e[t]={})}}var dCe=wJ();function x1(t,e,r){var n=v3(e,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,c){var d=zS(t,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=d.models,s[c+"Model"]=d.models[0]}),s}function v3(t,e){var r;if(at(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var a=yt(),i={},o=!1;return V(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],d=(u[2]||"").toLowerCase();if(!(!c||!d||e&&e.includeMainTypes&&Qt(e.includeMainTypes,c)<0)){o=o||!!c;var p=a.get(c)||a.set(c,{});p[d]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var xa={useDefault:!0,enableAll:!1,enableNone:!1},hCe={useDefault:!1,enableAll:!0,enableNone:!0};function zS(t,e,r,n){n=n||xa;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=t.getComponent(e))?[l]:[],s}return a==="none"||a===!1?(Tt(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(Tt(n.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=t.queryComponents({mainType:e,index:a,id:i,name:o}),s)}function MJ(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function pCe(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function vCe(t){return t==="auto"?gr.domSupported?"html":"richText":t||"html"}function A$(t,e){var r=yt(),n=[];return V(t,function(a){var i=e(a);(r.get(i)||(n.push(i),r.set(i,[]))).push(a)}),{keys:n,buckets:r}}function DJ(t,e,r,n,a){var i=e==null||e==="auto";if(n==null)return n;if(_r(n)){var o=Hj(r||0,n,a);return Xn(o,i?Math.max(ql(r||0),ql(n)):e)}else{if(at(n))return a<1?r:n;for(var s=[],l=r,u=n,c=Math.max(l?l.length:0,u.length),d=0;d<c;++d){var p=t.getDimensionInfo(d);if(p&&p.type==="ordinal")s[d]=(a<1&&l?l:u)[d];else{var v=l&&l[d]?l[d]:0,g=u[d],o=Hj(v,g,a);s[d]=Xn(o,i?Math.max(ql(v),ql(g)):e)}}return s}}var gCe=".",rv="___EC__COMPONENT__CONTAINER___",IJ="___EC__EXTENDED_CLASS___";function rc(t){var e={main:"",sub:""};if(t){var r=t.split(gCe);e.main=r[0]||"",e.sub=r[1]||""}return e}function mCe(t){Tt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function yCe(t){return!!(t&&t[IJ])}function g3(t,e){t.$constructor=t,t.extend=function(r){V(e,function(i){r[i]||console.warn("Method `"+i+"` should be implemented"+(r.type?" in "+r.type:"")+".")});var n=this,a;return bCe(n)?a=function(i){he(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},t3(a,this)),Ce(a.prototype,r),a[IJ]=!0,a.extend=this.extend,a.superCall=SCe,a.superApply=wCe,a.superClass=n,a}}function bCe(t){return vt(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function PJ(t,e){t.extend=e.extend}var xCe=Math.round(Math.random()*10);function _Ce(t){var e=["__\0is_clz",xCe++].join("_");t.prototype[e]=!0,Tt(!t.isInstance,'The method "is" can not be defined.'),t.isInstance=function(r){return!!(r&&r[e])}}function SCe(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function wCe(t,e,r){return this.superClass.prototype[e].apply(t,r)}function OD(t){var e={};t.registerClass=function(n){var a=n.type||n.prototype.type;if(a){mCe(a),n.prototype.type=a;var i=rc(a);if(!i.sub)e[i.main]&&console.warn(i.main+" exists."),e[i.main]=n;else if(i.sub!==rv){var o=r(i);o[i.sub]=n}}return n},t.getClass=function(n,a,i){var o=e[n];if(o&&o[rv]&&(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},t.getClassesByMainType=function(n){var a=rc(n),i=[],o=e[a.main];return o&&o[rv]?V(o,function(s,l){l!==rv&&i.push(s)}):i.push(o),i},t.hasClass=function(n){var a=rc(n);return!!e[a.main]},t.getAllClassMainTypes=function(){var n=[];return V(e,function(a,i){n.push(i)}),n},t.hasSubTypes=function(n){var a=rc(n),i=e[a.main];return i&&i[rv]};function r(n){var a=e[n.main];return(!a||!a[rv])&&(a=e[n.main]={},a[rv]=!0),a}}function dg(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,a,i){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(a&&Qt(a,l)>=0||i&&Qt(i,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var TCe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],CCe=dg(TCe),ACe=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return CCe(this,e,r)},t}(),E$=new kS(50);function ECe(t){if(typeof t=="string"){var e=E$.get(t);return e&&e.image}else return t}function m3(t,e,r,n,a){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var i=E$.get(t),o={hostEl:r,cb:n,cbPayload:a};return i?(e=i.image,!kD(e)&&i.pending.push(o)):(e=Jl.loadImage(t,qj,qj),e.__zrImageSrc=t,E$.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function qj(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function kD(t){return t&&t.width&&t.height}var fN=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function LJ(t,e,r,n,a){if(!e)return"";var i=(t+"").split(` `);a=OJ(e,r,n,a);for(var o=0,s=i.length;o<s;o++)i[o]=kJ(i[o],a);return i.join(` `)}function OJ(t,e,r,n){n=n||{};var a=Ce({},n);a.font=e,r=$t(r,"..."),a.maxIterations=$t(n.maxIterations,2);var i=a.minChar=$t(n.minChar,0);a.cnCharWidth=fs("国",e);var o=a.ascCharWidth=fs("a",e);a.placeholder=$t(n.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<i&&s>=o;l++)s-=o;var u=fs(r,e);return u>s&&(r="",u=0),s=t-u,a.ellipsis=r,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=t,a}function kJ(t,e){var r=e.containerWidth,n=e.font,a=e.contentWidth;if(!r)return"";var i=fs(t,n);if(i<=r)return t;for(var o=0;;o++){if(i<=a||o>=e.maxIterations){t+=e.ellipsis;break}var s=o===0?RCe(t,a,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(t.length*a/i):0;t=t.substr(0,s),i=fs(t,n)}return t===""&&(t=e.placeholder),t}function RCe(t,e,r,n){for(var a=0,i=0,o=t.length;i<o&&a<e;i++){var s=t.charCodeAt(i);a+=0<=s&&s<=127?r:n}return i}function MCe(t,e){t!=null&&(t+="");var r=e.overflow,n=e.padding,a=e.font,i=r==="truncate",o=ID(a),s=$t(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=e.width,d;c!=null&&(r==="break"||r==="breakAll")?d=t?NJ(t,e.font,c,r==="breakAll",0).lines:[]:d=t?t.split(` `):[];var p=d.length*s,v=$t(e.height,p);if(p>v&&u){var g=Math.floor(v/s);d=d.slice(0,g)}if(t&&i&&c!=null)for(var m=OJ(c,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x=0;x<d.length;x++)d[x]=kJ(d[x],m);for(var _=v,w=0,x=0;x<d.length;x++)w=Math.max(fs(d[x],a),w);c==null&&(c=w);var T=w;return n&&(_+=n[0]+n[2],T+=n[1]+n[3],c+=n[1]+n[3]),l&&(T=c),{lines:d,height:v,outerWidth:T,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:w,contentHeight:p,width:c}}var DCe=function(){function t(){}return t}(),Xj=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),ICe=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function PCe(t,e){var r=new ICe;if(t!=null&&(t+=""),!t)return r;for(var n=e.width,a=e.height,i=e.overflow,o=(i==="break"||i==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:i==="breakAll"}:null,s=fN.lastIndex=0,l;(l=fN.exec(t))!=null;){var u=l.index;u>s&&dN(r,t.substring(s,u),e,o),dN(r,l[2],e,o,l[1]),s=fN.lastIndex}s<t.length&&dN(r,t.substring(s,t.length),e,o);var c=[],d=0,p=0,v=e.padding,g=i==="truncate",m=e.lineOverflow==="truncate";function x(J,ie,se){J.width=ie,J.lineHeight=se,d+=se,p=Math.max(p,ie)}e:for(var _=0;_<r.lines.length;_++){for(var w=r.lines[_],T=0,A=0,M=0;M<w.tokens.length;M++){var D=w.tokens[M],P=D.styleName&&e.rich[D.styleName]||{},O=D.textPadding=P.padding,k=O?O[1]+O[3]:0,N=D.font=P.font||e.font;D.contentHeight=ID(N);var $=$t(P.height,D.contentHeight);if(D.innerHeight=$,O&&($+=O[0]+O[2]),D.height=$,D.lineHeight=nl(P.lineHeight,e.lineHeight,$),D.align=P&&P.align||e.align,D.verticalAlign=P&&P.verticalAlign||"middle",m&&a!=null&&d+D.lineHeight>a){M>0?(w.tokens=w.tokens.slice(0,M),x(w,A,T),r.lines=r.lines.slice(0,_+1)):r.lines=r.lines.slice(0,_);break e}var H=P.width,F=H==null||H==="auto";if(typeof H=="string"&&H.charAt(H.length-1)==="%")D.percentWidth=H,c.push(D),D.contentWidth=fs(D.text,N);else{if(F){var W=P.backgroundColor,j=W&&W.image;j&&(j=ECe(j),kD(j)&&(D.width=Math.max(D.width,j.width*$/j.height)))}var X=g&&n!=null?n-A:null;X!=null&&X<D.width?!F||X<k?(D.text="",D.width=D.contentWidth=0):(D.text=LJ(D.text,X-k,N,e.ellipsis,{minChar:e.truncateMinChar}),D.width=D.contentWidth=fs(D.text,N)):D.contentWidth=fs(D.text,N)}D.width+=k,A+=D.width,P&&(T=Math.max(T,D.lineHeight))}x(w,A,T)}r.outerWidth=r.width=$t(n,p),r.outerHeight=r.height=$t(a,d),r.contentHeight=d,r.contentWidth=p,v&&(r.outerWidth+=v[1]+v[3],r.outerHeight+=v[0]+v[2]);for(var _=0;_<c.length;_++){var D=c[_],te=D.percentWidth;D.width=parseInt(te,10)/100*r.width}return r}function dN(t,e,r,n,a){var i=e==="",o=a&&r.rich[a]||{},s=t.lines,l=o.font||r.font,u=!1,c,d;if(n){var p=o.padding,v=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var g=tu(o.width,n.width)+v;s.length>0&&g+n.accumWidth>n.width&&(c=e.split(` `),u=!0),n.accumWidth=g}else{var m=NJ(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=m.accumWidth+v,d=m.linesWidths,c=m.lines}}else c=e.split(` `);for(var x=0;x<c.length;x++){var _=c[x],w=new DCe;if(w.styleName=a,w.text=_,w.isLineHolder=!_&&!i,typeof o.width=="number"?w.width=o.width:w.width=d?d[x]:fs(_,l),!x&&!u){var T=(s[s.length-1]||(s[0]=new Xj)).tokens,A=T.length;A===1&&T[0].isLineHolder?T[0]=w:(_||!A||i)&&T.push(w)}else s.push(new Xj([w]))}}function LCe(t){var e=t.charCodeAt(0);return e>=33&&e<=383}var OCe=ll(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function kCe(t){return LCe(t)?!!OCe[t]:!0}function NJ(t,e,r,n,a){for(var i=[],o=[],s="",l="",u=0,c=0,d=0;d<t.length;d++){var p=t.charAt(d);if(p===` `){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var v=fs(p,e),g=n?!1:!kCe(p);if(i.length?c+v>r:a+c+v>r){c?(s||l)&&(g?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=p,u+=v,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=p,c=v)):g?(i.push(l),o.push(u),l=p,u=v):(i.push(p),o.push(v));continue}c+=v,g?(l+=p,u+=v):(l&&(s+=l,l="",u=0),s+=p)}return!i.length&&!s&&(s=t,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var R$="__zr_style_"+Math.round(Math.random()*10),qv={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ND={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};qv[R$]=!0;var Zj=["z","z2","invisible"],NCe=["invisible"],BCe=function(t){he(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=sr(r),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(r[i]):t.prototype.attrKV.call(this,i,r[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&zCe(this,r,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){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},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},e.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 Ht(0,0,0,0)),n?Ht.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},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new Ht(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:Ce(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=q_,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&q_)},e.prototype.styleUpdated=function(){this.__dirty&=~q_},e.prototype.createStyle=function(r){return LS(qv,r)},e.prototype.useStyle=function(r){r[R$]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[R$]},e.prototype._innerSaveToNormal=function(r){t.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,Zj)},e.prototype._applyStateObj=function(r,n,a,i,o,s){t.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var d=sr(c),p=0;p<d.length;p++){var v=d[p];v in u&&(u[v]=u[v],this.style[v]=c[v])}for(var g=sr(u),p=0;p<g.length;p++){var v=g[p];this.style[v]=this.style[v]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var m=this.__inHover?NCe:Zj,p=0;p<m.length;p++){var v=m[p];n&&n[v]!=null?this[v]=n[v]:l&&a[v]!=null&&(this[v]=a[v])}},e.prototype._mergeStates=function(r){for(var n=t.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},e.prototype._mergeStyle=function(r,n){return Ce(r,n),r},e.prototype.getAnimationStyleProps=function(){return ND},e.initDefaultProps=function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=is|q_}(),e}(mJ),hN=new Ht(0,0,0,0),pN=new Ht(0,0,0,0);function zCe(t,e,r){return hN.copy(t.getBoundingRect()),t.transform&&hN.applyTransform(t.transform),pN.width=e,pN.height=r,!hN.intersect(pN)}const cl=BCe;var Oo=Math.min,ko=Math.max,vN=Math.sin,gN=Math.cos,nv=Math.PI*2,YA=Ph(),qA=Ph(),XA=Ph();function BD(t,e,r){if(t.length!==0){for(var n=t[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<t.length;l++)n=t[l],a=Oo(a,n[0]),i=ko(i,n[0]),o=Oo(o,n[1]),s=ko(s,n[1]);e[0]=a,e[1]=o,r[0]=i,r[1]=s}}function Kj(t,e,r,n,a,i){a[0]=Oo(t,r),a[1]=Oo(e,n),i[0]=ko(t,r),i[1]=ko(e,n)}var Qj=[],Jj=[];function $Ce(t,e,r,n,a,i,o,s,l,u){var c=eJ,d=Na,p=c(t,r,a,o,Qj);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<p;v++){var g=d(t,r,a,o,Qj[v]);l[0]=Oo(g,l[0]),u[0]=ko(g,u[0])}p=c(e,n,i,s,Jj);for(var v=0;v<p;v++){var m=d(e,n,i,s,Jj[v]);l[1]=Oo(m,l[1]),u[1]=ko(m,u[1])}l[0]=Oo(t,l[0]),u[0]=ko(t,u[0]),l[0]=Oo(o,l[0]),u[0]=ko(o,u[0]),l[1]=Oo(e,l[1]),u[1]=ko(e,u[1]),l[1]=Oo(s,l[1]),u[1]=ko(s,u[1])}function FCe(t,e,r,n,a,i,o,s){var l=rJ,u=ni,c=ko(Oo(l(t,r,a),1),0),d=ko(Oo(l(e,n,i),1),0),p=u(t,r,a,c),v=u(e,n,i,d);o[0]=Oo(t,a,p),o[1]=Oo(e,i,v),s[0]=ko(t,a,p),s[1]=ko(e,i,v)}function VCe(t,e,r,n,a,i,o,s,l){var u=sf,c=lf,d=Math.abs(a-i);if(d%nv<1e-4&&d>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(YA[0]=gN(a)*r+t,YA[1]=vN(a)*n+e,qA[0]=gN(i)*r+t,qA[1]=vN(i)*n+e,u(s,YA,qA),c(l,YA,qA),a=a%nv,a<0&&(a=a+nv),i=i%nv,i<0&&(i=i+nv),a>i&&!o?i+=nv:a<i&&o&&(a+=nv),o){var p=i;i=a,a=p}for(var v=0;v<i;v+=Math.PI/2)v>a&&(XA[0]=gN(v)*r+t,XA[1]=vN(v)*n+e,u(s,XA,s),c(l,XA,l))}var ln={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},av=[],iv=[],Fu=[],Ld=[],Vu=[],Uu=[],mN=Math.min,yN=Math.max,ov=Math.cos,sv=Math.sin,Jc=Math.abs,M$=Math.PI,Vd=M$*2,bN=typeof Float32Array<"u",__=[];function xN(t){var e=Math.round(t/M$*1e8)/1e8;return e%2*M$}function BJ(t,e){var r=xN(t[0]);r<0&&(r+=Vd);var n=r-t[0],a=t[1];a+=n,!e&&a-r>=Vd?a=r+Vd:e&&r-a>=Vd?a=r-Vd:!e&&r>a?a=r+(Vd-xN(r-a)):e&&r<a&&(a=r-(Vd-xN(a-r))),t[0]=r,t[1]=a}var UCe=function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=Jc(n/$R/e)||0,this._uy=Jc(n/$R/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(ln.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=Jc(e-this._xi),a=Jc(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(ln.L,e,r),this._ctx&&i&&this._ctx.lineTo(e,r),i)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,a,i,o){return this._drawPendingPt(),this.addData(ln.C,e,r,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,a,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,a){return this._drawPendingPt(),this.addData(ln.Q,e,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,a),this._xi=n,this._yi=a,this},t.prototype.arc=function(e,r,n,a,i,o){this._drawPendingPt(),__[0]=a,__[1]=i,BJ(__,o),a=__[0],i=__[1];var s=i-a;return this.addData(ln.A,e,r,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,a,i,o),this._xi=ov(i)*n+e,this._yi=sv(i)*n+r,this},t.prototype.arcTo=function(e,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,a,i),this},t.prototype.rect=function(e,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,a),this.addData(ln.R,e,r,n,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(ln.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var r=e.length;!(this.data&&this.data.length===r)&&bN&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var r=e.length,n=0,a=this._len,i=0;i<r;i++)n+=e[i].len();bN&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var i=0;i<r;i++)for(var o=e[i].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},t.prototype.addData=function(e,r,n,a,i,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var d=0;d<arguments.length;d++)c[this._len++]=arguments[d]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,bN&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Fu[0]=Fu[1]=Vu[0]=Vu[1]=Number.MAX_VALUE,Ld[0]=Ld[1]=Uu[0]=Uu[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],n=e[o+1],a=r,i=n),s){case ln.M:r=a=e[o++],n=i=e[o++],Vu[0]=a,Vu[1]=i,Uu[0]=a,Uu[1]=i;break;case ln.L:Kj(r,n,e[o],e[o+1],Vu,Uu),r=e[o++],n=e[o++];break;case ln.C:$Ce(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Vu,Uu),r=e[o++],n=e[o++];break;case ln.Q:FCe(r,n,e[o++],e[o++],e[o],e[o+1],Vu,Uu),r=e[o++],n=e[o++];break;case ln.A:var u=e[o++],c=e[o++],d=e[o++],p=e[o++],v=e[o++],g=e[o++]+v;o+=1;var m=!e[o++];l&&(a=ov(v)*d+u,i=sv(v)*p+c),VCe(u,c,d,p,v,g,m,Vu,Uu),r=ov(g)*d+u,n=sv(g)*p+c;break;case ln.R:a=r=e[o++],i=n=e[o++];var x=e[o++],_=e[o++];Kj(a,i,a+x,i+_,Vu,Uu);break;case ln.Z:r=a,n=i;break}sf(Fu,Fu,Vu),lf(Ld,Ld,Uu)}return o===0&&(Fu[0]=Fu[1]=Ld[0]=Ld[1]=0),new Ht(Fu[0],Fu[1],Ld[0]-Fu[0],Ld[1]-Fu[1])},t.prototype._calculateLength=function(){var e=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,c=0,d=0,p=0;p<r;){var v=e[p++],g=p===1;g&&(i=e[p],o=e[p+1],s=i,l=o);var m=-1;switch(v){case ln.M:i=s=e[p++],o=l=e[p++];break;case ln.L:{var x=e[p++],_=e[p++],w=x-i,T=_-o;(Jc(w)>n||Jc(T)>a||p===r-1)&&(m=Math.sqrt(w*w+T*T),i=x,o=_);break}case ln.C:{var A=e[p++],M=e[p++],x=e[p++],_=e[p++],D=e[p++],P=e[p++];m=qwe(i,o,A,M,x,_,D,P,10),i=D,o=P;break}case ln.Q:{var A=e[p++],M=e[p++],x=e[p++],_=e[p++];m=Zwe(i,o,A,M,x,_,10),i=x,o=_;break}case ln.A:var O=e[p++],k=e[p++],N=e[p++],$=e[p++],H=e[p++],F=e[p++],W=F+H;p+=1,e[p++],g&&(s=ov(H)*N+O,l=sv(H)*$+k),m=yN(N,$)*mN(Vd,Math.abs(F)),i=ov(W)*N+O,o=sv(W)*$+k;break;case ln.R:{s=i=e[p++],l=o=e[p++];var j=e[p++],X=e[p++];m=j*2+X*2;break}case ln.Z:{var w=s-i,T=l-o;m=Math.sqrt(w*w+T*T),i=s,o=l;break}}m>=0&&(u[d++]=m,c+=m)}return this._pathLen=c,c},t.prototype.rebuildPath=function(e,r){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,d,p,v=r<1,g,m,x=0,_=0,w,T=0,A,M;if(v&&(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,m=this._pathLen,w=r*m,!w))return;e:for(var D=0;D<o;){var P=n[D++],O=D===1;switch(O&&(u=n[D],c=n[D+1],s=u,l=c),P!==ln.L&&T>0&&(e.lineTo(A,M),T=0),P){case ln.M:s=u=n[D++],l=c=n[D++],e.moveTo(u,c);break;case ln.L:{d=n[D++],p=n[D++];var k=Jc(d-u),N=Jc(p-c);if(k>a||N>i){if(v){var $=g[_++];if(x+$>w){var H=(w-x)/$;e.lineTo(u*(1-H)+d*H,c*(1-H)+p*H);break e}x+=$}e.lineTo(d,p),u=d,c=p,T=0}else{var F=k*k+N*N;F>T&&(A=d,M=p,T=F)}break}case ln.C:{var W=n[D++],j=n[D++],X=n[D++],te=n[D++],J=n[D++],ie=n[D++];if(v){var $=g[_++];if(x+$>w){var H=(w-x)/$;vh(u,W,X,J,H,av),vh(c,j,te,ie,H,iv),e.bezierCurveTo(av[1],iv[1],av[2],iv[2],av[3],iv[3]);break e}x+=$}e.bezierCurveTo(W,j,X,te,J,ie),u=J,c=ie;break}case ln.Q:{var W=n[D++],j=n[D++],X=n[D++],te=n[D++];if(v){var $=g[_++];if(x+$>w){var H=(w-x)/$;H1(u,W,X,H,av),H1(c,j,te,H,iv),e.quadraticCurveTo(av[1],iv[1],av[2],iv[2]);break e}x+=$}e.quadraticCurveTo(W,j,X,te),u=X,c=te;break}case ln.A:var se=n[D++],le=n[D++],be=n[D++],Me=n[D++],Se=n[D++],Ue=n[D++],Xe=n[D++],st=!n[D++],$e=be>Me?be:Me,Be=Jc(be-Me)>.001,et=Se+Ue,de=!1;if(v){var $=g[_++];x+$>w&&(et=Se+Ue*(w-x)/$,de=!0),x+=$}if(Be&&e.ellipse?e.ellipse(se,le,be,Me,Xe,Se,et,st):e.arc(se,le,$e,Se,et,st),de)break e;O&&(s=ov(Se)*be+se,l=sv(Se)*Me+le),u=ov(et)*be+se,c=sv(et)*Me+le;break;case ln.R:s=u=n[D],l=c=n[D+1],d=n[D++],p=n[D++];var xe=n[D++],xt=n[D++];if(v){var $=g[_++];if(x+$>w){var Ie=w-x;e.moveTo(d,p),e.lineTo(d+mN(Ie,xe),p),Ie-=xe,Ie>0&&e.lineTo(d+xe,p+mN(Ie,xt)),Ie-=xt,Ie>0&&e.lineTo(d+yN(xe-Ie,0),p+xt),Ie-=xe,Ie>0&&e.lineTo(d,p+yN(xt-Ie,0));break e}x+=$}e.rect(d,p,xe,xt);break;case ln.Z:if(v){var $=g[_++];if(x+$>w){var H=(w-x)/$;e.lineTo(u*(1-H)+s*H,c*(1-H)+l*H);break e}x+=$}e.closePath(),u=s,c=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.CMD=ln,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();const hc=UCe;function Hd(t,e,r,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||i>t+s&&i>r+s||i<t-s&&i<r-s)return!1;if(t!==r)l=(e-n)/(t-r),u=(t*n-r*e)/(t-r);else return Math.abs(i-t)<=s/2;var c=l*i-o+u,d=c*c/(l*l+1);return d<=s/2*s/2}function WCe(t,e,r,n,a,i,o,s,l,u,c){if(l===0)return!1;var d=l;if(c>e+d&&c>n+d&&c>i+d&&c>s+d||c<e-d&&c<n-d&&c<i-d&&c<s-d||u>t+d&&u>r+d&&u>a+d&&u>o+d||u<t-d&&u<r-d&&u<a-d&&u<o-d)return!1;var p=tJ(t,e,r,n,a,i,o,s,u,c,null);return p<=d/2}function zJ(t,e,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>i+u||l<e-u&&l<n-u&&l<i-u||s>t+u&&s>r+u&&s>a+u||s<t-u&&s<r-u&&s<a-u)return!1;var c=nJ(t,e,r,n,a,i,s,l,null);return c<=u/2}var e6=Math.PI*2;function th(t){return t%=e6,t<0&&(t+=e6),t}var S_=Math.PI*2;function HCe(t,e,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-a)%S_<1e-4)return!0;if(i){var d=n;n=th(a),a=th(d)}else n=th(n),a=th(a);n>a&&(a+=S_);var p=Math.atan2(l,s);return p<0&&(p+=S_),p>=n&&p<=a||p+S_>=n&&p+S_<=a}function nf(t,e,r,n,a,i){if(i>e&&i>n||i<e&&i<n||n===e)return 0;var o=(i-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;return l===a?1/0:l>a?s:0}var Od=hc.CMD,lv=Math.PI*2,GCe=1e-4;function jCe(t,e){return Math.abs(t-e)<GCe}var ro=[-1,-1,-1],qs=[-1,-1];function YCe(){var t=qs[0];qs[0]=qs[1],qs[1]=t}function qCe(t,e,r,n,a,i,o,s,l,u){if(u>e&&u>n&&u>i&&u>s||u<e&&u<n&&u<i&&u<s)return 0;var c=NR(e,n,i,s,u,ro);if(c===0)return 0;for(var d=0,p=-1,v=void 0,g=void 0,m=0;m<c;m++){var x=ro[m],_=x===0||x===1?.5:1,w=Na(t,r,a,o,x);w<l||(p<0&&(p=eJ(e,n,i,s,qs),qs[1]<qs[0]&&p>1&&YCe(),v=Na(e,n,i,s,qs[0]),p>1&&(g=Na(e,n,i,s,qs[1]))),p===2?x<qs[0]?d+=v<e?_:-_:x<qs[1]?d+=g<v?_:-_:d+=s<g?_:-_:x<qs[0]?d+=v<e?_:-_:d+=s<v?_:-_)}return d}function XCe(t,e,r,n,a,i,o,s){if(s>e&&s>n&&s>i||s<e&&s<n&&s<i)return 0;var l=Xwe(e,n,i,s,ro);if(l===0)return 0;var u=rJ(e,n,i);if(u>=0&&u<=1){for(var c=0,d=ni(e,n,i,u),p=0;p<l;p++){var v=ro[p]===0||ro[p]===1?.5:1,g=ni(t,r,a,ro[p]);g<o||(ro[p]<u?c+=d<e?v:-v:c+=i<d?v:-v)}return c}else{var v=ro[0]===0||ro[0]===1?.5:1,g=ni(t,r,a,ro[0]);return g<o?0:i<e?v:-v}}function ZCe(t,e,r,n,a,i,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);ro[0]=-l,ro[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=lv-1e-4){n=0,a=lv;var c=i?1:-1;return o>=ro[0]+t&&o<=ro[1]+t?c:0}if(n>a){var d=n;n=a,a=d}n<0&&(n+=lv,a+=lv);for(var p=0,v=0;v<2;v++){var g=ro[v];if(g+t>o){var m=Math.atan2(s,g),c=i?1:-1;m<0&&(m=lv+m),(m>=n&&m<=a||m+lv>=n&&m+lv<=a)&&(m>Math.PI/2&&m<Math.PI*1.5&&(c=-c),p+=c)}}return p}function $J(t,e,r,n,a){for(var i=t.data,o=t.len(),s=0,l=0,u=0,c=0,d=0,p,v,g=0;g<o;){var m=i[g++],x=g===1;switch(m===Od.M&&g>1&&(r||(s+=nf(l,u,c,d,n,a))),x&&(l=i[g],u=i[g+1],c=l,d=u),m){case Od.M:c=i[g++],d=i[g++],l=c,u=d;break;case Od.L:if(r){if(Hd(l,u,i[g],i[g+1],e,n,a))return!0}else s+=nf(l,u,i[g],i[g+1],n,a)||0;l=i[g++],u=i[g++];break;case Od.C:if(r){if(WCe(l,u,i[g++],i[g++],i[g++],i[g++],i[g],i[g+1],e,n,a))return!0}else s+=qCe(l,u,i[g++],i[g++],i[g++],i[g++],i[g],i[g+1],n,a)||0;l=i[g++],u=i[g++];break;case Od.Q:if(r){if(zJ(l,u,i[g++],i[g++],i[g],i[g+1],e,n,a))return!0}else s+=XCe(l,u,i[g++],i[g++],i[g],i[g+1],n,a)||0;l=i[g++],u=i[g++];break;case Od.A:var _=i[g++],w=i[g++],T=i[g++],A=i[g++],M=i[g++],D=i[g++];g+=1;var P=!!(1-i[g++]);p=Math.cos(M)*T+_,v=Math.sin(M)*A+w,x?(c=p,d=v):s+=nf(l,u,p,v,n,a);var O=(n-_)*A/T+_;if(r){if(HCe(_,w,A,M,M+D,P,e,O,a))return!0}else s+=ZCe(_,w,A,M,M+D,P,O,a);l=Math.cos(M+D)*T+_,u=Math.sin(M+D)*A+w;break;case Od.R:c=l=i[g++],d=u=i[g++];var k=i[g++],N=i[g++];if(p=c+k,v=d+N,r){if(Hd(c,d,p,d,e,n,a)||Hd(p,d,p,v,e,n,a)||Hd(p,v,c,v,e,n,a)||Hd(c,v,c,d,e,n,a))return!0}else s+=nf(p,d,p,v,n,a),s+=nf(c,v,c,d,n,a);break;case Od.Z:if(r){if(Hd(l,u,c,d,e,n,a))return!0}else s+=nf(l,u,c,d,n,a);l=c,u=d;break}}return!r&&!jCe(u,d)&&(s+=nf(l,u,c,d,n,a)||0),s!==0}function KCe(t,e,r){return $J(t,0,!1,e,r)}function QCe(t,e,r,n){return $J(t,e,!0,r,n)}var UR=wt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},qv),JCe={style:wt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ND.style)},_N=fc.concat(["invisible","culling","z","z2","zlevel","parent"]),eAe=function(t){he(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.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<_N.length;++s)a[_N[s]]=this[_N[s]];a.__dirty|=is}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=sr(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?Ce(this.style,s):this.useStyle(s):o==="shape"?Ce(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(at(r)){var n=Y1(r,0);return n>.5?_$:n>.2?PTe:S$}else if(r)return S$}return _$},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(at(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=Y1(r,0)<x$;if(i===o)return n}},e.prototype.buildPath=function(r,n,a){},e.prototype.pathUpdated=function(){this.__dirty&=~Gy},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new hc(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.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&Gy)&&(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 c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.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)),QCe(s,l/u,r,n)))return!0}if(this.hasFill())return KCe(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Gy,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:Ce(a,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Gy)},e.prototype.createStyle=function(r){return LS(UR,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Ce({},this.shape))},e.prototype._applyStateObj=function(r,n,a,i,o,s){t.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=Ce({},a.shape),Ce(u,n.shape)):(u=Ce({},i?this.shape:a.shape),Ce(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=Ce({},this.shape);for(var c={},d=sr(u),p=0;p<d.length;p++){var v=d[p];typeof u[v]=="object"?this.shape[v]=u[v]:c[v]=u[v]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(r){for(var n=t.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},e.prototype.getAnimationStyleProps=function(){return JCe},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=function(i){he(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 Et(r.style)},o.prototype.getDefaultShape=function(){return Et(r.shape)},o}(e);for(var a in r)typeof r[a]=="function"&&(n.prototype[a]=r[a]);return n},e.initDefaultProps=function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=is|q_|Gy}(),e}(cl);const ir=eAe;var tAe=wt({strokeFirst:!0,font:hh,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},UR),FJ=function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return LS(tAe,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var a=NS(n,r.font,r.textAlign,r.textBaseline);if(a.x+=r.x||0,a.y+=r.y||0,this.hasStroke()){var i=r.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var r=e.prototype;r.dirtyRectTolerance=10}(),e}(cl);FJ.prototype.type="tspan";const Z1=FJ;var rAe=wt({x:0,y:0},qv),nAe={style:wt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ND.style)};function aAe(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var VJ=function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return LS(rAe,r)},e.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var i=aAe(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},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return nAe},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ht(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e}(cl);VJ.prototype.type="image";const si=VJ;function iAe(t,e){var r=e.x,n=e.y,a=e.width,i=e.height,o=e.r,s,l,u,c;a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var d;s+l>a&&(d=s+l,s*=a/d,l*=a/d),u+c>a&&(d=u+c,u*=a/d,c*=a/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),s+c>i&&(d=s+c,s*=i/d,c*=i/d),t.moveTo(r+s,n),t.lineTo(r+a-l,n),l!==0&&t.arc(r+a-l,n+l,l,-Math.PI/2,0),t.lineTo(r+a,n+i-u),u!==0&&t.arc(r+a-u,n+i-u,u,0,Math.PI/2),t.lineTo(r+c,n+i),c!==0&&t.arc(r+c,n+i-c,c,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Jy=Math.round;function UJ(t,e,r){if(e){var n=e.x1,a=e.x2,i=e.y1,o=e.y2;t.x1=n,t.x2=a,t.y1=i,t.y2=o;var s=r&&r.lineWidth;return s&&(Jy(n*2)===Jy(a*2)&&(t.x1=t.x2=Vv(n,s,!0)),Jy(i*2)===Jy(o*2)&&(t.y1=t.y2=Vv(i,s,!0))),t}}function WJ(t,e,r){if(e){var n=e.x,a=e.y,i=e.width,o=e.height;t.x=n,t.y=a,t.width=i,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Vv(n,s,!0),t.y=Vv(a,s,!0),t.width=Math.max(Vv(n+i,s,!1)-t.x,i===0?0:1),t.height=Math.max(Vv(a+o,s,!1)-t.y,o===0?0:1)),t}}function Vv(t,e,r){if(!e)return t;var n=Jy(t*2);return(n+Jy(e))%2===0?n/2:(n+(r?1:-1))/2}var oAe=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),sAe={},HJ=function(t){he(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new oAe},e.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=WJ(sAe,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?iAe(r,n):r.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ir);HJ.prototype.type="rect";const yr=HJ;var t6={fill:"#000"},r6=2,lAe={style:wt({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},ND.style)},GJ=function(t){he(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=t6,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.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}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,fAe(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new Ht(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},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||t6},e.prototype.setTextContent=function(r){throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,i=r.rich||a&&{};return Ce(r,n),a&&i?(this._mergeRich(i,a),r.rich=i):i&&(r.rich=i),r},e.prototype._mergeRich=function(r,n){for(var a=sr(n),i=0;i<a.length;i++){var o=a[i];r[o]=r[o]||{},Ce(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return lAe},e.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},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||hh,a=r.padding,i=u6(r),o=MCe(i,r),s=SN(r),l=!!r.backgroundColor,u=o.outerHeight,c=o.outerWidth,d=o.contentWidth,p=o.lines,v=o.lineHeight,g=this._defaultStyle,m=r.x||0,x=r.y||0,_=r.align||g.align||"left",w=r.verticalAlign||g.verticalAlign||"top",T=m,A=jy(x,o.contentHeight,w);if(s||a){var M=Z_(m,c,_),D=jy(x,u,w);s&&this._renderBackground(r,r,M,D,c,u)}A+=v/2,a&&(T=l6(m,_,a),w==="top"?A+=a[0]:w==="bottom"&&(A-=a[2]));for(var P=0,O=!1,k=s6("fill"in r?r.fill:(O=!0,g.fill)),N=o6("stroke"in r?r.stroke:!l&&(!g.autoStroke||O)?(P=r6,g.stroke):null),$=r.textShadowBlur>0,H=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),F=o.calculatedLineHeight,W=0;W<p.length;W++){var j=this._getOrCreateChild(Z1),X=j.createStyle();j.useStyle(X),X.text=p[W],X.x=T,X.y=A,_&&(X.textAlign=_),X.textBaseline="middle",X.opacity=r.opacity,X.strokeFirst=!0,$&&(X.shadowBlur=r.textShadowBlur||0,X.shadowColor=r.textShadowColor||"transparent",X.shadowOffsetX=r.textShadowOffsetX||0,X.shadowOffsetY=r.textShadowOffsetY||0),X.stroke=N,X.fill=k,N&&(X.lineWidth=r.lineWidth||P,X.lineDash=r.lineDash,X.lineDashOffset=r.lineDashOffset||0),X.font=n,a6(X,r),A+=v,H&&j.setBoundingRect(new Ht(Z_(X.x,r.width,X.textAlign),jy(X.y,F,X.textBaseline),d,F))}},e.prototype._updateRichTexts=function(){var r=this.style,n=u6(r),a=PCe(n,r),i=a.width,o=a.outerWidth,s=a.outerHeight,l=r.padding,u=r.x||0,c=r.y||0,d=this._defaultStyle,p=r.align||d.align,v=r.verticalAlign||d.verticalAlign,g=Z_(u,o,p),m=jy(c,s,v),x=g,_=m;l&&(x+=l[3],_+=l[0]);var w=x+i;SN(r)&&this._renderBackground(r,r,g,m,o,s);for(var T=!!r.backgroundColor,A=0;A<a.lines.length;A++){for(var M=a.lines[A],D=M.tokens,P=D.length,O=M.lineHeight,k=M.width,N=0,$=x,H=w,F=P-1,W=void 0;N<P&&(W=D[N],!W.align||W.align==="left");)this._placeToken(W,r,O,_,$,"left",T),k-=W.width,$+=W.width,N++;for(;F>=0&&(W=D[F],W.align==="right");)this._placeToken(W,r,O,_,H,"right",T),k-=W.width,H-=W.width,F--;for($+=(i-($-x)-(w-H)-k)/2;N<=F;)W=D[N],this._placeToken(W,r,O,_,$+W.width/2,"center",T),$+=W.width,N++;_+=O}},e.prototype._placeToken=function(r,n,a,i,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,d=i+a/2;c==="top"?d=i+r.height/2:c==="bottom"&&(d=i+a-r.height/2);var p=!r.isLineHolder&&SN(u);p&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,d-r.height/2,r.width,r.height);var v=!!u.backgroundColor,g=r.textPadding;g&&(o=l6(o,s,g),d-=r.height/2-g[0]-r.innerHeight/2);var m=this._getOrCreateChild(Z1),x=m.createStyle();m.useStyle(x);var _=this._defaultStyle,w=!1,T=0,A=s6("fill"in u?u.fill:"fill"in n?n.fill:(w=!0,_.fill)),M=o6("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!_.autoStroke||w)?(T=r6,_.stroke):null),D=u.textShadowBlur>0||n.textShadowBlur>0;x.text=r.text,x.x=o,x.y=d,D&&(x.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,x.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",x.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,x.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),x.textAlign=s,x.textBaseline="middle",x.font=r.font||hh,x.opacity=nl(u.opacity,n.opacity,1),a6(x,u),M&&(x.lineWidth=nl(u.lineWidth,n.lineWidth,T),x.lineDash=$t(u.lineDash,n.lineDash),x.lineDashOffset=n.lineDashOffset||0,x.stroke=M),A&&(x.fill=A);var P=r.contentWidth,O=r.contentHeight;m.setBoundingRect(new Ht(Z_(x.x,P,x.textAlign),jy(x.y,O,x.textBaseline),P,O))},e.prototype._renderBackground=function(r,n,a,i,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,d=l&&l.image,p=l&&!d,v=r.borderRadius,g=this,m,x;if(p||r.lineHeight||u&&c){m=this._getOrCreateChild(yr),m.useStyle(m.createStyle()),m.style.fill=null;var _=m.shape;_.x=a,_.y=i,_.width=o,_.height=s,_.r=v,m.dirtyShape()}if(p){var w=m.style;w.fill=l||null,w.fillOpacity=$t(r.fillOpacity,1)}else if(d){x=this._getOrCreateChild(si),x.onload=function(){g.dirtyStyle()};var T=x.style;T.image=l.image,T.x=a,T.y=i,T.width=o,T.height=s}if(u&&c){var w=m.style;w.lineWidth=u,w.stroke=c,w.strokeOpacity=$t(r.strokeOpacity,1),w.lineDash=r.borderDash,w.lineDashOffset=r.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(w.strokeFirst=!0,w.lineWidth*=2)}var A=(m||x).style;A.shadowBlur=r.shadowBlur||0,A.shadowColor=r.shadowColor||"transparent",A.shadowOffsetX=r.shadowOffsetX||0,A.shadowOffsetY=r.shadowOffsetY||0,A.opacity=nl(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return YJ(r)&&(n=[r.fontStyle,r.fontWeight,jJ(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&tl(n)||r.textFont||r.font},e}(cl),uAe={left:!0,right:1,center:1},cAe={top:1,bottom:1,middle:1},n6=["fontStyle","fontWeight","fontSize","fontFamily"];function jJ(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?KF+"px":t+"px"}function a6(t,e){for(var r=0;r<n6.length;r++){var n=n6[r],a=e[n];a!=null&&(t[n]=a)}}function YJ(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function fAe(t){return i6(t),V(t.rich,i6),t}function i6(t){if(t){t.font=GJ.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||uAe[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||cAe[r]?r:"top";var n=t.padding;n&&(t.padding=ED(t.padding))}}function o6(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function s6(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function l6(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function u6(t){var e=t.text;return e!=null&&(e+=""),e}function SN(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const mr=GJ;var Pt=wr(),D$=function(t,e,r,n){if(n){var a=Pt(n);a.dataIndex=r,a.dataType=e,a.seriesIndex=t,n.type==="group"&&n.traverse(function(i){var o=Pt(i);o.seriesIndex=t,o.dataIndex=r,o.dataType=e})}},c6=1,f6={},qJ=wr(),y3=wr(),b3=0,$S=1,zD=2,lo=["emphasis","blur","select"],K1=["normal","emphasis","blur","select"],j0=10,dAe=9,Xv="highlight",tR="downplay",_1="select",rR="unselect",S1="toggleSelect";function wy(t){return t!=null&&t!=="none"}var d6=new kS(100);function h6(t){if(at(t)){var e=d6.get(t);return e||(e=BR(t,-.1),d6.put(t,e)),e}else if(PS(t)){var r=Ce({},t);return r.colorStops=Oe(t.colorStops,function(n){return{offset:n.offset,color:BR(n.color,-.1)}}),r}return t}function $D(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function XJ(t){$D(t,"emphasis",zD)}function ZJ(t){t.hoverState===zD&&$D(t,"normal",b3)}function x3(t){$D(t,"blur",$S)}function KJ(t){t.hoverState===$S&&$D(t,"normal",b3)}function hAe(t){t.selected=!0}function pAe(t){t.selected=!1}function p6(t,e,r){e(t,r)}function Rf(t,e,r){p6(t,e,r),t.isGroup&&t.traverse(function(n){p6(n,e,r)})}function WR(t,e){switch(e){case"emphasis":t.hoverState=zD;break;case"normal":t.hoverState=b3;break;case"blur":t.hoverState=$S;break;case"select":t.selected=!0}}function vAe(t,e,r,n){for(var a=t.style,i={},o=0;o<e.length;o++){var s=e[o],l=a[s];i[s]=l??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function gAe(t,e,r,n){var a=r&&Qt(r,"select")>=0,i=!1;if(t instanceof ir){var o=qJ(t),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(wy(s)||wy(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=Ce({},n),u=Ce({},u),u.fill=s):!wy(u.fill)&&wy(s)?(i=!0,n=Ce({},n),u=Ce({},u),u.fill=h6(s)):!wy(u.stroke)&&wy(l)&&(i||(n=Ce({},n),u=Ce({},u)),u.stroke=h6(l)),n.style=u}}if(n&&n.z2==null){i||(n=Ce({},n));var c=t.z2EmphasisLift;n.z2=t.z2+(c??j0)}return n}function mAe(t,e,r){if(r&&r.z2==null){r=Ce({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??dAe)}return r}function yAe(t,e,r){var n=Qt(t.currentStates,e)>=0,a=t.style.opacity,i=n?null:vAe(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Ce({},r),o=Ce({opacity:n?a:i.opacity*.1},o),r.style=o),r}function wN(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return gAe(this,t,e,r);if(t==="blur")return yAe(this,t,r);if(t==="select")return mAe(this,t,r)}return r}function hg(t){t.stateProxy=wN;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=wN),r&&(r.stateProxy=wN)}function v6(t,e){!tee(t,e)&&!t.__highByOuter&&Rf(t,XJ)}function g6(t,e){!tee(t,e)&&!t.__highByOuter&&Rf(t,ZJ)}function yf(t,e){t.__highByOuter|=1<<(e||0),Rf(t,XJ)}function bf(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Rf(t,ZJ)}function QJ(t){Rf(t,x3)}function _3(t){Rf(t,KJ)}function JJ(t){Rf(t,hAe)}function eee(t){Rf(t,pAe)}function tee(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ree(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(a,i){var o=y3(i),s=a==="series",l=s?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){KJ(u)}),s&&r.push(i)),o.isBlured=!1}),V(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,e)})}function I$(t,e,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(u,c){for(var d=0;d<c.length;d++){var p=u.getItemGraphicEl(c[d]);p&&_3(p)}}if(t!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var c=o===u,d=u.coordinateSystem;d&&d.master&&(d=d.master);var p=d&&s?d===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!p||e==="series"&&c)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(x){x3(x)}),_i(e))i(u.getData(),e);else if(St(e))for(var g=sr(e),m=0;m<g.length;m++)i(u.getData(g[m]),e[g[m]]);l.push(u),y3(u).isBlured=!0}}),a.eachComponent(function(u,c){if(u!=="series"){var d=n.getViewOfComponentModel(c);d&&d.toggleBlurSeries&&d.toggleBlurSeries(l,!0,a)}})}}function P$(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){y3(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){x3(i)})}}}function bAe(t,e,r){var n=t.seriesIndex,a=t.getData(e.dataType);if(!a){Si("Unknown dataType "+e.dataType);return}var i=fg(a,e);i=(Le(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=Pt(o);I$(n,u.focus,u.blurScope,r)}else{var c=t.get(["emphasis","focus"]),d=t.get(["emphasis","blurScope"]);c!=null&&I$(n,c,d,r)}}function S3(t,e,r,n){var a={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return a;var i=n.getModel().getComponent(t,e);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(gh(s[u])||Si("param should be highDownDispatcher"),Pt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function xAe(t,e,r){gh(t)||Si("param should be highDownDispatcher");var n=Pt(t),a=S3(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers,o=a.focusSelf;i?(o&&P$(n.componentMainType,n.componentIndex,r),V(i,function(s){return v6(s,e)})):(I$(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&P$(n.componentMainType,n.componentIndex,r),v6(t,e))}function _Ae(t,e,r){gh(t)||Si("param should be highDownDispatcher"),ree(r);var n=Pt(t),a=S3(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?V(a,function(i){return g6(i,e)}):g6(t,e)}function SAe(t,e,r){if(O$(e)){var n=e.dataType,a=t.getData(n),i=fg(a,e);Le(i)||(i=[i]),t[e.type===S1?"toggleSelect":e.type===_1?"select":"unselect"](i,n)}}function m6(t){var e=t.getAllData();V(e,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(i,o){t.isSelected(o,a)?JJ(i):eee(i)})})}function wAe(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();V(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),e.push(s)}})}),e}function sh(t,e,r){Uv(t,!0),Rf(t,hg),L$(t,e,r)}function TAe(t){Uv(t,!1)}function Zn(t,e,r,n){n?TAe(t):sh(t,e,r)}function L$(t,e,r){var n=Pt(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var y6=["emphasis","blur","select"],CAe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function wi(t,e,r,n){r=r||"itemStyle";for(var a=0;a<y6.length;a++){var i=y6[a],o=e.getModel([i,r]),s=t.ensureState(i);s.style=n?n(o):o[CAe[r]]()}}function Uv(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function gh(t){return!!(t&&t.__highDownDispatcher)}function AAe(t,e,r){var n=Pt(t);n.componentMainType=e.mainType,n.componentIndex=e.componentIndex,n.componentHighDownName=r}function EAe(t){var e=f6[t];return e==null&&c6<=32&&(e=f6[t]=c6++),e}function O$(t){var e=t.type;return e===_1||e===rR||e===S1}function b6(t){var e=t.type;return e===Xv||e===tR}function RAe(t){var e=qJ(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var Ty=hc.CMD,MAe=[[],[],[]],x6=Math.sqrt,DAe=Math.atan2;function nee(t,e){if(e){var r=t.data,n=t.len(),a,i,o,s,l,u,c=Ty.M,d=Ty.C,p=Ty.L,v=Ty.R,g=Ty.A,m=Ty.Q;for(o=0,s=0;o<n;){switch(a=r[o++],s=o,i=0,a){case c:i=1;break;case p:i=1;break;case d:i=3;break;case m:i=2;break;case g:var x=e[4],_=e[5],w=x6(e[0]*e[0]+e[1]*e[1]),T=x6(e[2]*e[2]+e[3]*e[3]),A=DAe(-e[1]/T,e[0]/w);r[o]*=w,r[o++]+=x,r[o]*=T,r[o++]+=_,r[o++]*=w,r[o++]*=T,r[o++]+=A,r[o++]+=A,o+=2,s=o;break;case v:u[0]=r[o++],u[1]=r[o++],ii(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],ii(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<i;l++){var M=MAe[l];M[0]=r[o++],M[1]=r[o++],ii(M,M,e),r[s++]=M[0],r[s++]=M[1]}}t.increaseVersion()}}var TN=Math.sqrt,ZA=Math.sin,KA=Math.cos,w_=Math.PI;function _6(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function k$(t,e){return(t[0]*e[0]+t[1]*e[1])/(_6(t)*_6(e))}function S6(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(k$(t,e))}function w6(t,e,r,n,a,i,o,s,l,u,c){var d=l*(w_/180),p=KA(d)*(t-r)/2+ZA(d)*(e-n)/2,v=-1*ZA(d)*(t-r)/2+KA(d)*(e-n)/2,g=p*p/(o*o)+v*v/(s*s);g>1&&(o*=TN(g),s*=TN(g));var m=(a===i?-1:1)*TN((o*o*(s*s)-o*o*(v*v)-s*s*(p*p))/(o*o*(v*v)+s*s*(p*p)))||0,x=m*o*v/s,_=m*-s*p/o,w=(t+r)/2+KA(d)*x-ZA(d)*_,T=(e+n)/2+ZA(d)*x+KA(d)*_,A=S6([1,0],[(p-x)/o,(v-_)/s]),M=[(p-x)/o,(v-_)/s],D=[(-1*p-x)/o,(-1*v-_)/s],P=S6(M,D);if(k$(M,D)<=-1&&(P=w_),k$(M,D)>=1&&(P=0),P<0){var O=Math.round(P/w_*1e6)/1e6;P=w_*2+O%2*w_}c.addData(u,w,T,o,s,A,P,d,i)}var IAe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,PAe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function LAe(t){var e=new hc;if(!t)return e;var r=0,n=0,a=r,i=n,o,s=hc.CMD,l=t.match(IAe);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],d=c.charAt(0),p=void 0,v=c.match(PAe)||[],g=v.length,m=0;m<g;m++)v[m]=parseFloat(v[m]);for(var x=0;x<g;){var _=void 0,w=void 0,T=void 0,A=void 0,M=void 0,D=void 0,P=void 0,O=r,k=n,N=void 0,$=void 0;switch(d){case"l":r+=v[x++],n+=v[x++],p=s.L,e.addData(p,r,n);break;case"L":r=v[x++],n=v[x++],p=s.L,e.addData(p,r,n);break;case"m":r+=v[x++],n+=v[x++],p=s.M,e.addData(p,r,n),a=r,i=n,d="l";break;case"M":r=v[x++],n=v[x++],p=s.M,e.addData(p,r,n),a=r,i=n,d="L";break;case"h":r+=v[x++],p=s.L,e.addData(p,r,n);break;case"H":r=v[x++],p=s.L,e.addData(p,r,n);break;case"v":n+=v[x++],p=s.L,e.addData(p,r,n);break;case"V":n=v[x++],p=s.L,e.addData(p,r,n);break;case"C":p=s.C,e.addData(p,v[x++],v[x++],v[x++],v[x++],v[x++],v[x++]),r=v[x-2],n=v[x-1];break;case"c":p=s.C,e.addData(p,v[x++]+r,v[x++]+n,v[x++]+r,v[x++]+n,v[x++]+r,v[x++]+n),r+=v[x-2],n+=v[x-1];break;case"S":_=r,w=n,N=e.len(),$=e.data,o===s.C&&(_+=r-$[N-4],w+=n-$[N-3]),p=s.C,O=v[x++],k=v[x++],r=v[x++],n=v[x++],e.addData(p,_,w,O,k,r,n);break;case"s":_=r,w=n,N=e.len(),$=e.data,o===s.C&&(_+=r-$[N-4],w+=n-$[N-3]),p=s.C,O=r+v[x++],k=n+v[x++],r+=v[x++],n+=v[x++],e.addData(p,_,w,O,k,r,n);break;case"Q":O=v[x++],k=v[x++],r=v[x++],n=v[x++],p=s.Q,e.addData(p,O,k,r,n);break;case"q":O=v[x++]+r,k=v[x++]+n,r+=v[x++],n+=v[x++],p=s.Q,e.addData(p,O,k,r,n);break;case"T":_=r,w=n,N=e.len(),$=e.data,o===s.Q&&(_+=r-$[N-4],w+=n-$[N-3]),r=v[x++],n=v[x++],p=s.Q,e.addData(p,_,w,r,n);break;case"t":_=r,w=n,N=e.len(),$=e.data,o===s.Q&&(_+=r-$[N-4],w+=n-$[N-3]),r+=v[x++],n+=v[x++],p=s.Q,e.addData(p,_,w,r,n);break;case"A":T=v[x++],A=v[x++],M=v[x++],D=v[x++],P=v[x++],O=r,k=n,r=v[x++],n=v[x++],p=s.A,w6(O,k,r,n,D,P,T,A,M,p,e);break;case"a":T=v[x++],A=v[x++],M=v[x++],D=v[x++],P=v[x++],O=r,k=n,r+=v[x++],n+=v[x++],p=s.A,w6(O,k,r,n,D,P,T,A,M,p,e);break}}(d==="z"||d==="Z")&&(p=s.Z,e.addData(p),r=a,n=i),o=p}return e.toStatic(),e}var aee=function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e}(ir);function iee(t){return t.setData!=null}function oee(t,e){var r=LAe(t),n=Ce({},e);return n.buildPath=function(a){if(iee(a)){a.setData(r.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;r.rebuildPath(i,1)}},n.applyTransform=function(a){nee(r,a),this.dirtyShape()},n}function see(t,e){return new aee(oee(t,e))}function OAe(t,e){var r=oee(t,e),n=function(a){he(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return i}(aee);return n}function kAe(t,e){for(var r=[],n=t.length,a=0;a<n;a++){var i=t[a];r.push(i.getUpdatedPathProxy(!0))}var o=new ir(e);return o.createPathProxy(),o.buildPath=function(s){if(iee(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function w3(t,e){e=e||{};var r=new ir;return t.shape&&r.setShape(t.shape),r.setStyle(t.style),e.bakeTransform?nee(r.path,t.getComputedTransform()):e.toLocal?r.setLocalTransform(t.getComputedTransform()):r.copyTransform(t),r.buildPath=t.buildPath,r.applyTransform=r.applyTransform,r.z=t.z,r.z2=t.z2,r.zlevel=t.zlevel,r}var NAe=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),lee=function(t){he(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new NAe},e.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)},e}(ir);lee.prototype.type="circle";const ru=lee;var BAe=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),uee=function(t){he(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new BAe},e.prototype.buildPath=function(r,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,c=l*a;r.moveTo(i-s,o),r.bezierCurveTo(i-s,o-c,i-u,o-l,i,o-l),r.bezierCurveTo(i+u,o-l,i+s,o-c,i+s,o),r.bezierCurveTo(i+s,o+c,i+u,o+l,i,o+l),r.bezierCurveTo(i-u,o+l,i-s,o+c,i-s,o),r.closePath()},e}(ir);uee.prototype.type="ellipse";const FD=uee;var cee=Math.PI,CN=cee*2,uv=Math.sin,Cy=Math.cos,zAe=Math.acos,Ni=Math.atan2,T6=Math.abs,w1=Math.sqrt,Q_=Math.max,Wu=Math.min,Wl=1e-4;function $Ae(t,e,r,n,a,i,o,s){var l=r-t,u=n-e,c=o-a,d=s-i,p=d*l-c*u;if(!(p*p<Wl))return p=(c*(e-i)-d*(t-a))/p,[t+p*l,e+p*u]}function QA(t,e,r,n,a,i,o){var s=t-r,l=e-n,u=(o?i:-i)/w1(s*s+l*l),c=u*l,d=-u*s,p=t+c,v=e+d,g=r+c,m=n+d,x=(p+g)/2,_=(v+m)/2,w=g-p,T=m-v,A=w*w+T*T,M=a-i,D=p*m-g*v,P=(T<0?-1:1)*w1(Q_(0,M*M*A-D*D)),O=(D*T-w*P)/A,k=(-D*w-T*P)/A,N=(D*T+w*P)/A,$=(-D*w+T*P)/A,H=O-x,F=k-_,W=N-x,j=$-_;return H*H+F*F>W*W+j*j&&(O=N,k=$),{cx:O,cy:k,x0:-c,y0:-d,x1:O*(a/M-1),y1:k*(a/M-1)}}function FAe(t){var e;if(Le(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function VAe(t,e){var r,n=Q_(e.r,0),a=Q_(e.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=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,d=e.cy,p=!!e.clockwise,v=T6(u-l),g=v>CN&&v%CN;if(g>Wl&&(v=g),!(n>Wl))t.moveTo(c,d);else if(v>CN-Wl)t.moveTo(c+n*Cy(l),d+n*uv(l)),t.arc(c,d,n,l,u,!p),a>Wl&&(t.moveTo(c+a*Cy(u),d+a*uv(u)),t.arc(c,d,a,u,l,p));else{var m=void 0,x=void 0,_=void 0,w=void 0,T=void 0,A=void 0,M=void 0,D=void 0,P=void 0,O=void 0,k=void 0,N=void 0,$=void 0,H=void 0,F=void 0,W=void 0,j=n*Cy(l),X=n*uv(l),te=a*Cy(u),J=a*uv(u),ie=v>Wl;if(ie){var se=e.cornerRadius;se&&(r=FAe(se),m=r[0],x=r[1],_=r[2],w=r[3]);var le=T6(n-a)/2;if(T=Wu(le,_),A=Wu(le,w),M=Wu(le,m),D=Wu(le,x),k=P=Q_(T,A),N=O=Q_(M,D),(P>Wl||O>Wl)&&($=n*Cy(u),H=n*uv(u),F=a*Cy(l),W=a*uv(l),v<cee)){var be=$Ae(j,X,F,W,$,H,te,J);if(be){var Me=j-be[0],Se=X-be[1],Ue=$-be[0],Xe=H-be[1],st=1/uv(zAe((Me*Ue+Se*Xe)/(w1(Me*Me+Se*Se)*w1(Ue*Ue+Xe*Xe)))/2),$e=w1(be[0]*be[0]+be[1]*be[1]);k=Wu(P,(n-$e)/(st+1)),N=Wu(O,(a-$e)/(st-1))}}}if(!ie)t.moveTo(c+j,d+X);else if(k>Wl){var Be=Wu(_,k),et=Wu(w,k),de=QA(F,W,j,X,n,Be,p),xe=QA($,H,te,J,n,et,p);t.moveTo(c+de.cx+de.x0,d+de.cy+de.y0),k<P&&Be===et?t.arc(c+de.cx,d+de.cy,k,Ni(de.y0,de.x0),Ni(xe.y0,xe.x0),!p):(Be>0&&t.arc(c+de.cx,d+de.cy,Be,Ni(de.y0,de.x0),Ni(de.y1,de.x1),!p),t.arc(c,d,n,Ni(de.cy+de.y1,de.cx+de.x1),Ni(xe.cy+xe.y1,xe.cx+xe.x1),!p),et>0&&t.arc(c+xe.cx,d+xe.cy,et,Ni(xe.y1,xe.x1),Ni(xe.y0,xe.x0),!p))}else t.moveTo(c+j,d+X),t.arc(c,d,n,l,u,!p);if(!(a>Wl)||!ie)t.lineTo(c+te,d+J);else if(N>Wl){var Be=Wu(m,N),et=Wu(x,N),de=QA(te,J,$,H,a,-et,p),xe=QA(j,X,F,W,a,-Be,p);t.lineTo(c+de.cx+de.x0,d+de.cy+de.y0),N<O&&Be===et?t.arc(c+de.cx,d+de.cy,N,Ni(de.y0,de.x0),Ni(xe.y0,xe.x0),!p):(et>0&&t.arc(c+de.cx,d+de.cy,et,Ni(de.y0,de.x0),Ni(de.y1,de.x1),!p),t.arc(c,d,a,Ni(de.cy+de.y1,de.cx+de.x1),Ni(xe.cy+xe.y1,xe.cx+xe.x1),p),Be>0&&t.arc(c+xe.cx,d+xe.cy,Be,Ni(xe.y1,xe.x1),Ni(xe.y0,xe.x0),!p))}else t.lineTo(c+te,d+J),t.arc(c,d,a,u,l,p)}t.closePath()}}}var UAe=function(){function t(){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 t}(),fee=function(t){he(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new UAe},e.prototype.buildPath=function(r,n){VAe(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(ir);fee.prototype.type="sector";const uo=fee;var WAe=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),dee=function(t){he(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new WAe},e.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)},e}(ir);dee.prototype.type="ring";const FS=dee;function HAe(t,e,r,n){var a=[],i=[],o=[],s=[],l,u,c,d;if(n){c=[1/0,1/0],d=[-1/0,-1/0];for(var p=0,v=t.length;p<v;p++)sf(c,c,t[p]),lf(d,d,t[p]);sf(c,c,n[0]),lf(d,d,n[1])}for(var p=0,v=t.length;p<v;p++){var g=t[p];if(r)l=t[p?p-1:v-1],u=t[(p+1)%v];else if(p===0||p===v-1){a.push(sc(t[p]));continue}else l=t[p-1],u=t[p+1];Kd(i,u,l),v1(i,i,e);var m=OR(g,l),x=OR(g,u),_=m+x;_!==0&&(m/=_,x/=_),v1(o,i,-m),v1(s,i,x);var w=i$([],g,o),T=i$([],g,s);n&&(lf(w,w,c),sf(w,w,d),lf(T,T,c),sf(T,T,d)),a.push(w),a.push(T)}return r&&a.push(a.shift()),a}function hee(t,e,r){var n=e.smooth,a=e.points;if(a&&a.length>=2){if(n){var i=HAe(a,n,r,e.smoothConstraint);t.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],c=a[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var s=1,d=a.length;s<d;s++)t.lineTo(a[s][0],a[s][1])}r&&t.closePath()}}var GAe=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),pee=function(t){he(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new GAe},e.prototype.buildPath=function(r,n){hee(r,n,!0)},e}(ir);pee.prototype.type="polygon";const co=pee;var jAe=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),vee=function(t){he(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new jAe},e.prototype.buildPath=function(r,n){hee(r,n,!1)},e}(ir);vee.prototype.type="polyline";const fo=vee;var YAe={},qAe=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),gee=function(t){he(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new qAe},e.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=UJ(YAe,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))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e}(ir);gee.prototype.type="line";const Ba=gee;var Do=[],XAe=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function C6(t,e,r){var n=t.cpx2,a=t.cpy2;return n!=null||a!=null?[(r?Rj:Na)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?Rj:Na)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?f$:ni)(t.x1,t.cpx1,t.x2,e),(r?f$:ni)(t.y1,t.cpy1,t.y2,e)]}var mee=function(t){he(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new XAe},e.prototype.buildPath=function(r,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,d=n.cpy2,p=n.percent;p!==0&&(r.moveTo(a,i),c==null||d==null?(p<1&&(H1(a,l,o,p,Do),l=Do[1],o=Do[2],H1(i,u,s,p,Do),u=Do[1],s=Do[2]),r.quadraticCurveTo(l,u,o,s)):(p<1&&(vh(a,l,c,o,p,Do),l=Do[1],c=Do[2],o=Do[3],vh(i,u,d,s,p,Do),u=Do[1],d=Do[2],s=Do[3]),r.bezierCurveTo(l,u,c,d,o,s)))},e.prototype.pointAt=function(r){return C6(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=C6(this.shape,r,!0);return _g(n,n)},e}(ir);mee.prototype.type="bezier-curve";const VS=mee;var ZAe=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),yee=function(t){he(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ZAe},e.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,c=Math.cos(s),d=Math.sin(s);r.moveTo(c*o+a,d*o+i),r.arc(a,i,o,s,l,!u)},e}(ir);yee.prototype.type="arc";const VD=yee;var KAe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.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()},e.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)},e.prototype.buildPath=function(r,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(r,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ir.prototype.getBoundingRect.call(this)},e}(ir);const UD=KAe;var QAe=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t}();const bee=QAe;var JAe=function(t){he(e,t);function e(r,n,a,i,o,s){var l=t.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 e}(bee);const Y0=JAe;var eEe=function(t){he(e,t);function e(r,n,a,i,o){var s=t.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 e}(bee);const T3=eEe;var cv=[0,0],fv=[0,0],JA=new Wt,eE=new Wt,tEe=function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Wt;for(var n=0;n<2;n++)this._axes[n]=new Wt;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,a=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.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);Wt.sub(a[0],n[1],n[0]),Wt.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])},t.prototype.intersect=function(e,r){var n=!0,a=!r;return JA.set(1/0,1/0),eE.set(0,0),!this._intersectCheckOneSide(this,e,JA,eE,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(e,this,JA,eE,a,-1)&&(n=!1,a)||a||Wt.copy(r,n?JA:eE),n},t.prototype._intersectCheckOneSide=function(e,r,n,a,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,cv),this._getProjMinMaxOnAxis(l,r._corners,fv),cv[1]<fv[0]||cv[0]>fv[1]){if(s=!1,i)return s;var c=Math.abs(fv[0]-cv[1]),d=Math.abs(cv[0]-fv[1]);Math.min(c,d)>a.len()&&(c<d?Wt.scale(a,u,-c*o):Wt.scale(a,u,d*o))}else if(n){var c=Math.abs(fv[0]-cv[1]),d=Math.abs(cv[0]-fv[1]);Math.min(c,d)<n.len()&&(c<d?Wt.scale(n,u,c*o):Wt.scale(n,u,-d*o))}}return s},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var a=this._axes[e],i=this._origin,o=r[0].dot(a)+i[e],s=o,l=o,u=1;u<r.length;u++){var c=r[u].dot(a)+i[e];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},t}();const HR=tEe;var rEe=[],nEe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.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])},e.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}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new Ht(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(rEe)),r.union(i)}this._rect=r}return this._rect},e.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},e}(cl);const xee=nEe;var _ee=wr();function q0(t,e,r,n,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,c=void 0,d=void 0;n?(u=$t(n.duration,200),c=$t(n.easing,"cubicOut"),d=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),d=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(d=i.delay)),vt(d)&&(d=d(r,a)),vt(u)&&(u=u(r));var p={duration:u||0,delay:d,easing:c};return p}else return null}function C3(t,e,r,n,a,i,o){var s=!1,l;vt(a)?(o=i,i=a,a=null):St(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var c=q0(t,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null);if(c&&c.duration>0){var d=c.duration,p=c.delay,v=c.easing,g={duration:d,delay:p||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,g):e.animateTo(r,g)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),i&&i()}function Sr(t,e,r,n,a,i){C3("update",t,e,r,n,a,i)}function In(t,e,r,n,a,i){C3("enter",t,e,r,n,a,i)}function c0(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function mh(t,e,r,n,a,i){c0(t)||C3("leave",t,e,r,n,a,i)}function A6(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),mh(t,{style:{opacity:0}},e,r,n)}function Q1(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||A6(a,e,r,n)}):A6(t,e,r,n)}function nu(t){_ee(t).oldStyle=t.style}function aEe(t){return _ee(t).oldStyle}var GR=Math.max,jR=Math.min,N$={};function See(t){return ir.extend(t)}var iEe=OAe;function wee(t,e){return iEe(t,e)}function hl(t,e){N$[t]=e}function WD(t){if(N$.hasOwnProperty(t))return N$[t]}function US(t,e,r,n){var a=see(t,e);return r&&(n==="center"&&(r=Tee(r,a.getBoundingRect())),E3(a,r)),a}function A3(t,e,r){var n=new si({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(r==="center"){var i={width:a.width,height:a.height};n.setStyle(Tee(e,i))}}});return n}function Tee(t,e){var r=e.width/e.height,n=t.height*r,a;n<=t.width?a=t.height:(n=t.width,a=n/r);var i=t.x+t.width/2,o=t.y+t.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var os=kAe;function E3(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function A0(t,e){return UJ(t,t,{lineWidth:e}),t}function oEe(t){return WJ(t.shape,t.shape,t.style),t}var nR=Vv;function lh(t,e){for(var r=OS([]);t&&t!==e;)lc(r,t.getLocalTransform(),r),t=t.parent;return r}function Ql(t,e,r){return e&&!_i(e)&&(e=uf.getLocalTransform(e)),r&&(e=Sg([],e)),ii([],t,e)}function HD(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),i=[t==="left"?-n:t==="right"?n:0,t==="top"?-a:t==="bottom"?a:0];return i=Ql(i,e,r),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function E6(t){return!t.isGroup}function sEe(t){return t.shape!=null}function WS(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){E6(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return sEe(o)&&(s.shape=Ce({},o.shape)),s}var i=n(t);e.traverse(function(o){if(E6(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Sr(o,l,r,Pt(o).dataIndex)}}})}function R3(t,e){return Oe(t,function(r){var n=r[0];n=GR(n,e.x),n=jR(n,e.x+e.width);var a=r[1];return a=GR(a,e.y),a=jR(a,e.y+e.height),[n,a]})}function Cee(t,e){var r=GR(t.x,e.x),n=jR(t.x+t.width,e.x+e.width),a=GR(t.y,e.y),i=jR(t.y+t.height,e.y+e.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function X0(t,e,r){var n=Ce({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(a.image=t.slice(8),wt(a,r),new si(n)):US(t.replace("path://",""),n,r,"center")}function J_(t,e,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(Aee(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function Aee(t,e,r,n,a,i,o,s){var l=r-t,u=n-e,c=o-a,d=s-i,p=AN(c,d,l,u);if(lEe(p))return!1;var v=t-a,g=e-i,m=AN(v,g,l,u)/p;if(m<0||m>1)return!1;var x=AN(v,g,c,d)/p;return!(x<0||x>1)}function AN(t,e,r,n){return t*n-r*e}function lEe(t){return t<=1e-6&&t>=-1e-6}function Z0(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,a=at(e)?{formatter:e}:e,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=t.formatterParamsExtra;l&&V(sr(l),function(c){it(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Pt(t.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:wt({content:n,formatterParams:s},a)}}function R6(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Oh(t,e){if(t)if(Le(t))for(var r=0;r<t.length;r++)R6(t[r],e);else R6(t,e)}hl("circle",ru);hl("ellipse",FD);hl("sector",uo);hl("ring",FS);hl("polygon",co);hl("polyline",fo);hl("rect",yr);hl("line",Ba);hl("bezierCurve",VS);hl("arc",VD);const HS=Object.freeze(Object.defineProperty({__proto__:null,Arc:VD,BezierCurve:VS,BoundingRect:Ht,Circle:ru,CompoundPath:UD,Ellipse:FD,Group:It,Image:si,IncrementalDisplayable:xee,Line:Ba,LinearGradient:Y0,OrientedBoundingRect:HR,Path:ir,Point:Wt,Polygon:co,Polyline:fo,RadialGradient:T3,Rect:yr,Ring:FS,Sector:uo,Text:mr,applyTransform:Ql,clipPointsByRect:R3,clipRectByRect:Cee,createIcon:X0,extendPath:wee,extendShape:See,getShapeClass:WD,getTransform:lh,groupTransition:WS,initProps:In,isElementRemoved:c0,lineLineIntersect:Aee,linePolygonIntersect:J_,makeImage:A3,makePath:US,mergePath:os,registerShape:hl,removeElement:mh,removeElementWithFadeOut:Q1,resizePath:E3,setTooltipConfig:Z0,subPixelOptimize:nR,subPixelOptimizeLine:A0,subPixelOptimizeRect:oEe,transformDirection:HD,traverseElements:Oh,updateProps:Sr},Symbol.toStringTag,{value:"Module"}));var GD={};function Eee(t,e){for(var r=0;r<lo.length;r++){var n=lo[r],a=e[n],i=t.ensureState(n);i.style=i.style||{},i.style.text=a}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function B$(t,e,r){var n=t.labelFetcher,a=t.labelDataIndex,i=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=vt(t.defaultText)?t.defaultText(a,t,r):t.defaultText);for(var l={normal:s},u=0;u<lo.length;u++){var c=lo[u],d=e[c];l[c]=$t(n?n.getFormattedLabel(a,c,null,i,d&&d.get("formatter")):null,s)}return l}function Ti(t,e,r,n){r=r||GD;for(var a=t instanceof mr,i=!1,o=0;o<K1.length;o++){var s=e[K1[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?t:t.getTextContent();if(i){a||(l||(l=new mr,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=B$(r,e),c=e.normal,d=!!c.getShallow("show"),p=cn(c,n&&n.normal,r,!1,!a);p.text=u.normal,a||t.setTextConfig(YR(c,r,!1));for(var o=0;o<lo.length;o++){var v=lo[o],s=e[v];if(s){var g=l.ensureState(v),m=!!$t(s.getShallow("show"),d);if(m!==d&&(g.ignore=!m),g.style=cn(s,n&&n[v],r,!0,!a),g.style.text=u[v],!a){var x=t.ensureState(v);x.textConfig=YR(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(p.x=l.style.x),l.style.y!=null&&(p.y=l.style.y),l.ignore=!d,l.useStyle(p),l.dirty(),r.enableTextSetter&&(K0(l).setLabelText=function(_){var w=B$(r,e,_);Eee(l,w)})}else l&&(l.ignore=!0);t.dirty()}function $a(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<lo.length;n++){var a=lo[n];r[a]=t.getModel([a,e])}return r}function cn(t,e,r,n,a){var i={};return uEe(i,t,r,n,a),e&&Ce(i,e),i}function YR(t,e,r){e=e||{};var n={},a,i=t.getShallow("rotate"),o=$t(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return a=t.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=e.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=t.get("color")==="inherit"?e.inheritColor||null:"auto",n}function uEe(t,e,r,n,a){r=r||GD;var i=e.ecModel,o=i&&i.option.textStyle,s=cEe(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=e.getModel(["rich",u]);P6(l[u]={},c,o,r,n,a,!1,!0)}}l&&(t.rich=l);var d=e.get("overflow");d&&(t.overflow=d);var p=e.get("minMargin");p!=null&&(t.margin=p),P6(t,e,o,r,n,a,!0,!1)}function cEe(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||GD).rich;if(r){e=e||{};for(var n=sr(r),a=0;a<n.length;a++){var i=n[a];e[i]=1}}t=t.parentModel}return e}var M6=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],D6=["align","lineHeight","width","height","tag","verticalAlign"],I6=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function P6(t,e,r,n,a,i,o,s){r=!a&&r||GD;var l=n&&n.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),d=$t(e.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(u==="auto"&&ua("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(c==="inherit"||c==="auto")&&(c==="auto"&&ua("color: 'auto'","color: 'inherit'"),l?c=l:c=null),i||(u=u||r.color,c=c||r.textBorderColor),u!=null&&(t.fill=u),c!=null&&(t.stroke=c);var p=$t(e.getShallow("textBorderWidth"),r.textBorderWidth);p!=null&&(t.lineWidth=p);var v=$t(e.getShallow("textBorderType"),r.textBorderType);v!=null&&(t.lineDash=v);var g=$t(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);g!=null&&(t.lineDashOffset=g),!a&&d==null&&!s&&(d=n&&n.defaultOpacity),d!=null&&(t.opacity=d),!a&&!i&&t.fill==null&&n.inheritColor&&(t.fill=n.inheritColor);for(var m=0;m<M6.length;m++){var x=M6[m],_=$t(e.getShallow(x),r[x]);_!=null&&(t[x]=_)}for(var m=0;m<D6.length;m++){var x=D6[m],_=e.getShallow(x);_!=null&&(t[x]=_)}if(t.verticalAlign==null){var w=e.getShallow("baseline");w!=null&&(t.verticalAlign=w)}if(!o||!n.disableBox){for(var m=0;m<I6.length;m++){var x=I6[m],_=e.getShallow(x);_!=null&&(t[x]=_)}var T=e.getShallow("borderType");T!=null&&(t.borderDash=T),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&l&&(t.backgroundColor==="auto"&&ua("backgroundColor: 'auto'","backgroundColor: 'inherit'"),t.backgroundColor=l),(t.borderColor==="auto"||t.borderColor==="inherit")&&l&&(t.borderColor==="auto"&&ua("borderColor: 'auto'","borderColor: 'inherit'"),t.borderColor=l)}}function Ree(t,e){var r=e&&e.getModel("textStyle");return tl([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var K0=wr();function Mee(t,e,r,n){if(t){var a=K0(t);a.prevValue=a.value,a.value=r;var i=e.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=e)}}function Dee(t,e,r,n,a){var i=K0(t);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=$t(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var d=DJ(r,i.precision,s,l,c);i.interpolatedValue=c===1?null:d;var p=B$({labelDataIndex:e,labelFetcher:a,defaultText:o?o(d):d+""},i.statesModels,d);Eee(t,p)}t.percent=0,(i.prevValue==null?In:Sr)(t,{percent:1},n,e,null,u)}var fEe=["textStyle","color"],EN=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],RN=new mr,dEe=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(fEe):null)},t.prototype.getFont=function(){return Ree({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<EN.length;n++)r[EN[n]]=this.getShallow(EN[n]);return RN.useStyle(r),RN.update(),RN.getBoundingRect()},t}();const hEe=dEe;var Iee=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],pEe=dg(Iee),vEe=function(){function t(){}return t.prototype.getLineStyle=function(e){return pEe(this,e)},t}(),Pee=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],gEe=dg(Pee),mEe=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return gEe(this,e,r)},t}(),wg=function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){Ft(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,a=n==null?n:n[e];if(a==null&&!r){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},t.prototype.getModel=function(e,r){var n=e!=null,a=n?this.parsePath(e):null,i=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new t(i,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(Et(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!gr.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var a=0;a<e.length&&!(e[a]&&(n=n&&typeof n=="object"?n[e[a]]:null,n==null));a++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t}();g3(wg);_Ce(wg);ra(wg,vEe);ra(wg,mEe);ra(wg,ACe);ra(wg,hEe);const Xr=wg;var yEe=Math.round(Math.random()*10);function Q0(t){return[t||"",yEe++].join("_")}function bEe(t){var e={};t.registerSubTypeDefaulter=function(r,n){var a=rc(r);e[a.main]=n},t.determineSubType=function(r,n){var a=n.type;if(!a){var i=rc(r).main;t.hasSubTypes(r)&&e[i]&&(a=e[i](n))}return a}}function xEe(t,e){t.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=r(o),c=u.graph,d=u.noEntryList,p={};for(V(i,function(w){p[w]=!0});d.length;){var v=d.pop(),g=c[v],m=!!p[v];m&&(s.call(l,v,g.originalDeps.slice()),delete p[v]),V(g.successor,m?_:x)}V(p,function(){var w="";throw w=so("Circular dependency may exists: ",p,i,o),new Error(w)});function x(w){c[w].entryCount--,c[w].entryCount===0&&d.push(w)}function _(w){p[w]=!0,x(w)}};function r(i){var o={},s=[];return V(i,function(l){var u=n(o,l),c=u.originalDeps=e(l),d=a(c,i);u.entryCount=d.length,u.entryCount===0&&s.push(l),V(d,function(p){Qt(u.predecessor,p)<0&&u.predecessor.push(p);var v=n(o,p);Qt(v.successor,p)<0&&v.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 V(i,function(l){Qt(o,l)>=0&&s.push(l)}),s}}function kh(t,e){return Ft(Ft({},t,!0),e,!0)}const _Ee={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"}},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:". "}}}},SEe={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:"旭日图"}},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 qR="ZH",M3="EN",J1=M3,aR={},D3={},Lee=gr.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(qR)>-1?qR:J1}():J1;function I3(t,e){t=t.toUpperCase(),D3[t]=new Xr(e),aR[t]=e}function wEe(t){if(at(t)){var e=aR[t.toUpperCase()]||{};return t===qR||t===M3?Et(e):Ft(Et(e),Et(aR[J1]),!1)}else return Ft(Et(t),Et(aR[J1]),!1)}function z$(t){return D3[t]}function TEe(){return D3[J1]}I3(M3,_Ee);I3(qR,SEe);var P3=1e3,L3=P3*60,T1=L3*60,Js=T1*24,L6=Js*365,e1={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},tE="{yyyy}-{MM}-{dd}",O6={year:"{yyyy}",month:"{yyyy}-{MM}",day:tE,hour:tE+" "+e1.hour,minute:tE+" "+e1.minute,second:tE+" "+e1.second,millisecond:e1.none},MN=["year","month","day","hour","minute","second","millisecond"],Oee=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Po(t,e){return t+="","0000".substr(0,e-t.length)+t}function f0(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function CEe(t){return t===f0(t)}function AEe(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function GS(t,e,r,n){var a=ps(t),i=a[O3(r)](),o=a[d0(r)]()+1,s=Math.floor((o-1)/3)+1,l=a[jD(r)](),u=a["get"+(r?"UTC":"")+"Day"](),c=a[eS(r)](),d=(c-1)%12+1,p=a[YD(r)](),v=a[qD(r)](),g=a[XD(r)](),m=n instanceof Xr?n:z$(n||Lee)||TEe(),x=m.getModel("time"),_=x.get("month"),w=x.get("monthAbbr"),T=x.get("dayOfWeek"),A=x.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,i%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,Po(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Po(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,T[u]).replace(/{ee}/g,A[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Po(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Po(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Po(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Po(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Po(g,3)).replace(/{S}/g,g+"")}function EEe(t,e,r,n,a){var i=null;if(at(r))i=r;else if(vt(r))i=r(t.value,e,{level:t.level});else{var o=Ce({},e1);if(t.level>0)for(var s=0;s<MN.length;++s)o[MN[s]]="{primary|"+o[MN[s]]+"}";var l=r?r.inherit===!1?r:wt(r,o):o,u=kee(t.value,a);if(l[u])i=l[u];else if(l.inherit){for(var c=Oee.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(Le(i)){var d=t.level==null?0:t.level>=0?t.level:i.length+t.level;d=Math.min(d,i.length-1),i=i[d]}}return GS(new Date(t.value),i,a,n)}function kee(t,e){var r=ps(t),n=r[d0(e)]()+1,a=r[jD(e)](),i=r[eS(e)](),o=r[YD(e)](),s=r[qD(e)](),l=r[XD(e)](),u=l===0,c=u&&s===0,d=c&&o===0,p=d&&i===0,v=p&&a===1,g=v&&n===1;return g?"year":v?"month":p?"day":d?"hour":c?"minute":u?"second":"millisecond"}function k6(t,e,r){var n=_r(t)?ps(t):t;switch(e=e||kee(t,r),e){case"year":return n[O3(r)]();case"half-year":return n[d0(r)]()>=6?1:0;case"quarter":return Math.floor((n[d0(r)]()+1)/4);case"month":return n[d0(r)]();case"day":return n[jD(r)]();case"half-day":return n[eS(r)]()/24;case"hour":return n[eS(r)]();case"minute":return n[YD(r)]();case"second":return n[qD(r)]();case"millisecond":return n[XD(r)]()}}function O3(t){return t?"getUTCFullYear":"getFullYear"}function d0(t){return t?"getUTCMonth":"getMonth"}function jD(t){return t?"getUTCDate":"getDate"}function eS(t){return t?"getUTCHours":"getHours"}function YD(t){return t?"getUTCMinutes":"getMinutes"}function qD(t){return t?"getUTCSeconds":"getSeconds"}function XD(t){return t?"getUTCMilliseconds":"getMilliseconds"}function REe(t){return t?"setUTCFullYear":"setFullYear"}function Nee(t){return t?"setUTCMonth":"setMonth"}function Bee(t){return t?"setUTCDate":"setDate"}function zee(t){return t?"setUTCHours":"setHours"}function $ee(t){return t?"setUTCMinutes":"setMinutes"}function Fee(t){return t?"setUTCSeconds":"setSeconds"}function Vee(t){return t?"setUTCMilliseconds":"setMilliseconds"}function MEe(t,e,r,n,a,i,o,s){var l=new mr({style:{text:t,font:e,align:r,verticalAlign:n,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function k3(t){if(!PD(t))return at(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function N3(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Tg=ED;function $$(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&tl(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?ps(t):t;if(isNaN(+l)){if(s)return"-"}else return GS(l,n,r)}if(e==="ordinal")return F1(t)?a(t):_r(t)&&i(t)?t+"":"-";var u=dc(t);return i(u)?k3(u):F1(t)?a(t):typeof t=="boolean"?t+"":"-"}var N6=["a","b","c","d","e","f","g"],DN=function(t,e){return"{"+t+(e??"")+"}"};function B3(t,e,r){Le(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=N6[i];t=t.replace(DN(o),DN(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];t=t.replace(DN(N6[l],s),r?ao(u):u)}return t}function DEe(t,e,r){return V(e,function(n,a){t=t.replace("{"+a+"}",r?ao(n):n)}),t}function Uee(t,e){var r=at(t)?{color:t,extraCssText:e}:t||{},n=r.color,a=r.type;e=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:'+ao(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ao(n)+";"+(e||"")+'"></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 IEe(t,e,r){ua("echarts.format.formatTime","echarts.time.format"),(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd yyyy`);var n=ps(e),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"](),c=n[a+"Seconds"](),d=n[a+"Milliseconds"]();return t=t.replace("MM",Po(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Po(i%100+"",2)).replace("dd",Po(s,2)).replace("d",s).replace("hh",Po(l,2)).replace("h",l).replace("mm",Po(u,2)).replace("m",u).replace("ss",Po(c,2)).replace("s",c).replace("SSS",Po(d,3)),t}function PEe(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function pg(t,e){return e=e||"transparent",at(t)?t:St(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function XR(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var iR=V,Wee=["left","right","top","bottom","width","height"],Wv=[["width","left","right"],["height","top","bottom"]];function z3(t,e,r,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),d=e.childAt(u+1),p=d&&d.getBoundingRect(),v,g;if(t==="horizontal"){var m=c.width+(p?-p.x+c.x:0);v=i+m,v>n||l.newline?(i=0,v=m,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var x=c.height+(p?-p.y+c.y:0);g=o+x,g>a||l.newline?(i+=s+r,o=0,g=x,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),t==="horizontal"?i=v+r:o=g+r)})}var Zv=z3;Lt(z3,"vertical");Lt(z3,"horizontal");function LEe(t,e,r){var n=e.width,a=e.height,i=Qe(t.left,n),o=Qe(t.top,a),s=Qe(t.right,n),l=Qe(t.bottom,a);return(isNaN(i)||isNaN(parseFloat(t.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(t.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=a),r=Tg(r||0),{width:Math.max(s-i-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function _a(t,e,r){r=Tg(r||0);var n=e.width,a=e.height,i=Qe(t.left,n),o=Qe(t.top,a),s=Qe(t.right,n),l=Qe(t.bottom,a),u=Qe(t.width,n),c=Qe(t.height,a),d=r[2]+r[0],p=r[1]+r[3],v=t.aspect;switch(isNaN(u)&&(u=n-s-p-i),isNaN(c)&&(c=a-l-d-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>n/a?u=n*.8:c=a*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(i)&&(i=n-s-u-p),isNaN(o)&&(o=a-l-c-d),t.left||t.right){case"center":i=n/2-u/2-r[3];break;case"right":i=n-u-p;break}switch(t.top||t.bottom){case"middle":case"center":o=a/2-c/2-r[0];break;case"bottom":o=a-c-d;break}i=i||0,o=o||0,isNaN(u)&&(u=n-p-i-(s||0)),isNaN(c)&&(c=a-d-o-(l||0));var g=new Ht(i+r[3],o+r[0],u,c);return g.margin=r,g}function ZD(t,e,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||t,i.x=t.x,i.y=t.y,!o&&!s)return!1;var u;if(l==="raw")u=t.type==="group"?new Ht(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();u=u.clone(),u.applyTransform(c)}var d=_a(wt({width:u.width,height:u.height},e),r,n),p=o?d.x-u.x:0,v=s?d.y-u.y:0;return l==="raw"?(i.x=p,i.y=v):(i.x+=p,i.y+=v),i===t&&t.markRedraw(),!0}function OEe(t,e){return t[Wv[e][0]]!=null||t[Wv[e][1]]!=null&&t[Wv[e][2]]!=null}function tS(t){var e=t.layoutMode||t.constructor.layoutMode;return St(e)?e:e?{type:e}:null}function yh(t,e,r){var n=r&&r.ignoreSize;!Le(n)&&(n=[n,n]);var a=o(Wv[0],0),i=o(Wv[1],1);u(Wv[0],t,a),u(Wv[1],t,i);function o(c,d){var p={},v=0,g={},m=0,x=2;if(iR(c,function(T){g[T]=t[T]}),iR(c,function(T){s(e,T)&&(p[T]=g[T]=e[T]),l(p,T)&&v++,l(g,T)&&m++}),n[d])return l(e,c[1])?g[c[2]]=null:l(e,c[2])&&(g[c[1]]=null),g;if(m===x||!v)return g;if(v>=x)return p;for(var _=0;_<c.length;_++){var w=c[_];if(!s(p,w)&&s(t,w)){p[w]=t[w];break}}return p}function s(c,d){return c.hasOwnProperty(d)}function l(c,d){return c[d]!=null&&c[d]!=="auto"}function u(c,d,p){iR(c,function(v){d[v]=p[v]})}}function J0(t){return Hee({},t)}function Hee(t,e){return e&&t&&iR(Wee,function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var kEe=wr(),eb=function(t){he(e,t);function e(r,n,a){var i=t.call(this,r,n,a)||this;return i.uid=Q0("ec_cpt_model"),i}return e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=tS(this),i=a?J0(r):{},o=n.getTheme();Ft(r,o.get(this.mainType)),Ft(r,this.getDefaultOption()),a&&yh(r,i,a)},e.prototype.mergeOption=function(r,n){Ft(this.option,r,!0);var a=tS(this);a&&yh(this.option,r,a)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!yCe(r))return r.defaultOption;var n=kEe(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=Ft(s,a[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return zS(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!0)},n)},e.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),e}(Xr);PJ(eb,Xr);OD(eb);bEe(eb);xEe(eb,NEe);function NEe(t){var e=[];return V(eb.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=Oe(e,function(r){return rc(r).main}),t!=="dataset"&&Qt(e,"dataset")<=0&&e.unshift("dataset"),e}const ur=eb;var Gee="";typeof navigator<"u"&&(Gee=navigator.platform||"");var Ay="rgba(0, 0, 0, 0.2)";const BEe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ay,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ay,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ay,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ay,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ay,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ay,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Gee.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 F$=yt(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),pl="original",Wi="arrayRows",vl="objectRows",gc="keyedColumns",df="typedArray",jee="unknown",uc="column",tb="row",mi={Must:1,Might:2,Not:3},Yee=wr();function zEe(t){Yee(t).datasetMap=yt()}function qee(t,e,r){var n={},a=F3(e);if(!a||!t)return n;var i=[],o=[],s=e.ecModel,l=Yee(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,c,d;t=t.slice(),V(t,function(m,x){var _=St(m)?m:t[x]={name:m};_.type==="ordinal"&&c==null&&(c=x,d=g(_)),n[_.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:d,valueWayDim:0});V(t,function(m,x){var _=m.name,w=g(m);if(c==null){var T=p.valueWayDim;v(n[_],T,w),v(o,T,w),p.valueWayDim+=w}else if(c===x)v(n[_],0,w),v(i,0,w);else{var T=p.categoryWayDim;v(n[_],T,w),v(o,T,w),p.categoryWayDim+=w}});function v(m,x,_){for(var w=0;w<_;w++)m.push(x+w)}function g(m){var x=m.dimsDef;return x?x.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function $3(t,e,r){var n={},a=F3(t);if(!a)return n;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===vl||i===gc)&&V(o,function(c,d){(St(c)?c.name:c)==="name"&&(s=d)});var l=function(){for(var c={},d={},p=[],v=0,g=Math.min(5,r);v<g;v++){var m=Zee(e.data,i,e.seriesLayoutBy,o,e.startIndex,v);p.push(m);var x=m===mi.Not;if(x&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v||!x&&p[c.n]===mi.Not)&&(c.n=v),_(c)&&p[c.n]!==mi.Not)return c;x||(m===mi.Might&&d.v==null&&v!==s&&(d.v=v),(d.n==null||d.n===d.v)&&(d.n=v))}function _(w){return w.v!=null&&w.n!=null}return _(c)?c:_(d)?d:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function F3(t){var e=t.get("data",!0);if(!e)return zS(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},xa).models[0]}function $Ee(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:zS(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},xa).models}function Xee(t,e){return Zee(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Zee(t,e,r,n,a,i){var o,s=5;if(oo(t))return mi.Not;var l,u;if(n){var c=n[i];St(c)?(l=c.name,u=c.type):at(c)&&(l=c)}if(u!=null)return u==="ordinal"?mi.Must:mi.Not;if(e===Wi){var d=t;if(r===tb){for(var p=d[i],v=0;v<(p||[]).length&&v<s;v++)if((o=A(p[a+v]))!=null)return o}else for(var v=0;v<d.length&&v<s;v++){var g=d[a+v];if(g&&(o=A(g[i]))!=null)return o}}else if(e===vl){var m=t;if(!l)return mi.Not;for(var v=0;v<m.length&&v<s;v++){var x=m[v];if(x&&(o=A(x[l]))!=null)return o}}else if(e===gc){var _=t;if(!l)return mi.Not;var p=_[l];if(!p||oo(p))return mi.Not;for(var v=0;v<p.length&&v<s;v++)if((o=A(p[v]))!=null)return o}else if(e===pl)for(var w=t,v=0;v<w.length&&v<s;v++){var x=w[v],T=G0(x);if(!Le(T))return mi.Not;if((o=A(T[i]))!=null)return o}function A(M){var D=at(M);if(M!=null&&isFinite(M)&&M!=="")return D?mi.Might:mi.Not;if(D&&M!=="-")return mi.Must}return mi.Not}var V$=yt();function FEe(t,e){Tt(V$.get(t)==null&&e),V$.set(t,e)}function VEe(t,e,r){var n=V$.get(e);if(!n)return r;var a=n(t);if(!a)return r;for(var i=0;i<a.length;i++)Tt(C0(a[i]));return r.concat(a)}var B6=wr(),UEe=wr(),V3=function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var a=Zr(this.get("color",!0)),i=this.get("colorLayer",!0);return Kee(this,B6,a,i,e,r,n)},t.prototype.clearColorPalette=function(){HEe(this,B6)},t}();function U$(t,e,r,n){var a=Zr(t.get(["aria","decal","decals"]));return Kee(t,UEe,a,null,e,r,n)}function WEe(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function Kee(t,e,r,n,a,i,o){i=i||t;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!n?r:WEe(n,o);if(c=c||r,!(!c||!c.length)){var d=c[l];return a&&(u[a]=d),s.paletteIdx=(l+1)%c.length,d}}function HEe(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var rE,T_,z6,IN="\0_ec_inner",$6=1,GEe={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},jEe={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},ZR={};function YEe(t){V(t,function(e,r){if(!ur.hasClass(r)){var n=GEe[r];n&&!ZR[n]&&(Si("Component "+r+` is used but not imported. import { `+n+` } from 'echarts/components'; echarts.use([`+n+"]);"),ZR[n]=!0)}})}var Qee=function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Xr(i),this._locale=new Xr(o),this._optionManager=s},e.prototype.setOption=function(r,n,a){Tt(r!=null,"option is null/undefined"),Tt(r[IN]!==$6,"please use chart.getOption()");var i=U6(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(r,n){return this._resetOption(r,U6(n))},e.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");YEe(o),!this.option||r==="recreate"?z6(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&&V(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=yt(),u=n&&n.replaceMergeMainTypeMap;zEe(this),V(r,function(d,p){d!=null&&(ur.hasClass(p)?p&&(s.push(p),l.set(p,!0)):a[p]=a[p]==null?Et(d):Ft(a[p],d,!0))}),u&&u.each(function(d,p){ur.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),ur.topologicalTravel(s,ur.getAllClassMainTypes(),c,this);function c(d){var p=VEe(this,d,Zr(r[d])),v=i.get(d),g=v?u&&u.get(d)?"replaceMerge":"normalMerge":"replaceAll",m=EJ(v,p,g);uCe(m,d,ur),a[d]=null,i.set(d,null),o.set(d,0);var x=[],_=[],w=0,T,A;V(m,function(M,D){var P=M.existing,O=M.newOption;if(!O)P&&(P.mergeOption({},this),P.optionUpdated({},!1));else{var k=d==="series",N=ur.getClass(d,M.keyInfo.subType,!k);if(!N){{var $=M.keyInfo.subType,H=jEe[$];ZR[$]||(ZR[$]=!0,Si(H?"Series "+$+` is used but not imported. import { `+H+` } from 'echarts/charts'; echarts.use([`+H+"]);":"Unknown series "+$))}return}if(d==="tooltip"){if(T){A||(Vn("Currently only one tooltip component is allowed."),A=!0);return}T=!0}if(P&&P.constructor===N)P.name=M.keyInfo.name,P.mergeOption(O,this),P.optionUpdated(O,!1);else{var F=Ce({componentIndex:D},M.keyInfo);P=new N(O,this,this,F),Ce(P,F),M.brandNew&&(P.__requireNewView=!0),P.init(O,this,this),P.optionUpdated(null,!0)}}P?(x.push(P.option),_.push(P),w++):(x.push(void 0),_.push(void 0))},this),a[d]=x,i.set(d,_),o.set(d,w),d==="series"&&rE(this)}this._seriesIndices||rE(this)},e.prototype.getOption=function(){var r=Et(this.option);return V(r,function(n,a){if(ur.hasClass(a)){for(var i=Zr(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!C0(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[IN],r},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.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]}}},e.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=[],V(Zr(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=F6("id",i,s):o!=null?l=F6("name",o,s):l=Br(s,function(u){return!!u}),V6(l,r)},e.prototype.findComponents=function(r){var n=r.query,a=r.mainType,i=s(n),o=i?this.queryComponents(i):Br(this._componentsMap.get(a),function(u){return!!u});return l(V6(o,r));function s(u){var c=a+"Index",d=a+"Id",p=a+"Name";return u&&(u[c]!=null||u[d]!=null||u[p]!=null)?{mainType:a,index:u[c],id:u[d],name:u[p]}:null}function l(u){return r.filter?Br(u,r.filter):u}},e.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(vt(r)){var o=n,s=r;i.each(function(d,p){for(var v=0;d&&v<d.length;v++){var g=d[v];g&&s.call(o,p,g,g.componentIndex)}})}else for(var l=at(r)?i.get(r):St(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(a,c,c.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=Da(r,null);return Br(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Br(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return Br(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){T_(this),V(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},e.prototype.eachRawSeries=function(r,n){V(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,a){T_(this),V(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&n.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(r,n,a){return V(this.getSeriesByType(r),n,a)},e.prototype.isSeriesFiltered=function(r){return T_(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){T_(this);var a=[];V(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=yt(a)},e.prototype.restoreData=function(r){rE(this);var n=this._componentsMap,a=[];n.each(function(i,o){ur.hasClass(o)&&a.push(o)}),ur.topologicalTravel(a,ur.getAllClassMainTypes(),function(i){V(n.get(i),function(o){o&&(i!=="series"||!qEe(o,r))&&o.restoreData()})})},e.internalField=function(){rE=function(r){var n=r._seriesIndices=[];V(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=yt(n)},T_=function(r){if(!r._seriesIndices)throw new Error("Option should contains series.")},z6=function(r,n){r.option={},r.option[IN]=$6,r._componentsMap=yt({series:[]}),r._componentsCount=yt();var a=n.aria;St(a)&&a.enabled==null&&(a.enabled=!0),XEe(n,r._theme.option),Ft(n,BEe,!1),r._mergeOption(n,null)}}(),e}(Xr);function qEe(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,a=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||a!=null&&t.name!==a}}function XEe(t,e){var r=t.color&&!t.colorLayer;V(e,function(n,a){a==="colorLayer"&&r||ur.hasClass(a)||(typeof n=="object"?t[a]=t[a]?Ft(t[a],n,!1):Et(n):t[a]==null&&(t[a]=n))})}function F6(t,e,r){if(Le(e)){var n=yt();return V(e,function(i){if(i!=null){var o=Da(i,null);o!=null&&n.set(i,!0)}}),Br(r,function(i){return i&&n.get(i[t])})}else{var a=Da(e,null);return Br(r,function(i){return i&&a!=null&&i[t]===a})}}function V6(t,e){return e.hasOwnProperty("subType")?Br(t,function(r){return r&&r.subType===e.subType}):t}function U6(t){var e=yt();return t&&V(Zr(t.replaceMerge),function(r){Tt(ur.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),e.set(r,!0)}),{replaceMergeMainTypeMap:e}}ra(Qee,V3);const Jee=Qee;var ZEe=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],KEe=function(){function t(e){V(ZEe,function(r){this[r]=ot(e[r],e)},this)}return t}();const ete=KEe;var PN={},QEe=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,r){var n=[];V(PN,function(a,i){var o=a.create(e,r);n=n.concat(o||[])}),this._coordinateSystems=n},t.prototype.update=function(e,r){V(this._coordinateSystems,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,r){PN[e]=r},t.get=function(e){return PN[e]},t}();const Cg=QEe;var JEe=/^(min|max)?(.+)$/,eRe=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(V(Zr(e.series),function(o){o&&o.data&&oo(o.data)&&V1(o.data)}),V(Zr(e.dataset),function(o){o&&o.source&&oo(o.source)&&V1(o.source)})),e=Et(e);var a=this._optionBackup,i=tRe(e,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},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Et(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var a=e.getComponent("timeline");a&&(r=Et(n[a.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){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++)rRe(a[l].query,r,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!aRe(o,this._currentMediaIndices)&&(s=Oe(o,function(c){return Et(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},t}();function tRe(t,e,r){var n=[],a,i,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,d=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((d||c)&&(t.options=t.media=null),i=t),c&&(Le(u)?V(u,function(v){v&&!v.option&&St(v.query)&&St(v.query.option)&&Si("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),v&&v.option&&(v.query?n.push(v):a||(a=v))}):Si("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),p(i),V(l,function(v){return p(v)}),V(n,function(v){return p(v.option)});function p(v){V(e,function(g){g(v,r)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function rRe(t,e,r){var n={width:e,height:r,aspectratio:e/r},a=!0;return V(t,function(i,o){var s=o.match(JEe);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();nRe(n[u],i,l)||(a=!1)}}),a}function nRe(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function aRe(t,e){return t.join(",")===e.join(",")}const iRe=eRe;var $s=V,rS=St,W6=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function LN(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=W6.length;r<n;r++){var a=W6[r],i=e.normal,o=e.emphasis;i&&i[a]&&(ua("itemStyle.normal."+a,a),t[a]=t[a]||{},t[a].normal?Ft(t[a].normal,i[a]):t[a].normal=i[a],i[a]=null),o&&o[a]&&(ua("itemStyle.emphasis."+a,"emphasis."+a),t[a]=t[a]||{},t[a].emphasis?Ft(t[a].emphasis,o[a]):t[a].emphasis=o[a],o[a]=null)}}function Vi(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,a=t[e].emphasis;n&&(ul("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),r?(t[e].normal=t[e].emphasis=null,wt(t[e],n)):t[e]=n),a&&(ul(e+".emphasis has been changed to emphasis."+e+" since 4.0"),t.emphasis=t.emphasis||{},t.emphasis[e]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function t1(t){Vi(t,"itemStyle"),Vi(t,"lineStyle"),Vi(t,"areaStyle"),Vi(t,"label"),Vi(t,"labelLine"),Vi(t,"upperLabel"),Vi(t,"edgeLabel")}function ba(t,e){var r=rS(t)&&t[e],n=rS(r)&&r.textStyle;if(n){ul("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var a=0,i=Gj.length;a<i;a++){var o=Gj[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}}function Ys(t){t&&(t1(t),ba(t,"label"),t.emphasis&&ba(t.emphasis,"label"))}function oRe(t){if(rS(t)){LN(t),t1(t),ba(t,"label"),ba(t,"upperLabel"),ba(t,"edgeLabel"),t.emphasis&&(ba(t.emphasis,"label"),ba(t.emphasis,"upperLabel"),ba(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(LN(e),Ys(e));var r=t.markLine;r&&(LN(r),Ys(r));var n=t.markArea;n&&Ys(n);var a=t.data;if(t.type==="graph"){a=a||t.nodes;var i=t.links||t.edges;if(i&&!oo(i))for(var o=0;o<i.length;o++)Ys(i[o]);V(t.categories,function(u){t1(u)})}if(a&&!oo(a))for(var o=0;o<a.length;o++)Ys(a[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Ys(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)Le(l[o])?(Ys(l[o][0]),Ys(l[o][1])):Ys(l[o]);t.type==="gauge"?(ba(t,"axisLabel"),ba(t,"title"),ba(t,"detail")):t.type==="treemap"?(Vi(t.breadcrumb,"itemStyle"),V(t.levels,function(u){t1(u)})):t.type==="tree"&&t1(t.leaves)}}function ef(t){return Le(t)?t:t?[t]:[]}function H6(t){return(Le(t)?t[0]:t)||{}}function sRe(t,e){$s(ef(t.series),function(n){rS(n)&&oRe(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),$s(r,function(n){$s(ef(t[n]),function(a){a&&(ba(a,"axisLabel"),ba(a.axisPointer,"label"))})}),$s(ef(t.parallel),function(n){var a=n&&n.parallelAxisDefault;ba(a,"axisLabel"),ba(a&&a.axisPointer,"label")}),$s(ef(t.calendar),function(n){Vi(n,"itemStyle"),ba(n,"dayLabel"),ba(n,"monthLabel"),ba(n,"yearLabel")}),$s(ef(t.radar),function(n){ba(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,ul("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,ul("nameGap property in radar component has been changed to axisNameGap")),$s(n.indicator,function(a){a.text&&ua("text","name","radar.indicator")})}),$s(ef(t.geo),function(n){rS(n)&&(Ys(n),$s(ef(n.regions),function(a){Ys(a)}))}),$s(ef(t.timeline),function(n){Ys(n),Vi(n,"label"),Vi(n,"itemStyle"),Vi(n,"controlStyle",!0);var a=n.data;Le(a)&&V(a,function(i){St(i)&&(Vi(i,"label"),Vi(i,"itemStyle"))})}),$s(ef(t.toolbox),function(n){Vi(n,"iconStyle"),$s(n.feature,function(a){Vi(a,"iconStyle")})}),ba(H6(t.axisPointer),"label"),ba(H6(t.tooltip).axisPointer,"label")}function lRe(t,e){for(var r=e.split(","),n=t,a=0;a<r.length&&(n=n&&n[r[a]],n!=null);a++);return n}function uRe(t,e,r,n){for(var a=e.split(","),i=t,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];(n||i[a[s]]==null)&&(i[a[s]]=r)}function G6(t){t&&V(cRe,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var cRe=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],fRe=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],ON=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function C_(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<ON.length;r++){var n=ON[r][1],a=ON[r][0];e[n]!=null&&(e[a]=e[n],ua(n,a))}}function j6(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(ua("label.margin","label.edgeDistance","pie"),t.edgeDistance=t.margin)}function Y6(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay,ua("downplay","blur","sunburst"))}function dRe(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(ua("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),t.emphasis.focus="adjacency"))}function tte(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&tte(t[r].children,e)}function rte(t,e){sRe(t,e),t.series=Zr(t.series),V(t.series,function(r){if(St(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow,ua("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise,ua("clockWise","clockwise")),j6(r.label);var a=r.data;if(a&&!oo(a))for(var i=0;i<a.length;i++)j6(a[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(ua("hoverOffset","emphasis.scaleSize"),r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=lRe(r,"pointer.color");o!=null&&uRe(r,"itemStyle.color",o)}else if(n==="bar"){C_(r),C_(r.backgroundStyle),C_(r.emphasis);var a=r.data;if(a&&!oo(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(C_(a[i]),C_(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,ua("highlightPolicy","emphasis.focus","sunburst"))),Y6(r),tte(r.data,Y6)}else n==="graph"||n==="sankey"?dRe(r):n==="map"&&(r.mapType&&!r.map&&(ua("mapType","map","map"),r.map=r.mapType),r.mapLocation&&(ul("`mapLocation` is not used anymore."),wt(r,r.mapLocation)));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(ua("hoverAnimation","emphasis.scale"),r.emphasis.scale=r.hoverAnimation)),G6(r)}}),t.dataRange&&(t.visualMap=t.dataRange),V(fRe,function(r){var n=t[r];n&&(Le(n)||(n=[n]),V(n,function(a){G6(a)}))})}function hRe(t){var e=yt();t.eachSeries(function(r){var n=r.get("stack");if(n){var a=e.get(n)||e.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.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),e.each(pRe)}function pRe(t){V(t,function(e,r){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,d){var p=o.get(e.stackedDimension,d);if(isNaN(p))return a;var v,g;s?g=o.getRawIndex(d):v=o.get(e.stackedByDimension,d);for(var m=NaN,x=r-1;x>=0;x--){var _=t[x];if(s||(g=_.data.rawIndexOf(_.stackedByDimension,v)),g>=0){var w=_.data.getByRawIndex(_.stackResultDimension,g);if(l==="all"||l==="positive"&&w>0||l==="negative"&&w<0||l==="samesign"&&p>=0&&w>0||l==="samesign"&&p<=0&&w<0){p=ZTe(p,w),m=w;break}}}return n[0]=p,n[1]=m,n})})}var KD=function(){function t(e){this.data=e.data||(e.sourceFormat===gc?{}:[]),this.sourceFormat=e.sourceFormat||jee,this.seriesLayoutBy=e.seriesLayoutBy||uc,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var a=r[n];a.type==null&&Xee(this,n)===mi.Must&&(a.type="ordinal")}}return t}();function U3(t){return t instanceof KD}function W$(t,e,r){r=r||nte(t);var n=e.seriesLayoutBy,a=gRe(t,r,n,e.sourceHeader,e.dimensions),i=new KD({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Et(e)});return i}function W3(t){return new KD({data:t,sourceFormat:oo(t)?df:pl})}function vRe(t){return new KD({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Et(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function nte(t){var e=jee;if(oo(t))e=df;else if(Le(t)){t.length===0&&(e=Wi);for(var r=0,n=t.length;r<n;r++){var a=t[r];if(a!=null){if(Le(a)){e=Wi;break}else if(St(a)){e=vl;break}}}}else if(St(t)){for(var i in t)if(it(t,i)&&_i(t[i])){e=gc;break}}return e}function gRe(t,e,r,n,a){var i,o;if(!t)return{dimensionsDefine:q6(a),startIndex:o,dimensionsDetectedCount:i};if(e===Wi){var s=t;n==="auto"||n==null?X6(function(u){u!=null&&u!=="-"&&(at(u)?o==null&&(o=1):o=0)},r,s,10):o=_r(n)?n:n?1:0,!a&&o===1&&(a=[],X6(function(u,c){a[c]=u!=null?u+"":""},r,s,1/0)),i=a?a.length:r===tb?s.length:s[0]?s[0].length:null}else if(e===vl)a||(a=mRe(t));else if(e===gc)a||(a=[],V(t,function(u,c){a.push(c)}));else if(e===pl){var l=G0(t[0]);i=Le(l)&&l.length||1}else e===df&&Tt(!!a,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:q6(a),dimensionsDetectedCount:i}}function mRe(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r){var n=[];return V(r,function(a,i){n.push(i)}),n}}function q6(t){if(t){var e=yt();return Oe(t,function(r,n){r=St(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=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function X6(t,e,r,n){if(e===tb)for(var a=0;a<r.length&&a<n;a++)t(r[a]?r[a][0]:null,a);else for(var i=r[0]||[],a=0;a<i.length&&a<n;a++)t(i[a],a)}function ate(t){var e=t.sourceFormat;return e===vl||e===gc}var dv,hv,pv,Z6,K6,ite=function(){function t(e,r){var n=U3(e)?e:W3(e);this._source=n;var a=this._data=n.data;if(n.sourceFormat===df){if(r==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=r,this._data=a}K6(this,a,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var e;K6=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,d=l.startIndex,p=l.dimensionsDefine,v=Z6[H3(u,c)];if(Tt(v,"Invalide sourceFormat: "+u),Ce(o,v),u===df)o.getItem=r,o.count=a,o.fillStorage=n;else{var g=ote(u,c);o.getItem=ot(g,null,s,d,p);var m=ste(u,c);o.count=ot(m,null,s,d,p)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,d=0;d<u;d++)s[d]=l[c+d];return s},n=function(o,s,l,u){for(var c=this._data,d=this._dimSize,p=0;p<d;p++){for(var v=u[p],g=v[0]==null?1/0:v[0],m=v[1]==null?-1/0:v[1],x=s-o,_=l[p],w=0;w<x;w++){var T=c[w*d+p];_[o+w]=T,T<g&&(g=T),T>m&&(m=T)}v[0]=g,v[1]=m}},a=function(){return this._data?this._data.length/this._dimSize:0};Z6=(e={},e[Wi+"_"+uc]={pure:!0,appendData:i},e[Wi+"_"+tb]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[vl]={pure:!0,appendData:i},e[gc]={pure:!0,appendData:function(o){var s=this._data;V(o,function(l,u){for(var c=s[u]||(s[u]=[]),d=0;d<(l||[]).length;d++)c.push(l[d])})}},e[pl]={appendData:i},e[df]={persistent:!1,pure:!0,appendData:function(o){Tt(oo(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),t}(),Q6=function(t,e,r,n){return t[n]},yRe=(dv={},dv[Wi+"_"+uc]=function(t,e,r,n){return t[n+e]},dv[Wi+"_"+tb]=function(t,e,r,n,a){n+=e;for(var i=a||[],o=t,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},dv[vl]=Q6,dv[gc]=function(t,e,r,n,a){for(var i=a||[],o=0;o<r.length;o++){var s=r[o].name;if(s==null)throw new Error;var l=t[s];i[o]=l?l[n]:null}return i},dv[pl]=Q6,dv);function ote(t,e){var r=yRe[H3(t,e)];return Tt(r,'Do not support get item on "'+t+'", "'+e+'".'),r}var J6=function(t,e,r){return t.length},bRe=(hv={},hv[Wi+"_"+uc]=function(t,e,r){return Math.max(0,t.length-e)},hv[Wi+"_"+tb]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},hv[vl]=J6,hv[gc]=function(t,e,r){var n=r[0].name;if(n==null)throw new Error;var a=t[n];return a?a.length:0},hv[pl]=J6,hv);function ste(t,e){var r=bRe[H3(t,e)];return Tt(r,'Do not support count on "'+t+'", "'+e+'".'),r}var kN=function(t,e,r){return t[e]},xRe=(pv={},pv[Wi]=kN,pv[vl]=function(t,e,r){return t[r]},pv[gc]=kN,pv[pl]=function(t,e,r){var n=G0(t);return n instanceof Array?n[e]:n},pv[df]=kN,pv);function lte(t){var e=xRe[t];return Tt(e,'Do not support get value on "'+t+'".'),e}function H3(t,e){return t===Wi?t+"_"+e:t}function E0(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var a=t.getStore(),i=a.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=a.getDimensionProperty(o);return lte(i)(n,o,s)}else{var l=n;return i===pl&&(l=G0(n)),l}}}}var _Re=/\{@(.+?)\}/g,G3=function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),a=this.getRawValue(e,r),i=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,d=this.mainType,p=d==="series",v=n.userOutput&&n.userOutput.get();return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:i,data:s,dataType:r,value:a,color:u,borderColor:c,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,a,i,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),a!=null&&Le(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(e);i=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(vt(i))return l.status=r,l.dimensionIndex=a,i(l);if(at(i)){var c=B3(i,l);return c.replace(_Re,function(d,p){var v=p.length,g=p;g.charAt(0)==="["&&g.charAt(v-1)==="]"&&(g=+g.slice(1,v-1),isNaN(g)&&Si("Invalide label formatter: @"+p+", only support @[0], @[1], @[2], ..."));var m=E0(s,e,g);if(o&&Le(o.interpolatedValue)){var x=s.getDimensionIndex(g);x>=0&&(m=o.interpolatedValue[x])}return m!=null?m+"":""})}},t.prototype.getRawValue=function(e,r){return E0(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function eY(t){var e,r;return St(t)?t.type?r=t:console.warn("The return type of `formatTooltip` is not supported: "+so(t)):e=t,{text:e,frag:r}}function C1(t){return new SRe(t)}var SRe=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.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=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(w){return!(w>=1)&&(w=1),w}var d;(this._dirty||i==="reset")&&(this._dirty=!1,d=this._doReset(n)),this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(r?(Tt(r._outputDueEnd!=null),this._dueEnd=r._outputDueEnd):(Tt(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var v=this._dueIndex,g=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!n&&(d||v<g)){var m=this._progress;if(Le(m))for(var x=0;x<m.length;x++)this._doProgress(m[x],v,g,l,u);else this._doProgress(m,v,g,l,u)}this._dueIndex=g;var _=this._settedOutputEnd!=null?this._settedOutputEnd:g;Tt(_>=this._outputDueEnd),this._outputDueEnd=_}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,a,i){tY.reset(r,n,a,i),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:tY.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),Le(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){Tt(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),tY=function(){var t,e,r,n,a,i={reset:function(l,u,c,d){e=l,t=u,r=c,n=d,a=Math.ceil(n/r),i.next=r>1&&n>0?s:o}};return i;function o(){return e<t?e++:null}function s(){var l=e%a*r+Math.ceil(e/a),u=e>=t?null:l<n?l:e;return e++,u}}();function uh(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!_r(t)&&t!=null&&t!=="-"&&(t=+ps(t)),t==null||t===""?NaN:+t)}var wRe=yt({number:function(t){return parseFloat(t)},time:function(t){return+ps(t)},trim:function(t){return at(t)?tl(t):t}});function ute(t){return wRe.get(t)}var cte={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},TRe=function(){function t(e,r){if(!_r(r)){var n="";n='rvalue of "<", ">", "<=", ">=" can only be number in filter.',Or(n)}this._opFn=cte[e],this._rvalFloat=dc(r)}return t.prototype.evaluate=function(e){return _r(e)?this._opFn(e,this._rvalFloat):this._opFn(dc(e),this._rvalFloat)},t}(),fte=function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=_r(e)?e:dc(e),a=_r(r)?r:dc(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=at(e),l=at(r);s&&(n=l?e:0),l&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},t}(),CRe=function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=dc(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=dc(e)===this._rvalFloat)}return this._isEQ?r:!r},t}();function ARe(t,e){return t==="eq"||t==="ne"?new CRe(t==="eq",e):it(cte,t)?new TRe(t,e):null}var ERe=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return uh(e,r)},t}();function RRe(t,e){var r=new ERe,n=t.data,a=r.sourceFormat=t.sourceFormat,i=t.startIndex,o="";t.seriesLayoutBy!==uc&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.',Or(o));var s=[],l={},u=t.dimensionsDefine;if(u)V(u,function(m,x){var _=m.name,w={index:x,name:_,displayName:m.displayName};if(s.push(w),_!=null){var T="";it(l,_)&&(T='dimension name "'+_+'" duplicated.',Or(T)),l[_]=w}});else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var d=ote(a,uc);e.__isBuiltIn&&(r.getRawDataItem=function(m){return d(n,i,s,m)},r.getRawData=ot(MRe,null,t)),r.cloneRawData=ot(DRe,null,t);var p=ste(a,uc);r.count=ot(p,null,n,i,s);var v=lte(a);r.retrieveValue=function(m,x){var _=d(n,i,s,m);return g(_,x)};var g=r.retrieveValueFromItem=function(m,x){if(m!=null){var _=s[x];if(_)return v(m,x,_.name)}};return r.getDimensionInfo=ot(IRe,null,s,l),r.cloneAllDimensionInfo=ot(PRe,null,s),r}function MRe(t){var e=t.sourceFormat;if(!j3(e)){var r="";r="`getRawData` is not supported in source format "+e,Or(r)}return t.data}function DRe(t){var e=t.sourceFormat,r=t.data;if(!j3(e)){var n="";n="`cloneRawData` is not supported in source format "+e,Or(n)}if(e===Wi){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}else if(e===vl){for(var a=[],i=0,o=r.length;i<o;i++)a.push(Ce({},r[i]));return a}}function IRe(t,e,r){if(r!=null){if(_r(r)||!isNaN(r)&&!it(e,r))return t[r];if(it(e,r))return e[r]}}function PRe(t){return Et(t)}var dte=yt();function LRe(t){t=Et(t);var e=t.type,r="";e||(r="Must have a `type` when `registerTransform`.",Or(r));var n=e.split(":");n.length!==2&&(r='Name must include namespace like "ns:regression".',Or(r));var a=!1;n[0]==="echarts"&&(e=n[1],a=!0),t.__isBuiltIn=a,dte.set(e,t)}function ORe(t,e,r){var n=Zr(t),a=n.length,i="";a||(i="If `transform` declared, it should at least contain one transform.",Or(i));for(var o=0,s=a;o<s;o++){var l=n[o];e=kRe(l,e,r,a===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function kRe(t,e,r,n){var a="";e.length||(a="Must have at least one upstream dataset.",Or(a)),St(t)||(a="transform declaration must be an object rather than "+typeof t+".",Or(a));var i=t.type,o=dte.get(i);o||(a='Can not find transform on type "'+i+'".',Or(a));var s=Oe(e,function(c){return RRe(c,o)}),l=Zr(o.transform({upstream:s[0],upstreamList:s,config:Et(t.config)}));if(t.print){var u=Oe(l,function(c){var d=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+r.datasetIndex+d+" ===","- transform result data:",so(c.data),"- transform result dimensions:",so(c.dimensions)].join(` `)}).join(` `);eCe(u)}return Oe(l,function(c,d){var p="";St(c)||(p="A transform should not return some empty results.",Or(p)),c.data||(p="Transform result data should be not be null or undefined",Or(p));var v=nte(c.data);j3(v)||(p="Transform result data should be array rows or object rows.",Or(p));var g,m=e[0];if(m&&d===0&&!c.dimensions){var x=m.startIndex;x&&(c.data=m.data.slice(0,x).concat(c.data)),g={seriesLayoutBy:uc,sourceHeader:x,dimensions:m.metaRawOption.dimensions}}else g={seriesLayoutBy:uc,sourceHeader:0,dimensions:c.dimensions};return W$(c.data,g,null)})}function j3(t){return t===Wi||t===vl}var QD="undefined",NRe=typeof Uint32Array===QD?Array:Uint32Array,BRe=typeof Uint16Array===QD?Array:Uint16Array,hte=typeof Int32Array===QD?Array:Int32Array,rY=typeof Float64Array===QD?Array:Float64Array,pte={float:rY,int:hte,ordinal:Array,number:Array,time:rY},NN;function A_(t){return t>65535?NRe:BRe}function Ey(){return[1/0,-1/0]}function zRe(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function nY(t,e,r,n,a){var i=pte[r||"float"];if(a){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new i(n)}var $Re=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=yt()}return t.prototype.initData=function(e,r,n){Tt(vt(e.getItem)&&vt(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=NN[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var o=ate(a);this._dimensions=Oe(r,function(s){return o&&Tt(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(e);if(i!=null){if(a[i].type===r)return i}else i=a.length;return a[i]={type:r},n.set(e,i),this._chunks[i]=new pte[r||"float"](this._rawCount),this._rawExtent[i]=Ey(),i},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[e]=Ey());for(var l=i[e],u=o;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){Tt(!this._indices,"appendData can only be called on raw data.");var r=this._provider,n=this.count();r.appendData(e);var a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<i;u++){var c=a[u];nY(n,u,c.type,l,!0)}for(var d=[],p=s;p<l;p++)for(var v=p-s,g=0;g<i;g++){var c=a[g],m=NN.arrayRows.call(this,e[v]||d,c.property,v,g);n[g][p]=m;var x=o[g];m<x[0]&&(x[0]=m),m>x[1]&&(x[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Oe(o,function(w){return w.property}),c=0;c<s;c++){var d=o[c];l[c]||(l[c]=Ey()),nY(i,c,d.type,r,n)}if(a.fillStorage)a.fillStorage(e,r,i,l);else for(var p=[],v=e;v<r;v++){p=a.getItem(v,p);for(var g=0;g<s;g++){var m=i[g],x=this._dimValueGetter(p,u[g],v,g);m[v]=x;var _=l[g];x<_[0]&&(_[0]=x),x>_[1]&&(_[1]=x)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],a=[];if(r==null){r=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(i){isNaN(i)||r.push(i)});var n=r.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(r[o]<e)a=o+1;else if(r[o]>e)i=o-1;else return o}return-1},t.prototype.indicesOfNearest=function(e,r,n){var a=this._chunks,i=a[e],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,d=this.count();c<d;c++){var p=this.getRawIndex(c),v=r-i[p],g=Math.abs(v);g<=n&&((g<s||g===s&&v>=0&&l<0)&&(s=g,l=v,u=0),v===l&&(o[u++]=c))}return o.length=u,o},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){e=new n(a);for(var i=0;i<a;i++)e[i]=r[i]}else e=new n(r.buffer,0,a)}else{var n=A_(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=A_(n._rawCount),o=new i(a),s=[],l=e.length,u=0,c=e[0],d=n._chunks,p=0;p<a;p++){var v=void 0,g=n.getRawIndex(p);if(l===0)v=r(p);else if(l===1){var m=d[c][g];v=r(m,p)}else{for(var x=0;x<l;x++)s[x]=d[e[x]][g];s[x]=p,v=r.apply(null,s)}v&&(o[u++]=g)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var a=sr(e),i=a.length;if(!i)return this;var o=r.count(),s=A_(r._rawCount),l=new s(o),u=0,c=a[0],d=e[c][0],p=e[c][1],v=r._chunks,g=!1;if(!r._indices){var m=0;if(i===1){for(var x=v[a[0]],_=0;_<n;_++){var w=x[_];(w>=d&&w<=p||isNaN(w))&&(l[u++]=m),m++}g=!0}else if(i===2){for(var x=v[a[0]],T=v[a[1]],A=e[a[1]][0],M=e[a[1]][1],_=0;_<n;_++){var w=x[_],D=T[_];(w>=d&&w<=p||isNaN(w))&&(D>=A&&D<=M||isNaN(D))&&(l[u++]=m),m++}g=!0}}if(!g)if(i===1)for(var _=0;_<o;_++){var P=r.getRawIndex(_),w=v[a[0]][P];(w>=d&&w<=p||isNaN(w))&&(l[u++]=P)}else for(var _=0;_<o;_++){for(var O=!0,P=r.getRawIndex(_),k=0;k<i;k++){var N=a[k],w=v[N][P];(w<e[N][0]||w>e[N][1])&&(O=!1)}O&&(l[u++]=r.getRawIndex(_))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var a=e._chunks,i=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<r.length;c++)u[r[c]]=Ey();for(var d=0;d<s;d++){for(var p=e.getRawIndex(d),v=0;v<o;v++)l[v]=a[r[v]][p];l[o]=d;var g=n&&n.apply(null,l);if(g!=null){typeof g!="object"&&(i[0]=g,g=i);for(var c=0;c<g.length;c++){var m=r[c],x=g[c],_=u[m],w=a[m];w&&(w[p]=x),x<_[0]&&(_[0]=x),x>_[1]&&(_[1]=x)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),a=n._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,d,p,v=new(A_(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var g=1;g<o-1;g+=l){for(var m=Math.min(g+l,o-1),x=Math.min(g+l*2,o),_=(x+m)/2,w=0,T=m;T<x;T++){var A=this.getRawIndex(T),M=i[A];isNaN(M)||(w+=M)}w/=x-m;var D=g,P=Math.min(g+l,o),O=g-1,k=i[u];c=-1,p=D;for(var N=-1,$=0,T=D;T<P;T++){var A=this.getRawIndex(T),M=i[A];if(isNaN(M)){$++,N<0&&(N=A);continue}d=Math.abs((O-_)*(M-k)-(O-T)*(w-k)),d>c&&(c=d,p=A)}$>0&&$<P-D&&(v[s++]=Math.min(N,p),p=Math.max(N,p)),v[s++]=p,u=p}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},t.prototype.downSample=function(e,r,n,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/r),u=o[e],c=this.count(),d=i._rawExtent[e]=Ey(),p=new(A_(this._rawCount))(Math.ceil(c/l)),v=0,g=0;g<c;g+=l){l>c-g&&(l=c-g,s.length=l);for(var m=0;m<l;m++){var x=this.getRawIndex(g+m);s[m]=u[x]}var _=n(s),w=this.getRawIndex(Math.min(g+a(s,_)||0,c-1));u[w]=_,_<d[0]&&(d[0]=_),_>d[1]&&(d[1]=_),p[v++]=w}return i._count=v,i._indices=p,i._updateGetRawIdx(),i},t.prototype.each=function(e,r){if(this._count)for(var n=e.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[e[0]][s],i);break;case 2:r(a[e[0]][s],a[e[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[e[l]][s];u[l]=i,r.apply(null,u)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=Ey();if(!r)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<a;u++){var c=this.getRawIndex(u),d=r[c];d<s&&(s=d),d>l&&(l=d)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);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},t.prototype.clone=function(e,r){var n=new t,a=this._chunks,i=e&&ll(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?zRe(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Et(this._extent),e._rawExtent=Et(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var a=0;a<n;a++)r[a]=this._indices[a]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,a,i){return uh(r[i],this._dimensions[i])}NN={arrayRows:e,objectRows:function(r,n,a,i){return uh(r[n],this._dimensions[i])},keyedColumns:e,original:function(r,n,a,i){var o=r&&(r.value==null?r:r.value);return uh(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}}(),t}();const H$=$Re;var vte=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,a,i;if(E_(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=oo(s)?df:pl,i=[];var d=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},v=$t(d.seriesLayoutBy,p.seriesLayoutBy)||null,g=$t(d.sourceHeader,p.sourceHeader),m=$t(d.dimensions,p.dimensions),x=v!==p.seriesLayoutBy||!!g!=!!p.sourceHeader||m;a=x?[W$(s,{seriesLayoutBy:v,sourceHeader:g,dimensions:m},l)]:[]}else{var _=e;if(n){var w=this._applyTransform(r);a=w.sourceList,i=w.upstreamSignList}else{var T=_.get("source",!0);a=[W$(T,this._getSourceMetaRawOption(),null)],i=[]}}Tt(a&&i),this._setLocalSource(a,i)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(Tt(a!=null||n!=null),a!=null){var i="";e.length!==1&&(i="When using `fromTransformResult`, there should be only one upstream dataset",iY(i))}var o,s=[],l=[];return V(e,function(u){u.prepareSource();var c=u.getSource(a||0),d="";a!=null&&!c&&(d="Can not retrieve result by `fromTransformResult`: "+a,iY(d)),s.push(c),l.push(u._getVersionSign())}),n?o=ORe(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[vRe(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){Tt(E_(this._sourceHost),"Can only call getDataStore on series source manager.");var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,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];E_(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new H$,s.initData(new ite(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(E_(e)){var r=F3(e);return r?[r.getSourceManager()]:[]}else return Oe($Ee(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,a;if(E_(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;r=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},t}();function aY(t){var e=t.option.transform;e&&V1(t.option.transform)}function E_(t){return t.mainType==="series"}function iY(t){throw new Error(t)}var gte="line-height:1";function mte(t,e){var r=t.color||"#6e7079",n=t.fontSize||12,a=t.fontWeight||"400",i=t.color||"#464646",o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+ao(n+"")+"px;color:"+ao(r)+";font-weight:"+ao(a+""),valueStyle:"font-size:"+ao(o+"")+"px;color:"+ao(i)+";font-weight:"+ao(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var FRe=[0,10,20,30],VRe=["",` `,` `,` `];function Fa(t,e){return e.type=t,e}function G$(t){return t.type==="section"}function yte(t){return G$(t)?URe:WRe}function bte(t){if(G$(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return V(t.blocks,function(a){var i=bte(a);i>=e&&(e=i+ +(n&&(!i||G$(a)&&!a.noHeader)))}),e}return 0}function URe(t,e,r,n){var a=e.noHeader,i=HRe(bte(e)),o=[],s=e.blocks||[];Tt(!s||Le(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(it(u,l)){var c=new fte(u[l],null);s.sort(function(g,m){return c.evaluate(g.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}V(s,function(g,m){var x=e.valueFormatter,_=yte(g)(x?Ce(Ce({},t),{valueFormatter:x}):t,g,m>0?i.html:0,n);_!=null&&o.push(_)});var d=t.renderMode==="richText"?o.join(i.richText):j$(o.join(""),a?r:i.html);if(a)return d;var p=$$(e.header,"ordinal",t.useUTC),v=mte(n,t.renderMode).nameStyle;return t.renderMode==="richText"?xte(t,p,v)+i.richText+d:j$('<div style="'+v+";"+gte+';">'+ao(p)+"</div>"+d,r)}function WRe(t,e,r,n){var a=t.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(A){return A=Le(A)?A:[A],Oe(A,function(M,D){return $$(M,Le(v)?v[D]:v,u)})};if(!(i&&o)){var d=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),p=i?"":$$(l,"ordinal",u),v=e.valueType,g=o?[]:c(e.value),m=!s||!i,x=!s&&i,_=mte(n,a),w=_.nameStyle,T=_.valueStyle;return a==="richText"?(s?"":d)+(i?"":xte(t,p,w))+(o?"":YRe(t,g,m,x,T)):j$((s?"":d)+(i?"":GRe(p,!s,w))+(o?"":jRe(g,m,x,T)),r)}}function oY(t,e,r,n,a,i){if(t){var o=yte(t),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,i)}}function HRe(t){return{html:FRe[t],richText:VRe[t]}}function j$(t,e){var r='<div style="clear:both"></div>',n="margin: "+e+"px 0 0";return'<div style="'+n+";"+gte+';">'+t+r+"</div>"}function GRe(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+ao(t)+"</span>"}function jRe(t,e,r,n){var a=r?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return t=Le(t)?t:[t],'<span style="'+i+";"+n+'">'+Oe(t,function(o){return ao(o)}).join(" ")+"</span>"}function xte(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function YRe(t,e,r,n,a){var i=[a],o=n?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Le(e)?e.join(" "):e,i)}function _te(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return pg(n)}function Ste(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var BN=function(){function t(){this.richTextStyles={},this._nextStyleNameId=wJ()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var a=n==="richText"?this._generateStyleName():null,i=Uee({color:r,type:e,renderMode:n,markerId:a});return at(i)?i:(Tt(a),this.richTextStyles[a]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};Le(r)?V(r,function(i){return Ce(n,i)}):Ce(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},t}();function wte(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(r),l=Le(s),u=_te(e,r),c,d,p,v;if(o>1||l&&!o){var g=qRe(s,e,r,i,u);c=g.inlineValues,d=g.inlineValueTypes,p=g.blocks,v=g.inlineValues[0]}else if(o){var m=a.getDimensionInfo(i[0]);v=c=E0(a,r,i[0]),d=m.type}else v=c=l?s[0]:s;var x=p3(e),_=x&&e.name||"",w=a.getName(r),T=n?_:w;return Fa("section",{header:_,noHeader:n||!x,sortParam:v,blocks:[Fa("nameValue",{markerType:"item",markerColor:u,name:T,noName:!tl(T),value:c,valueType:d})].concat(p||[])})}function qRe(t,e,r,n,a){var i=e.getData(),o=ll(t,function(d,p,v){var g=i.getDimensionInfo(v);return d=d||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],u=[];n.length?V(n,function(d){c(E0(i,r,d),d)}):V(t,c);function c(d,p){var v=i.getDimensionInfo(p);!v||v.otherDims.tooltip===!1||(o?u.push(Fa("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:d,valueType:v.type})):(s.push(d),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var kd=wr();function nE(t,e){return t.getName(e)||t.getId(e)}var oR="__universalTransitionEnabled",JD=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=C1({count:ZRe,reset:KRe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=kd(this).sourceManager=new vte(this);i.prepareSource();var o=this.getInitialData(r,a);lY(o,this),this.dataTask.context.data=o,Tt(o,"getInitialData returned invalid data."),kd(this).dataBeforeProcessed=o,sY(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=tS(this),i=a?J0(r):{},o=this.subType;ur.hasClass(o)&&(o+="Series"),Ft(r,n.getTheme().get(this.subType)),Ft(r,this.getDefaultOption()),cg(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&yh(r,i,a)},e.prototype.mergeOption=function(r,n){r=Ft(this.option,r,!0),this.fillDataTextStyle(r.data);var a=tS(this);a&&yh(this.option,r,a);var i=kd(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);lY(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,kd(this).dataBeforeProcessed=o,sY(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!oo(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&cg(r[a],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=Y$(this);if(n){var a=n.context.data;return r==null?a:a.getLinkedData(r)}else return kd(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=Y$(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}kd(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return yt(r)},e.prototype.getSourceManager=function(){return kd(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return kd(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.formatTooltip=function(r,n,a){return wte({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(gr.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,o=V3.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.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=nE(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.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)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=sr(r),a=[],i=0;i<n.length;i++){var o=r[n[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[nE(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[oR])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.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"){St(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var d=n[c],p=nE(r,d);u[p]=!0,this._selectedDataIndicesMap[p]=r.getRawIndex(d)}}else if(s==="single"||s===!0){var v=n[l-1],p=nE(r,v);o.selectedMap=(a={},a[p]=!0,a),this._selectedDataIndicesMap=(i={},i[p]=r.getRawIndex(v),i)}}},e.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)}},e.registerClass=function(r){return ur.registerClass(r)},e.protoInitialize=function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),e}(ur);ra(JD,G3);ra(JD,V3);PJ(JD,ur);function sY(t){var e=t.name;p3(t)||(t.name=XRe(t)||e)}function XRe(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return V(r,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function ZRe(t){return t.model.getRawData().count()}function KRe(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),QRe}function QRe(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function lY(t,e){V(U1(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Lt(JRe,e))})}function JRe(t,e){var r=Y$(t);return r&&r.setOutputEnd((e||this).count()),e}function Y$(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(t.uid))}return n}}const xn=JD;var Y3=function(){function t(){this.group=new It,this.uid=Q0("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){},t.prototype.updateLayout=function(e,r,n,a){},t.prototype.updateVisual=function(e,r,n,a){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();g3(Y3);OD(Y3);const Pn=Y3;function rb(){var t=wr();return function(e){var r=t(e),n=e.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 Tte=wr(),eMe=rb(),q3=function(){function t(){this.group=new It,this.uid=Q0("viewChart"),this.renderTask=C1({plan:tMe,reset:rMe}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){throw new Error("render method must been implemented")},t.prototype.highlight=function(e,r,n,a){var i=e.getData(a&&a.dataType);if(!i){Si("Unknown dataType "+a.dataType);return}cY(i,a,"emphasis")},t.prototype.downplay=function(e,r,n,a){var i=e.getData(a&&a.dataType);if(!i){Si("Unknown dataType "+a.dataType);return}cY(i,a,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateLayout=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateVisual=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.eachRendered=function(e){Oh(this.group,e)},t.markUpdateMethod=function(e,r){Tte(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function uY(t,e,r){t&&gh(t)&&(e==="emphasis"?yf:bf)(t,r)}function cY(t,e,r){var n=fg(t,e),a=e&&e.highlightKey!=null?EAe(e.highlightKey):null;n!=null?V(Zr(n),function(i){uY(t.getItemGraphicEl(i),r,a)}):t.eachItemGraphicEl(function(i){uY(i,r,a)})}g3(q3,["dispose"]);OD(q3);function tMe(t){return eMe(t.model)}function rMe(t){var e=t.model,r=t.ecModel,n=t.api,a=t.payload,i=e.pipelineContext.progressiveRender,o=t.view,s=a&&Tte(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,a),nMe[l]}var nMe={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Kr=q3;var KR="\0__throttleOriginMethod",fY="\0__throttleRate",dY="\0__throttleType";function eI(t,e,r){var n,a=0,i=0,o=null,s,l,u,c;e=e||0;function d(){i=new Date().getTime(),o=null,t.apply(l,u||[])}var p=function(){for(var v=[],g=0;g<arguments.length;g++)v[g]=arguments[g];n=new Date().getTime(),l=this,u=v;var m=c||e,x=c||r;c=null,s=n-(x?a:i)-m,clearTimeout(o),x?o=setTimeout(d,m):s>=0?d():o=setTimeout(d,-s),a=n};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(v){c=v},p}function nb(t,e,r,n){var a=t[e];if(a){var i=a[KR]||a,o=a[dY],s=a[fY];if(s!==r||o!==n){if(r==null||!n)return t[e]=i;a=t[e]=eI(i,r,n==="debounce"),a[KR]=i,a[dY]=n,a[fY]=r}return a}}function nS(t,e){var r=t[e];r&&r[KR]&&(r.clear&&r.clear(),t[e]=r[KR])}var hY=wr(),pY={itemStyle:dg(Pee,!0),lineStyle:dg(Iee,!0)},aMe={lineStyle:"stroke",itemStyle:"fill"};function Cte(t,e){var r=t.visualStyleMapper||pY[e];return r||(console.warn("Unknown style type '"+e+"'."),pY.itemStyle)}function Ate(t,e){var r=t.visualDrawType||aMe[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var iMe={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=t.getModel(n),i=Cte(t,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Ate(t,n),u=o[l],c=vt(u)?u:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||d){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=p,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||vt(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||vt(o.stroke)?p:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,g){var m=t.getDataParams(g),x=Ce({},o);x[l]=c(m),v.setItemVisual(g,"style",x)}}}},R_=new Xr,oMe={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=Cte(t,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){R_.option=l[n];var u=a(R_),c=o.ensureUniqueItemVisual(s,"style");Ce(c,u),R_.option.decal&&(o.setItemVisual(s,"decal",R_.option.decal),R_.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},sMe={performRawSeries:!0,overallReset:function(t){var e=yt();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,i=e.get(a);i||(i={},e.set(a,i)),hY(r).scope=i}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),a={},i=r.getData(),o=hY(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Ate(r,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],d=i.getItemVisual(c,"colorFromPalette");if(d){var p=i.ensureUniqueItemVisual(c,"style"),v=n.getName(u)||u+"",g=n.count();p[l]=r.getColorFromPalette(v,o,g)}})}})}},aE=Math.PI;function lMe(t,e){e=e||{},wt(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new It,n=new yr({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var a=new mr({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new yr({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(i);var o;return e.showSpinner&&(o=new VD({shape:{startAngle:-aE/2,endAngle:-aE/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:aE*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:aE*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var uMe=function(){function t(e,r,n,a){this._stageTaskMap=yt(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__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}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&i>=n.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=yt();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),r._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;V(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";o='"reset" and "overallReset" must not be both specified.',Tt(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},t.prototype.prepareView=function(e,r,n,a){var i=e.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(r,i)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,a){a=a||{};var i=!1,o=this;V(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),d=c.seriesTaskMap,p=c.overallTask;if(p){var v,g=p.agentStubMap;g.each(function(x){s(a,x)&&(x.dirty(),v=!0)}),v&&p.dirty(),o.updatePayload(p,n);var m=o.getPerformArgs(p,a.block);g.each(function(x){x.perform(m)}),p.perform(m)&&(i=!0)}else d&&d.each(function(x,_){s(a,x)&&x.dirty();var w=o.getPerformArgs(x,a.block);w.skip=!l.performRawSeries&&r.isSeriesFiltered(x.context.model),o.updatePayload(x,n),x.perform(w)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=yt(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(d){var p=d.uid,v=s.set(p,o&&o.get(p)||C1({plan:pMe,reset:vMe,count:mMe}));v.context={model:d,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(d,v)}},t.prototype._createOverallStageTask=function(e,r,n,a){var i=this,o=r.overallTask=r.overallTask||C1({reset:cMe});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=yt(),u=e.seriesType,c=e.getTargetSeries,d=!0,p=!1,v="";v='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.',Tt(!e.createOnAllSeries,v),u?n.eachRawSeriesByType(u,g):c?c(n,a).each(g):(d=!1,V(n.getSeries(),g));function g(m){var x=m.uid,_=l.set(x,s&&s.get(x)||(p=!0,C1({reset:fMe,onDirty:hMe})));_.context={model:m,overallProgress:d},_.agent=o,_.__block=d,i._pipe(m,_)}p&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.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},t.wrapStageHandler=function(e,r){return vt(e)&&(e={overallReset:e,seriesType:yMe(e)}),e.uid=Q0("stageHandler"),r&&(e.visualType=r),e},t}();function cMe(t){t.overallReset(t.ecModel,t.api,t.payload)}function fMe(t){return t.overallProgress&&dMe}function dMe(){this.agent.dirty(),this.getDownstream().dirty()}function hMe(){this.agent&&this.agent.dirty()}function pMe(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function vMe(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Zr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Oe(e,function(r,n){return Ete(n)}):gMe}var gMe=Ete(0);function Ete(t){return function(e,r){var n=r.data,a=r.resetDefines[t];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(e,n)}}function mMe(t){return t.data.count()}function yMe(t){QR=null;try{t(aS,Rte)}catch{}return QR}var aS={},Rte={},QR;Mte(aS,Jee);Mte(Rte,ete);aS.eachSeriesByType=aS.eachRawSeriesByType=function(t){QR=t};aS.eachComponent=function(t){t.mainType==="series"&&t.subType&&(QR=t.subType)};function Mte(t,e){for(var r in e.prototype)t[r]=ta}const Dte=uMe;var vY=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const bMe={color:vY,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],vY]};var to="#B9B8CE",gY="#100C2A",iE=function(){return{axisLine:{lineStyle:{color:to}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},mY=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Ite={darkMode:!0,color:mY,backgroundColor:gY,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:to}},textStyle:{color:to},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:to}},dataZoom:{borderColor:"#71708A",textStyle:{color:to},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:to}},timeline:{lineStyle:{color:to},label:{color:to},controlStyle:{color:to,borderColor:to}},calendar:{itemStyle:{color:gY},dayLabel:{color:to},monthLabel:{color:to},yearLabel:{color:to}},timeAxis:iE(),logAxis:iE(),valueAxis:iE(),categoryAxis:iE(),line:{symbol:"circle"},graph:{color:mY},gauge:{title:{color:to},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:to},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Ite.categoryAxis.splitLine.show=!1;const xMe=Ite;var _Me=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},a={};if(at(e)){var i=rc(e);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};V(e,function(l,u){for(var c=!1,d=0;d<o.length;d++){var p=o[d],v=u.lastIndexOf(p);if(v>0&&v===u.length-p.length){var g=u.slice(0,v);g!=="data"&&(r.mainType=g,r[p.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},t.prototype.filter=function(e,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 c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,a,i));function c(d,p,v,g){return d[v]==null||p[g||v]===d[v]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),q$=["symbol","symbolSize","symbolRotate","symbolOffset"],yY=q$.concat(["symbolKeepAspect"]),SMe={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<q$.length;o++){var s=q$[o],l=t.get(s);vt(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(Ce({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=sr(a);function c(d,p){for(var v=t.getRawValue(p),g=t.getDataParams(p),m=0;m<u.length;m++){var x=u[m];d.setItemVisual(p,x,a[x](v,g))}}return{dataEach:i?c:null}}},wMe={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<yY.length;s++){var l=yY[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function X3(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:console.warn("Unknown visual type "+r)}}function jS(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:console.warn("Unknown visual type "+e)}}function Pte(t,e,r,n){switch(r){case"color":var a=t.ensureUniqueItemVisual(e,"style");a[t.getVisual("drawType")]=n,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,r,n);break;default:console.warn("Unknown visual type "+r)}}function Lte(t,e){function r(n,a){var i=[];return n.eachComponent({mainType:"series",subType:t,query:a},function(o){i.push(o.seriesIndex)}),i}V([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(a,i,o){a=Ce({},a),ua(a.type,n[1]),o.dispatchAction(Ce(a,{type:n[1],seriesIndex:r(i,a)}))})})}function Ry(t,e,r,n,a){var i=t+e;r.isSilent(i)||(ul("event "+i+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var d=o.getData(),p=fg(d,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:Le(p)?d.getName(p[0]):d.getName(p),selected:at(l)?l:Ce({},l)})}}))}function TMe(t,e,r){t.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(Ry("map","selectchanged",e,a,n),Ry("pie","selectchanged",e,a,n)):n.fromAction==="select"?(Ry("map","selected",e,a,n),Ry("pie","selected",e,a,n)):n.fromAction==="unselect"&&(Ry("map","unselected",e,a,n),Ry("pie","unselected",e,a,n))})}function Hv(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var CMe=Math.round(Math.random()*9),AMe=typeof Object.defineProperty=="function",EMe=function(){function t(){this._id="__ec_inner_"+CMe++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return AMe?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t}();const RMe=EMe;var MMe=ir.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,a=e.width/2,i=e.height/2;t.moveTo(r,n-i),t.lineTo(r+a,n+i),t.lineTo(r-a,n+i),t.closePath()}}),DMe=ir.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,a=e.width/2,i=e.height/2;t.moveTo(r,n-i),t.lineTo(r+a,n),t.lineTo(r,n+i),t.lineTo(r-a,n),t.closePath()}}),IMe=ir.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,d=Math.sin(u),p=Math.cos(u),v=o*.6,g=o*.7;t.moveTo(r-c,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+c-d*v,l+s+p*v,r,n-g,r,n),t.bezierCurveTo(r,n-g,r-c+d*v,l+s+p*v,r-c,l+s),t.closePath()}}),PMe=ir.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,a=e.x,i=e.y,o=n/3*2;t.moveTo(a,i),t.lineTo(a+o,i+r),t.lineTo(a,i+r/4*3),t.lineTo(a-o,i+r),t.lineTo(a,i),t.closePath()}}),LMe={line:Ba,rect:yr,roundRect:yr,square:yr,circle:ru,diamond:DMe,pin:IMe,arrow:PMe,triangle:MMe},OMe={line:function(t,e,r,n,a){a.x1=t,a.y1=e+n/2,a.x2=t+r,a.y2=e+n/2},rect:function(t,e,r,n,a){a.x=t,a.y=e,a.width=r,a.height=n},roundRect:function(t,e,r,n,a){a.x=t,a.y=e,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(t,e,r,n,a){var i=Math.min(r,n);a.x=t,a.y=e,a.width=i,a.height=i},circle:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.r=Math.min(r,n)/2},diamond:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.width=r,a.height=n},pin:function(t,e,r,n,a){a.x=t+r/2,a.y=e+n/2,a.width=r,a.height=n},arrow:function(t,e,r,n,a){a.x=t+r/2,a.y=e+n/2,a.width=r,a.height=n},triangle:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.width=r,a.height=n}},JR={};V(LMe,function(t,e){JR[e]=new t});var kMe=ir.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=FR(t,e,r),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var a=JR[n];a||(n="rect",a=JR[n]),OMe[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,r)}}});function NMe(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function fa(t,e,r,n,a,i,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=A3(t.slice(8),new Ht(e,r,n,a),o?"center":"cover"):t.indexOf("path://")===0?l=US(t.slice(7),{},new Ht(e,r,n,a),o?"center":"cover"):l=new kMe({shape:{symbolType:t,x:e,y:r,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=NMe,i&&l.setColor(i),l}function YS(t){return Le(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function ab(t,e){if(t!=null)return Le(t)||(t=[t,t]),[Qe(t[0],e[0])||0,Qe($t(t[1],t[0]),e[1])||0]}function Gv(t){return isFinite(t)}function BMe(t,e,r){var n=e.x==null?0:e.x,a=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.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=Gv(n)?n:0,a=Gv(a)?a:1,i=Gv(i)?i:0,o=Gv(o)?o:0;var s=t.createLinearGradient(n,i,a,o);return s}function zMe(t,e,r){var n=r.width,a=r.height,i=Math.min(n,a),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*a+r.y,l=l*i),o=Gv(o)?o:.5,s=Gv(s)?s:.5,l=l>=0&&Gv(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function X$(t,e,r){for(var n=e.type==="radial"?zMe(t,e,r):BMe(t,e,r),a=e.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function $Me(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function oE(t){return parseInt(t,10)}function e0(t,e,r){var n=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[a]||oE(s[n])||oE(t.style[n]))-(oE(s[i])||0)-(oE(s[o])||0)|0}function FMe(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:_r(t)?[t]:Le(t)?t:null}function Z3(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&FMe(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(r=Oe(r,function(i){return i/a}),n/=a)}return[r,n]}var VMe=new hc(!0);function eM(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function bY(t){return typeof t=="string"&&t!=="none"}function tM(t){var e=t.fill;return e!=null&&e!=="none"}function xY(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function _Y(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function Z$(t,e,r){var n=m3(e.image,e.__image,r);if(kD(n)){var a=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*p1),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function UMe(t,e,r,n){var a,i=eM(r),o=tM(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||VMe,d=e.__dirty;if(!n){var p=r.fill,v=r.stroke,g=o&&!!p.colorStops,m=i&&!!v.colorStops,x=o&&!!p.image,_=i&&!!v.image,w=void 0,T=void 0,A=void 0,M=void 0,D=void 0;(g||m)&&(D=e.getBoundingRect()),g&&(w=d?X$(t,p,D):e.__canvasFillGradient,e.__canvasFillGradient=w),m&&(T=d?X$(t,v,D):e.__canvasStrokeGradient,e.__canvasStrokeGradient=T),x&&(A=d||!e.__canvasFillPattern?Z$(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=A),_&&(M=d||!e.__canvasStrokePattern?Z$(t,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=A),g?t.fillStyle=w:x&&(A?t.fillStyle=A:o=!1),m?t.strokeStyle=T:_&&(M?t.strokeStyle=M:i=!1)}var P=e.getGlobalScale();c.setScale(P[0],P[1],e.segmentIgnoreThreshold);var O,k;t.setLineDash&&r.lineDash&&(a=Z3(e),O=a[0],k=a[1]);var N=!0;(u||d&Gy)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),N=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),N&&c.rebuildPath(t,l?s:1),O&&(t.setLineDash(O),t.lineDashOffset=k),n||(r.strokeFirst?(i&&_Y(t,r),o&&xY(t,r)):(o&&xY(t,r),i&&_Y(t,r))),O&&t.setLineDash([])}function WMe(t,e,r){var n=e.__image=m3(r.image,e.__image,e,e.onload);if(!(!n||!kD(n))){var a=r.x||0,i=r.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;t.drawImage(n,u,c,r.sWidth,r.sHeight,a,i,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,d=o-u,p=s-c;t.drawImage(n,u,c,d,p,a,i,o,s)}else t.drawImage(n,a,i,o,s)}}function HMe(t,e,r){var n,a=r.text;if(a!=null&&(a+=""),a){t.font=r.font||hh,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var i=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=Z3(e),i=n[0],o=n[1]),i&&(t.setLineDash(i),t.lineDashOffset=o),r.strokeFirst?(eM(r)&&t.strokeText(a,r.x,r.y),tM(r)&&t.fillText(a,r.x,r.y)):(tM(r)&&t.fillText(a,r.x,r.y),eM(r)&&t.strokeText(a,r.x,r.y)),i&&t.setLineDash([])}}var SY=["shadowBlur","shadowOffsetX","shadowOffsetY"],wY=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Ote(t,e,r,n,a){var i=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){No(t,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?qv.opacity:o}(n||e.blend!==r.blend)&&(i||(No(t,a),i=!0),t.globalCompositeOperation=e.blend||qv.blend);for(var s=0;s<SY.length;s++){var l=SY[s];(n||e[l]!==r[l])&&(i||(No(t,a),i=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(i||(No(t,a),i=!0),t.shadowColor=e.shadowColor||qv.shadowColor),i}function TY(t,e,r,n,a){var i=iS(e,a.inHover),o=n?null:r&&iS(r,a.inHover)||{};if(i===o)return!1;var s=Ote(t,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(No(t,a),s=!0),bY(i.fill)&&(t.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(No(t,a),s=!0),bY(i.stroke)&&(t.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(No(t,a),s=!0),t.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(No(t,a),s=!0),t.lineWidth=u)}for(var c=0;c<wY.length;c++){var d=wY[c],p=d[0];(n||i[p]!==o[p])&&(s||(No(t,a),s=!0),t[p]=i[p]||d[1])}return s}function GMe(t,e,r,n,a){return Ote(t,iS(e,a.inHover),r&&iS(r,a.inHover),n,a)}function kte(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function jMe(t,e,r){for(var n=!1,a=0;a<t.length;a++){var i=t[a];n=n||i.isZeroArea(),kte(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}r.allClipped=n}function YMe(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var CY=1,AY=2,EY=3,RY=4;function qMe(t){var e=tM(t),r=eM(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function No(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function iS(t,e){return e&&t.__hoverStyle||t.style}function K3(t,e){jv(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function jv(t,e,r,n){var a=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~is,e.__isRendered=!1;return}var i=e.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||$Me(i,o))&&(o&&o.length&&(No(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(No(t,r),t.save(),jMe(i,t,r),s=!0),r.prevElClipPaths=i),r.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=e instanceof ir&&e.autoBatch&&qMe(e.style);s||YMe(a,u.transform)?(No(t,r),kte(t,e)):c||No(t,r);var d=iS(e,r.inHover);e instanceof ir?(r.lastDrawType!==CY&&(l=!0,r.lastDrawType=CY),TY(t,e,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&t.beginPath(),UMe(t,e,d,c),c&&(r.batchFill=d.fill||"",r.batchStroke=d.stroke||"")):e instanceof Z1?(r.lastDrawType!==EY&&(l=!0,r.lastDrawType=EY),TY(t,e,u,l,r),HMe(t,e,d)):e instanceof si?(r.lastDrawType!==AY&&(l=!0,r.lastDrawType=AY),GMe(t,e,u,l,r),WMe(t,e,d)):e.getTemporalDisplayables&&(r.lastDrawType!==RY&&(l=!0,r.lastDrawType=RY),XMe(t,e,r)),c&&n&&No(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function XMe(t,e,r){var n=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),jv(t,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,c=a.length;u<c;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),jv(t,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var zN=new RMe,MY=new kS(100),DY=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function R0(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),a=n.painter.type==="svg";t.dirty&&zN.delete(t);var i=zN.get(t);if(i)return i;var o=wt(t,{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,zN.set(t,s),t.dirty=!1,s;function l(u){for(var c=[r],d=!0,p=0;p<DY.length;++p){var v=o[DY[p]];if(v!=null&&!Le(v)&&!at(v)&&!_r(v)&&typeof v!="boolean"){d=!1;break}c.push(v)}var g;if(d){g=c.join(",")+(a?"-svg":"");var m=MY.get(g);m&&(a?u.svgElement=m:u.image=m)}var x=Bte(o.dashArrayX),_=ZMe(o.dashArrayY),w=Nte(o.symbol),T=KMe(x),A=zte(_),M=!a&&Jl.createCanvas(),D=a&&{tag:"g",attrs:{},key:"dcl",children:[]},P=k(),O;M&&(M.width=P.width*r,M.height=P.height*r,O=M.getContext("2d")),N(),d&&MY.put(g,M||D),u.image=M,u.svgElement=D,u.svgWidth=P.width,u.svgHeight=P.height;function k(){for(var $=1,H=0,F=T.length;H<F;++H)$=Uj($,T[H]);for(var W=1,H=0,F=w.length;H<F;++H)W=Uj(W,w[H].length);$*=W;var j=A*T.length*w.length;{var X=function(te){console.warn("Calculated decal size is greater than "+te+" due to decal option settings so "+te+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+te+" to be larger to avoid incontinuity.")};$>o.maxTileWidth&&X("maxTileWidth"),j>o.maxTileHeight&&X("maxTileHeight")}return{width:Math.max(1,Math.min($,o.maxTileWidth)),height:Math.max(1,Math.min(j,o.maxTileHeight))}}function N(){O&&(O.clearRect(0,0,M.width,M.height),o.backgroundColor&&(O.fillStyle=o.backgroundColor,O.fillRect(0,0,M.width,M.height)));for(var $=0,H=0;H<_.length;++H)$+=_[H];if($<=0)return;for(var F=-A,W=0,j=0,X=0;F<P.height;){if(W%2===0){for(var te=j/2%w.length,J=0,ie=0,se=0;J<P.width*2;){for(var le=0,H=0;H<x[X].length;++H)le+=x[X][H];if(le<=0)break;if(ie%2===0){var be=(1-o.symbolSize)*.5,Me=J+x[X][ie]*be,Se=F+_[W]*be,Ue=x[X][ie]*o.symbolSize,Xe=_[W]*o.symbolSize,st=se/2%w[te].length;$e(Me,Se,Ue,Xe,w[te][st])}J+=x[X][ie],++se,++ie,ie===x[X].length&&(ie=0)}++X,X===x.length&&(X=0)}F+=_[W],++j,++W,W===_.length&&(W=0)}function $e(Be,et,de,xe,xt){var Ie=a?1:r,Ct=fa(xt,Be*Ie,et*Ie,de*Ie,xe*Ie,o.color,o.symbolKeepAspect);if(a){var Ot=n.painter.renderOneToVNode(Ct);Ot&&D.children.push(Ot)}else K3(O,Ct)}}}}function Nte(t){if(!t||t.length===0)return[["rect"]];if(at(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!at(t[r])){e=!1;break}if(e)return Nte([t]);for(var n=[],r=0;r<t.length;++r)at(t[r])?n.push([t[r]]):n.push(t[r]);return n}function Bte(t){if(!t||t.length===0)return[[0,0]];if(_r(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!_r(t[n])){r=!1;break}if(r)return Bte([t]);for(var a=[],n=0;n<t.length;++n)if(_r(t[n])){var e=Math.ceil(t[n]);a.push([e,e])}else{var e=Oe(t[n],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function ZMe(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(_r(t)){var e=Math.ceil(t);return[e,e]}var r=Oe(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function KMe(t){return Oe(t,function(e){return zte(e)})}function zte(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function QMe(t,e){t.eachRawSeries(function(r){if(!t.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=R0(s,e)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=R0(a,e)}}})}var JMe=new dl;const Gl=JMe;var rM={};function eDe(t,e){rM[t]&&Si("Already has an implementation of "+t+"."),rM[t]=e}function $te(t){return rM[t]||Si("Implementation of "+t+" doesn't exists."),rM[t]}var tDe="5.4.1",rDe={zrender:"5.4.1"},nDe=1,aDe=800,iDe=900,oDe=1e3,sDe=2e3,lDe=5e3,Fte=1e3,uDe=1100,Q3=2e3,Vte=3e3,cDe=4e3,tI=4500,fDe=4600,dDe=5e3,hDe=6e3,Ute=7e3,Wte={PROCESSOR:{FILTER:oDe,SERIES_FILTER:aDe,STATISTIC:lDe},VISUAL:{LAYOUT:Fte,PROGRESSIVE_LAYOUT:uDe,GLOBAL:Q3,CHART:Vte,POST_CHART_LAYOUT:fDe,COMPONENT:cDe,BRUSH:dDe,CHART_ITEM:tI,ARIA:hDe,DECAL:Ute}},Bi="__flagInMainProcess",Io="__pendingUpdate",$N="__needsUpdateStatus",IY=/^[a-zA-Z0-9_]+$/,FN="__connectUpdateStatus",PY=0,pDe=1,vDe=2;function Hte(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){ts(this.id);return}return jte(this,t,e)}}function Gte(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return jte(this,t,e)}}function jte(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),dl.prototype[e].apply(t,r)}var Yte=function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(dl),qte=Yte.prototype;qte.on=Gte("on");qte.off=Gte("off");var My,VN,sE,Nd,UN,WN,HN,M_,D_,LY,OY,GN,kY,lE,NY,Xte,Fs,BY,nM=function(t){he(e,t);function e(r,n,a){var i=t.call(this,new _Me)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},at(n)&&(n=Zte[n]),i._dom=r;var o="canvas",s="auto",l=!1;{var u=gr.hasGlobalWindow?window:global;o=u.__ECHARTS__DEFAULT__RENDERER__||o,s=$t(u.__ECHARTS__DEFAULT__COARSE_POINTER,s);var c=u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__;l=c??l}var d=i._zr=w$(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:$t(a.useDirtyRect,l),useCoarsePointer:$t(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=eI(ot(d.flush,d),17),n=Et(n),n&&rte(n,!0),i._theme=n,i._locale=wEe(a.locale||Lee),i._coordSysMgr=new Cg;var p=i._api=NY(i);function v(g,m){return g.__prio-m.__prio}return XE(iM,v),XE(K$,v),i._scheduler=new Dte(i,p,K$,iM),i._messageCenter=new Yte,i._initEvents(),i.resize=ot(i.resize,i),d.animation.on("frame",i._onframe,i),LY(d,i),OY(d,i),V1(i),i}return e.prototype._onframe=function(){if(!this._disposed){BY(this);var r=this._scheduler;if(this[Io]){var n=this[Io].silent;this[Bi]=!0;try{My(this),Nd.update.call(this,null,this[Io].updateParams)}catch(l){throw this[Bi]=!1,this[Io]=null,l}this._zr.flush(),this[Bi]=!1,this[Io]=null,M_.call(this,n),D_.call(this,n)}else if(r.unfinished){var a=nDe,i=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),WN(this,i),r.performVisualTasks(i),lE(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,a){if(this[Bi]){Si("`setOption` should not be called during main process.");return}if(this._disposed){ts(this.id);return}var i,o,s;if(St(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Bi]=!0,!this._model||n){var l=new iRe(this._api),u=this._theme,c=this._model=new Jee;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Q$);var d={seriesTransition:s,optionChanged:!0};if(a)this[Io]={silent:i,updateParams:d},this[Bi]=!1,this.getZr().wakeUp();else{try{My(this),Nd.update.call(this,null,d)}catch(p){throw this[Io]=null,this[Bi]=!1,p}this._ssr||this._zr.flush(),this[Io]=null,this[Bi]=!1,M_.call(this,i),D_.call(this,i)}},e.prototype.setTheme=function(){ul("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||gr.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return ua("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;if(n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;if(n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){if(gr.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return V(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()}},e.prototype.getDataURL=function(r){if(this._disposed){ts(this.id);return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],o=this;V(n,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return V(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){ts(this.id);return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(oM[a]){var l=s,u=s,c=-s,d=-s,p=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();V(Kv,function(T,A){if(T.group===a){var M=n?T.getZr().painter.getSvgDom().innerHTML:T.renderToCanvas(Et(r)),D=T.getDom().getBoundingClientRect();l=i(D.left,l),u=i(D.top,u),c=o(D.right,c),d=o(D.bottom,d),p.push({dom:M,left:D.left,top:D.top})}}),l*=v,u*=v,c*=v,d*=v;var g=c-l,m=d-u,x=Jl.createCanvas(),_=w$(x,{renderer:n?"svg":"canvas"});if(_.resize({width:g,height:m}),n){var w="";return V(p,function(T){var A=T.left-l,M=T.top-u;w+='<g transform="translate('+A+","+M+')">'+T.dom+"</g>"}),_.painter.getSvgRoot().innerHTML=w,r.connectedBackgroundColor&&_.painter.setBackgroundColor(r.connectedBackgroundColor),_.refreshImmediately(),_.painter.toDataURL()}else return r.connectedBackgroundColor&&_.add(new yr({shape:{x:0,y:0,width:g,height:m},style:{fill:r.connectedBackgroundColor}})),V(p,function(T){var A=new si({style:{x:T.left*v-l,y:T.top*v-u,image:T.dom}});_.add(A)}),_.refreshImmediately(),x.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n){return UN(this,"convertToPixel",r,n)},e.prototype.convertFromPixel=function(r,n){return UN(this,"convertFromPixel",r,n)},e.prototype.containPixel=function(r,n){if(this._disposed){ts(this.id);return}var a=this._model,i,o=x1(a,r);return V(o,function(s,l){l.indexOf("Models")>=0&&V(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(n);else if(l==="seriesModels"){var d=this._chartsMap[u.__viewId];d&&d.containPoint?i=i||d.containPoint(n,u):Vn(l+": "+(d?"The found component do not support containPoint.":"No view mapping to the found component."))}else Vn(l+": containPoint is not supported")},this)},this),!!i},e.prototype.getVisual=function(r,n){var a=this._model,i=x1(a,r,{defaultMainType:"series"}),o=i.seriesModel;o||Vn("There is no specified series model");var s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?X3(s,l,n):jS(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;V(gDe,function(n){var a=function(i){var o=r.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&Hv(s,function(g){var m=Pt(g);if(m&&m.dataIndex!=null){var x=m.dataModel||o.getSeriesByIndex(m.seriesIndex);return l=x&&x.getDataParams(m.dataIndex,m.dataType)||{},!0}else if(m.eventData)return l=Ce({},m.eventData),!0},!0),l){var c=l.componentType,d=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=l.seriesIndex);var p=c&&d!=null&&o.getComponent(c,d),v=p&&r[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];!u&&!(p&&v)&&Vn("model or view can not be found by params"),l.event=i,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:p,view:v},r.trigger(n,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)}),V(A1,function(n,a){r._messageCenter.on(a,function(i){this.trigger(a,i)},r)}),V(["selectchanged"],function(n){r._messageCenter.on(n,function(a){this.trigger(n,a)},r)}),TMe(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){ts(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){ts(this.id);return}this._disposed=!0;var r=this.getDom();r&&MJ(this.getDom(),eV,"");var n=this,a=n._api,i=n._model;V(n._componentsViews,function(o){o.dispose(i,a)}),V(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 Kv[n.id]},e.prototype.resize=function(r){if(this[Bi]){Si("`resize` should not be called during main process.");return}if(this._disposed){ts(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[Io]&&(i==null&&(i=this[Io].silent),a=!0,this[Io]=null),this[Bi]=!0;try{a&&My(this),Nd.update.call(this,{type:"resize",animation:Ce({duration:0},r&&r.animation)})}catch(o){throw this[Bi]=!1,o}this[Bi]=!1,M_.call(this,i),D_.call(this,i)}},e.prototype.showLoading=function(r,n){if(this._disposed){ts(this.id);return}if(St(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!J$[r]){Vn("Loading effects "+r+" not exists.");return}var a=J$[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)},e.prototype.hideLoading=function(){if(this._disposed){ts(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=Ce({},r);return n.type=A1[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){ts(this.id);return}if(St(n)||(n={silent:!!n}),!!aM[r.type]&&this._model){if(this[Bi]){this._pendingActions.push(r);return}var a=n.silent;HN.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&gr.browser.weChat&&this._throttledZrFlush(),M_.call(this,a),D_.call(this,a)}},e.prototype.updateLabelLayout=function(){Gl.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){ts(this.id);return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);Tt(r.data&&i),i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){My=function(d){var p=d._scheduler;p.restorePipelines(d._model),p.prepareStageTasks(),VN(d,!0),VN(d,!1),p.plan()},VN=function(d,p){for(var v=d._model,g=d._scheduler,m=p?d._componentsViews:d._chartsViews,x=p?d._componentsMap:d._chartsMap,_=d._zr,w=d._api,T=0;T<m.length;T++)m[T].__alive=!1;p?v.eachComponent(function(D,P){D!=="series"&&A(P)}):v.eachSeries(A);function A(D){var P=D.__requireNewView;D.__requireNewView=!1;var O="_ec_"+D.id+"_"+D.type,k=!P&&x[O];if(!k){var N=rc(D.type),$=p?Pn.getClass(N.main,N.sub):Kr.getClass(N.sub);Tt($,N.sub+" does not exist."),k=new $,k.init(v,w),x[O]=k,m.push(k),_.add(k.group)}D.__viewId=k.__id=O,k.__alive=!0,k.__model=D,k.group.__ecComponentInfo={mainType:D.mainType,index:D.componentIndex},!p&&g.prepareView(k,D,v,w)}for(var T=0;T<m.length;){var M=m[T];M.__alive?T++:(!p&&M.renderTask.dispose(),_.remove(M.group),M.dispose(v,w),m.splice(T,1),x[M.__id]===M&&delete x[M.__id],M.__id=M.group.__ecComponentInfo=null)}},sE=function(d,p,v,g,m){var x=d._model;if(x.setUpdatePayload(v),!g){V([].concat(d._componentsViews).concat(d._chartsViews),M);return}var _={};_[g+"Id"]=v[g+"Id"],_[g+"Index"]=v[g+"Index"],_[g+"Name"]=v[g+"Name"];var w={mainType:g,query:_};m&&(w.subType=m);var T=v.excludeSeriesId,A;T!=null&&(A=yt(),V(Zr(T),function(D){var P=Da(D,null);P!=null&&A.set(P,!0)})),x&&x.eachComponent(w,function(D){var P=A&&A.get(D.id)!=null;if(!P)if(b6(v))if(D instanceof xn)v.type===Xv&&!v.notBlur&&!D.get(["emphasis","disabled"])&&bAe(D,v,d._api);else{var O=S3(D.mainType,D.componentIndex,v.name,d._api),k=O.focusSelf,N=O.dispatchers;v.type===Xv&&k&&!v.notBlur&&P$(D.mainType,D.componentIndex,d._api),N&&V(N,function($){v.type===Xv?yf($):bf($)})}else O$(v)&&D instanceof xn&&(SAe(D,v,d._api),m6(D),Fs(d))},d),x&&x.eachComponent(w,function(D){var P=A&&A.get(D.id)!=null;P||M(d[g==="series"?"_chartsMap":"_componentsMap"][D.__viewId])},d);function M(D){D&&D.__alive&&D[p]&&D[p](D.__model,x,d._api,v)}},Nd={prepareAndUpdate:function(d){My(this),Nd.update.call(this,d,{optionChanged:d.newOption!=null})},update:function(d,p){var v=this._model,g=this._api,m=this._zr,x=this._coordSysMgr,_=this._scheduler;if(v){v.setUpdatePayload(d),_.restoreData(v,d),_.performSeriesTasks(v),x.create(v,g),_.performDataProcessorTasks(v,d),WN(this,v),x.update(v,g),r(v),_.performVisualTasks(v,d),GN(this,v,g,d,p);var w=v.get("backgroundColor")||"transparent",T=v.get("darkMode");m.setBackgroundColor(w),T!=null&&T!=="auto"&&m.setDarkMode(T),Gl.trigger("afterupdate",v,g)}},updateTransform:function(d){var p=this,v=this._model,g=this._api;if(v){v.setUpdatePayload(d);var m=[];v.eachComponent(function(_,w){if(_!=="series"){var T=p.getViewOfComponentModel(w);if(T&&T.__alive)if(T.updateTransform){var A=T.updateTransform(w,v,g,d);A&&A.update&&m.push(T)}else m.push(T)}});var x=yt();v.eachSeries(function(_){var w=p._chartsMap[_.__viewId];if(w.updateTransform){var T=w.updateTransform(_,v,g,d);T&&T.update&&x.set(_.uid,1)}else x.set(_.uid,1)}),r(v),this._scheduler.performVisualTasks(v,d,{setDirty:!0,dirtyMap:x}),lE(this,v,g,d,{},x),Gl.trigger("afterupdate",v,g)}},updateView:function(d){var p=this._model;p&&(p.setUpdatePayload(d),Kr.markUpdateMethod(d,"updateView"),r(p),this._scheduler.performVisualTasks(p,d,{setDirty:!0}),GN(this,p,this._api,d,{}),Gl.trigger("afterupdate",p,this._api))},updateVisual:function(d){var p=this,v=this._model;v&&(v.setUpdatePayload(d),v.eachSeries(function(g){g.getData().clearAllVisual()}),Kr.markUpdateMethod(d,"updateVisual"),r(v),this._scheduler.performVisualTasks(v,d,{visualType:"visual",setDirty:!0}),v.eachComponent(function(g,m){if(g!=="series"){var x=p.getViewOfComponentModel(m);x&&x.__alive&&x.updateVisual(m,v,p._api,d)}}),v.eachSeries(function(g){var m=p._chartsMap[g.__viewId];m.updateVisual(g,v,p._api,d)}),Gl.trigger("afterupdate",v,this._api))},updateLayout:function(d){Nd.update.call(this,d)}},UN=function(d,p,v,g){if(d._disposed){ts(d.id);return}for(var m=d._model,x=d._coordSysMgr.getCoordinateSystems(),_,w=x1(m,v),T=0;T<x.length;T++){var A=x[T];if(A[p]&&(_=A[p](m,w,g))!=null)return _}Vn("No coordinate system that supports "+p+" found by the given finder.")},WN=function(d,p){var v=d._chartsMap,g=d._scheduler;p.eachSeries(function(m){g.updateStreamModes(m,v[m.__viewId])})},HN=function(d,p){var v=this,g=this.getModel(),m=d.type,x=d.escapeConnect,_=aM[m],w=_.actionInfo,T=(w.update||"update").split(":"),A=T.pop(),M=T[0]!=null&&rc(T[0]);this[Bi]=!0;var D=[d],P=!1;d.batch&&(P=!0,D=Oe(d.batch,function(W){return W=wt(Ce({},W),d),W.batch=null,W}));var O=[],k,N=O$(d),$=b6(d);if($&&ree(this._api),V(D,function(W){if(k=_.action(W,v._model,v._api),k=k||Ce({},W),k.type=w.event||k.type,O.push(k),$){var j=v3(d),X=j.queryOptionMap,te=j.mainTypeSpecified,J=te?X.keys()[0]:"series";sE(v,A,W,J),Fs(v)}else N?(sE(v,A,W,"series"),Fs(v)):M&&sE(v,A,W,M.main,M.sub)}),A!=="none"&&!$&&!N&&!M)try{this[Io]?(My(this),Nd.update.call(this,d),this[Io]=null):Nd[A].call(this,d)}catch(W){throw this[Bi]=!1,W}if(P?k={type:w.event||m,escapeConnect:x,batch:O}:k=O[0],this[Bi]=!1,!p){var H=this._messageCenter;if(H.trigger(k.type,k),N){var F={type:"selectchanged",escapeConnect:x,selected:wAe(g),isFromClick:d.isFromClick||!1,fromAction:d.type,fromActionPayload:d};H.trigger(F.type,F)}}},M_=function(d){for(var p=this._pendingActions;p.length;){var v=p.shift();HN.call(this,v,d)}},D_=function(d){!d&&this.trigger("updated")},LY=function(d,p){d.on("rendered",function(v){p.trigger("rendered",v),d.animation.isFinished()&&!p[Io]&&!p._scheduler.unfinished&&!p._pendingActions.length&&p.trigger("finished")})},OY=function(d,p){d.on("mouseover",function(v){var g=v.target,m=Hv(g,gh);m&&(xAe(m,v,p._api),Fs(p))}).on("mouseout",function(v){var g=v.target,m=Hv(g,gh);m&&(_Ae(m,v,p._api),Fs(p))}).on("click",function(v){var g=v.target,m=Hv(g,function(w){return Pt(w).dataIndex!=null},!0);if(m){var x=m.selected?"unselect":"select",_=Pt(m);p._api.dispatchAction({type:x,dataType:_.dataType,dataIndexInside:_.dataIndex,seriesIndex:_.seriesIndex,isFromClick:!0})}})};function r(d){d.clearColorPalette(),d.eachSeries(function(p){p.clearColorPalette()})}function n(d){var p=[],v=[],g=!1;if(d.eachComponent(function(w,T){var A=T.get("zlevel")||0,M=T.get("z")||0,D=T.getZLevelKey();g=g||!!D,(w==="series"?v:p).push({zlevel:A,z:M,idx:T.componentIndex,type:w,key:D})}),g){var m=p.concat(v),x,_;XE(m,function(w,T){return w.zlevel===T.zlevel?w.z-T.z:w.zlevel-T.zlevel}),V(m,function(w){var T=d.getComponent(w.type,w.idx),A=w.zlevel,M=w.key;x!=null&&(A=Math.max(x,A)),M?(A===x&&M!==_&&A++,_=M):_&&(A===x&&A++,_=""),x=A,T.setZLevel(A)})}}GN=function(d,p,v,g,m){n(p),kY(d,p,v,g,m),V(d._chartsViews,function(x){x.__alive=!1}),lE(d,p,v,g,m),V(d._chartsViews,function(x){x.__alive||x.remove(p,v)})},kY=function(d,p,v,g,m,x){V(x||d._componentsViews,function(_){var w=_.__model;u(w,_),_.render(w,p,v,g),s(w,_),c(w,_)})},lE=function(d,p,v,g,m,x){var _=d._scheduler;m=Ce(m||{},{updatedSeries:p.getSeries()}),Gl.trigger("series:beforeupdate",p,v,m);var w=!1;p.eachSeries(function(T){var A=d._chartsMap[T.__viewId];A.__alive=!0;var M=A.renderTask;_.updatePayload(M,g),u(T,A),x&&x.get(T.uid)&&M.dirty(),M.perform(_.getPerformArgs(M))&&(w=!0),A.group.silent=!!T.get("silent"),o(T,A),m6(T)}),_.unfinished=w||_.unfinished,Gl.trigger("series:layoutlabels",p,v,m),Gl.trigger("series:transition",p,v,m),p.eachSeries(function(T){var A=d._chartsMap[T.__viewId];s(T,A),c(T,A)}),i(d,p),Gl.trigger("series:afterupdate",p,v,m)},Fs=function(d){d[$N]=!0,d.getZr().wakeUp()},BY=function(d){d[$N]&&(d.getZr().storage.traverse(function(p){c0(p)||a(p)}),d[$N]=!1)};function a(d){for(var p=[],v=d.currentStates,g=0;g<v.length;g++){var m=v[g];m==="emphasis"||m==="blur"||m==="select"||p.push(m)}d.selected&&d.states.select&&p.push("select"),d.hoverState===zD&&d.states.emphasis?p.push("emphasis"):d.hoverState===$S&&d.states.blur&&p.push("blur"),d.useStates(p)}function i(d,p){var v=d._zr,g=v.storage,m=0;g.traverse(function(x){x.isGroup||m++}),m>p.get("hoverLayerThreshold")&&!gr.node&&!gr.worker&&p.eachSeries(function(x){if(!x.preventUsingHoverLayer){var _=d._chartsMap[x.__viewId];_.__alive&&_.eachRendered(function(w){w.states.emphasis&&(w.states.emphasis.hoverLayer=!0)})}})}function o(d,p){var v=d.get("blendMode")||null;p.eachRendered(function(g){g.isGroup||(g.style.blend=v)})}function s(d,p){if(!d.preventAutoZ){var v=d.get("z")||0,g=d.get("zlevel")||0;p.eachRendered(function(m){return l(m,v,g,-1/0),!0})}}function l(d,p,v,g){var m=d.getTextContent(),x=d.getTextGuideLine(),_=d.isGroup;if(_)for(var w=d.childrenRef(),T=0;T<w.length;T++)g=Math.max(l(w[T],p,v,g),g);else d.z=p,d.zlevel=v,g=Math.max(d.z2,g);if(m&&(m.z=p,m.zlevel=v,isFinite(g)&&(m.z2=g+2)),x){var A=d.textGuideLineConfig;x.z=p,x.zlevel=v,isFinite(g)&&(x.z2=g+(A&&A.showAbove?1:-1))}return g}function u(d,p){p.eachRendered(function(v){if(!c0(v)){var g=v.getTextContent(),m=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function c(d,p){var v=d.getModel("stateAnimation"),g=d.isAnimationEnabled(),m=v.get("duration"),x=m>0?{duration:m,delay:v.get("delay"),easing:v.get("easing")}:null;p.eachRendered(function(_){if(_.states&&_.states.emphasis){if(c0(_))return;if(_ instanceof ir&&RAe(_),_.__dirty){var w=_.prevStates;w&&_.useStates(w)}if(g){_.stateTransition=x;var T=_.getTextContent(),A=_.getTextGuideLine();T&&(T.stateTransition=x),A&&(A.stateTransition=x)}_.__dirty&&a(_)}})}NY=function(d){return new(function(p){he(v,p);function v(){return p!==null&&p.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(g){for(;g;){var m=g.__ecComponentInfo;if(m!=null)return d._model.getComponent(m.mainType,m.index);g=g.parent}},v.prototype.enterEmphasis=function(g,m){yf(g,m),Fs(d)},v.prototype.leaveEmphasis=function(g,m){bf(g,m),Fs(d)},v.prototype.enterBlur=function(g){QJ(g),Fs(d)},v.prototype.leaveBlur=function(g){_3(g),Fs(d)},v.prototype.enterSelect=function(g){JJ(g),Fs(d)},v.prototype.leaveSelect=function(g){eee(g),Fs(d)},v.prototype.getModel=function(){return d.getModel()},v.prototype.getViewOfComponentModel=function(g){return d.getViewOfComponentModel(g)},v.prototype.getViewOfSeriesModel=function(g){return d.getViewOfSeriesModel(g)},v}(ete))(d)},Xte=function(d){function p(v,g){for(var m=0;m<v.length;m++){var x=v[m];x[FN]=g}}V(A1,function(v,g){d._messageCenter.on(g,function(m){if(oM[d.group]&&d[FN]!==PY){if(m&&m.escapeConnect)return;var x=d.makeActionFromEvent(m),_=[];V(Kv,function(w){w!==d&&w.group===d.group&&_.push(w)}),p(_,PY),V(_,function(w){w[FN]!==pDe&&w.dispatchAction(x)}),p(_,vDe)}})})}}(),e}(dl),J3=nM.prototype;J3.on=Hte("on");J3.off=Hte("off");J3.one=function(t,e,r){var n=this;ul("ECharts#one is deprecated.");function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),n.off(t,a)}this.on.call(this,t,a,r)};var gDe=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function ts(t){Vn("Instance "+t+" has been disposed")}var aM={},A1={},K$=[],Q$=[],iM=[],Zte={},J$={},Kv={},oM={},mDe=+new Date-0,yDe=+new Date-0,eV="_echarts_instance_";function bDe(t,e,r){var n=!(r&&r.ssr);if(n){if(!t)throw new Error("Initialize failed: invalid dom.");var a=tV(t);if(a)return Vn("There is a chart instance already initialized on the dom."),a;ug(t)&&t.nodeName.toUpperCase()!=="CANVAS"&&(!t.clientWidth&&(!r||r.width==null)||!t.clientHeight&&(!r||r.height==null))&&Vn("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var i=new nM(t,e,r);return i.id="ec_"+mDe++,Kv[i.id]=i,n&&MJ(t,eV,i.id),Xte(i),Gl.trigger("afterinit",i),i}function xDe(t){if(Le(t)){var e=t;t=null,V(e,function(r){r.group!=null&&(t=r.group)}),t=t||"g_"+yDe++,V(e,function(r){r.group=t})}return oM[t]=!0,t}function Kte(t){oM[t]=!1}var _De=Kte;function SDe(t){at(t)?t=Kv[t]:t instanceof nM||(t=tV(t)),t instanceof nM&&!t.isDisposed()&&t.dispose()}function tV(t){return Kv[pCe(t,eV)]}function wDe(t){return Kv[t]}function rV(t,e){Zte[t]=e}function nV(t){Qt(Q$,t)<0&&Q$.push(t)}function aV(t,e){iV(K$,t,e,sDe)}function Qte(t){rI("afterinit",t)}function Jte(t){rI("afterupdate",t)}function rI(t,e){Gl.on(t,e)}function au(t,e,r){vt(e)&&(r=e,e="");var n=St(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,!A1[e]&&(Tt(IY.test(n)&&IY.test(e)),aM[n]||(aM[n]={action:r,actionInfo:t}),A1[e]=n)}function ere(t,e){Cg.register(t,e)}function TDe(t){var e=Cg.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function tre(t,e){iV(iM,t,e,Fte,"layout")}function Nh(t,e){iV(iM,t,e,Vte,"visual")}var zY=[];function iV(t,e,r,n,a){(vt(e)||St(e))&&(r=e,e=n);{if(isNaN(e)||e==null)throw new Error("Illegal priority");V(t,function(o){Tt(o.__raw!==r)})}if(!(Qt(zY,r)>=0)){zY.push(r);var i=Dte.wrapStageHandler(r,a);i.__prio=e,i.__raw=r,t.push(i)}}function oV(t,e){J$[t]=e}function CDe(t){ul("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."),OQ({createCanvas:t})}function rre(t,e,r){var n=$te("registerMap");n&&n(t,e,r)}function ADe(t){var e=$te("getMap");return e&&e(t)}var nre=LRe;Nh(Q3,iMe);Nh(tI,oMe);Nh(tI,sMe);Nh(Q3,SMe);Nh(tI,wMe);Nh(Ute,QMe);nV(rte);aV(iDe,hRe);oV("default",lMe);au({type:Xv,event:Xv,update:Xv},ta);au({type:tR,event:tR,update:tR},ta);au({type:_1,event:_1,update:_1},ta);au({type:rR,event:rR,update:rR},ta);au({type:S1,event:S1,update:S1},ta);rV("light",bMe);rV("dark",xMe);var EDe={},$Y=[],RDe={registerPreprocessor:nV,registerProcessor:aV,registerPostInit:Qte,registerPostUpdate:Jte,registerUpdateLifecycle:rI,registerAction:au,registerCoordinateSystem:ere,registerLayout:tre,registerVisual:Nh,registerTransform:nre,registerLoading:oV,registerMap:rre,registerImpl:eDe,PRIORITY:Wte,ComponentModel:ur,ComponentView:Pn,SeriesModel:xn,ChartView:Kr,registerComponentModel:function(t){ur.registerClass(t)},registerComponentView:function(t){Pn.registerClass(t)},registerSeriesModel:function(t){xn.registerClass(t)},registerChartView:function(t){Kr.registerClass(t)},registerSubTypeDefaulter:function(t,e){ur.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){bJ(t,e)}};function rr(t){if(Le(t)){V(t,function(e){rr(e)});return}Qt($Y,t)>=0||($Y.push(t),vt(t)&&(t={install:t}),t.install(RDe))}function I_(t){return t==null?0:t.length||1}function FY(t){return t}var MDe=function(){function t(e,r,n,a,i,o){this._old=e,this._new=r,this._oldKeyGetter=n||FY,this._newKeyGetter=a||FY,this.context=i,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},a=new Array(e.length),i=new Array(r.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],l=n[s],u=I_(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},a={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],c=a[l],d=I_(u),p=I_(c);if(d>1&&p===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(d===1&&p>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(d===1&&p===1)this._update&&this._update(c,u),a[l]=null;else if(d>1&&p>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(d>1)for(var v=0;v<d;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var a=e[n],i=r[a],o=I_(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}},t.prototype._initIndexMap=function(e,r,n,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(n[o]=s),!!r){var l=r[s],u=I_(l);u===0?(r[s]=o,i&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t}();const xf=MDe;var DDe=function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function IDe(t,e){var r={},n=r.encode={},a=yt(),i=[],o=[],s={};V(t.dimensions,function(p){var v=t.getDimensionInfo(p),g=v.coordDim;if(g){Tt(F$.get(g)==null);var m=v.coordDimIndex;jN(n,g)[m]=p,v.isExtraCoord||(a.set(g,1),PDe(v.type)&&(i[0]=p),jN(s,g)[m]=t.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(p)}F$.each(function(x,_){var w=jN(n,_),T=v.otherDims[_];T!=null&&T!==!1&&(w[T]=v.name)})});var l=[],u={};a.each(function(p,v){var g=n[v];u[v]=g[0],l=l.concat(g)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=Oe(l,function(p){return t.getDimensionInfo(p).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(i=c.slice());var d=n.tooltip;return d&&d.length?o=d.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,r.userOutput=new DDe(s,e),r}function jN(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function sM(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function PDe(t){return!(t==="ordinal"||t==="time")}var LDe=function(){function t(e){this.otherDims={},e!=null&&Ce(this,e)}return t}();const sR=LDe;var ODe=wr(),kDe={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},are=function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=sre(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return $t(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=ate(this.source),n=!lre(e),a="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,c=void 0,d=this.dimensions[s];if(d&&d.storeDimIndex===o)l=r?d.name:null,u=d.type,c=d.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(l=r?p.name:null,u=p.type)}i.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!d||!d.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=kDe[u]||"f",c&&(a+=c.uid),a+="$"}var v=this.source,g=[v.seriesLayoutBy,v.startIndex,a].join("$$");return{dimensions:i,hash:g}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],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)}e.push(a)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function ire(t){return t instanceof are}function ore(t){for(var e=yt(),r=0;r<(t||[]).length;r++){var n=t[r],a=St(n)?n.name:n;a!=null&&e.get(a)==null&&e.set(a,r)}return e}function sre(t){var e=ODe(t);return e.dimNameMap||(e.dimNameMap=ore(t.dimensionsDefine))}function lre(t){return t>30}var P_=St,Bd=Oe,NDe=typeof Int32Array>"u"?Array:Int32Array,BDe="e\0\0",VY=-1,zDe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],$De=["_approximateExtent"],UY,uE,L_,Dy,YN,cE,qN,FDe=function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;ire(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<n.length;c++){var d=n[c],p=at(d)?new sR({name:d}):d instanceof sR?d:new sR(d),v=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=v,p.coordDimIndex=0);var g=p.otherDims=p.otherDims||{};o.push(v),i[v]=p,u[v]!=null&&(l=!0),p.createInvertedIndices&&(s[v]=[]),g.itemName===0&&(this._nameDimIdx=c),g.itemId===0&&(this._idDimIdx=c),Tt(a||p.storeDimIndex>=0),a&&(p.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=yt();V(o,function(x){m.set(i[x].storeDimIndex,x)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!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},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(_r(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);if(r==null)throw new Error("Unknown dimension "+e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var a=n.encode[e];return a?a[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var a=this,i;if(e instanceof H$&&(i=e),!i){var o=this.dimensions,s=U3(e)||_i(e)?new ite(e,o.length):e;i=new H$;var l=Bd(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=IDe(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,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&&qN(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==df&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===pl;if(l&&!a.pure)for(var u=[],c=e;c<r;c++){var d=a.getItem(c,u);if(!this.hasItemOption&&tCe(d)&&(this.hasItemOption=!0),d){var p=d.name;i[c]==null&&p!=null&&(i[c]=Da(p,null));var v=d.id;o[c]==null&&v!=null&&(o[c]=Da(v,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<r;c++)qN(this,c);UY(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){P_(e)?Ce(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=L_(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),a=this._store.getOrdinalMeta(e);return a?a.categories[n]:n},t.prototype.getId=function(e){return uE(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,a=this._dimInfos[e];if(a)return n.get(a.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,a=this._dimInfos[e];if(a)return n.getByRawIndex(a.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,a=this._store;return Le(e)?a.getValues(Bd(e,function(i){return n._getStoreDimIndex(i)}),r):a.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e];if(!n)throw new Error("Do not supported yet");var a=n[r];return a==null||isNaN(a)?VY:a},t.prototype.indicesOfNearest=function(e,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),r,n)},t.prototype.each=function(e,r,n){vt(e)&&(n=r,r=e,e=[]);var a=n||this,i=Bd(Dy(e),this._getStoreDimIndex,this);this._store.each(i,a?ot(r,a):r)},t.prototype.filterSelf=function(e,r,n){vt(e)&&(n=r,r=e,e=[]);var a=n||this,i=Bd(Dy(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?ot(r,a):r),this},t.prototype.selectRange=function(e){var r=this,n={},a=sr(e);return V(a,function(i){var o=r._getStoreDimIndex(i);n[o]=e[i]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){vt(e)&&(n=r,r=e,e=[]),n=n||this;var a=[];return this.each(e,function(){a.push(r&&r.apply(this,arguments))},n),a},t.prototype.map=function(e,r,n,a){var i=n||a||this,o=Bd(Dy(e),this._getStoreDimIndex,this),s=cE(this);return s._store=this._store.map(o,i?ot(r,i):r),s},t.prototype.modify=function(e,r,n,a){var i=this,o=n||a||this;V(Dy(e),function(l){var u=i.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=Bd(Dy(e),this._getStoreDimIndex,this);this._store.modify(s,o?ot(r,o):r)},t.prototype.downSample=function(e,r,n,a){var i=cE(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),r,n,a),i},t.prototype.lttbDownSample=function(e,r){var n=cE(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new Xr(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new xf(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return uE(e,n)},function(n){return uE(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},P_(e)?Ce(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],a=n&&n[r];return a??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[r];return i==null&&(i=this.getVisual(r),Le(i)?i=i.slice():P_(i)&&(i=Ce({},i)),a[r]=i),i},t.prototype.setItemVisual=function(e,r,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,P_(r)?Ce(a,r):a[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){P_(e)?Ce(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?Ce(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;D$(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){V(this._graphicEls,function(n,a){n&&e&&e.call(r,n,a)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Bd(this.dimensions,this._getDimInfo,this),this.hostModel)),YN(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];vt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(AD(arguments)))})},t.internalField=function(){UY=function(e){var r=e._invertedIndicesMap;V(r,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=r[a]=new NDe(o.categories.length);for(var l=0;l<n.length;l++)n[l]=VY;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},L_=function(e,r,n){return Da(e._getCategory(r,n),null)},uE=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=L_(e,e._idDimIdx,r)),n==null&&(n=BDe+r),n},Dy=function(e){return Le(e)||(e=e!=null?[e]:[]),e},cE=function(e){var r=new t(e._schema?e._schema:Bd(e.dimensions,e._getDimInfo,e),e.hostModel);return YN(r,e),r},YN=function(e,r){V(zDe.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,V($De,function(n){e[n]=Et(r[n])}),e._calculationInfo=Ce({},r._calculationInfo)},qN=function(e,r){var n=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=a[r];if(s==null&&i!=null&&(n[r]=s=L_(e,i,r)),l==null&&o!=null&&(a[r]=l=L_(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),a[r]=l}}}(),t}();const Ui=FDe;function VDe(t,e){return ib(t,e).dimensions}function ib(t,e){U3(t)||(t=W3(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],a=yt(),i=[],o=WDe(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&lre(o),l=n===t.dimensionsDefine,u=l?sre(t):ore(n),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,o));for(var d=yt(c),p=new hte(o),v=0;v<p.length;v++)p[v]=-1;function g(k){var N=p[k];if(N<0){var $=n[k],H=St($)?$:{name:$},F=new sR,W=H.name;W!=null&&u.get(W)!=null&&(F.name=F.displayName=W),H.type!=null&&(F.type=H.type),H.displayName!=null&&(F.displayName=H.displayName);var j=i.length;return p[k]=j,F.storeDimIndex=k,i.push(F),F}return i[N]}if(!s)for(var v=0;v<o;v++)g(v);d.each(function(k,N){var $=Zr(k).slice();if($.length===1&&!at($[0])&&$[0]<0){d.set(N,!1);return}var H=d.set(N,[]);V($,function(F,W){var j=at(F)?u.get(F):F;j!=null&&j<o&&(H[W]=j,x(g(j),N,W))})});var m=0;V(r,function(k){var N,$,H,F;if(at(k))N=k,F={};else{F=k,N=F.name;var W=F.ordinalMeta;F.ordinalMeta=null,F=Ce({},F),F.ordinalMeta=W,$=F.dimsDef,H=F.otherDims,F.name=F.coordDim=F.coordDimIndex=F.dimsDef=F.otherDims=null}var j=d.get(N);if(j!==!1){if(j=Zr(j),!j.length)for(var X=0;X<($&&$.length||1);X++){for(;m<o&&g(m).coordDim!=null;)m++;m<o&&j.push(m++)}V(j,function(te,J){var ie=g(te);if(l&&F.type!=null&&(ie.type=F.type),x(wt(ie,F),N,J),ie.name==null&&$){var se=$[J];!St(se)&&(se={name:se}),ie.name=ie.displayName=se.name,ie.defaultTooltip=se.defaultTooltip}H&&wt(ie.otherDims,H)})}});function x(k,N,$){F$.get(N)!=null?k.otherDims[N]=$:(k.coordDim=N,k.coordDimIndex=$,a.set(N,!0))}var _=e.generateCoord,w=e.generateCoordCount,T=w!=null;w=_?w||1:0;var A=_||"value";function M(k){k.name==null&&(k.name=k.coordDim)}if(s)V(i,function(k){M(k)}),i.sort(function(k,N){return k.storeDimIndex-N.storeDimIndex});else for(var D=0;D<o;D++){var P=g(D),O=P.coordDim;O==null&&(P.coordDim=HDe(A,a,T),P.coordDimIndex=0,(!_||w<=0)&&(P.isExtraCoord=!0),w--),M(P),P.type==null&&(Xee(t,D)===mi.Must||P.isExtraCoord&&(P.otherDims.itemName!=null||P.otherDims.seriesName!=null))&&(P.type="ordinal")}return UDe(i),new are({source:t,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function UDe(t){for(var e=yt(),r=0;r<t.length;r++){var n=t[r],a=n.name,i=e.get(a)||0;i>0&&(n.name=a+(i-1)),i++,e.set(a,i)}}function WDe(t,e,r,n){var a=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return V(e,function(i){var o;St(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function HDe(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var GDe=function(){function t(e){this.coordSysDims=[],this.axisMap=yt(),this.categoryAxisMap=yt(),this.coordSysName=e}return t}();function jDe(t){var e=t.get("coordinateSystem"),r=new GDe(e),n=YDe[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var YDe={cartesian2d:function(t,e,r,n){var a=t.getReferringComponents("xAxis",xa).models[0],i=t.getReferringComponents("yAxis",xa).models[0];{if(!a)throw new Error('xAxis "'+ca(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!i)throw new Error('yAxis "'+ca(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),Iy(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),Iy(i)&&(n.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var a=t.getReferringComponents("singleAxis",xa).models[0];if(!a)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],r.set("single",a),Iy(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var a=t.getReferringComponents("polar",xa).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");{if(!o)throw new Error("angleAxis option not found");if(!i)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),Iy(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),Iy(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var a=t.ecModel,i=a.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();V(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];r.set(c,u),Iy(u)&&(n.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Iy(t){return t.get("type")==="category"}function ure(t,e,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;qDe(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,c,d,p;if(V(i,function(w,T){at(w)&&(i[T]=w={name:w}),l&&!w.isExtraCoord&&(!n&&!u&&w.ordinalMeta&&(u=w),!c&&w.type!=="ordinal"&&w.type!=="time"&&(!a||a===w.coordDim)&&(c=w))}),c&&!n&&!u&&(n=!0),c){d="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,g=c.type,m=0;V(i,function(w){w.coordDim===v&&m++});var x={name:d,coordDim:v,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},_={name:p,coordDim:p,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(x.storeDimIndex=s.ensureCalculationDimension(p,g),_.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(x),o.appendCalculationDimension(_)):(i.push(x),i.push(_))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:p,stackResultDimension:d}}function qDe(t){return!ire(t.schema)}function _f(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function sV(t,e){return _f(t,e)?t.getCalculationInfo("stackResultDimension"):e}function XDe(t,e){var r=t.get("coordinateSystem"),n=Cg.get(r),a;return e&&e.coordSysDims&&(a=Oe(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=sM(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function ZDe(t,e,r){var n,a;return r&&V(t,function(i,o){var s=i.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(t[n].otherDims.itemName=0),n}function mc(t,e,r){r=r||{};var n=e.getSourceManager(),a,i=!1;t?(i=!0,a=W3(t)):(a=n.getSource(),i=a.sourceFormat===pl);var o=jDe(e),s=XDe(e,o),l=r.useEncodeDefaulter,u=vt(l)?l:l?Lt(qee,s,e):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},d=ib(a,c),p=ZDe(d.dimensions,r.createInvertedIndices,o),v=i?null:n.getSharedDataStore(d),g=ure(e,{schema:d,store:v}),m=new Ui(d,e);m.setCalculationInfo(g);var x=p!=null&&KDe(a)?function(_,w,T,A){return A===p?T:this.defaultDimValueGetter(_,w,T,A)}:null;return m.hasItemOption=!1,m.initData(i?a:v,null,x),m}function KDe(t){if(t.sourceFormat===pl){var e=QDe(t.data||[]);return!Le(G0(e))}}function QDe(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var cre=function(){function t(e){this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype.unionExtent=function(e){var r=this._extent;e[0]<r[0]&&(r[0]=e[0]),e[1]>r[1]&&(r[1]=e[1])},t.prototype.unionExtentFromData=function(e,r){this.unionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r)},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();OD(cre);const Mf=cre;var JDe=0,eIe=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++JDe}return t.createByAxisModel=function(e){var r=e.option,n=r.data,a=n&&Oe(n,tIe);return new t({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!at(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,r;var a=this._getOrCreateMap();return r=a.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,a.set(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=yt(this.categories))},t}();function tIe(t){return St(t)&&t.value!=null?t.value:t+""}const e5=eIe;function rIe(t){var e=Math.pow(10,BS(Math.abs(t))),r=Math.abs(t/e);return r===0||r===1||r===2||r===3||r===5}function t5(t){return t.type==="interval"||t.type==="log"}function nIe(t,e,r,n){var a={},i=t[1]-t[0],o=a.interval=h3(i/e,!0);r!=null&&o<r&&(o=a.interval=r),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=fre(o),l=a.niceTickExtent=[Xn(Math.ceil(t[0]/o)*o,s),Xn(Math.floor(t[1]/o)*o,s)];return aIe(l,t),a}function XN(t){var e=Math.pow(10,BS(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Xn(r*e)}function fre(t){return ql(t)+2}function WY(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function aIe(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),WY(t,0,e),WY(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function nI(t,e){return t>=e[0]&&t<=e[1]}function aI(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function iI(t,e){return t*(e[1]-e[0])+e[0]}var dre=function(t){he(e,t);function e(r){var n=t.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new e5({})),Le(a)&&(a=new e5({categories:Oe(a,function(i){return St(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return e.prototype.parse=function(r){return r==null?NaN:at(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return r=this.parse(r),nI(r,this._extent)&&this._ordinalMeta.categories[r]!=null},e.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),aI(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(iI(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},e.prototype.getMinorTicks=function(r){},e.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=Math.min(s,n.length);o<l;++o){var u=n[o];a[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;a.push(c),i[c]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},e.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Mf);Mf.registerClass(dre);const lV=dre;var vv=Xn,hre=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return nI(r,this._extent)},e.prototype.normalize=function(r){return aI(r,this._extent)},e.prototype.scale=function(r){return iI(r,this._extent)},e.prototype.setExtent=function(r,n){var a=this._extent;isNaN(r)||(a[0]=parseFloat(r)),isNaN(n)||(a[1]=parseFloat(n))},e.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=fre(r)},e.prototype.getTicks=function(r){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]<i[0]&&(r?s.push({value:vv(i[0]-n,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=vv(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(r?s.push({value:vv(c+n,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,c=[],d=s.value-l.value,p=d/r;u<r-1;){var v=vv(l.value+(u+1)*p);v>i[0]&&v<i[1]&&c.push(v),u++}a.push(c)}return a},e.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=ql(r.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=vv(r.value,a,!0);return k3(i)},e.prototype.calcNiceTicks=function(r,n,a){r=r||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=nIe(i,r,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);r.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=vv(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=vv(Math.ceil(n[1]/o)*o))},e.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},e.type="interval",e}(Mf);Mf.registerClass(hre);const bh=hre;var pre=typeof Float32Array<"u",iIe=pre?Float32Array:Array;function nc(t){return Le(t)?pre?new Float32Array(t):t:new iIe(t)}var r5="__ec_stack_";function uV(t){return t.get("stack")||r5+t.seriesIndex}function cV(t){return t.dim+t.index}function oIe(t){var e=[],r=t.axis,n="axis0";if(r.type==="category"){for(var a=r.getBandWidth(),i=0;i<t.count;i++)e.push(wt({bandWidth:a,axisKey:n,stackId:r5+i},t));for(var o=mre(e),s=[],i=0;i<t.count;i++){var l=o[n][r5+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function vre(t,e){var r=[];return e.eachSeriesByType(t,function(n){xre(n)&&r.push(n)}),r}function sIe(t){var e={};V(t,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var d=l.getData(),p=c.dim+"_"+c.index,v=d.getDimensionIndex(d.mapDimension(c.dim)),g=d.getStore(),m=0,x=g.count();m<x;++m){var _=g.get(v,m);e[p]?e[p].push(_):e[p]=[_]}});var r={};for(var n in e)if(e.hasOwnProperty(n)){var a=e[n];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}r[n]=i}}return r}function gre(t){var e=sIe(t),r=[];return V(t,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),d=i.scale.getExtent(),p=Math.abs(d[1]-d[0]);s=u?c/p*u:c}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var g=Qe(n.get("barWidth"),s),m=Qe(n.get("barMaxWidth"),s),x=Qe(n.get("barMinWidth")||(_re(n)?.5:1),s),_=n.get("barGap"),w=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:g,barMaxWidth:m,barMinWidth:x,barGap:_,barCategoryGap:w,axisKey:cV(i),stackId:uV(n)})}),mre(r)}function mre(t){var e={};V(t,function(n,a){var i=n.axisKey,o=n.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var d=n.barMaxWidth;d&&(l[u].maxWidth=d);var p=n.barMinWidth;p&&(l[u].minWidth=p);var v=n.barGap;v!=null&&(s.gap=v);var g=n.barCategoryGap;g!=null&&(s.categoryGap=g)});var r={};return V(e,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=sr(i).length;s=Math.max(35-l*4,15)+"%"}var u=Qe(s,o),c=Qe(n.gap,1),d=n.remainedWidth,p=n.autoWidthCount,v=(d-u)/(p+(p-1)*c);v=Math.max(v,0),V(i,function(_){var w=_.maxWidth,T=_.minWidth;if(_.width){var A=_.width;w&&(A=Math.min(A,w)),T&&(A=Math.max(A,T)),_.width=A,d-=A+c*A,p--}else{var A=v;w&&w<A&&(A=Math.min(w,d)),T&&T>A&&(A=T),A!==v&&(_.width=A,d-=A+c*A,p--)}}),v=(d-u)/(p+(p-1)*c),v=Math.max(v,0);var g=0,m;V(i,function(_,w){_.width||(_.width=v),m=_,g+=_.width*(1+c)}),m&&(g-=m.width*c);var x=-g/2;V(i,function(_,w){r[a][w]=r[a][w]||{bandWidth:o,offset:x,width:_.width},x+=_.width*(1+c)})}),r}function lIe(t,e,r){if(t&&e){var n=t[cV(e)];return n!=null&&r!=null?n[uV(r)]:n}}function yre(t,e){var r=vre(t,e),n=gre(r);V(r,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=uV(a),u=n[cV(s)][l],c=u.offset,d=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:d})})}function bre(t){return{seriesType:t,plan:rb(),reset:function(e){if(xre(e)){var r=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=e.get("showBackground",!0),u=r.mapDimension(i.dim),c=r.getCalculationInfo("stackResultDimension"),d=_f(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),p=i.isHorizontal(),v=uIe(a,i),g=_re(e),m=e.get("barMinHeight")||0,x=c&&r.getDimensionIndex(c),_=r.getLayout("size"),w=r.getLayout("offset");return{progress:function(T,A){for(var M=T.count,D=g&&nc(M*3),P=g&&l&&nc(M*3),O=g&&nc(M),k=n.master.getRect(),N=p?k.width:k.height,$,H=A.getStore(),F=0;($=T.next())!=null;){var W=H.get(d?x:o,$),j=H.get(s,$),X=v,te=void 0;d&&(te=+W-H.get(o,$));var J=void 0,ie=void 0,se=void 0,le=void 0;if(p){var be=n.dataToPoint([W,j]);if(d){var Me=n.dataToPoint([te,j]);X=Me[0]}J=X,ie=be[1]+w,se=be[0]-X,le=_,Math.abs(se)<m&&(se=(se<0?-1:1)*m)}else{var be=n.dataToPoint([j,W]);if(d){var Me=n.dataToPoint([j,te]);X=Me[1]}J=be[0]+w,ie=X,se=_,le=be[1]-X,Math.abs(le)<m&&(le=(le<=0?-1:1)*m)}g?(D[F]=J,D[F+1]=ie,D[F+2]=p?se:le,P&&(P[F]=p?k.x:J,P[F+1]=p?ie:k.y,P[F+2]=N),O[$]=$):A.setItemLayout($,{x:J,y:ie,width:se,height:le}),F+=3}g&&A.setLayout({largePoints:D,largeDataIndices:O,largeBackgroundPoints:P,valueAxisHorizontal:p})}}}}}}function xre(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function _re(t){return t.pipelineContext&&t.pipelineContext.large}function uIe(t,e){return e.toGlobalCoord(e.dataToCoord(e.type==="log"?1:0))}var cIe=function(t,e,r,n){for(;r<n;){var a=r+n>>>1;t[a][1]<e?r=a+1:n=a}return r},Sre=function(t){he(e,t);function e(r){var n=t.call(this,r)||this;return n.type="time",n}return e.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return GS(r.value,O6[AEe(f0(this._minLevelUnit))]||O6.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(r,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return EEe(r,n,a,o,i)},e.prototype.getTicks=function(){var r=this._interval,n=this._extent,a=[];if(!r)return a;a.push({value:n[0],level:0});var i=this.getSetting("useUTC"),o=mIe(this._minLevelUnit,this._approxInterval,i,n);return a=a.concat(o),a.push({value:n[1],level:0}),a},e.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Js,n[1]+=Js),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-Js}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},e.prototype.calcNiceTicks=function(r,n,a){r=r||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=fE.length,l=Math.min(cIe(fE,this._approxInterval,0,s),s-1);this._interval=fE[l][1],this._minLevelUnit=fE[Math.max(l-1,0)][0]},e.prototype.parse=function(r){return _r(r)?r:+ps(r)},e.prototype.contain=function(r){return nI(this.parse(r),this._extent)},e.prototype.normalize=function(r){return aI(this.parse(r),this._extent)},e.prototype.scale=function(r){return iI(r,this._extent)},e.type="time",e}(bh),fE=[["second",P3],["minute",L3],["hour",T1],["quarter-day",T1*6],["half-day",T1*12],["day",Js*1.2],["half-week",Js*3.5],["week",Js*7],["month",Js*31],["quarter",Js*95],["half-year",L6/2],["year",L6]];function fIe(t,e,r,n){var a=ps(e),i=ps(r),o=function(g){return k6(a,g,n)===k6(i,g,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},p=function(){return d()&&o("second")},v=function(){return p()&&o("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return p();case"millisecond":return v()}}function dIe(t,e){return t/=Js,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function hIe(t){var e=30*Js;return t/=e,t>6?6:t>3?3:t>2?2:1}function pIe(t){return t/=T1,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function HY(t,e){return t/=e?L3:P3,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function vIe(t){return h3(t,!0)}function gIe(t,e,r){var n=new Date(t);switch(f0(e)){case"year":case"month":n[Nee(r)](0);case"day":n[Bee(r)](1);case"hour":n[zee(r)](0);case"minute":n[$ee(r)](0);case"second":n[Fee(r)](0),n[Vee(r)](0)}return n.getTime()}function mIe(t,e,r,n){var a=1e4,i=Oee,o=0;function s(N,$,H,F,W,j,X){for(var te=new Date($),J=$,ie=te[F]();J<H&&J<=n[1];)X.push({value:J}),ie+=N,te[W](ie),J=te.getTime();X.push({value:J,notAdd:!0})}function l(N,$,H){var F=[],W=!$.length;if(!fIe(f0(N),n[0],n[1],r)){W&&($=[{value:gIe(new Date(n[0]),N,r)},{value:n[1]}]);for(var j=0;j<$.length-1;j++){var X=$[j].value,te=$[j+1].value;if(X!==te){var J=void 0,ie=void 0,se=void 0,le=!1;switch(N){case"year":J=Math.max(1,Math.round(e/Js/365)),ie=O3(r),se=REe(r);break;case"half-year":case"quarter":case"month":J=hIe(e),ie=d0(r),se=Nee(r);break;case"week":case"half-week":case"day":J=dIe(e),ie=jD(r),se=Bee(r),le=!0;break;case"half-day":case"quarter-day":case"hour":J=pIe(e),ie=eS(r),se=zee(r);break;case"minute":J=HY(e,!0),ie=YD(r),se=$ee(r);break;case"second":J=HY(e,!1),ie=qD(r),se=Fee(r);break;case"millisecond":J=vIe(e),ie=XD(r),se=Vee(r);break}s(J,X,te,ie,se,le,F),N==="year"&&H.length>1&&j===0&&H.unshift({value:H[0].value-J})}}for(var j=0;j<F.length;j++)H.push(F[j]);return F}}for(var u=[],c=[],d=0,p=0,v=0;v<i.length&&o++<a;++v){var g=f0(i[v]);if(CEe(i[v])){l(i[v],u[u.length-1]||[],c);var m=i[v+1]?f0(i[v+1]):null;if(g!==m){if(c.length){p=d,c.sort(function(N,$){return N.value-$.value});for(var x=[],_=0;_<c.length;++_){var w=c[_].value;(_===0||c[_-1].value!==w)&&(x.push(c[_]),w>=n[0]&&w<=n[1]&&d++)}var T=(n[1]-n[0])/e;if(d>T*1.5&&p>T/1.5||(u.push(x),d>T||t===i[v]))break}c=[]}}}o>=a&&Vn("Exceed safe limit.");for(var A=Br(Oe(u,function(N){return Br(N,function($){return $.value>=n[0]&&$.value<=n[1]&&!$.notAdd})}),function(N){return N.length>0}),M=[],D=A.length-1,v=0;v<A.length;++v)for(var P=A[v],O=0;O<P.length;++O)M.push({value:P[O].value,level:D-v});M.sort(function(N,$){return N.value-$.value});for(var k=[],v=0;v<M.length;++v)(v===0||M[v].value!==M[v-1].value)&&k.push(M[v]);return k}Mf.registerClass(Sre);const wre=Sre;var GY=Mf.prototype,E1=bh.prototype,yIe=Xn,bIe=Math.floor,xIe=Math.ceil,dE=Math.pow,Ul=Math.log,fV=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new bh,r._interval=0,r}return e.prototype.getTicks=function(r){var n=this._originalScale,a=this._extent,i=n.getExtent(),o=E1.getTicks.call(this,r);return Oe(o,function(s){var l=s.value,u=Xn(dE(this.base,l));return u=l===a[0]&&this._fixMin?hE(u,i[0]):u,u=l===a[1]&&this._fixMax?hE(u,i[1]):u,{value:u}},this)},e.prototype.setExtent=function(r,n){var a=Ul(this.base);r=Ul(Math.max(0,r))/a,n=Ul(Math.max(0,n))/a,E1.setExtent.call(this,r,n)},e.prototype.getExtent=function(){var r=this.base,n=GY.getExtent.call(this);n[0]=dE(r,n[0]),n[1]=dE(r,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=hE(n[0],i[0])),this._fixMax&&(n[1]=hE(n[1],i[1])),n},e.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=Ul(r[0])/Ul(n),r[1]=Ul(r[1])/Ul(n),GY.unionExtent.call(this,r)},e.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},e.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,a=n[1]-n[0];if(!(a===1/0||a<=0)){var i=SJ(a),o=r/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Xn(xIe(n[0]/i)*i),Xn(bIe(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){E1.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return r=Ul(r)/Ul(this.base),nI(r,this._extent)},e.prototype.normalize=function(r){return r=Ul(r)/Ul(this.base),aI(r,this._extent)},e.prototype.scale=function(r){return r=iI(r,this._extent),dE(this.base,r)},e.type="log",e}(Mf),Tre=fV.prototype;Tre.getMinorTicks=E1.getMinorTicks;Tre.getLabel=E1.getLabel;function hE(t,e){return yIe(t,ql(e))}Mf.registerClass(fV);const _Ie=fV;var SIe=function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var i=this._modelMinRaw=r.get("min",!0);vt(i)?this._modelMinNum=pE(e,i({min:n[0],max:n[1]})):i!=="dataMin"&&(this._modelMinNum=pE(e,i));var o=this._modelMaxRaw=r.get("max",!0);if(vt(o)?this._modelMaxNum=pE(e,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=pE(e,o)),a)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),l=Le(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?(console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[tu(l[0],1),tu(l[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,r=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=e?a?0:NaN:r-i[0]*o),l==null&&(l=e?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var d=ph(s)||ph(l)||e&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var p=this._determinedMin,v=this._determinedMax;return p!=null&&(s=p,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},t.prototype.modifyDataMinMax=function(e,r){Tt(!this.frozen),this[TIe[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=wIe[e];Tt(!this.frozen&&this[n]==null),this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t}(),wIe={min:"_determinedMin",max:"_determinedMax"},TIe={min:"_dataMin",max:"_dataMax"};function Cre(t,e,r){var n=t.rawExtentInfo;return n||(n=new SIe(t,e,r),t.rawExtentInfo=n,n)}function pE(t,e){return e==null?null:ph(e)?NaN:t.parse(e)}function Are(t,e){var r=t.type,n=Cre(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var a=n.min,i=n.max,o=e.ecModel;if(o&&r==="time"){var s=vre("bar",o),l=!1;if(V(s,function(d){l=l||d.getBaseAxis()===e.axis}),l){var u=gre(s),c=CIe(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function CIe(t,e,r,n){var a=r.axis.getExtent(),i=a[1]-a[0],o=lIe(n,r.axis);if(o===void 0)return{min:t,max:e};var s=1/0;V(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;V(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,d=1-(s+l)/i,p=c/d-c;return e+=p*(l/u),t-=p*(s/u),{min:t,max:e}}function vg(t,e){var r=e,n=Are(t,r),a=n.extent,i=r.get("splitNumber");t instanceof _Ie&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),l=o==="interval"||o==="time";t.setExtent(a[0],a[1]),t.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function qS(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new lV({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new wre({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Mf.getClass(e)||bh)}}function AIe(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function XS(t){var e=t.getLabelModel().get("formatter"),r=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(n){return function(a,i){return t.scale.getFormattedLabel(a,i,n)}}(e):at(e)?function(n){return function(a){var i=t.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(e):vt(e)?function(n){return function(a,i){return r!=null&&(i=a.value-r),n(dV(t,a),i,a.level!=null?{level:a.level}:null)}}(e):function(n){return t.scale.getLabel(n)}}function dV(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function EIe(t){var e=t.model,r=t.scale;if(!(!e.get(["axisLabel","show"])||r.isBlank())){var n,a,i=r.getExtent();r instanceof lV?a=r.count():(n=r.getTicks(),a=n.length);var o=t.getLabelModel(),s=XS(t),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;c<a;c+=u){var d=n?n[c]:{value:i[0]+c},p=s(d,c),v=o.getTextRect(p),g=RIe(v,o.get("rotate")||0);l?l.union(g):l=g}return l}}function RIe(t,e){var r=e*Math.PI/180,n=t.width,a=t.height,i=n*Math.abs(Math.cos(r))+Math.abs(a*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(a*Math.cos(r)),s=new Ht(t.x,t.y,i,o);return s}function hV(t){var e=t.get("interval");return e??"auto"}function Ere(t){return t.type==="category"&&hV(t.getLabelModel())===0}function lM(t,e){var r={};return V(t.mapDimensionsAll(e),function(n){r[sV(t,n)]=!0}),sr(r)}function MIe(t,e,r){e&&V(lM(e,r),function(n){var a=e.getApproximateExtent(n);a[0]<t[0]&&(t[0]=a[0]),a[1]>t[1]&&(t[1]=a[1])})}var ob=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}();function DIe(t){return mc(null,t)}var IIe={isDimensionStacked:_f,enableDataStack:ure,getStackedDimension:sV};function PIe(t,e){var r=e;e instanceof Xr||(r=new Xr(e));var n=qS(r);return n.setExtent(t[0],t[1]),vg(n,r),n}function LIe(t){ra(t,ob)}function OIe(t,e){return e=e||{},cn(t,null,null,e.state!=="normal")}const kIe=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:VDe,createList:DIe,createScale:PIe,createSymbol:fa,createTextStyle:OIe,dataStack:IIe,enableHoverEmphasis:sh,getECData:Pt,getLayoutRect:_a,mixinAxisModelCommonMethods:LIe},Symbol.toStringTag,{value:"Module"}));var NIe=1e-8;function jY(t,e){return Math.abs(t-e)<NIe}function kv(t,e,r){var n=0,a=t[0];if(!a)return!1;for(var i=1;i<t.length;i++){var o=t[i];n+=nf(a[0],a[1],o[0],o[1],e,r),a=o}var s=t[0];return(!jY(a[0],s[0])||!jY(a[1],s[1]))&&(n+=nf(a[0],a[1],s[0],s[1],e,r)),n!==0}var BIe=[];function ZN(t,e){for(var r=0;r<t.length;r++)ii(t[r],t[r],e)}function YY(t,e,r,n){for(var a=0;a<t.length;a++){var i=t[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(sf(e,e,i),lf(r,r,i))}}function zIe(t){for(var e=0,r=0,n=0,a=t.length,i=t[a-1][0],o=t[a-1][1],s=0;s<a;s++){var l=t[s][0],u=t[s][1],c=i*u-l*o;e+=c,r+=(i+l)*c,n+=(o+u)*c,i=l,o=u}return e?[r/e/3,n/e/3,e]:[t[0][0]||0,t[0][1]||0]}var Rre=function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t}(),qY=function(){function t(e,r){this.type="polygon",this.exterior=e,this.interiors=r}return t}(),XY=function(){function t(e){this.type="linestring",this.points=e}return t}(),Mre=function(t){he(e,t);function e(r,n,a){var i=t.call(this,r)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return e.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 zIe(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.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 V(o,function(s){s.type==="polygon"?YY(s.exterior,a,i,r):V(s.points,function(l){YY(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 Ht(a[0],a[1],i[0]-a[0],i[1]-a[1]),r||(this._rect=n),n},e.prototype.contain=function(r){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(r[0],r[1]))return!1;e: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(kv(l,r[0],r[1])){for(var c=0;c<(u?u.length:0);c++)if(kv(u[c],r[0],r[1]))continue e;return!0}}}return!1},e.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 Ht(r,n,a,i),u=o.calculateTransform(l),c=this.geometries,d=0;d<c.length;d++){var p=c[d];p.type==="polygon"?(ZN(p.exterior,u),V(p.interiors,function(v){ZN(v,u)})):V(p.points,function(v){ZN(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new e(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(Rre),$Ie=function(t){he(e,t);function e(r,n){var a=t.call(this,r)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return e.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=OS(BIe),o=r;o&&!o.isGeoSVGGraphicRoot;)lc(i,o.getLocalTransform(),i),o=o.parent;return Sg(i,i),ii(a,a,i),a},e}(Rre);function FIe(t){if(!t.UTF8Encoding)return t;var e=t,r=e.UTF8Scale;r==null&&(r=1024);var n=e.features;return V(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=Dre(s,o,r);break;case"Polygon":KN(s,o,r);break;case"MultiLineString":KN(s,o,r);break;case"MultiPolygon":V(s,function(l,u){return KN(l,o[u],r)})}}),e.UTF8Encoding=!1,e}function KN(t,e,r){for(var n=0;n<t.length;n++)t[n]=Dre(t[n],e[n],r)}function Dre(t,e,r){for(var n=[],a=e[0],i=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.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 n5(t,e){return t=FIe(t),Oe(Br(t.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 qY(o[0],o.slice(1)));break;case"MultiPolygon":V(a.coordinates,function(l){l[0]&&i.push(new qY(l[0],l.slice(1)))});break;case"LineString":i.push(new XY([a.coordinates]));break;case"MultiLineString":i.push(new XY(a.coordinates))}var s=new Mre(n[e||"name"],i,n.cp);return s.properties=n,s})}const VIe=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:T$,asc:ss,getPercentWithPrecision:XTe,getPixelPrecision:f3,getPrecision:ql,getPrecisionSafe:VR,isNumeric:PD,isRadianAroundZero:X1,linearMap:Nr,nice:h3,numericToNumber:dc,parseDate:ps,quantile:eR,quantity:SJ,quantityExponent:BS,reformIntervals:C$,remRadian:d3,round:Xn},Symbol.toStringTag,{value:"Module"})),UIe=Object.freeze(Object.defineProperty({__proto__:null,format:GS,parse:ps},Symbol.toStringTag,{value:"Module"})),WIe=Object.freeze(Object.defineProperty({__proto__:null,Arc:VD,BezierCurve:VS,BoundingRect:Ht,Circle:ru,CompoundPath:UD,Ellipse:FD,Group:It,Image:si,IncrementalDisplayable:xee,Line:Ba,LinearGradient:Y0,Polygon:co,Polyline:fo,RadialGradient:T3,Rect:yr,Ring:FS,Sector:uo,Text:mr,clipPointsByRect:R3,clipRectByRect:Cee,createIcon:X0,extendPath:wee,extendShape:See,getShapeClass:WD,getTransform:lh,initProps:In,makeImage:A3,makePath:US,mergePath:os,registerShape:hl,resizePath:E3,updateProps:Sr},Symbol.toStringTag,{value:"Module"})),HIe=Object.freeze(Object.defineProperty({__proto__:null,addCommas:k3,capitalFirst:PEe,encodeHTML:ao,formatTime:IEe,formatTpl:B3,getTextRect:MEe,getTooltipMarker:Uee,normalizeCssArray:Tg,toCamelCase:N3,truncateText:LJ},Symbol.toStringTag,{value:"Module"})),GIe=Object.freeze(Object.defineProperty({__proto__:null,bind:ot,clone:Et,curry:Lt,defaults:wt,each:V,extend:Ce,filter:Br,indexOf:Qt,inherits:t3,isArray:Le,isFunction:vt,isObject:St,isString:at,map:Oe,merge:Ft,reduce:ll},Symbol.toStringTag,{value:"Module"}));var oS=wr();function jIe(t){return t.type==="category"?qIe(t):ZIe(t)}function YIe(t,e){return t.type==="category"?XIe(t,e):{ticks:Oe(t.scale.getTicks(),function(r){return r.value})}}function qIe(t){var e=t.getLabelModel(),r=Ire(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function Ire(t,e){var r=Pre(t,"labels"),n=hV(e),a=Lre(r,n);if(a)return a;var i,o;return vt(n)?i=Nre(t,n):(o=n==="auto"?KIe(t):n,i=kre(t,o)),Ore(r,n,{labels:i,labelCategoryInterval:o})}function XIe(t,e){var r=Pre(t,"ticks"),n=hV(e),a=Lre(r,n);if(a)return a;var i,o;if((!e.get("show")||t.scale.isBlank())&&(i=[]),vt(n))i=Nre(t,n,!0);else if(n==="auto"){var s=Ire(t,t.getLabelModel());o=s.labelCategoryInterval,i=Oe(s.labels,function(l){return l.tickValue})}else o=n,i=kre(t,o,!0);return Ore(r,n,{ticks:i,tickCategoryInterval:o})}function ZIe(t){var e=t.scale.getTicks(),r=XS(t);return{labels:Oe(e,function(n,a){return{level:n.level,formattedLabel:r(n,a),rawLabel:t.scale.getLabel(n),tickValue:n.value}})}}function Pre(t,e){return oS(t)[e]||(oS(t)[e]=[])}function Lre(t,e){for(var r=0;r<t.length;r++)if(t[r].key===e)return t[r].value}function Ore(t,e,r){return t.push({key:e,value:r}),r}function KIe(t){var e=oS(t).autoInterval;return e??(oS(t).autoInterval=t.calculateCategoryInterval())}function QIe(t){var e=JIe(t),r=XS(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(n)),d=Math.abs(u*Math.sin(n)),p=0,v=0;l<=i[1];l+=s){var g=0,m=0,x=NS(r({value:l}),e.font,"center","top");g=x.width*1.3,m=x.height*1.3,p=Math.max(p,g,7),v=Math.max(v,m,7)}var _=p/c,w=v/d;isNaN(_)&&(_=1/0),isNaN(w)&&(w=1/0);var T=Math.max(0,Math.floor(Math.min(_,w))),A=oS(t.model),M=t.getExtent(),D=A.lastAutoInterval,P=A.lastTickCount;return D!=null&&P!=null&&Math.abs(D-T)<=1&&Math.abs(P-o)<=1&&D>T&&A.axisExtent0===M[0]&&A.axisExtent1===M[1]?T=D:(A.lastTickCount=o,A.lastAutoInterval=T,A.axisExtent0=M[0],A.axisExtent1=M[1]),T}function JIe(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function kre(t,e,r){var n=XS(t),a=t.scale,i=a.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=Ere(t),p=o.get("showMinLabel")||d,v=o.get("showMaxLabel")||d;p&&u!==i[0]&&m(i[0]);for(var g=u;g<=i[1];g+=l)m(g);v&&g-l!==i[1]&&m(i[1]);function m(x){var _={value:x};s.push(r?x:{formattedLabel:n(_),rawLabel:a.getLabel(_),tickValue:x})}return s}function Nre(t,e,r){var n=t.scale,a=XS(t),i=[];return V(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&i.push(r?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var ZY=[0,1],ePe=function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return e>=n&&e<=a},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return f3(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(n=n.slice(),KY(n,a.count())),Nr(e,ZY,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),KY(n,a.count()));var i=Nr(e,n,ZY,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=YIe(this,r),a=n.ticks,i=Oe(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return tPe(this,i,o,e.clamp),i},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=Oe(n,function(i){return Oe(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},t.prototype.getViewLabels=function(){return jIe(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/n},t.prototype.calculateCategoryInterval=function(){return QIe(this)},t}();function KY(t,e){var r=t[1]-t[0],n=e,a=r/n/2;t[0]+=a,t[1]-=a}function tPe(t,e,r,n){var a=e.length;if(!t.onBand||r||!a)return;var i=t.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[0]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;V(e,function(v){v.coord-=u/2});var c=t.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var d=i[0]>i[1];p(e[0].coord,i[0])&&(n?e[0].coord=i[0]:e.shift()),n&&p(i[0],e[0].coord)&&e.unshift({coord:i[0]}),p(i[1],o.coord)&&(n?o.coord=i[1]:e.pop()),n&&p(o.coord,i[1])&&e.push({coord:i[1]});function p(v,g){return v=Xn(v),g=Xn(g),d?v>g:v<g}}const gl=ePe;function rPe(t){var e=ur.extend(t);return ur.registerClass(e),e}function nPe(t){var e=Pn.extend(t);return Pn.registerClass(e),e}function aPe(t){var e=xn.extend(t);return xn.registerClass(e),e}function iPe(t){var e=Kr.extend(t);return Kr.registerClass(e),e}var O_=Math.PI*2,gv=hc.CMD,oPe=["top","right","bottom","left"];function sPe(t,e,r,n,a){var i=r.width,o=r.height;switch(t){case"top":n.set(r.x+i/2,r.y-e),a.set(0,-1);break;case"bottom":n.set(r.x+i/2,r.y+o+e),a.set(0,1);break;case"left":n.set(r.x-e,r.y+o/2),a.set(-1,0);break;case"right":n.set(r.x+i+e,r.y+o/2),a.set(1,0);break}}function lPe(t,e,r,n,a,i,o,s,l){o-=t,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*r+t,d=s*r+e;if(Math.abs(n-a)%O_<1e-4)return l[0]=c,l[1]=d,u-r;if(i){var p=n;n=th(a),a=th(p)}else n=th(n),a=th(a);n>a&&(a+=O_);var v=Math.atan2(s,o);if(v<0&&(v+=O_),v>=n&&v<=a||v+O_>=n&&v+O_<=a)return l[0]=c,l[1]=d,u-r;var g=r*Math.cos(n)+t,m=r*Math.sin(n)+e,x=r*Math.cos(a)+t,_=r*Math.sin(a)+e,w=(g-o)*(g-o)+(m-s)*(m-s),T=(x-o)*(x-o)+(_-s)*(_-s);return w<T?(l[0]=g,l[1]=m,Math.sqrt(w)):(l[0]=x,l[1]=_,Math.sqrt(T))}function uM(t,e,r,n,a,i,o,s){var l=a-t,u=i-e,c=r-t,d=n-e,p=Math.sqrt(c*c+d*d);c/=p,d/=p;var v=l*c+u*d,g=v/p;s&&(g=Math.min(Math.max(g,0),1)),g*=p;var m=o[0]=t+g*c,x=o[1]=e+g*d;return Math.sqrt((m-a)*(m-a)+(x-i)*(x-i))}function Bre(t,e,r,n,a,i,o){r<0&&(t=t+r,r=-r),n<0&&(e=e+n,n=-n);var s=t+r,l=e+n,u=o[0]=Math.min(Math.max(a,t),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Yl=[];function uPe(t,e,r){var n=Bre(e.x,e.y,e.width,e.height,t.x,t.y,Yl);return r.set(Yl[0],Yl[1]),n}function cPe(t,e,r){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,c=e.data,d=t.x,p=t.y,v=0;v<c.length;){var g=c[v++];v===1&&(n=c[v],a=c[v+1],i=n,o=a);var m=u;switch(g){case gv.M:i=c[v++],o=c[v++],n=i,a=o;break;case gv.L:m=uM(n,a,c[v],c[v+1],d,p,Yl,!0),n=c[v++],a=c[v++];break;case gv.C:m=tJ(n,a,c[v++],c[v++],c[v++],c[v++],c[v],c[v+1],d,p,Yl),n=c[v++],a=c[v++];break;case gv.Q:m=nJ(n,a,c[v++],c[v++],c[v],c[v+1],d,p,Yl),n=c[v++],a=c[v++];break;case gv.A:var x=c[v++],_=c[v++],w=c[v++],T=c[v++],A=c[v++],M=c[v++];v+=1;var D=!!(1-c[v++]);s=Math.cos(A)*w+x,l=Math.sin(A)*T+_,v<=1&&(i=s,o=l);var P=(d-x)*T/w+x;m=lPe(x,_,T,A,A+M,D,P,p,Yl),n=Math.cos(A+M)*w+x,a=Math.sin(A+M)*T+_;break;case gv.R:i=n=c[v++],o=a=c[v++];var O=c[v++],k=c[v++];m=Bre(i,o,O,k,d,p,Yl);break;case gv.Z:m=uM(n,a,i,o,d,p,Yl,!0),n=i,a=o;break}m<u&&(u=m,r.set(Yl[0],Yl[1]))}return u}var Xl=new Wt,bn=new Wt,la=new Wt,ac=new Wt,ec=new Wt;function QY(t,e){if(t){var r=t.getTextGuideLine(),n=t.getTextContent();if(n&&r){var a=t.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||oPe,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,c=t.getComputedTransform(),d=c&&Sg([],c),p=e.get("length2")||0;u&&la.copy(u);for(var v=0;v<o.length;v++){var g=o[v];sPe(g,0,s,Xl,ac),Wt.scaleAndAdd(bn,Xl,ac,p),bn.transform(d);var m=t.getBoundingRect(),x=u?u.distance(bn):t instanceof ir?cPe(bn,t.path,la):uPe(bn,m,la);x<l&&(l=x,bn.transform(c),la.transform(c),la.toArray(i[0]),bn.toArray(i[1]),Xl.toArray(i[2]))}zre(i,e.get("minTurnAngle")),r.setShape({points:i})}}}var cM=[],no=new Wt;function zre(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Xl.fromArray(t[0]),bn.fromArray(t[1]),la.fromArray(t[2]),Wt.sub(ac,Xl,bn),Wt.sub(ec,la,bn);var r=ac.len(),n=ec.len();if(!(r<.001||n<.001)){ac.scale(1/r),ec.scale(1/n);var a=ac.dot(ec),i=Math.cos(e);if(i<a){var o=uM(bn.x,bn.y,la.x,la.y,Xl.x,Xl.y,cM,!1);no.fromArray(cM),no.scaleAndAdd(ec,o/Math.tan(Math.PI-e));var s=la.x!==bn.x?(no.x-bn.x)/(la.x-bn.x):(no.y-bn.y)/(la.y-bn.y);if(isNaN(s))return;s<0?Wt.copy(no,bn):s>1&&Wt.copy(no,la),no.toArray(t[1])}}}}function fPe(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,Xl.fromArray(t[0]),bn.fromArray(t[1]),la.fromArray(t[2]),Wt.sub(ac,bn,Xl),Wt.sub(ec,la,bn);var n=ac.len(),a=ec.len();if(!(n<.001||a<.001)){ac.scale(1/n),ec.scale(1/a);var i=ac.dot(e),o=Math.cos(r);if(i<o){var s=uM(bn.x,bn.y,la.x,la.y,Xl.x,Xl.y,cM,!1);no.fromArray(cM);var l=Math.PI/2,u=Math.acos(ec.dot(e)),c=l+u-r;if(c>=l)Wt.copy(no,la);else{no.scaleAndAdd(ec,s/Math.tan(Math.PI/2-c));var d=la.x!==bn.x?(no.x-bn.x)/(la.x-bn.x):(no.y-bn.y)/(la.y-bn.y);if(isNaN(d))return;d<0?Wt.copy(no,bn):d>1&&Wt.copy(no,la)}no.toArray(t[1])}}}}function JY(t,e,r,n){var a=r==="normal",i=a?t:t.ensureState(r);i.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?t.useStyle(s):i.style=s}function dPe(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=of(n[0],n[1]),i=of(n[1],n[2]);if(!a||!i){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*r,s=g1([],n[1],n[0],o/a),l=g1([],n[1],n[2],o/i),u=g1([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)t.lineTo(n[c][0],n[c][1])}function pV(t,e,r){var n=t.getTextGuideLine(),a=t.getTextContent();if(!a){n&&t.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=a.ignore,l=0;l<K1.length;l++){var u=K1[l],c=e[u],d=u==="normal";if(c){var p=c.get("show"),v=d?s:$t(a.states[u]&&a.states[u].ignore,s);if(v||!$t(p,o)){var g=d?n:n&&n.states[u];g&&(g.ignore=!0);continue}n||(n=new fo,t.setTextGuideLine(n),!d&&(s||!o)&&JY(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),JY(n,!1,u,c)}}if(n){wt(n.style,r),n.style.fill=null;var m=i.get("showAbove"),x=t.textGuideLineConfig=t.textGuideLineConfig||{};x.showAbove=m||!1,n.buildPath=dPe}}function vV(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<lo.length;n++){var a=lo[n];r[a]=t.getModel([a,e])}return r}function $re(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];if(!n.defaultAttr.ignore){var a=n.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new HR(o,i):null;e.push({label:a,labelLine:n.labelLine,rect:u,localRect:o,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:i})}}return e}function Fre(t,e,r,n,a,i){var o=t.length;if(o<2)return;t.sort(function(O,k){return O.rect[e]-k.rect[e]});for(var s=0,l,u=!1,c=0,d=0;d<o;d++){var p=t[d],v=p.rect;l=v[e]-s,l<0&&(v[e]-=l,p.label[e]-=l,u=!0);var g=Math.max(-l,0);c+=g,s=v[e]+v[r]}c>0&&i&&M(-c/o,0,o);var m=t[0],x=t[o-1],_,w;T(),_<0&&D(-_,.8),w<0&&D(w,.8),T(),A(_,w,1),A(w,_,-1),T(),_<0&&P(-_),w<0&&P(w);function T(){_=m.rect[e]-n,w=a-x.rect[e]-x.rect[r]}function A(O,k,N){if(O<0){var $=Math.min(k,-O);if($>0){M($*N,0,o);var H=$+O;H<0&&D(-H*N,1)}else D(-O*N,1)}}function M(O,k,N){O!==0&&(u=!0);for(var $=k;$<N;$++){var H=t[$],F=H.rect;F[e]+=O,H.label[e]+=O}}function D(O,k){for(var N=[],$=0,H=1;H<o;H++){var F=t[H-1].rect,W=Math.max(t[H].rect[e]-F[e]-F[r],0);N.push(W),$+=W}if($){var j=Math.min(Math.abs(O)/$,k);if(O>0)for(var H=0;H<o-1;H++){var X=N[H]*j;M(X,0,H+1)}else for(var H=o-1;H>0;H--){var X=N[H-1]*j;M(-X,H,o)}}}function P(O){var k=O<0?-1:1;O=Math.abs(O);for(var N=Math.ceil(O/(o-1)),$=0;$<o-1;$++)if(k>0?M(N,0,$+1):M(-N,o-$-1,o),O-=N,O<=0)return}return u}function hPe(t,e,r,n){return Fre(t,"x","width",e,r,n)}function Vre(t,e,r,n){return Fre(t,"y","height",e,r,n)}function Ure(t){var e=[];t.sort(function(m,x){return x.priority-m.priority});var r=new Ht(0,0,0,0);function n(m){if(!m.ignore){var x=m.ensureState("emphasis");x.ignore==null&&(x.ignore=!1)}m.ignore=!0}for(var a=0;a<t.length;a++){var i=t[a],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;r.copy(i.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var d=i.obb,p=!1,v=0;v<e.length;v++){var g=e[v];if(r.intersect(g.rect)){if(o&&g.axisAligned){p=!0;break}if(g.obb||(g.obb=new HR(g.localRect,g.transform)),d||(d=new HR(s,l)),d.intersect(g.obb)){p=!0;break}}}p?(n(u),c&&n(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),e.push(i))}}function pPe(t){if(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].slice());return e}}function vPe(t,e){var r=t.label,n=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:pPe(n&&n.shape.points)}}var e8=["align","verticalAlign","width","height","fontSize"],Jo=new uf,QN=wr(),gPe=wr();function vE(t,e,r){for(var n=0;n<r.length;n++){var a=r[n];e[a]!=null&&(t[a]=e[a])}}var gE=["x","y","rotation"],mPe=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,r,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),c=a.getBoundingRect().plain();Ht.applyTransform(c,c,u),u?Jo.setLocalTransform(u):(Jo.x=Jo.y=Jo.rotation=Jo.originX=Jo.originY=0,Jo.scaleX=Jo.scaleY=1);var d=a.__hostTarget,p;if(d){p=d.getBoundingRect().plain();var v=d.getComputedTransform();Ht.applyTransform(p,p,v)}var g=p&&d.getTextGuideLine();this._labelList.push({label:a,labelLine:g,seriesModel:n,dataIndex:e,dataType:r,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:p,priority:p?p.width*p.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:g&&g.ignore,x:Jo.x,y:Jo.y,scaleX:Jo.scaleX,scaleY:Jo.scaleY,rotation:Jo.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}})},t.prototype.addLabelsOfSeries=function(e){var r=this;this._chartViewList.push(e);var n=e.__model,a=n.get("labelLayout");(vt(a)||sr(a).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=Pt(i);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,a)})},t.prototype.updateLayoutConfig=function(e){var r=e.getWidth(),n=e.getHeight();function a(T,A){return function(){QY(T,A)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;vt(o.layoutOption)?c=o.layoutOption(vPe(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var d=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*d:u.attachedRot,offset:[c.dx||0,c.dy||0]});var p=!1;if(c.x!=null?(s.x=Qe(c.x,r),s.setStyle("x",0),p=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=Qe(c.y,n),s.setStyle("y",0),p=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:c.labelLinePoints}),p=!1)}var g=QN(s);g.needsUpdateLabelLine=p,s.rotation=c.rotate!=null?c.rotate*d:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var m=0;m<e8.length;m++){var x=e8[m];s.setStyle(x,c[x]!=null?c[x]:u.style[x])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var _=o.seriesModel;if(o.dataIndex!=null){var w=o.seriesModel.getData(o.dataType);_=w.getItemModel(o.dataIndex)}s.on("drag",a(l,_.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},t.prototype.layout=function(e){var r=e.getWidth(),n=e.getHeight(),a=$re(this._labelList),i=Br(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Br(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});hPe(i,0,r),Vre(o,0,n);var s=Br(a,function(l){return l.layoutOption.hideOverlap});Ure(s)},t.prototype.processLabelsOverall=function(){var e=this;V(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=QN(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),i&&e._animateLabels(o,n)})})},t.prototype._updateLabelLine=function(e,r){var n=e.getTextContent(),a=Pt(e),i=a.dataIndex;if(n&&i!=null){var o=r.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style"),c=o.getVisual("drawType");l.stroke=u[c];var d=s.getModel("labelLine");pV(e,vV(s),l),QY(e,d)}},t.prototype._animateLabels=function(e,r){var n=e.getTextContent(),a=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!c0(e))){var i=QN(n),o=i.oldLayout,s=Pt(e),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=r.getData(s.dataType);if(o){n.attr(o);var p=e.prevStates;p&&(Qt(p,"select")>=0&&n.attr(i.oldLayoutSelect),Qt(p,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Sr(n,u,r,l)}else if(n.attr(u),!K0(n).valueAnimation){var d=$t(n.style.opacity,1);n.style.opacity=0,In(n,{style:{opacity:d}},r,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};vE(v,u,gE),vE(v,n.states.select,gE)}if(n.states.emphasis){var g=i.oldLayoutEmphasis={};vE(g,u,gE),vE(g,n.states.emphasis,gE)}Dee(n,l,c,r,r)}if(a&&!a.ignore&&!a.invisible){var i=gPe(a),o=i.oldLayout,m={points:a.shape.points};o?(a.attr({shape:o}),Sr(a,{shape:m},r)):(a.setShape(m),a.style.strokePercent=0,In(a,{style:{strokePercent:1}},r)),i.oldLayout=m}},t}();const yPe=mPe;var JN=wr();function bPe(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){var a=JN(r).labelManager;a||(a=JN(r).labelManager=new yPe),a.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,r,n){var a=JN(r).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(r.getViewOfSeriesModel(i))}),a.updateLayoutConfig(r),a.layout(r),a.processLabelsOverall()})}var eB=Math.sin,tB=Math.cos,Wre=Math.PI,mv=Math.PI*2,xPe=180/Wre,_Pe=function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,n,a,i,o){this._add("C",e,r,n,a,i,o)},t.prototype.quadraticCurveTo=function(e,r,n,a){this._add("Q",e,r,n,a)},t.prototype.arc=function(e,r,n,a,i,o){this.ellipse(e,r,n,n,0,a,i,o)},t.prototype.ellipse=function(e,r,n,a,i,o,s,l){var u=s-o,c=!l,d=Math.abs(u),p=eh(d-mv)||(c?u>=mv:-u>=mv),v=u>0?u%mv:u%mv+mv,g=!1;p?g=!0:eh(d)?g=!1:g=v>=Wre==!!c;var m=e+n*tB(o),x=r+a*eB(o);this._start&&this._add("M",m,x);var _=Math.round(i*xPe);if(p){var w=1/this._p,T=(c?1:-1)*(mv-w);this._add("A",n,a,_,1,+c,e+n*tB(o+T),r+a*eB(o+T)),w>.01&&this._add("A",n,a,_,0,+c,m,x)}else{var A=e+n*tB(s),M=r+a*eB(s);this._add("A",n,a,_,+g,+c,A,M)}},t.prototype.rect=function(e,r,n,a){this._add("M",e,r),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,n,a,i,o,s,l,u){for(var c=[],d=this._p,p=1;p<arguments.length;p++){var v=arguments[p];if(isNaN(v)){this._invalid=!0;return}c.push(Math.round(v*d)/d)}this._d.push(e+c.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}();const Hre=_Pe;var R1="none",SPe=Math.round;function wPe(t){var e=t.fill;return e!=null&&e!==R1}function TPe(t){var e=t.stroke;return e!=null&&e!==R1}var a5=["lineCap","miterLimit","lineJoin"],CPe=Oe(a5,function(t){return"stroke-"+t.toLowerCase()});function APe(t,e,r,n){var a=e.opacity==null?1:e.opacity;if(r instanceof si){t("opacity",a);return}if(wPe(e)){var i=q1(e.fill);t("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*a:i.opacity*a;(n||o<1)&&t("fill-opacity",o)}else t("fill",R1);if(TPe(e)){var s=q1(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?r.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*a:s.opacity*a,d=e.strokeFirst;if((n||u!==1)&&t("stroke-width",u),(n||d)&&t("paint-order",d?"stroke":"fill"),(n||c<1)&&t("stroke-opacity",c),e.lineDash){var p=Z3(r),v=p[0],g=p[1];v&&(g=SPe(g||0),t("stroke-dasharray",v.join(",")),(g||n)&&t("stroke-dashoffset",g))}else n&&t("stroke-dasharray",R1);for(var m=0;m<a5.length;m++){var x=a5[m];if(n||e[x]!==UR[x]){var _=e[x]||UR[x];_&&t(CPe[m],_)}}}else n&&t("stroke",R1)}var Gre="http://www.w3.org/2000/svg",jre="http://www.w3.org/1999/xlink",EPe="http://www.w3.org/2000/xmlns/",RPe="http://www.w3.org/XML/1998/namespace";function Yre(t){return document.createElementNS(Gre,t)}function za(t,e,r,n,a){return{tag:t,attrs:r||{},children:n,text:a,key:e}}function MPe(t,e){var r=[];if(e)for(var n in e){var a=e[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),r.push(i))}return"<"+t+" "+r.join(" ")+">"}function DPe(t){return"</"+t+">"}function gV(t,e){e=e||{};var r=e.newline?` `:"";function n(a){var i=a.children,o=a.tag,s=a.attrs;return MPe(o,s)+ao(a.text)+(i?""+r+Oe(i,function(l){return n(l)}).join(r)+r:"")+DPe(o)}return n(t)}function IPe(t,e,r){r=r||{};var n=r.newline?` `:"",a=" {"+n,i=n+"}",o=Oe(sr(t),function(l){return l+a+Oe(sr(t[l]),function(u){return u+":"+t[l][u]+";"}).join(n)+i}).join(n),s=Oe(sr(e),function(l){return"@keyframes "+l+a+Oe(sr(e[l]),function(u){return u+a+Oe(sr(e[l][u]),function(c){var d=e[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function i5(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function t8(t,e,r,n){return za("svg","root",{width:t,height:e,xmlns:Gre,"xmlns:xlink":jre,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+t+" "+e:!1},r)}var r8={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"},Cv="transform-origin";function PPe(t,e,r){var n=Ce({},t.shape);Ce(n,e),t.buildPath(r,n);var a=new Hre;return a.reset(cJ(t)),r.rebuildPath(a,1),a.generateStr(),a.getStr()}function LPe(t,e){var r=e.originX,n=e.originY;(r||n)&&(t[Cv]=r+"px "+n+"px")}var OPe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function qre(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function kPe(t,e,r){var n=t.shape.paths,a={},i,o;if(V(n,function(l){var u=i5(r.zrId);u.animation=!0,oI(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,p=sr(c),v=p.length;if(v){o=p[v-1];var g=c[o];for(var m in g){var x=g[m];a[m]=a[m]||{d:""},a[m].d+=x.d||""}for(var _ in d){var w=d[_].animation;w.indexOf(o)>=0&&(i=w)}}}),!!i){e.d=!1;var s=qre(a,r);return i.replace(o,s)}}function n8(t){return at(t)?r8[t]?"cubic-bezier("+r8[t]+")":o3(t)?t:"":""}function oI(t,e,r,n){var a=t.animators,i=a.length,o=[];if(t instanceof UD){var s=kPe(t,e,r);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var c=a[u],d=[c.getMaxTime()/1e3+"s"],p=n8(c.getClip().easing),v=c.getDelay();p?d.push(p):d.push("linear"),v&&d.push(v/1e3+"s"),c.getLoop()&&d.push("infinite");var g=d.join(" ");l[g]=l[g]||[g,[]],l[g][1].push(c)}function m(w){var T=w[1],A=T.length,M={},D={},P={},O="animation-timing-function";function k($e,Be,et){for(var de=$e.getTracks(),xe=$e.getMaxTime(),xt=0;xt<de.length;xt++){var Ie=de[xt];if(Ie.needsAnimate()){var Ct=Ie.keyframes,Ot=Ie.propName;if(et&&(Ot=et(Ot)),Ot)for(var jt=0;jt<Ct.length;jt++){var nr=Ct[jt],Tr=Math.round(nr.time/xe*100)+"%",Er=n8(nr.easing),Xt=nr.rawValue;(at(Xt)||_r(Xt))&&(Be[Tr]=Be[Tr]||{},Be[Tr][Ot]=nr.rawValue,Er&&(Be[Tr][O]=Er))}}}}for(var N=0;N<A;N++){var $=T[N],H=$.targetName;H?H==="shape"&&k($,D):!n&&k($,M)}for(var F in M){var W={};vJ(W,t),Ce(W,M[F]);var j=fJ(W),X=M[F][O];P[F]=j?{transform:j}:{},LPe(P[F],W),X&&(P[F][O]=X)}var te,J=!0;for(var F in D){P[F]=P[F]||{};var ie=!te,X=D[F][O];ie&&(te=new hc);var se=te.len();te.reset(),P[F].d=PPe(t,D[F],te);var le=te.len();if(!ie&&se!==le){J=!1;break}X&&(P[F][O]=X)}if(!J)for(var F in P)delete P[F].d;if(!n)for(var N=0;N<A;N++){var $=T[N],H=$.targetName;H==="style"&&k($,P,function(de){return OPe[de]})}for(var be=sr(P),Me=!0,Se,N=1;N<be.length;N++){var Ue=be[N-1],Xe=be[N];if(P[Ue][Cv]!==P[Xe][Cv]){Me=!1;break}Se=P[Ue][Cv]}if(Me&&Se){for(var F in P)P[F][Cv]&&delete P[F][Cv];e[Cv]=Se}if(Br(be,function($e){return sr(P[$e]).length>0}).length){var st=qre(P,r);return st+" "+w[0]+" both"}}for(var x in l){var s=m(l[x]);s&&o.push(s)}if(o.length){var _=r.zrId+"-cls-"+r.cssClassIdx++;r.cssNodes["."+_]={animation:o.join(",")},e.class=_}}var sS=Math.round;function Xre(t){return t&&at(t.src)}function Zre(t){return t&&vt(t.toDataURL)}function mV(t,e,r,n){APe(function(a,i){var o=a==="fill"||a==="stroke";o&&uJ(i)?Qre(e,t,a,n):o&&l3(i)?Jre(r,t,a,n):t[a]=i},e,r,!1),UPe(r,t,n)}function a8(t){return eh(t[0]-1)&&eh(t[1])&&eh(t[2])&&eh(t[3]-1)}function NPe(t){return eh(t[4])&&eh(t[5])}function yV(t,e,r){if(e&&!(NPe(e)&&a8(e))){var n=r?10:1e4;t.transform=a8(e)?"translate("+sS(e[4]*n)/n+" "+sS(e[5]*n)/n+")":uTe(e)}}function i8(t,e,r){for(var n=t.points,a=[],i=0;i<n.length;i++)a.push(sS(n[i][0]*r)/r),a.push(sS(n[i][1]*r)/r);e.points=a.join(" ")}function o8(t){return!t.smooth}function BPe(t){var e=Oe(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,a){for(var i=0;i<e.length;i++){var o=e[i],s=r[o[0]];s!=null&&(n[o[1]]=sS(s*a)/a)}}}var zPe={circle:[BPe(["cx","cy","r"])],polyline:[i8,o8],polygon:[i8,o8]};function $Pe(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function Kre(t,e){var r=t.style,n=t.shape,a=zPe[t.type],i={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&cJ(t)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&$Pe(t))&&!(l<1)){s=t.type;var c=Math.pow(10,u);a[0](n,i,c)}else{var d=!t.path||t.shapeChanged();t.path||t.createPathProxy();var p=t.path;d&&(p.beginPath(),t.buildPath(p,t.shape),t.pathUpdated());var v=p.getVersion(),g=t,m=g.__svgPathBuilder;(g.__svgPathVersion!==v||!m||l!==g.__svgPathStrokePercent)&&(m||(m=g.__svgPathBuilder=new Hre),m.reset(u),p.rebuildPath(m,l),m.generateStr(),g.__svgPathVersion=v,g.__svgPathStrokePercent=l),i.d=m.getStr()}return yV(i,t.transform),mV(i,r,t,e),e.animation&&oI(t,i,e),za(s,t.id+"",i)}function FPe(t,e){var r=t.style,n=r.image;if(n&&!at(n)&&(Xre(n)?n=n.src:Zre(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),yV(l,t.transform),mV(l,r,t,e),e.animation&&oI(t,l,e),za("image",t.id+"",l)}}function VPe(t,e){var r=t.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var a=r.font||hh,i=r.x||0,o=fTe(r.y||0,ID(a),r.textBaseline),s=cTe[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(YJ(r)){var u="",c=r.fontStyle,d=jJ(r.fontSize);if(!parseFloat(d))return;var p=r.fontFamily||LQ,v=r.fontWeight;u+="font-size:"+d+";font-family:"+p+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+a;return n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),yV(l,t.transform),mV(l,r,t,e),e.animation&&oI(t,l,e),za("text",t.id+"",l,void 0,n)}}function s8(t,e){if(t instanceof ir)return Kre(t,e);if(t instanceof si)return FPe(t,e);if(t instanceof Z1)return VPe(t,e)}function UPe(t,e,r){var n=t.style;if(dTe(n)){var a=hTe(t),i=r.shadowCache,o=i[a];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=n.shadowOffsetX||0,d=n.shadowOffsetY||0,p=n.shadowBlur,v=q1(n.shadowColor),g=v.opacity,m=v.color,x=p/2/l,_=p/2/u,w=x+" "+_;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=za("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[za("feDropShadow","",{dx:c/l,dy:d/u,stdDeviation:w,"flood-color":m,"flood-opacity":g})]),i[a]=o}e.filter=DD(o)}}function Qre(t,e,r,n){var a=t[r],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(sJ(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(lJ(a))i="radialGradient",o.cx=$t(a.x,.5),o.cy=$t(a.y,.5),o.r=$t(a.r,.5);else{rl("Illegal gradient type.");return}for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var d=p$(s[u].offset)*100+"%",p=s[u].color,v=q1(p),g=v.color,m=v.opacity,x={offset:d};x["stop-color"]=g,m<1&&(x["stop-opacity"]=m),l.push(za("stop",u+"",x))}var _=za(i,"",o,l),w=gV(_),T=n.gradientCache,A=T[w];A||(A=n.zrId+"-g"+n.gradientIdx++,T[w]=A,o.id=A,n.defs[A]=za(i,A,o,l)),e[r]=DD(A)}function Jre(t,e,r,n){var a=t.style[r],i=t.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",d;if(oJ(a)){var p=a.imageWidth,v=a.imageHeight,g=void 0,m=a.image;if(at(m)?g=m:Xre(m)?g=m.src:Zre(m)&&(g=m.toDataURL()),typeof Image>"u"){var x="Image width/height must been given explictly in svg-ssr renderer.";Tt(p,x),Tt(v,x)}else if(p==null||v==null){var _=function(N,$){if(N){var H=N.elm,F=p||$.width,W=v||$.height;N.tag==="pattern"&&(u?(W=1,F/=i.width):c&&(F=1,W/=i.height)),N.attrs.width=F,N.attrs.height=W,H&&(H.setAttribute("width",F),H.setAttribute("height",W))}},w=m3(g,null,t,function(N){l||_(D,N),_(d,N)});w&&w.width&&w.height&&(p=p||w.width,v=v||w.height)}d=za("image","img",{href:g,width:p,height:v}),o.width=p,o.height=v}else a.svgElement&&(d=Et(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(d){var T,A;l?T=A=1:u?(A=1,T=o.width/i.width):c?(T=1,A=o.height/i.height):o.patternUnits="userSpaceOnUse",T!=null&&!isNaN(T)&&(o.width=T),A!=null&&!isNaN(A)&&(o.height=A);var M=fJ(a);M&&(o.patternTransform=M);var D=za("pattern","",o,[d]),P=gV(D),O=n.patternCache,k=O[P];k||(k=n.zrId+"-p"+n.patternIdx++,O[P]=k,o.id=k,D=n.defs[k]=za("pattern",k,o,[d])),e[r]=DD(k)}}function WPe(t,e,r){var n=r.clipPathCache,a=r.defs,i=n[t.id];if(!i){i=r.zrId+"-c"+r.clipPathIdx++;var o={id:i};n[t.id]=i,a[i]=za("clipPath",i,o,[Kre(t,r)])}e["clip-path"]=DD(i)}function l8(t){return document.createTextNode(t)}function Nv(t,e,r){t.insertBefore(e,r)}function u8(t,e){t.removeChild(e)}function c8(t,e){t.appendChild(e)}function ene(t){return t.parentNode}function tne(t){return t.nextSibling}function rB(t,e){t.textContent=e}var f8=58,HPe=120,GPe=za("","");function o5(t){return t===void 0}function Yu(t){return t!==void 0}function jPe(t,e,r){for(var n={},a=e;a<=r;++a){var i=t[a].key;i!==void 0&&(n[i]!=null&&console.error("Duplicate key "+i),n[i]=a)}return n}function r1(t,e){var r=t.key===e.key,n=t.tag===e.tag;return n&&r}function lS(t){var e,r=t.children,n=t.tag;if(Yu(n)){var a=t.elm=Yre(n);if(bV(GPe,t),Le(r))for(e=0;e<r.length;++e){var i=r[e];i!=null&&c8(a,lS(i))}else Yu(t.text)&&!St(t.text)&&c8(a,l8(t.text))}else t.elm=l8(t.text);return t.elm}function rne(t,e,r,n,a){for(;n<=a;++n){var i=r[n];i!=null&&Nv(t,lS(i),e)}}function fM(t,e,r,n){for(;r<=n;++r){var a=e[r];if(a!=null)if(Yu(a.tag)){var i=ene(a.elm);u8(i,a.elm)}else u8(t,a.elm)}}function bV(t,e){var r,n=e.elm,a=t&&t.attrs||{},i=e.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.charCodeAt(0)!==HPe?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(EPe,r,o):r.charCodeAt(3)===f8?n.setAttributeNS(RPe,r,o):r.charCodeAt(5)===f8?n.setAttributeNS(jre,r,o):n.setAttribute(r,o))}for(r in a)r in i||n.removeAttribute(r)}}function YPe(t,e,r){for(var n=0,a=0,i=e.length-1,o=e[0],s=e[i],l=r.length-1,u=r[0],c=r[l],d,p,v,g;n<=i&&a<=l;)o==null?o=e[++n]:s==null?s=e[--i]:u==null?u=r[++a]:c==null?c=r[--l]:r1(o,u)?(Yy(o,u),o=e[++n],u=r[++a]):r1(s,c)?(Yy(s,c),s=e[--i],c=r[--l]):r1(o,c)?(Yy(o,c),Nv(t,o.elm,tne(s.elm)),o=e[++n],c=r[--l]):r1(s,u)?(Yy(s,u),Nv(t,s.elm,o.elm),s=e[--i],u=r[++a]):(o5(d)&&(d=jPe(e,n,i)),p=d[u.key],o5(p)?Nv(t,lS(u),o.elm):(v=e[p],v.tag!==u.tag?Nv(t,lS(u),o.elm):(Yy(v,u),e[p]=void 0,Nv(t,v.elm,o.elm))),u=r[++a]);(n<=i||a<=l)&&(n>i?(g=r[l+1]==null?null:r[l+1].elm,rne(t,g,r,a,l)):fM(t,e,n,i))}function Yy(t,e){var r=e.elm=t.elm,n=t.children,a=e.children;t!==e&&(bV(t,e),o5(e.text)?Yu(n)&&Yu(a)?n!==a&&YPe(r,n,a):Yu(a)?(Yu(t.text)&&rB(r,""),rne(r,null,a,0,a.length-1)):Yu(n)?fM(r,n,0,n.length-1):Yu(t.text)&&rB(r,""):t.text!==e.text&&(Yu(n)&&fM(r,n,0,n.length-1),rB(r,e.text)))}function qPe(t,e){if(r1(t,e))Yy(t,e);else{var r=t.elm,n=ene(r);lS(e),n!==null&&(Nv(n,e.elm,tne(r)),fM(n,[t],0,0))}return e}var XPe=0,ZPe=function(){function t(e,r,n){if(this.type="svg",this.refreshHover=d8("refreshHover"),this.configLayer=d8("configLayer"),this.storage=r,this._opts=n=Ce({},n),this.root=e,this._id="zr"+XPe++,this._oldVNode=t8(n.width,n.height),e&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=Yre("svg");bV(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",qPe(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return s8(e,i5(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=i5(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=KPe(n,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=za("g","main",{},[]);this._paintList(r,i,l?l.children:o),l&&o.push(l);var u=Oe(sr(i.defs),function(p){return i.defs[p]});if(u.length&&o.push(za("defs","defs",{},u)),e.animation){var c=IPe(i.cssNodes,i.cssAnims,{newline:!0});if(c){var d=za("style","stl",{},[],c);o.push(d)}}return t8(n,a,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},gV(this.renderToVNode({animation:$t(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:$t(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,n){for(var a=e.length,i=[],o=0,s,l,u=0,c=0;c<a;c++){var d=e[c];if(!d.invisible){var p=d.__clipPaths,v=p&&p.length||0,g=l&&l.length||0,m=void 0;for(m=Math.max(v-1,g-1);m>=0&&!(p&&l&&p[m]===l[m]);m--);for(var x=g-1;x>m;x--)o--,s=i[o-1];for(var _=m+1;_<v;_++){var w={};WPe(p[_],w,r);var T=za("g","clip-g-"+u++,w,[]);(s?s.children:n).push(T),i[o++]=T,s=T}l=p;var A=s8(d,r);A&&(s?s.children:n).push(A)}}},t.prototype.resize=function(e,r){var n=this._opts,a=this.root,i=this._viewport;if(e!=null&&(n.width=e),r!=null&&(n.height=r),a&&i&&(i.style.display="none",e=e0(a,0,n),r=e0(a,1,n),i.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,i){var o=i.style;o.width=e+"px",o.height=r+"px"}if(l3(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",r))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),n="data:image/svg+xml;";return e?(r=vTe(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},t}();function d8(t){return function(){rl('In SVG mode painter not support method "'+t+'"')}}function KPe(t,e,r,n){var a;if(r&&r!=="none")if(a=za("rect","bg",{width:t,height:e,x:"0",y:"0",id:"0"}),uJ(r))Qre({fill:r},a.attrs,"fill",n);else if(l3(r))Jre({style:{fill:r},dirty:ta,getBoundingRect:function(){return{width:t,height:e}}},a.attrs,"fill",n);else{var i=q1(r),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}const QPe=ZPe;function JPe(t){t.registerPainter("svg",QPe)}function h8(t,e,r){var n=Jl.createCanvas(),a=e.getWidth(),i=e.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",t)),n.width=a*r,n.height=i*r,n}var eLe=function(t){he(e,t);function e(r,n,a){var i=t.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||$R,typeof r=="string"?o=h8(r,n,a):St(r)&&(o=r,r=o.id),i.id=r,i.dom=o;var s=o.style;return s&&(n3(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=h8("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Ht(0,0,0,0);function c(w){if(!(!w.isFinite()||w.isZero()))if(o.length===0){var T=new Ht(0,0,0,0);T.copy(w),o.push(T)}else{for(var A=!1,M=1/0,D=0,P=0;P<o.length;++P){var O=o[P];if(O.intersect(w)){var k=new Ht(0,0,0,0);k.copy(O),k.union(w),o[P]=k,A=!0;break}else if(l){u.copy(w),u.union(O);var N=w.width*w.height,$=O.width*O.height,H=u.width*u.height,F=H-N-$;F<M&&(M=F,D=P)}}if(l&&(o[D].union(w),A=!0),!A){var T=new Ht(0,0,0,0);T.copy(w),o.push(T)}l||(l=o.length>=s)}}for(var d=this.__startIndex;d<this.__endIndex;++d){var p=r[d];if(p){var v=p.shouldBePainted(a,i,!0,!0),g=p.__isRendered&&(p.__dirty&is||!v)?p.getPrevPaintRect():null;g&&c(g);var m=v&&(p.__dirty&is||!p.__isRendered)?p.getPaintRect():null;m&&c(m)}}for(var d=this.__prevStartIndex;d<this.__prevEndIndex;++d){var p=n[d],v=p.shouldBePainted(a,i,!0,!0);if(p&&(!v||!p.__zr)&&p.__isRendered){var g=p.getPrevPaintRect();g&&c(g)}}var x;do{x=!1;for(var d=0;d<o.length;){if(o[d].isZero()){o.splice(d,1);continue}for(var _=d+1;_<o.length;)o[d].intersect(o[_])?(x=!0,o[d].union(o[_]),o.splice(_,1)):_++;d++}}while(x);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.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))},e.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,c=this.lastFrameAlpha,d=this.dpr,p=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/d,l/d));var v=this.domBack;function g(m,x,_,w){if(o.clearRect(m,x,_,w),n&&n!=="transparent"){var T=void 0;if(PS(n)){var A=n.global||n.__width===_&&n.__height===w;T=A&&n.__canvasGradient||X$(o,n,{x:0,y:0,width:_,height:w}),n.__canvasGradient=T,n.__width=_,n.__height=w}else zQ(n)&&(n.scaleX=n.scaleX||d,n.scaleY=n.scaleY||d,T=Z$(o,n,{dirty:function(){p.setUnpainted(),p.__painter.refresh()}}));o.save(),o.fillStyle=T||n,o.fillRect(m,x,_,w),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(v,m,x,_,w),o.restore())}!a||u?g(0,0,s,l):a.length&&V(a,function(m){g(m.x*d,m.y*d,m.width*d,m.height*d)})},e}(dl);const nB=eLe;var p8=1e5,yv=314159,mE=.01,tLe=.001;function rLe(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function nLe(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var aLe=function(){function t(e,r,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=Ce({},n||{}),this.dpr=n.devicePixelRatio||$R,this._singleCanvas=i,this.root=e;var o=e.style;o&&(n3(e),e.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var c=e,d=c.width,p=c.height;n.width!=null&&(d=n.width),n.height!=null&&(p=n.height),this.dpr=n.devicePixelRatio||1,c.width=d*this.dpr,c.height=p*this.dpr,this._width=d,this._height=p;var v=new nB(c,this,this.dpr);v.__builtin__=!0,v.initContext(),l[yv]=v,v.zlevel=yv,s.push(yv),this._domRoot=e}else{this._width=e0(e,0,n),this._height=e0(e,1,n);var u=this._domRoot=nLe(this._width,this._height);e.appendChild(u)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,e,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var r=e.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<r;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(p8)),i||(i=n.ctx,i.save()),jv(i,s,a,o===r-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(p8)},t.prototype.paintOne=function(e,r){K3(e,r)},t.prototype._paintList=function(e,r,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,r,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;c$(function(){l._paintList(e,r,n,a)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(yv).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,r,n)})},t.prototype._doPaintList=function(e,r,n){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&i.push(u)}for(var c=!0,d=!1,p=function(m){var x=i[m],_=x.ctx,w=o&&x.createRepaintRects(e,r,v._width,v._height),T=n?x.__startIndex:x.__drawIndex,A=!n&&x.incremental&&Date.now,M=A&&Date.now(),D=x.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(x.__startIndex===x.__endIndex)x.clear(!1,D,w);else if(T===x.__startIndex){var P=e[T];(!P.incremental||!P.notClear||n)&&x.clear(!1,D,w)}T===-1&&(console.error("For some unknown reason. drawIndex is -1"),T=x.__startIndex);var O,k=function(F){var W={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(O=T;O<x.__endIndex;O++){var j=e[O];if(j.__inHover&&(d=!0),a._doPaintEl(j,x,o,F,W,O===x.__endIndex-1),A){var X=Date.now()-M;if(X>15)break}}W.prevElClipPaths&&_.restore()};if(w)if(w.length===0)O=x.__endIndex;else for(var N=v.dpr,$=0;$<w.length;++$){var H=w[$];_.save(),_.beginPath(),_.rect(H.x*N,H.y*N,H.width*N,H.height*N),_.clip(),k(H),_.restore()}else _.save(),k(),_.restore();x.__drawIndex=O,x.__drawIndex<x.__endIndex&&(c=!1)},v=this,g=0;g<i.length;g++)p(g);return gr.wxa&&V(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:c,needsRefreshHover:d}},t.prototype._doPaintEl=function(e,r,n,a,i,o){var s=r.ctx;if(n){var l=e.getPaintRect();(!a||l&&l.intersect(a))&&(jv(s,e,i,o),e.setPrevPaintRect(l))}else jv(s,e,i,o)},t.prototype.getLayer=function(e,r){this._singleCanvas&&!this._needsManuallyCompositing&&(e=yv);var n=this._layers[e];return n||(n=new nB("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?Ft(n,this._layerConfig[e],!0):this._layerConfig[e-mE]&&Ft(n,this._layerConfig[e-mE],!0),r&&(n.virtual=r),this.insertLayer(e,n),n.initContext()),n},t.prototype.insertLayer=function(e,r){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(n[e]){rl("ZLevel "+e+" has been used already");return}if(!rLe(r)){rl("Layer of zlevel "+e+" is not valid");return}if(i>0&&e>a[0]){for(l=0;l<i-1&&!(a[l]<e&&a[l+1]>e);l++);s=n[a[l]]}if(a.splice(l+1,0,e),n[e]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];e.call(r,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(e,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&e.call(r,o,i)}},t.prototype.eachOtherLayer=function(e,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||e.call(r,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(d,p){d.__dirty=d.__used=!1});function r(d){i&&(i.__endIndex!==d&&(i.__dirty=!0),i.__endIndex=d)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var a=e[n];if(a.zlevel!==e[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<e.length;l++){var a=e[l],u=a.zlevel,c=void 0;s!==u&&(s=u,o=0),a.incremental?(c=this.getLayer(u+tLe,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?mE:0),this._needsManuallyCompositing),c.__builtin__||rl("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),i=c),a.__dirty&is&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(d,p){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,V(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?Ft(n[e],r,!0):n[e]=r;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===e||i===e+mE){var o=this._layers[i];Ft(o,n[e],!0)}}}},t.prototype.delLayer=function(e){var r=this._layers,n=this._zlevelList,a=r[e];a&&(a.dom.parentNode.removeChild(a.dom),delete r[e],n.splice(Qt(n,e),1))},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(e!=null&&(a.width=e),r!=null&&(a.height=r),e=e0(i,0,a),r=e0(i,1,a),n.style.display="",this._width!==e||r!==this._height){n.style.width=e+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,r);this.refresh(!0)}this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this.getLayer(yv).resize(e,r)}return this},t.prototype.clearLayer=function(e){var r=this._layers[e];r&&r.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[yv].dom;var r=new nB("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=r.dom.width,i=r.dom.height;this.eachLayer(function(d){d.__builtin__?n.drawImage(d.dom,0,0,a,i):d.renderToCanvas&&(n.save(),d.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];jv(n,c,o,l===u-1)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const iLe=aLe;function oLe(t){t.registerPainter("canvas",iLe)}var sLe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){{var n=r.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return mc(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new It,a=fa("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=fa(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var c=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(xn);const lLe=sLe;function M0(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=E0(t,e,r[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<r.length;o++)i.push(E0(t,e,r[o]));return i.join(" ")}}function nne(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!Le(e))return e+"";for(var n=[],a=0;a<r.length;a++){var i=t.getDimensionIndex(r[a]);i>=0&&n.push(e[i])}return n.join(" ")}var uLe=function(t){he(e,t);function e(r,n,a,i){var o=t.call(this)||this;return o.updateData(r,n,a,i),o}return e.prototype._createSymbol=function(r,n,a,i,o){this.removeAll();var s=fa(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=cLe,this._symbolType=r,this.add(s)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){yf(this.childAt(0))},e.prototype.downplay=function(){bf(this.childAt(0))},e.prototype.setZ=function(r,n){var a=this.childAt(0);a.zlevel=r,a.z=n},e.prototype.setDraggable=function(r,n){var a=this.childAt(0);a.draggable=r,a.cursor=!n&&r?"move":a.cursor},e.prototype.updateData=function(r,n,a,i){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var d=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,d)}else{var p=this.childAt(0);p.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?p.attr(v):Sr(p,v,s,n),nu(p)}if(this._updateCommon(r,n,l,a,i),u){var p=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,In(p,v,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,a,i,o){var s=this.childAt(0),l=r.hostModel,u,c,d,p,v,g,m,x,_;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,d=i.selectItemStyle,p=i.focus,v=i.blurScope,m=i.labelStatesModels,x=i.hoverScale,_=i.cursorStyle,g=i.emphasisDisabled),!i||r.hasItemOption){var w=i&&i.itemModel?i.itemModel:r.getItemModel(n),T=w.getModel("emphasis");u=T.getModel("itemStyle").getItemStyle(),d=w.getModel(["select","itemStyle"]).getItemStyle(),c=w.getModel(["blur","itemStyle"]).getItemStyle(),p=T.get("focus"),v=T.get("blurScope"),g=T.get("disabled"),m=$a(w),x=T.getShallow("scale"),_=w.getShallow("cursor")}var A=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(A||0)*Math.PI/180||0);var M=ab(r.getItemVisual(n,"symbolOffset"),a);M&&(s.x=M[0],s.y=M[1]),_&&s.attr("cursor",_);var D=r.getItemVisual(n,"style"),P=D.fill;if(s instanceof si){var O=s.style;s.useStyle(Ce({image:O.image,x:O.x,y:O.y,width:O.width,height:O.height},D))}else s.__isEmptyBrush?s.useStyle(Ce({},D)):s.useStyle(D),s.style.decal=null,s.setColor(P,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var k=r.getItemVisual(n,"liftZ"),N=this._z2;k!=null?N==null&&(this._z2=s.z2,s.z2+=k):N!=null&&(s.z2=N,this._z2=null);var $=o&&o.useNameLabel;Ti(s,m,{labelFetcher:l,labelDataIndex:n,defaultText:H,inheritColor:P,defaultOpacity:D.opacity});function H(j){return $?r.getName(j):M0(r,j)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var F=s.ensureState("emphasis");F.style=u,s.ensureState("select").style=d,s.ensureState("blur").style=c;var W=x==null||x===!0?Math.max(1.1,3/this._sizeY):isFinite(x)&&x>0?+x:1;F.scaleX=this._sizeX*W,F.scaleY=this._sizeY*W,this.setSymbolScale(1),Zn(this,p,v,g)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,a){var i=this.childAt(0),o=Pt(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&mh(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();mh(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return YS(r.getItemVisual(n,"symbolSize"))},e}(It);function cLe(t,e){this.parent.drift(t,e)}const ZS=uLe;function aB(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function v8(t){return t!=null&&!St(t)&&(t={isIgnore:t}),t||{}}function g8(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:$a(e),cursorStyle:e.get("cursor")}}var fLe=function(){function t(e){this.group=new It,this._SymbolCtor=e||ZS}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=v8(r);var n=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=g8(e),u={disableAnimation:s},c=r.getSymbolPoint||function(d){return e.getItemLayout(d)};i||n.removeAll(),e.diff(i).add(function(d){var p=c(d);if(aB(e,p,d,r)){var v=new o(e,d,l,u);v.setPosition(p),e.setItemGraphicEl(d,v),n.add(v)}}).update(function(d,p){var v=i.getItemGraphicEl(p),g=c(d);if(!aB(e,g,d,r)){n.remove(v);return}var m=e.getItemVisual(d,"symbol")||"circle",x=v&&v.getSymbolType&&v.getSymbolType();if(!v||x&&x!==m)n.remove(v),v=new o(e,d,l,u),v.setPosition(g);else{v.updateData(e,d,l,u);var _={x:g[0],y:g[1]};s?v.attr(_):Sr(v,_,a)}n.add(v),e.setItemGraphicEl(d,v)}).remove(function(d){var p=i.getItemGraphicEl(d);p&&p.fadeOut(function(){n.remove(p)},a)}).execute(),this._getSymbolPoint=c,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,a){var i=e._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=g8(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=v8(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=r.getItemLayout(i);if(aB(r,o,i,n)){var s=new this._SymbolCtor(r,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(e){Oh(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(a){a.fadeOut(function(){r.remove(a)},n.hostModel)}):r.removeAll()},t}();const KS=fLe;function ane(t,e,r){var n=t.getBaseAxis(),a=t.getOtherAxis(n),i=dLe(a,r),o=n.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),c=s==="x"||s==="radius"?1:0,d=Oe(t.dimensions,function(g){return e.mapDimension(g)}),p=!1,v=e.getCalculationInfo("stackResultDimension");return _f(e,d[0])&&(p=!0,d[0]=v),_f(e,d[1])&&(p=!0,d[1]=v),{dataDimsForPoint:d,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function dLe(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:_r(e)&&!isNaN(e)?r=e:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function ine(t,e,r,n){var a=NaN;t.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=t.valueStart);var i=t.baseDataOffset,o=[];return o[i]=r.get(t.baseDim,n),o[1-i]=a,e.dataToPoint(o)}function hLe(t,e){var r=[];return e.diff(t).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 pLe(t,e,r,n,a,i,o,s){for(var l=hLe(t,e),u=[],c=[],d=[],p=[],v=[],g=[],m=[],x=ane(a,e,o),_=t.getLayout("points")||[],w=e.getLayout("points")||[],T=0;T<l.length;T++){var A=l[T],M=!0,D=void 0,P=void 0;switch(A.cmd){case"=":D=A.idx*2,P=A.idx1*2;var O=_[D],k=_[D+1],N=w[P],$=w[P+1];(isNaN(O)||isNaN(k))&&(O=N,k=$),u.push(O,k),c.push(N,$),d.push(r[D],r[D+1]),p.push(n[P],n[P+1]),m.push(e.getRawIndex(A.idx1));break;case"+":var H=A.idx,F=x.dataDimsForPoint,W=a.dataToPoint([e.get(F[0],H),e.get(F[1],H)]);P=H*2,u.push(W[0],W[1]),c.push(w[P],w[P+1]);var j=ine(x,a,e,H);d.push(j[0],j[1]),p.push(n[P],n[P+1]),m.push(e.getRawIndex(H));break;case"-":M=!1}M&&(v.push(A),g.push(g.length))}g.sort(function(Ue,Xe){return m[Ue]-m[Xe]});for(var X=u.length,te=nc(X),J=nc(X),ie=nc(X),se=nc(X),le=[],T=0;T<g.length;T++){var be=g[T],Me=T*2,Se=be*2;te[Me]=u[Se],te[Me+1]=u[Se+1],J[Me]=c[Se],J[Me+1]=c[Se+1],ie[Me]=d[Se],ie[Me+1]=d[Se+1],se[Me]=p[Se],se[Me+1]=p[Se+1],le[T]=v[be]}return{current:te,next:J,stackedOnCurrent:ie,stackedOnNext:se,status:le}}var zd=Math.min,$d=Math.max;function Qv(t,e){return isNaN(t)||isNaN(e)}function s5(t,e,r,n,a,i,o,s,l){for(var u,c,d,p,v,g,m=r,x=0;x<n;x++){var _=e[m*2],w=e[m*2+1];if(m>=a||m<0)break;if(Qv(_,w)){if(l){m+=i;continue}break}if(m===r)t[i>0?"moveTo":"lineTo"](_,w),d=_,p=w;else{var T=_-u,A=w-c;if(T*T+A*A<.5){m+=i;continue}if(o>0){for(var M=m+i,D=e[M*2],P=e[M*2+1];D===_&&P===w&&x<n;)x++,M+=i,m+=i,D=e[M*2],P=e[M*2+1],_=e[m*2],w=e[m*2+1],T=_-u,A=w-c;var O=x+1;if(l)for(;Qv(D,P)&&O<n;)O++,M+=i,D=e[M*2],P=e[M*2+1];var k=.5,N=0,$=0,H=void 0,F=void 0;if(O>=n||Qv(D,P))v=_,g=w;else{N=D-u,$=P-c;var W=_-u,j=D-_,X=w-c,te=P-w,J=void 0,ie=void 0;if(s==="x"){J=Math.abs(W),ie=Math.abs(j);var se=N>0?1:-1;v=_-se*J*o,g=w,H=_+se*ie*o,F=w}else if(s==="y"){J=Math.abs(X),ie=Math.abs(te);var le=$>0?1:-1;v=_,g=w-le*J*o,H=_,F=w+le*ie*o}else J=Math.sqrt(W*W+X*X),ie=Math.sqrt(j*j+te*te),k=ie/(ie+J),v=_-N*o*(1-k),g=w-$*o*(1-k),H=_+N*o*k,F=w+$*o*k,H=zd(H,$d(D,_)),F=zd(F,$d(P,w)),H=$d(H,zd(D,_)),F=$d(F,zd(P,w)),N=H-_,$=F-w,v=_-N*J/ie,g=w-$*J/ie,v=zd(v,$d(u,_)),g=zd(g,$d(c,w)),v=$d(v,zd(u,_)),g=$d(g,zd(c,w)),N=_-v,$=w-g,H=_+N*ie/J,F=w+$*ie/J}t.bezierCurveTo(d,p,v,g,_,w),d=H,p=F}else t.lineTo(_,w)}u=_,c=w,m+=i}return x}var one=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),vLe=function(t){he(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new one},e.prototype.buildPath=function(r,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Qv(a[o*2-2],a[o*2-1]);o--);for(;i<o&&Qv(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=s5(r,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=hc.CMD,s,l,u=n==="x",c=[],d=0;d<i.length;){var p=i[d++],v=void 0,g=void 0,m=void 0,x=void 0,_=void 0,w=void 0,T=void 0;switch(p){case o.M:s=i[d++],l=i[d++];break;case o.L:if(v=i[d++],g=i[d++],T=u?(r-s)/(v-s):(r-l)/(g-l),T<=1&&T>=0){var A=u?(g-l)*T+l:(v-s)*T+s;return u?[r,A]:[A,r]}s=v,l=g;break;case o.C:v=i[d++],g=i[d++],m=i[d++],x=i[d++],_=i[d++],w=i[d++];var M=u?NR(s,v,m,_,r,c):NR(l,g,x,w,r,c);if(M>0)for(var D=0;D<M;D++){var P=c[D];if(P<=1&&P>=0){var A=u?Na(l,g,x,w,P):Na(s,v,m,_,P);return u?[r,A]:[A,r]}}s=_,l=w;break}}},e}(ir),gLe=function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(one),sne=function(t){he(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new gLe},e.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&&Qv(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Qv(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=s5(r,a,o,s,s,1,n.smooth,l,n.connectNulls);s5(r,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},e}(ir);function lne(t,e,r,n,a){var i=t.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=r.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,o=Math.floor(o),l=Math.round(l);var d=new yr({shape:{x:o,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),v=p.isHorizontal(),g=p.inverse;v?(g&&(d.shape.x+=l),d.shape.width=0):(g||(d.shape.y+=u),d.shape.height=0);var m=vt(a)?function(x){a(x,d)}:null;In(d,{shape:{width:l,height:u,x:o,y:s}},r,null,n,m)}return d}function une(t,e,r){var n=t.getArea(),a=Xn(n.r0,1),i=Xn(n.r,1),o=new uo({shape:{cx:Xn(t.cx,1),cy:Xn(t.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,In(o,{shape:{endAngle:n.endAngle,r:i}},r)}return o}function sI(t,e,r,n,a){if(t){if(t.type==="polar")return une(t,e,r);if(t.type==="cartesian2d")return lne(t,e,r,n,a)}else return null;return null}function Ag(t,e){return t.type===e}function m8(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function y8(t){for(var e=1/0,r=1/0,n=-1/0,a=-1/0,i=0;i<t.length;){var o=t[i++],s=t[i++];isNaN(o)||(e=Math.min(o,e),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),a=Math.max(s,a))}return[[e,r],[n,a]]}function b8(t,e){var r=y8(t),n=r[0],a=r[1],i=y8(e),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function x8(t){return _r(t)?t:t?.5:0}function mLe(t,e,r){if(!r.valueDim)return[];for(var n=e.count(),a=nc(n*2),i=0;i<n;i++){var o=ine(r,t,e,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Fd(t,e,r,n){var a=e.getBaseAxis(),i=a.dim==="x"||a.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],d=[];if(n){for(s=0;s<t.length;s+=2)!isNaN(t[s])&&!isNaN(t[s+1])&&d.push(t[s],t[s+1]);t=d}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],o.push(u[0],u[1]),r){case"end":l[i]=c[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var p=(u[i]+c[i])/2,v=[];l[i]=v[i]=p,l[1-i]=u[1-i],v[1-i]=c[1-i],o.push(l[0],l[1]),o.push(v[0],v[1]);break;default:l[i]=u[i],l[1-i]=c[1-i],o.push(l[0],l[1])}return o.push(t[s++],t[s++]),o}function yLe(t,e){var r=[],n=t.length,a,i;function o(c,d,p){var v=c.coord,g=(p-v)/(d.coord-v),m=s3(g,[c.color,d.color]);return{coord:p,color:m}}for(var s=0;s<n;s++){var l=t[s],u=l.coord;if(u<0)a=l;else if(u>e){i?r.push(o(i,l,e)):a&&r.push(o(a,l,0),o(a,l,e));break}else a&&(r.push(o(a,l,0)),a=null),r.push(l),i=l}return r}function bLe(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())){if(e.type!=="cartesian2d"){console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var a,i,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(!i){console.warn("Visual map on line style only support x or y dimension.");return}var l=e.getAxis(a),u=Oe(i.stops,function(T){return{coord:l.toGlobalCoord(l.dataToCoord(T.value)),color:T.color}}),c=u.length,d=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var p=yLe(u,a==="x"?r.getWidth():r.getHeight()),v=p.length;if(!v&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var g=10,m=p[0].coord-g,x=p[v-1].coord+g,_=x-m;if(_<.001)return"transparent";V(p,function(T){T.offset=(T.coord-m)/_}),p.push({offset:v?p[v-1].offset:.5,color:d[1]||"transparent"}),p.unshift({offset:v?p[0].offset:.5,color:d[0]||"transparent"});var w=new Y0(0,0,0,0,p,!0);return w[a]=m,w[a+"2"]=x,w}}function xLe(t,e,r){var n=t.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=r.getAxesByScale("ordinal")[0];if(i&&!(a&&_Le(i,e))){var o=e.mapDimension(i.dim),s={};return V(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function _Le(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(ZS.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function SLe(t,e){return isNaN(t)||isNaN(e)}function wLe(t){for(var e=t.length/2;e>0&&SLe(t[e*2-2],t[e*2-1]);e--);return e-1}function _8(t,e){return[t[e*2],t[e*2+1]]}function TLe(t,e,r){for(var n=t.length/2,a=r==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=t[u*2+a],!(isNaN(o)||isNaN(t[u*2+1-a]))){if(u===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function cne(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<lo.length;e++)if(t.get([lo[e],"endLabel","show"]))return!0;return!1}function iB(t,e,r,n){if(Ag(e,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=cne(n)?function(v,g){t._endLabelOnDuring(v,g,o,s,i,a,e)}:null,u=e.getBaseAxis().isHorizontal(),c=lne(e,r,n,function(){var v=t._endLabel;v&&r&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var d=c.shape,p=Math.max(d.width,d.height);u?(d.y-=p,d.height+=p*2):(d.x-=p,d.width+=p*2)}return l&&l(1,c),c}else return n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),une(e,r,n)}function CLe(t,e){var r=e.getBaseAxis(),n=r.isHorizontal(),a=r.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:t.get("align")||i,verticalAlign:t.get("verticalAlign")||o}}}var ALe=function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new It,n=new KS;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},e.prototype.render=function(r,n,a){var i=this,o=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),c=r.getModel("areaStyle"),d=l.getLayout("points")||[],p=o.type==="polar",v=this._coordSys,g=this._symbolDraw,m=this._polyline,x=this._polygon,_=this._lineGroup,w=r.get("animation"),T=!c.isEmpty(),A=c.get("origin"),M=ane(o,l,A),D=T&&mLe(o,l,M),P=r.get("showSymbol"),O=r.get("connectNulls"),k=P&&!p&&xLe(r,l,o),N=this._data;N&&N.eachItemGraphicEl(function(Xe,st){Xe.__temp&&(s.remove(Xe),N.setItemGraphicEl(st,null))}),P||g.remove(),s.add(_);var $=p?!1:r.get("step"),H;o&&o.getArea&&r.get("clip",!0)&&(H=o.getArea(),H.width!=null?(H.x-=.1,H.y-=.1,H.width+=.2,H.height+=.2):H.r0&&(H.r0-=.5,H.r+=.5)),this._clipShapeForSymbol=H;var F=bLe(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(m&&v.type===o.type&&$===this._step))P&&g.updateData(l,{isIgnore:k,clipShape:H,disableAnimation:!0,getSymbolPoint:function(Xe){return[d[Xe*2],d[Xe*2+1]]}}),w&&this._initSymbolLabelAnimation(l,o,H),$&&(d=Fd(d,o,$,O),D&&(D=Fd(D,o,$,O))),m=this._newPolyline(d),T?x=this._newPolygon(d,D):x&&(_.remove(x),x=this._polygon=null),p||this._initOrUpdateEndLabel(r,o,pg(F)),_.setClipPath(iB(this,o,!0,r));else{T&&!x?x=this._newPolygon(d,D):x&&!T&&(_.remove(x),x=this._polygon=null),p||this._initOrUpdateEndLabel(r,o,pg(F));var W=_.getClipPath();if(W){var j=iB(this,o,!1,r);In(W,{shape:j.shape},r)}else _.setClipPath(iB(this,o,!0,r));P&&g.updateData(l,{isIgnore:k,clipShape:H,disableAnimation:!0,getSymbolPoint:function(Xe){return[d[Xe*2],d[Xe*2+1]]}}),(!m8(this._stackedOnPoints,D)||!m8(this._points,d))&&(w?this._doUpdateAnimation(l,D,o,a,$,A,O):($&&(d=Fd(d,o,$,O),D&&(D=Fd(D,o,$,O))),m.setShape({points:d}),x&&x.setShape({points:d,stackedOnPoints:D})))}var X=r.getModel("emphasis"),te=X.get("focus"),J=X.get("blurScope"),ie=X.get("disabled");if(m.useStyle(wt(u.getLineStyle(),{fill:"none",stroke:F,lineJoin:"bevel"})),wi(m,r,"lineStyle"),m.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var se=m.getState("emphasis").style;se.lineWidth=+m.style.lineWidth+1}Pt(m).seriesIndex=r.seriesIndex,Zn(m,te,J,ie);var le=x8(r.get("smooth")),be=r.get("smoothMonotone");if(m.setShape({smooth:le,smoothMonotone:be,connectNulls:O}),x){var Me=l.getCalculationInfo("stackedOnSeries"),Se=0;x.useStyle(wt(c.getAreaStyle(),{fill:F,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Me&&(Se=x8(Me.get("smooth"))),x.setShape({smooth:le,stackedOnSmooth:Se,smoothMonotone:be,connectNulls:O}),wi(x,r,"areaStyle"),Pt(x).seriesIndex=r.seriesIndex,Zn(x,te,J,ie)}var Ue=function(Xe){i._changePolyState(Xe)};l.eachItemGraphicEl(function(Xe){Xe&&(Xe.onHoverStateChange=Ue)}),this._polyline.onHoverStateChange=Ue,this._data=l,this._coordSys=o,this._stackedOnPoints=D,this._points=d,this._step=$,this._valueOrigin=A,r.get("triggerLineEvent")&&(this.packEventData(r,m),x&&this.packEventData(r,x))},e.prototype.packEventData=function(r,n){Pt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},e.prototype.highlight=function(r,n,a,i){var o=r.getData(),s=fg(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 c=l[s*2],d=l[s*2+1];if(isNaN(c)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,d))return;var p=r.get("zlevel")||0,v=r.get("z")||0;u=new ZS(o,s),u.x=c,u.y=d,u.setZ(p,v);var g=u.getSymbolPath().getTextContent();g&&(g.zlevel=p,g.z=v,g.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Kr.prototype.highlight.call(this,r,n,a,i)},e.prototype.downplay=function(r,n,a,i){var o=r.getData(),s=fg(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 Kr.prototype.downplay.call(this,r,n,a,i)},e.prototype._changePolyState=function(r){var n=this._polygon;WR(this._polyline,r),n&&WR(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new vLe({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new sne({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.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,c=u.get("animationDuration");vt(c)&&(c=c(null));var d=u.get("animationDelay")||0,p=vt(d)?d(null):d;r.eachItemGraphicEl(function(v,g){var m=v;if(m){var x=[v.x,v.y],_=void 0,w=void 0,T=void 0;if(a)if(o){var A=a,M=n.pointToCoord(x);i?(_=A.startAngle,w=A.endAngle,T=-M[1]/180*Math.PI):(_=A.r0,w=A.r,T=M[0])}else{var D=a;i?(_=D.x,w=D.x+D.width,T=v.x):(_=D.y+D.height,w=D.y,T=v.y)}var P=w===_?0:(T-_)/(w-_);l&&(P=1-P);var O=vt(d)?d(g):c*P+p,k=m.getSymbolPath(),N=k.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:O}),N&&N.animateFrom({style:{opacity:0}},{duration:300,delay:O}),k.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,a){var i=r.getModel("endLabel");if(cne(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 mr({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=wLe(l);c>=0&&(Ti(s,$a(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:c,defaultText:function(d,p,v){return v!=null?nne(o,v):M0(o,d)},enableTextSetter:!0},CLe(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var d=a.getLayout("points"),p=a.hostModel,v=p.get("connectNulls"),g=s.get("precision"),m=s.get("distance")||0,x=l.getBaseAxis(),_=x.isHorizontal(),w=x.inverse,T=n.shape,A=w?_?T.x:T.y+T.height:_?T.x+T.width:T.y,M=(_?m:0)*(w?-1:1),D=(_?0:-m)*(w?-1:1),P=_?"x":"y",O=TLe(d,A,P),k=O.range,N=k[1]-k[0],$=void 0;if(N>=1){if(N>1&&!v){var H=_8(d,k[0]);u.attr({x:H[0]+M,y:H[1]+D}),o&&($=p.getRawValue(k[0]))}else{var H=c.getPointOn(A,P);H&&u.attr({x:H[0]+M,y:H[1]+D});var F=p.getRawValue(k[0]),W=p.getRawValue(k[1]);o&&($=DJ(a,g,F,W,O.t))}i.lastFrameIndex=k[0]}else{var j=r===1||i.lastFrameIndex>0?k[0]:0,H=_8(d,j);o&&($=p.getRawValue(j)),u.attr({x:H[0]+M,y:H[1]+D})}o&&K0(u).setLabelText($)}},e.prototype._doUpdateAnimation=function(r,n,a,i,o,s,l){var u=this._polyline,c=this._polygon,d=r.hostModel,p=pLe(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=p.current,g=p.stackedOnCurrent,m=p.next,x=p.stackedOnNext;if(o&&(v=Fd(p.current,a,o,l),g=Fd(p.stackedOnCurrent,a,o,l),m=Fd(p.next,a,o,l),x=Fd(p.stackedOnNext,a,o,l)),b8(v,m)>3e3||c&&b8(g,x)>3e3){u.stopAnimation(),u.setShape({points:m}),c&&(c.stopAnimation(),c.setShape({points:m,stackedOnPoints:x}));return}u.shape.__points=p.current,u.shape.points=v;var _={shape:{points:m}};p.current!==v&&(_.shape.__points=p.next),u.stopAnimation(),Sr(u,_,d),c&&(c.setShape({points:v,stackedOnPoints:g}),c.stopAnimation(),Sr(c,{shape:{stackedOnPoints:x}},d),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var w=[],T=p.status,A=0;A<T.length;A++){var M=T[A].cmd;if(M==="="){var D=r.getItemGraphicEl(T[A].idx1);D&&w.push({el:D,ptIdx:A})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var P=u.shape.__points,O=0;O<w.length;O++){var k=w[O].el,N=w[O].ptIdx*2;k.x=P[N],k.y=P[N+1],k.markRedraw()}})},e.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},e.type="line",e}(Kr);const ELe=ALe;function QS(t,e){return{seriesType:t,plan:rb(),reset:function(r){var n=r.getData(),a=r.coordinateSystem,i=r.pipelineContext,o=e||i.large;if(a){var s=Oe(a.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");_f(n,s[0])&&(s[0]=u),_f(n,s[1])&&(s[1]=u);var c=n.getStore(),d=n.getDimensionIndex(s[0]),p=n.getDimensionIndex(s[1]);return l&&{progress:function(v,g){for(var m=v.end-v.start,x=o&&nc(m*l),_=[],w=[],T=v.start,A=0;T<v.end;T++){var M=void 0;if(l===1){var D=c.get(d,T);M=a.dataToPoint(D,null,w)}else _[0]=c.get(d,T),_[1]=c.get(p,T),M=a.dataToPoint(_,null,w);o?(x[A++]=M[0],x[A++]=M[1]):g.setItemLayout(T,M.slice())}o&&g.setLayout("points",x)}}}}}}var RLe={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},MLe=function(t){return Math.round(t.length/2)};function fne(t){return{seriesType:t,reset:function(e,r,n){var a=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),d=n.getDevicePixelRatio(),p=Math.abs(c[1]-c[0])*(d||1),v=Math.round(s/p);if(isFinite(v)&&v>1){i==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v));var g=void 0;at(i)?g=RLe[i]:vt(i)&&(g=i),g&&e.setData(a.downSample(a.mapDimension(u.dim),1/v,g,MLe))}}}}}function DLe(t){t.registerChartView(ELe),t.registerSeriesModel(lLe),t.registerLayout(QS("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,fne("line"))}var dne=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return mc(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.dataToPoint(i.clampData(r));if(a)V(i.getAxes(),function(d,p){if(d.type==="category"){var v=d.getTicksCoords(),g=i.clampData(r)[p];n&&(n[p]==="x1"||n[p]==="y1")&&(g+=1),g>v.length-1&&(g=v.length-1),g<0&&(g=0),v[g]&&(o[p]=d.toGlobalCoord(v[g].coord))}});else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;o[c]+=l+u/2}return o}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(xn);xn.registerClass(dne);const dM=dne;var ILe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return mc(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},e.prototype.brushSelector=function(r,n,a){return a.rect(n.getItemLayout(r))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=kh(dM.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(dM);const PLe=ILe;var LLe=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),OLe=function(t){he(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new LLe},e.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,c=n.startAngle,d=n.endAngle,p=n.clockwise,v=Math.PI*2,g=p?d-c<v:c-d<v;g||(c=d-(p?v:-v));var m=Math.cos(c),x=Math.sin(c),_=Math.cos(d),w=Math.sin(d);g?(r.moveTo(m*o+a,x*o+i),r.arc(m*u+a,x*u+i,l,-Math.PI+c,c,!p)):r.moveTo(m*s+a,x*s+i),r.arc(a,i,s,c,d,!p),r.arc(_*u+a,w*u+i,l,d-Math.PI*2,d-Math.PI,!p),o!==0&&r.arc(a,i,o,d,c,p)},e}(ir);const hM=OLe;function kLe(t,e){e=e||{};var r=e.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return FR(n,a,i);var s=t(o),l=a.distance!=null?a.distance:5,u=this.shape,c=u.cx,d=u.cy,p=u.r,v=u.r0,g=(p+v)/2,m=u.startAngle,x=u.endAngle,_=(m+x)/2,w=r?Math.abs(p-v)/2:0,T=Math.cos,A=Math.sin,M=c+p*T(m),D=d+p*A(m),P="left",O="top";switch(s){case"startArc":M=c+(v-l)*T(_),D=d+(v-l)*A(_),P="center",O="top";break;case"insideStartArc":M=c+(v+l)*T(_),D=d+(v+l)*A(_),P="center",O="bottom";break;case"startAngle":M=c+g*T(m)+yE(m,l+w,!1),D=d+g*A(m)+bE(m,l+w,!1),P="right",O="middle";break;case"insideStartAngle":M=c+g*T(m)+yE(m,-l+w,!1),D=d+g*A(m)+bE(m,-l+w,!1),P="left",O="middle";break;case"middle":M=c+g*T(_),D=d+g*A(_),P="center",O="middle";break;case"endArc":M=c+(p+l)*T(_),D=d+(p+l)*A(_),P="center",O="bottom";break;case"insideEndArc":M=c+(p-l)*T(_),D=d+(p-l)*A(_),P="center",O="top";break;case"endAngle":M=c+g*T(x)+yE(x,l+w,!0),D=d+g*A(x)+bE(x,l+w,!0),P="left",O="middle";break;case"insideEndAngle":M=c+g*T(x)+yE(x,-l+w,!0),D=d+g*A(x)+bE(x,-l+w,!0),P="right",O="middle";break;default:return FR(n,a,i)}return n=n||{},n.x=M,n.y=D,n.align=P,n.verticalAlign=O,n}}function NLe(t,e,r,n){if(_r(n)){t.setTextConfig({rotation:n});return}else if(Le(e)){t.setTextConfig({rotation:0});return}var a=t.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=r(e);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:t.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),t.setTextConfig({rotation:c})}function yE(t,e,r){return e*Math.sin(t)*(r?-1:1)}function bE(t,e,r){return e*Math.cos(t)*(r?1:-1)}var oB=Math.max,sB=Math.min;function BLe(t,e){var r=t.getArea&&t.getArea();if(Ag(t,"cartesian2d")){var n=t.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=e.getLayout("bandWidth");n.isHorizontal()?(r.x-=a,r.width+=a*2):(r.y-=a,r.height+=a*2)}}return r}var zLe=function(t){he(e,t);function e(){var r=t.call(this)||this;return r.type=e.type,r._isFirstFrame=!0,r}return e.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)):Vn("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},e.prototype.eachRendered=function(r){Oh(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r,n,a,i){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),d;u.type==="cartesian2d"?d=c.isHorizontal():u.type==="polar"&&(d=c.dim==="angle");var p=r.isAnimationEnabled()?r:null,v=$Le(r,u);v&&this._enableRealtimeSort(v,s,a);var g=r.get("clip",!0)||v,m=BLe(u,s);o.removeClipPath();var x=r.get("roundCap",!0),_=r.get("showBackground",!0),w=r.getModel("backgroundStyle"),T=w.get("borderRadius")||0,A=[],M=this._backgroundEls,D=i&&i.isInitSort,P=i&&i.type==="changeAxisOrder";function O($){var H=xE[u.type](s,$),F=jLe(u,d,H);return F.useStyle(w.getItemStyle()),u.type==="cartesian2d"&&F.setShape("r",T),A[$]=F,F}s.diff(l).add(function($){var H=s.getItemModel($),F=xE[u.type](s,$,H);if(_&&O($),!(!s.hasValue($)||!A8[u.type](F))){var W=!1;g&&(W=S8[u.type](m,F));var j=w8[u.type](r,s,$,F,d,p,c.model,!1,x);v&&(j.forceLabelAnimation=!0),E8(j,s,$,H,F,r,d,u.type==="polar"),D?j.attr({shape:F}):v?T8(v,p,j,F,$,d,!1,!1):In(j,{shape:F},r,$),s.setItemGraphicEl($,j),o.add(j),j.ignore=W}}).update(function($,H){var F=s.getItemModel($),W=xE[u.type](s,$,F);if(_){var j=void 0;M.length===0?j=O(H):(j=M[H],j.useStyle(w.getItemStyle()),u.type==="cartesian2d"&&j.setShape("r",T),A[$]=j);var X=xE[u.type](s,$),te=pne(d,X,u);Sr(j,{shape:te},p,$)}var J=l.getItemGraphicEl(H);if(!s.hasValue($)||!A8[u.type](W)){o.remove(J);return}var ie=!1;if(g&&(ie=S8[u.type](m,W),ie&&o.remove(J)),J?nu(J):J=w8[u.type](r,s,$,W,d,p,c.model,!!J,x),v&&(J.forceLabelAnimation=!0),P){var se=J.getTextContent();if(se){var le=K0(se);le.prevValue!=null&&(le.prevValue=le.value)}}else E8(J,s,$,F,W,r,d,u.type==="polar");D?J.attr({shape:W}):v?T8(v,p,J,W,$,d,!0,P):Sr(J,{shape:W},r,$,null),s.setItemGraphicEl($,J),J.ignore=ie,o.add(J)}).remove(function($){var H=l.getItemGraphicEl($);H&&Q1(H,r,$)}).execute();var k=this._backgroundGroup||(this._backgroundGroup=new It);k.removeAll();for(var N=0;N<A.length;++N)k.add(A[N]);o.add(k),this._backgroundEls=A,this._data=s},e.prototype._renderLarge=function(r,n,a){this._clear(),M8(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),M8(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&sI(r.coordinateSystem,!1,r),a=this.group;n?a.setClipPath(n):a.removeClipPath()},e.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),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.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:Oe(i,function(o){return o.ordinalNumber})}},e.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 c=r.rawIndexOf(o,i.getRawOrdinalNumber(l)),d=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(d>s)return!0;s=d}return!1},e.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},e.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}))}},e.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})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.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){Q1(i,r,Pt(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Kr),S8={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var a=t.x+t.width,i=t.y+t.height,o=oB(e.x,t.x),s=sB(e.x+e.width,a),l=oB(e.y,t.y),u=sB(e.y+e.height,i),c=s<o,d=u<l;return e.x=c&&o>a?s:o,e.y=d&&l>i?u:l,e.width=c?0:s-o,e.height=d?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),c||d},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var a=sB(e.r,t.r),i=oB(e.r0,t.r0);e.r=a,e.r0=i;var o=a-i<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},w8={cartesian2d:function(t,e,r,n,a,i,o,s,l){var u=new yr({shape:Ce({},n),z2:1});if(u.__dataIndex=r,u.name="item",i){var c=u.shape,d=a?"height":"width";c[d]=0}return u},polar:function(t,e,r,n,a,i,o,s,l){var u=!a&&l?hM:uo,c=new u({shape:n,z2:1});c.name="item";var d=hne(a);if(c.calculateTextPosition=kLe(d,{isRoundCap:u===hM}),i){var p=c.shape,v=a?"r":"endAngle",g={};p[v]=a?0:n.startAngle,g[v]=n[v],(s?Sr:In)(c,{shape:g},i)}return c}};function $Le(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(r&&(n.type!=="category"&&Vn("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&Vn("`realtimeSort` will not work because this bar series is not on cartesian2d.")),r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function T8(t,e,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?Sr:In)(r,{shape:l},e,a,null);var c=e?t.baseAxis.model:null;(o?Sr:In)(r,{shape:u},c,a)}function C8(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var FLe=["x","y","width","height"],VLe=["cx","cy","r","startAngle","endAngle"],A8={cartesian2d:function(t){return!C8(t,FLe)},polar:function(t){return!C8(t,VLe)}},xE={cartesian2d:function(t,e,r){var n=t.getItemLayout(e),a=r?WLe(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(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function ULe(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function hne(t){return function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(t)}function E8(t,e,r,n,a,i,o,s){var l=e.getItemVisual(r,"style");s||t.setShape("r",n.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var u=n.getShallow("cursor");u&&t.attr("cursor",u);var c=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",d=$a(n);Ti(t,d,{labelFetcher:i,labelDataIndex:r,defaultText:M0(i.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var p=t.getTextContent();if(s&&p){var v=n.get(["label","position"]);t.textConfig.inside=v==="middle"?!0:null,NLe(t,v==="outside"?c:v,hne(o),n.get(["label","rotate"]))}Mee(p,d,i.getRawValue(r),function(m){return nne(e,m)});var g=n.getModel(["emphasis"]);Zn(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),wi(t,n),ULe(a)&&(t.style.fill="none",t.style.stroke="none",V(t.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function WLe(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,a,i)}var HLe=function(){function t(){}return t}(),R8=function(t){he(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new HLe},e.prototype.buildPath=function(r,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<a.length;c+=3)l[i]=u,l[o]=a[c+2],s[i]=a[c+i],s[o]=a[c+o],r.rect(s[0],s[1],l[0],l[1])},e}(ir);function M8(t,e,r,n){var a=t.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=t.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var c=new R8({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),r&&r.push(c)}var d=new R8({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=i,d.largeDataIndices=o,d.barWidth=s,e.add(d),d.useStyle(a.getVisual("style")),Pt(d).seriesIndex=t.seriesIndex,t.get("silent")||(d.on("mousedown",D8),d.on("mousemove",D8)),r&&r.push(d)}var D8=eI(function(t){var e=this,r=GLe(e,t.offsetX,t.offsetY);Pt(e).dataIndex=r>=0?r:null},30,!1);function GLe(t,e,r){for(var n=t.baseDimIdx,a=1-n,i=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,d=i.length/3;c<d;c++){var p=c*3;if(l[n]=u,l[a]=i[p+2],s[n]=i[p+n],s[a]=i[p+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function pne(t,e,r){if(Ag(r,"cartesian2d")){var n=e,a=r.getArea();return{x:t?n.x:a.x,y:t?a.y:n.y,width:t?n.width:a.width,height:t?a.height:n.height}}else{var a=r.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:t?a.r0:i.r0,r:t?a.r:i.r,startAngle:t?i.startAngle:0,endAngle:t?i.endAngle:Math.PI*2}}}function jLe(t,e,r){var n=t.type==="polar"?uo:yr;return new n({shape:pne(e,r,t),silent:!0,z2:0})}const YLe=zLe;function qLe(t){t.registerChartView(YLe),t.registerSeriesModel(PLe),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Lt(yre,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bre("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,fne("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var _E=Math.PI*2,I8=Math.PI/180;function vne(t,e){return _a(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function gne(t,e){var r=vne(t,e),n=t.get("center"),a=t.get("radius");Le(a)||(a=[0,a]);var i=Qe(r.width,e.getWidth()),o=Qe(r.height,e.getHeight()),s=Math.min(i,o),l=Qe(a[0],s/2),u=Qe(a[1],s/2),c,d,p=t.coordinateSystem;if(p){var v=p.dataToPoint(n);c=v[0]||0,d=v[1]||0}else Le(n)||(n=[n,n]),c=Qe(n[0],i)+r.x,d=Qe(n[1],o)+r.y;return{cx:c,cy:d,r0:l,r:u}}function XLe(t,e,r){e.eachSeriesByType(t,function(n){var a=n.getData(),i=a.mapDimension("value"),o=vne(n,r),s=gne(n,r),l=s.cx,u=s.cy,c=s.r,d=s.r0,p=-n.get("startAngle")*I8,v=n.get("minAngle")*I8,g=0;a.each(i,function(N){!isNaN(N)&&g++});var m=a.getSum(i),x=Math.PI/(m||g)*2,_=n.get("clockwise"),w=n.get("roseType"),T=n.get("stillShowZeroSum"),A=a.getDataExtent(i);A[0]=0;var M=_E,D=0,P=p,O=_?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(N,$){var H;if(isNaN(N)){a.setItemLayout($,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:l,cy:u,r0:d,r:w?NaN:c});return}w!=="area"?H=m===0&&T?x:N*x:H=_E/g,H<v?(H=v,M-=v):D+=N;var F=P+O*H;a.setItemLayout($,{angle:H,startAngle:P,endAngle:F,clockwise:_,cx:l,cy:u,r0:d,r:w?Nr(N,A,[d,c]):c}),P=F}),M<_E&&g)if(M<=.001){var k=_E/g;a.each(i,function(N,$){if(!isNaN(N)){var H=a.getItemLayout($);H.angle=k,H.startAngle=p+O*$*k,H.endAngle=p+O*($+1)*k}})}else x=M/D,P=p,a.each(i,function(N,$){if(!isNaN(N)){var H=a.getItemLayout($),F=H.angle===v?v:N*x;H.startAngle=P,H.endAngle=P+O*F,P+=O*F}})})}function JS(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=e.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})}}}}var ZLe=Math.PI/180;function P8(t,e,r,n,a,i,o,s,l,u){if(t.length<2)return;function c(m){for(var x=m.rB,_=x*x,w=0;w<m.list.length;w++){var T=m.list[w],A=Math.abs(T.label.y-r),M=n+T.len,D=M*M,P=Math.sqrt((1-Math.abs(A*A/_))*D),O=e+(P+T.len2)*a,k=O-T.label.x,N=T.targetTextWidth-k*a;mne(T,N,!0),T.label.x=O}}function d(m){for(var x={list:[],maxY:0},_={list:[],maxY:0},w=0;w<m.length;w++)if(m[w].labelAlignTo==="none"){var T=m[w],A=T.label.y>r?_:x,M=Math.abs(T.label.y-r);if(M>=A.maxY){var D=T.label.x-e-T.len2*a,P=n+T.len,O=Math.abs(D)<P?Math.sqrt(M*M/(1-D*D/P/P)):P;A.rB=O,A.maxY=M}A.list.push(T)}c(x),c(_)}for(var p=t.length,v=0;v<p;v++)if(t[v].position==="outer"&&t[v].labelAlignTo==="labelLine"){var g=t[v].label.x-u;t[v].linePoints[1][0]+=g,t[v].label.x=u}Vre(t,l,l+o)&&d(t)}function KLe(t,e,r,n,a,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,d=-Number.MAX_VALUE,p=0;p<t.length;p++){var v=t[p].label;lB(t[p])||(v.x<e?(c=Math.min(c,v.x),l.push(t[p])):(d=Math.max(d,v.x),u.push(t[p])))}for(var p=0;p<t.length;p++){var g=t[p];if(!lB(g)&&g.linePoints){if(g.labelStyleWidth!=null)continue;var v=g.label,m=g.linePoints,x=void 0;g.labelAlignTo==="edge"?v.x<e?x=m[2][0]-g.labelDistance-o-g.edgeDistance:x=o+a-g.edgeDistance-m[2][0]-g.labelDistance:g.labelAlignTo==="labelLine"?v.x<e?x=c-o-g.bleedMargin:x=o+a-d-g.bleedMargin:v.x<e?x=v.x-o-g.bleedMargin:x=o+a-v.x-g.bleedMargin,g.targetTextWidth=x,mne(g,x)}}P8(u,e,r,n,1,a,i,o,s,d),P8(l,e,r,n,-1,a,i,o,s,c);for(var p=0;p<t.length;p++){var g=t[p];if(!lB(g)&&g.linePoints){var v=g.label,m=g.linePoints,_=g.labelAlignTo==="edge",w=v.style.padding,T=w?w[1]+w[3]:0,A=v.style.backgroundColor?0:T,M=g.rect.width+A,D=m[1][0]-m[2][0];_?v.x<e?m[2][0]=o+g.edgeDistance+M+g.labelDistance:m[2][0]=o+a-g.edgeDistance-M-g.labelDistance:(v.x<e?m[2][0]=v.x+g.labelDistance:m[2][0]=v.x-g.labelDistance,m[1][0]=m[2][0]+D),m[1][1]=m[2][1]=v.y}}}function mne(t,e,r){if(r===void 0&&(r=!1),t.labelStyleWidth==null){var n=t.label,a=n.style,i=t.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,c=i.width+(o?0:l);if(e<c||r){var d=i.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var p=n.getBoundingRect();n.setStyle("width",Math.ceil(p.width)),n.setStyle("backgroundColor",o)}else{var v=e-l,g=e<c?v:r?v>t.unconstrainedWidth?null:v:null;n.setStyle("width",g)}var m=n.getBoundingRect();i.width=m.width;var x=(n.style.margin||0)+2.1;i.height=m.height+x,i.y-=(i.height-d)/2}}}function lB(t){return t.position==="center"}function QLe(t){var e=t.getData(),r=[],n,a,i=!1,o=(t.get("minShowLabelAngle")||0)*ZLe,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,d=s.y,p=s.height;function v(D){D.ignore=!0}function g(D){if(!D.ignore)return!0;for(var P in D.states)if(D.states[P].ignore===!1)return!0;return!1}e.each(function(D){var P=e.getItemGraphicEl(D),O=P.shape,k=P.getTextContent(),N=P.getTextGuideLine(),$=e.getItemModel(D),H=$.getModel("label"),F=H.get("position")||$.get(["emphasis","label","position"]),W=H.get("distanceToLabelLine"),j=H.get("alignTo"),X=Qe(H.get("edgeDistance"),u),te=H.get("bleedMargin"),J=$.getModel("labelLine"),ie=J.get("length");ie=Qe(ie,u);var se=J.get("length2");if(se=Qe(se,u),Math.abs(O.endAngle-O.startAngle)<o){V(k.states,v),k.ignore=!0,N&&(V(N.states,v),N.ignore=!0);return}if(g(k)){var le=(O.startAngle+O.endAngle)/2,be=Math.cos(le),Me=Math.sin(le),Se,Ue,Xe,st;n=O.cx,a=O.cy;var $e=F==="inside"||F==="inner";if(F==="center")Se=O.cx,Ue=O.cy,st="center";else{var Be=($e?(O.r+O.r0)/2*be:O.r*be)+n,et=($e?(O.r+O.r0)/2*Me:O.r*Me)+a;if(Se=Be+be*3,Ue=et+Me*3,!$e){var de=Be+be*(ie+l-O.r),xe=et+Me*(ie+l-O.r),xt=de+(be<0?-1:1)*se,Ie=xe;j==="edge"?Se=be<0?c+X:c+u-X:Se=xt+(be<0?-W:W),Ue=Ie,Xe=[[Be,et],[de,xe],[xt,Ie]]}st=$e?"center":j==="edge"?be>0?"right":"left":be>0?"left":"right"}var Ct=Math.PI,Ot=0,jt=H.get("rotate");if(_r(jt))Ot=jt*(Ct/180);else if(F==="center")Ot=0;else if(jt==="radial"||jt===!0){var nr=be<0?-le+Ct:-le;Ot=nr}else if(jt==="tangential"&&F!=="outside"&&F!=="outer"){var Tr=Math.atan2(be,Me);Tr<0&&(Tr=Ct*2+Tr);var Er=Me>0;Er&&(Tr=Ct+Tr),Ot=Tr-Ct}if(i=!!Ot,k.x=Se,k.y=Ue,k.rotation=Ot,k.setStyle({verticalAlign:"middle"}),$e){k.setStyle({align:st});var zr=k.states.select;zr&&(zr.x+=k.x,zr.y+=k.y)}else{var Xt=k.getBoundingRect().clone();Xt.applyTransform(k.getComputedTransform());var Sn=(k.style.margin||0)+2.1;Xt.y-=Sn/2,Xt.height+=Sn,r.push({label:k,labelLine:N,position:F,len:ie,len2:se,minTurnAngle:J.get("minTurnAngle"),maxSurfaceAngle:J.get("maxSurfaceAngle"),surfaceNormal:new Wt(be,Me),linePoints:Xe,textAlign:st,labelDistance:W,labelAlignTo:j,edgeDistance:X,bleedMargin:te,rect:Xt,unconstrainedWidth:Xt.width,labelStyleWidth:k.style.width})}P.setTextConfig({inside:$e})}}),!i&&t.get("avoidLabelOverlap")&&KLe(r,n,a,l,u,p,c,d);for(var m=0;m<r.length;m++){var x=r[m],_=x.label,w=x.labelLine,T=isNaN(_.x)||isNaN(_.y);if(_){_.setStyle({align:x.textAlign}),T&&(V(_.states,v),_.ignore=!0);var A=_.states.select;A&&(A.x+=_.x,A.y+=_.y)}if(w){var M=x.linePoints;T||!M?(V(w.states,v),w.ignore=!0):(zre(M,x.minTurnAngle),fPe(M,x.surfaceNormal,x.maxSurfaceAngle),w.setShape({points:M}),_.__hostTarget.textGuideLineConfig={anchor:new Wt(M[0][0],M[0][1])})}}}function t0(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;Le(n)||(n=[n,n,n,n]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Oe(n,function(i){return tu(i,a)})}}var JLe=function(t){he(e,t);function e(r,n,a){var i=t.call(this)||this;i.z2=2;var o=new mr;return i.setTextContent(o),i.updateData(r,n,a,!0),i}return e.prototype.updateData=function(r,n,a,i){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),d=Ce(t0(l.getModel("itemStyle"),c,!0),c);if(isNaN(d.startAngle)){o.setShape(d);return}if(i){o.setShape(d);var p=s.getShallow("animationType");s.ecModel.ssr?(In(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=d.cx,o.originY=d.cy):p==="scale"?(o.shape.r=c.r0,In(o,{shape:{r:c.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),In(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,Sr(o,{shape:{endAngle:c.endAngle}},s,n))}else nu(o),Sr(o,{shape:d},s,n);o.useStyle(r.getItemVisual(n,"style")),wi(o,l);var v=(c.startAngle+c.endAngle)/2,g=s.get("selectedOffset"),m=Math.cos(v)*g,x=Math.sin(v)*g,_=l.getShallow("cursor");_&&o.attr("cursor",_),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=Ce({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},t0(u.getModel("itemStyle"),c)),Ce(o.ensureState("select"),{x:m,y:x,shape:t0(l.getModel(["select","itemStyle"]),c)}),Ce(o.ensureState("blur"),{shape:t0(l.getModel(["blur","itemStyle"]),c)});var w=o.getTextGuideLine(),T=o.getTextContent();w&&Ce(w.ensureState("select"),{x:m,y:x}),Ce(T.ensureState("select"),{x:m,y:x}),Zn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.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,c=l&&l.opacity;Ti(i,$a(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(a,"normal")||n.getName(a)});var d=i.getTextContent();i.setTextConfig({position:null,rotation:null}),d.attr({z2:10});var p=r.get(["label","position"]);if(p!=="outside"&&p!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new fo,this.setTextGuideLine(v)),pV(this,vV(o),{stroke:u,opacity:nl(s.get(["lineStyle","opacity"]),c,1)})}},e}(uo),e2e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return e.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 c=o.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d<o.count();++d)c=o.getItemLayout(d);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var p=new uo({shape:gne(r,a)});p.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,l.add(p)}o.diff(s).add(function(v){var g=new JLe(o,v,u);o.setItemGraphicEl(v,g),l.add(g)}).update(function(v,g){var m=s.getItemGraphicEl(g);m.updateData(o,v,u),m.off("click"),l.add(m),o.setItemGraphicEl(v,m)}).remove(function(v){var g=s.getItemGraphicEl(v);Q1(g,r,v)}).execute(),QLe(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.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}},e.type="pie",e}(Kr);const t2e=e2e;function sb(t,e,r){e=Le(e)&&{coordDimensions:e}||Ce({encodeDefine:t.getEncode()},e);var n=t.getSource(),a=ib(n,e).dimensions,i=new Ui(a,t);return i.initData(n,r),i}var r2e=function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t}();const ew=r2e;var n2e=wr(),a2e=function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new ew(ot(this.getData,this),ot(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return sb(this,{coordDimensions:["value"],encodeDefaulter:Lt($3,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),a=n2e(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=_J(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=i[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){cg(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},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(xn);const i2e=a2e;function o2e(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(_r(o)&&!isNaN(o)&&o<0)})}}}function s2e(t){t.registerChartView(t2e),t.registerSeriesModel(i2e),Lte("pie",t.registerAction),t.registerLayout(Lt(XLe,"pie")),t.registerProcessor(JS("pie")),t.registerProcessor(o2e("pie"))}var l2e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,n){return mc(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,n,a){return a.point(n.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(xn);const u2e=l2e;var yne=4,c2e=function(){function t(){}return t}(),f2e=function(t){he(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new c2e},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.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]<yne,c=this.softClipShape,d;if(u){this._ctx=l;return}for(this._ctx=null,d=this._off;d<a.length;){var p=a[d++],v=a[d++];isNaN(p)||isNaN(v)||c&&!c.contain(p,v)||(s.x=p-i[0]/2,s.y=v-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=d,this.notClear=!0)},e.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)}},e.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 c=u*2,d=i[c]-s/2,p=i[c+1]-l/2;if(r>=d&&n>=p&&r<=d+s&&n<=p+l)return u}return-1},e.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},e.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,c=-1/0,d=-1/0,p=0;p<a.length;){var v=a[p++],g=a[p++];l=Math.min(v,l),c=Math.max(v,c),u=Math.min(g,u),d=Math.max(g,d)}r=this._rect=new Ht(l-o/2,u-s/2,c-l+o,d-u+s)}return r},e}(ir),d2e=function(){function t(){this.group=new It}return t.prototype.updateData=function(e,r){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,r)},t.prototype.updateLayout=function(e){var r=e.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,i=n.startIndex*4*2;r=new Float32Array(r.buffer,i,a)}n.setShape("points",r),n.reset()})},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,r,n){var a=this._newAdded[0],i=r.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=e.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,r,n)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new f2e({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,r,n){var a=r.hostModel;n=n||{};var i=r.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=fa(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<yne;e.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=Pt(e);u.seriesIndex=a.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var d=e.hoverDataIdx;d>=0&&(u.dataIndex=d+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const h2e=d2e;var p2e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.updateData(i,{clipShape:this._getClipShape(r)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(r,n,a){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},e.prototype.updateTransform=function(r,n,a){var i=r.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=QS("").reset(r,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._getClipShape=function(r){var n=r.coordinateSystem,a=n&&n.getArea&&n.getArea();return r.get("clip",!0)?a:null},e.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 h2e:new KS,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Kr);const v2e=p2e;var g2e=function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(ur);const m2e=g2e;var l5=function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",xa).models[0]},e.type="cartesian2dAxis",e}(ur);ra(l5,ob);var bne={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},y2e=Ft({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},bne),xV=Ft({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},bne),b2e=Ft({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},xV),x2e=wt({logBase:10},xV);const xne={category:y2e,value:xV,time:b2e,log:x2e};var _2e={value:1,category:1,time:1,log:1};function D0(t,e,r,n){V(_2e,function(a,i){var o=Ft(Ft({},xne[i],!0),n,!0),s=function(l){he(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,d){var p=tS(this),v=p?J0(c):{},g=d.getTheme();Ft(c,g.get(i+"Axis")),Ft(c,this.getDefaultOption()),c.type=L8(c),p&&yh(c,v,p)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=e5.createByAxisModel(this))},u.prototype.getCategories=function(c){var d=this.option;if(d.type==="category")return c?d.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",L8)}function L8(t){return t.type||(t.data?"category":"value")}var S2e=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return Oe(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Br(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t}();const w2e=S2e;var u5=["x","y"];function O8(t){return t.type==="interval"||t.type==="time"}var T2e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=u5,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!O8(r)||!O8(n))){var a=r.getExtent(),i=n.getExtent(),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 c=(s[0]-o[0])/l,d=(s[1]-o[1])/u,p=o[0]-a[0]*c,v=o[1]-i[0]*d,g=this._transform=[c,0,0,d,p,v];this._invTransform=Sg([],g)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.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]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var a=this.dataToPoint(r),i=this.dataToPoint(n),o=this.getArea(),s=new Ht(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.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 ii(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},e.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},e.prototype.pointToData=function(r,n){var a=[];if(this._invTransform)return ii(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},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(r[0],r[1]),i=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-a,s=Math.max(n[0],n[1])-i;return new Ht(a,i,o,s)},e}(w2e),C2e=function(t){he(e,t);function e(r,n,a,i,o){var s=t.call(this,r,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.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},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e}(gl);const A2e=C2e;function c5(t,e,r){r=r||{};var n=t.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=n.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},v=e.get("offset")||0,g=u==="x"?[d[2]-v,d[3]+v]:[d[0]-v,d[1]+v];if(o){var m=o.toGlobalCoord(o.dataToCoord(0));g[p.onZero]=Math.max(Math.min(m,g[1]),g[0])}i.position=[u==="y"?g[p[l]]:d[0],u==="x"?g[p[l]]:d[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var x={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=x[s],i.labelOffset=o?g[p[s]]-g[p.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),ca(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var _=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-_:_,i.z2=1,i}function k8(t){return t.get("coordinateSystem")==="cartesian2d"}function N8(t){var e={xAxisModel:null,yAxisModel:null};return V(e,function(r,n){var a=n.replace(/Model$/,""),i=t.getReferringComponents(a,xa).models[0];if(!i)throw new Error(a+' "'+nl(t.get(a+"Index"),t.get(a+"Id"),0)+'" not found');e[n]=i}),e}var uB=Math.log;function _ne(t,e,r){var n=bh.prototype,a=n.getTicks.call(r),i=n.getTicks.call(r,!0),o=a.length-1,s=n.getInterval.call(r),l=Are(t,e),u=l.extent,c=l.fixMin,d=l.fixMax;if(t.type==="log"){var p=uB(t.base);u=[uB(u[0])/p,uB(u[1])/p]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var v=n.getExtent.call(t);c&&(u[0]=v[0]),d&&(u[1]=v[1]);var g=n.getInterval.call(t),m=u[0],x=u[1];if(c&&d)g=(x-m)/o;else if(c)for(x=u[0]+g*o;x<u[1]&&isFinite(x)&&isFinite(u[1]);)g=XN(g),x=u[0]+g*o;else if(d)for(m=u[1]-g*o;m>u[0]&&isFinite(m)&&isFinite(u[0]);)g=XN(g),m=u[1]-g*o;else{var _=t.getTicks().length-1;_>o&&(g=XN(g));var w=g*o;x=Math.ceil(u[1]/g)*g,m=Xn(x-w),m<0&&u[0]>=0?(m=0,x=Xn(w)):x>0&&u[1]<=0&&(x=0,m=-Xn(w))}var T=(a[0].value-i[0].value)/s,A=(a[o].value-i[o].value)/s;n.setExtent.call(t,m+g*T,x+g*A),n.setInterval.call(t,g),(T||A)&&n.setNiceExtent.call(t,m+g,x-g);{var M=n.getTicks.call(t);M[1]&&(!rIe(g)||VR(M[1].value)>VR(g))&&Vn("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+" and alignTicks: true")}}var E2e=function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=u5,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=sr(o),u=l.length;if(u){for(var c=[],d=u-1;d>=0;d--){var p=+l[d],v=o[p],g=v.model,m=v.scale;t5(m)&&g.get("alignTicks")&&g.get("interval")==null?c.push(v):(vg(m,g),t5(m)&&(s=v))}c.length&&(s||(s=c.pop(),vg(s.scale,s.model)),V(c,function(x){_ne(x.scale,x.model,s.scale)}))}}a(n.x),a(n.y);var i={};V(n.x,function(o){B8(n,"y",o,i)}),V(n.y,function(o){B8(n,"x",o,i)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var a=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=_a(a,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(V(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=EIe(u);if(c){var d=u.isHorizontal()?"height":"width",p=u.model.get(["axisLabel","margin"]);o[d]-=c[d]+p,u.position==="top"?o.y+=c.height+p:u.position==="left"&&(o.x+=c.width+p)}}}),l()),V(this._coordsList,function(u){u.calcAffineTransform()});function l(){V(s,function(u){var c=u.isHorizontal(),d=c?[0,o.width]:[0,o.height],p=u.inverse?1:0;u.setExtent(d[p],d[1-p]),R2e(u,c?o.x:o.y)})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}St(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===e||i[a].getAxis("y").index===r)return i[a]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",xa).models[0],a=e.yAxisModel||r&&r.getReferringComponents("yAxis",xa).models[0],i=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,Qt(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}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,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,V(s.x,function(c,d){V(s.y,function(p,v){var g="x"+d+"y"+v,m=new T2e(g);m.master=a,m.model=e,a._coordsMap[g]=m,a._coordsList.push(m),m.addAxis(c),m.addAxis(p)})});function u(c){return function(d,p){if(cB(d,e)){var v=d.get("position");c==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var g=new A2e(c,qS(d),[0,0],d.get("type"),v),m=g.type==="category";g.onBand=m&&d.get("boundaryGap"),g.inverse=d.get("inverse"),d.axis=g,g.model=d,g.grid=i,g.index=p,i._axesList.push(g),s[c][p]=g,l[c]++}}}},t.prototype._updateScale=function(e,r){V(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),e.eachSeries(function(a){if(k8(a)){var i=N8(a),o=i.xAxisModel,s=i.yAxisModel;if(!cB(o,r)||!cB(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),c=l.getAxis("x"),d=l.getAxis("y");n(u,c),n(u,d)}},this);function n(a,i){V(lM(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return V(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);Qt(r,i)<0&&r.push(i),Qt(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(a,i){var o=new t(a,e,r);o.name="grid_"+i,o.resize(a,r,!0),a.coordinateSystem=o,n.push(o)}),e.eachSeries(function(a){if(k8(a)){var i=N8(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel();{if(!l)throw new Error('Grid "'+nl(o.get("gridIndex"),o.get("gridId"),0)+'" not found');if(o.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},t.dimensions=u5,t}();function cB(t,e){return t.getCoordSysModel()===e}function B8(t,e,r,n){r.getAxesOnZeroOf=function(){return i?[i]:[]};var a=t[e],i,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)z8(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&z8(a[u])&&!n[c(a[u])]){i=a[u];break}i&&(n[c(i)]=!0);function c(d){return d.dim+"_"+d.index}}function z8(t){return t&&t.type!=="category"&&t.type!=="time"&&AIe(t)}function R2e(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(a){return a+e}:function(a){return n-a+e},t.toLocalCoord=t.dim==="x"?function(a){return a-e}:function(a){return n-a+e}}const M2e=E2e;var rh=Math.PI,Jv=function(){function t(e,r){this.group=new It,this.opt=r,this.axisModel=e,wt(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new It({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(e){return!!$8[e]},t.prototype.add=function(e){$8[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,r,n){var a=d3(r-e),i,o;return X1(a)?(o=n>0?"top":"bottom",i="center"):X1(a-rh)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<rh?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t}(),$8={axisLine:function(t,e,r,n){var a=e.get(["axisLine","show"]);if(a==="auto"&&t.handleAutoShown&&(a=t.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(ii(s,s,o),ii(l,l,o));var c=Ce({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new Ba({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});A0(d.shape,d.style.lineWidth),d.anid="line",r.add(d);var p=e.get(["axisLine","symbol"]);if(p!=null){var v=e.get(["axisLine","symbolSize"]);at(p)&&(p=[p,p]),(at(v)||_r(v))&&(v=[v,v]);var g=ab(e.get(["axisLine","symbolOffset"])||0,v),m=v[0],x=v[1];V([{rotate:t.rotation+Math.PI/2,offset:g[0],r:0},{rotate:t.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(_,w){if(p[w]!=="none"&&p[w]!=null){var T=fa(p[w],-m/2,-x/2,m,x,c.stroke,!0),A=_.r+_.offset,M=u?l:s;T.attr({rotation:_.rotate,x:M[0]+A*Math.cos(t.rotation),y:M[1]-A*Math.sin(t.rotation),silent:!0,z2:11}),r.add(T)}})}}},axisTickLabel:function(t,e,r,n){var a=P2e(r,n,e,t),i=O2e(r,n,e,t);if(I2e(e,i,a),L2e(r,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=$re(Oe(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Ure(o)}},axisName:function(t,e,r,n){var a=ca(t.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,d=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,V8(i)?t.labelOffset+o*l:0],p,v=e.get("nameRotate");v!=null&&(v=v*rh/180);var g;V8(i)?p=Jv.innerTextLayout(t.rotation,v??t.rotation,o):(p=D2e(t.rotation,i,v||0,u),g=t.axisNameAvailableWidth,g!=null&&(g=Math.abs(g/Math.sin(p.rotation)),!isFinite(g)&&(g=null)));var m=s.getFont(),x=e.get("nameTruncate",!0)||{},_=x.ellipsis,w=ca(t.nameTruncateMaxWidth,x.maxWidth,g),T=new mr({x:d[0],y:d[1],rotation:p.rotation,silent:Jv.isLabelSilent(e),style:cn(s,{text:a,font:m,overflow:"truncate",width:w,ellipsis:_,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||p.textAlign,verticalAlign:s.get("verticalAlign")||p.textVerticalAlign}),z2:1});if(Z0({el:T,componentModel:e,itemName:a}),T.__fullText=a,T.anid="name",e.get("triggerEvent")){var A=Jv.makeAxisEventDataBase(e);A.targetType="axisName",A.name=a,Pt(T).eventData=A}n.add(T),T.updateTransform(),r.add(T),T.decomposeTransform()}}};function D2e(t,e,r,n){var a=d3(r-t),i,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return X1(a-rh/2)?(o=l?"bottom":"top",i="center"):X1(a-rh*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<rh*1.5&&a>rh/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function I2e(t,e,r){if(!Ere(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]);e=e||[],r=r||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=r[0],c=r[1],d=r[r.length-1],p=r[r.length-2];n===!1?(Vs(i),Vs(u)):F8(i,o)&&(n?(Vs(o),Vs(c)):(Vs(i),Vs(u))),a===!1?(Vs(s),Vs(d)):F8(l,s)&&(a?(Vs(l),Vs(p)):(Vs(s),Vs(d)))}}function Vs(t){t&&(t.ignore=!0)}function F8(t,e){var r=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!r||!n)){var a=OS([]);return Lh(a,a,-t.rotation),r.applyTransform(lc([],a,t.getLocalTransform())),n.applyTransform(lc([],a,e.getLocalTransform())),r.intersect(n)}}function V8(t){return t==="middle"||t==="center"}function Sne(t,e,r,n,a){for(var i=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(ii(o,o,e),ii(s,s,e));var c=new Ba({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});A0(c.shape,c.style.lineWidth),c.anid=a+"_"+t[l].tickValue,i.push(c)}return i}function P2e(t,e,r,n){var a=r.axis,i=r.getModel("axisTick"),o=i.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=n.tickDirection*i.get("length"),u=a.getTicksCoords(),c=Sne(u,e.transform,l,wt(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<c.length;d++)t.add(c[d]);return c}}function L2e(t,e,r,n){var a=r.axis,i=r.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=n*i.get("length"),u=wt(s.getLineStyle(),wt(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var d=Sne(o[c],e.transform,l,u,"minorticks_"+c),p=0;p<d.length;p++)t.add(d[p])}}function O2e(t,e,r,n){var a=r.axis,i=ca(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(ca(n.labelRotate,o.get("rotate"))||0)*rh/180,c=Jv.innerTextLayout(n.rotation,u,n.labelDirection),d=r.getCategories&&r.getCategories(!0),p=[],v=Jv.isLabelSilent(r),g=r.get("triggerEvent");return V(l,function(m,x){var _=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(m.tickValue):m.tickValue,w=m.formattedLabel,T=m.rawLabel,A=o;if(d&&d[_]){var M=d[_];St(M)&&M.textStyle&&(A=new Xr(M.textStyle,o,r.ecModel))}var D=A.getTextColor()||r.get(["axisLine","lineStyle","color"]),P=a.dataToCoord(_),O=new mr({x:P,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:v,z2:10+(m.level||0),style:cn(A,{text:w,align:A.getShallow("align",!0)||c.textAlign,verticalAlign:A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||c.textVerticalAlign,fill:vt(D)?D(a.type==="category"?T:a.type==="value"?_+"":_,x):D})});if(O.anid="label_"+_,g){var k=Jv.makeAxisEventDataBase(r);k.targetType="axisLabel",k.value=T,k.tickIndex=x,a.type==="category"&&(k.dataIndex=_),Pt(O).eventData=k}e.add(O),O.updateTransform(),p.push(O),t.add(O),O.decomposeTransform()}),p}}const Sf=Jv;function k2e(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return N2e(r,t,e),r.seriesInvolved&&z2e(r,t),r}function N2e(t,e,r){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];V(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=uS(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var c=s.model,d=c.getModel("tooltip",n);if(V(s.getAxes(),Lt(m,!1,null)),s.getTooltipAxes&&n&&d.get("show")){var p=d.get("trigger")==="axis",v=d.get(["axisPointer","type"])==="cross",g=s.getTooltipAxes(d.get(["axisPointer","axis"]));(p||v)&&V(g.baseAxes,Lt(m,v?"cross":!0,p)),v&&V(g.otherAxes,Lt(m,"cross",!1))}function m(x,_,w){var T=w.model.getModel("axisPointer",a),A=T.get("show");if(!(!A||A==="auto"&&!x&&!f5(T))){_==null&&(_=T.get("triggerTooltip")),T=x?B2e(w,d,a,e,x,_):T;var M=T.get("snap"),D=uS(w.model),P=_||M||w.type==="category",O=t.axesInfo[D]={key:D,axis:w,coordSys:s,axisPointerModel:T,triggerTooltip:_,involveSeries:P,snap:M,useHandle:f5(T),seriesModels:[],linkGroup:null};u[D]=O,t.seriesInvolved=t.seriesInvolved||P;var k=$2e(i,w);if(k!=null){var N=o[k]||(o[k]={axesInfo:{}});N.axesInfo[D]=O,N.mapper=i[k].mapper,O.linkGroup=N}}}})}function B2e(t,e,r,n,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};V(s,function(p){l[p]=Et(o.get(p))}),l.snap=t.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 c=o.get(["label","show"]);if(u.show=c??!0,!i){var d=l.lineStyle=o.get("crossStyle");d&&wt(u,d.textStyle)}}return t.model.getModel("axisPointer",new Xr(l,r,n))}function z2e(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||i===!1||r.get(["axisPointer","show"],!0)===!1||V(t.coordSysAxesInfo[uS(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 $2e(t,e){for(var r=e.model,n=e.dim,a=0;a<t.length;a++){var i=t[a]||{};if(fB(i[n+"AxisId"],r.id)||fB(i[n+"AxisIndex"],r.componentIndex)||fB(i[n+"AxisName"],r.name))return a}}function fB(t,e){return t==="all"||Le(t)&&Qt(t,e)>=0||t===e}function F2e(t){var e=_V(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,a=r.option,i=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=f5(r);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function _V(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[uS(t)]}function V2e(t){var e=_V(t);return e&&e.axisPointerModel}function f5(t){return!!t.get(["handle","show"])}function uS(t){return t.type+"||"+t.id}var dB={},U2e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a,i){this.axisPointerClass&&F2e(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},e.prototype.updateAxisPointer=function(r,n,a,i){this._doUpdateAxisPointerClass(r,a,!1)},e.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=V2e(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){if(dB[r])throw new Error("axisPointer "+r+" exists");dB[r]=n},e.getAxisPointerClass=function(r){return r&&dB[r]},e.type="axis",e}(Pn);const Eg=U2e;var d5=wr();function wne(t,e,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,clamp:!0});if(u.length){var c=s.length,d=d5(t).splitAreaColors,p=yt(),v=0;if(d)for(var g=0;g<u.length;g++){var m=d.get(u[g].tickValue);if(m!=null){v=(m+(c-1)*g)%c;break}}var x=a.toGlobalCoord(u[0].coord),_=o.getAreaStyle();s=Le(s)?s:[s];for(var g=1;g<u.length;g++){var w=a.toGlobalCoord(u[g].coord),T=void 0,A=void 0,M=void 0,D=void 0;a.isHorizontal()?(T=x,A=l.y,M=w-T,D=l.height,x=T+M):(T=l.x,A=x,M=l.width,D=w-A,x=A+D);var P=u[g-1].tickValue;P!=null&&p.set(P,v),e.add(new yr({anid:P!=null?"area_"+P:null,shape:{x:T,y:A,width:M,height:D},style:wt({fill:s[v]},_),autoBatch:!0,silent:!0})),v=(v+1)%c}d5(t).splitAreaColors=p}}}function Tne(t){d5(t).splitAreaColors=null}var W2e=["axisLine","axisTickLabel","axisName"],H2e=["splitArea","splitLine","minorSplitLine"],Cne=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new It,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=c5(s,r),u=new Sf(r,Ce({handleAutoShown:function(d){for(var p=s.coordinateSystem.getCartesians(),v=0;v<p.length;v++)if(t5(p[v].getOtherAxis(r.axis).scale))return!0;return!1}},l));V(W2e,u.add,u),this._axisGroup.add(u.getGroup()),V(H2e,function(d){r.get([d,"show"])&&G2e[d](this,this._axisGroup,r,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||WS(o,this._axisGroup,r),t.prototype.render.call(this,r,n,a,i)}},e.prototype.remove=function(){Tne(this)},e.type="cartesianAxis",e}(Eg),G2e={splitLine:function(t,e,r,n){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=Le(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=a.isHorizontal(),c=0,d=a.getTicksCoords({tickModel:i}),p=[],v=[],g=o.getLineStyle(),m=0;m<d.length;m++){var x=a.toGlobalCoord(d[m].coord);u?(p[0]=x,p[1]=l.y,v[0]=x,v[1]=l.y+l.height):(p[0]=l.x,p[1]=x,v[0]=l.x+l.width,v[1]=x);var _=c++%s.length,w=d[m].tickValue,T=new Ba({anid:w!=null?"line_"+d[m].tickValue:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:v[0],y2:v[1]},style:wt({stroke:s[_]},g),silent:!0});A0(T.shape,g.lineWidth),e.add(T)}}},minorSplitLine:function(t,e,r,n){var a=r.axis,i=r.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var c=[],d=[],p=o.getLineStyle(),v=0;v<u.length;v++)for(var g=0;g<u[v].length;g++){var m=a.toGlobalCoord(u[v][g].coord);l?(c[0]=m,c[1]=s.y,d[0]=m,d[1]=s.y+s.height):(c[0]=s.x,c[1]=m,d[0]=s.x+s.width,d[1]=m);var x=new Ba({anid:"minor_line_"+u[v][g].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]},style:p,silent:!0});A0(x.shape,p.lineWidth),e.add(x)}},splitArea:function(t,e,r,n){wne(t,e,r,n)}},Ane=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e}(Cne),j2e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ane.type,r}return e.type="yAxis",e}(Cne),Y2e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new yr({shape:r.coordinateSystem.getRect(),style:wt({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Pn),U8={offset:0};function Ene(t){t.registerComponentView(Y2e),t.registerComponentModel(m2e),t.registerCoordinateSystem("cartesian2d",M2e),D0(t,"x",l5,U8),D0(t,"y",l5,U8),t.registerComponentView(Ane),t.registerComponentView(j2e),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function q2e(t){rr(Ene),t.registerSeriesModel(u2e),t.registerChartView(v2e),t.registerLayout(QS("scatter"))}function X2e(t){t.eachSeriesByType("radar",function(e){var r=e.getData(),n=[],a=e.coordinateSystem;if(a){var i=a.getIndicatorAxes();V(i,function(o,s){r.each(r.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var c=a.dataToPoint(l,s);n[u][s]=W8(c)?c:H8(a)})}),r.each(function(o){var s=BQ(n[o],function(l){return W8(l)})||H8(a);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function W8(t){return!isNaN(t[0])&&!isNaN(t[1])}function H8(t){return[t.cx,t.cy]}function Z2e(t){var e=t.polar;if(e){Le(e)||(e=[e]);var r=[];V(e,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),t.radar=t.radar||[],Le(t.radar)||(t.radar=[t.radar]),t.radar.push(n)):r.push(n)}),t.polar=r}V(t.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var K2e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){var i=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(p,v){var g=p.getItemVisual(v,"symbol")||"circle";if(g!=="none"){var m=YS(p.getItemVisual(v,"symbolSize")),x=fa(g,-1,-1,2,2),_=p.getItemVisual(v,"symbolRotate")||0;return x.attr({style:{strokeNoScale:!0},z2:100,scaleX:m[0]/2,scaleY:m[1]/2,rotation:_*Math.PI/180||0}),x}}function c(p,v,g,m,x,_){g.removeAll();for(var w=0;w<v.length-1;w++){var T=u(m,x);T&&(T.__dimIdx=w,p[w]?(T.setPosition(p[w]),HS[_?"initProps":"updateProps"](T,{x:v[w][0],y:v[w][1]},r,x)):T.setPosition(v[w]),g.add(T))}}function d(p){return Oe(p,function(v){return[i.cx,i.cy]})}s.diff(l).add(function(p){var v=s.getItemLayout(p);if(v){var g=new co,m=new fo,x={shape:{points:v}};g.shape.points=d(v),m.shape.points=d(v),In(g,x,r,p),In(m,x,r,p);var _=new It,w=new It;_.add(m),_.add(g),_.add(w),c(m.shape.points,v,w,s,p,!0),s.setItemGraphicEl(p,_)}}).update(function(p,v){var g=l.getItemGraphicEl(v),m=g.childAt(0),x=g.childAt(1),_=g.childAt(2),w={shape:{points:s.getItemLayout(p)}};w.shape.points&&(c(m.shape.points,w.shape.points,_,s,p,!1),nu(x),nu(m),Sr(m,w,r),Sr(x,w,r),s.setItemGraphicEl(p,g))}).remove(function(p){o.remove(l.getItemGraphicEl(p))}).execute(),s.eachItemGraphicEl(function(p,v){var g=s.getItemModel(v),m=p.childAt(0),x=p.childAt(1),_=p.childAt(2),w=s.getItemVisual(v,"style"),T=w.fill;o.add(p),m.useStyle(wt(g.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:T})),wi(m,g,"lineStyle"),wi(x,g,"areaStyle");var A=g.getModel("areaStyle"),M=A.isEmpty()&&A.parentModel.isEmpty();x.ignore=M,V(["emphasis","select","blur"],function(O){var k=g.getModel([O,"areaStyle"]),N=k.isEmpty()&&k.parentModel.isEmpty();x.ensureState(O).ignore=N&&M}),x.useStyle(wt(A.getAreaStyle(),{fill:T,opacity:.7,decal:w.decal}));var D=g.getModel("emphasis"),P=D.getModel("itemStyle").getItemStyle();_.eachChild(function(O){if(O instanceof si){var k=O.style;O.useStyle(Ce({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},w))}else O.useStyle(w),O.setColor(T),O.style.strokeNoScale=!0;var N=O.ensureState("emphasis");N.style=Et(P);var $=s.getStore().get(s.getDimensionIndex(O.__dimIdx),v);($==null||isNaN($))&&($=""),Ti(O,$a(g),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:O.__dimIdx,defaultText:$,inheritColor:T,defaultOpacity:w.opacity})}),Zn(p,D.get("focus"),D.get("blurScope"),D.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(Kr);const Q2e=K2e;var J2e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new ew(ot(this.getData,this),ot(this.getRawData,this))},e.prototype.getInitialData=function(r,n){return sb(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.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,c=_te(this,r);return Fa("section",{header:u,sortBlocks:!0,blocks:Oe(s,function(d){var p=i.get(i.mapDimension(d.dim),r);return Fa("nameValue",{markerType:"subItem",markerColor:c,name:d.name,value:p,sortParam:p})})})},e.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(Oe(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)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(xn);const eOe=J2e;var k_=xne.value;function SE(t,e){return wt({show:e},t)}var tOe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),a=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),d=this.get("axisNameGap"),p=this.get("triggerEvent"),v=Oe(this.get("indicator")||[],function(g){g.max!=null&&g.max>0&&!g.min?g.min=0:g.min!=null&&g.min<0&&!g.max&&(g.max=0);var m=l;g.color!=null&&(m=wt({color:g.color},l));var x=Ft(Et(g),{boundaryGap:r,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:g.text,showName:u,nameLocation:"end",nameGap:d,nameTextStyle:m,triggerEvent:p},!1);if(at(c)){var _=x.name;x.name=c.replace("{value}",_??"")}else vt(c)&&(x.name=c(x.name,x));var w=new Xr(x,null,this.ecModel);return ra(w,ob.prototype),w.mainType="radar",w.componentIndex=this.componentIndex,w},this);this._indicatorModels=v},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ft({lineStyle:{color:"#bbb"}},k_.axisLine),axisLabel:SE(k_.axisLabel,!1),axisTick:SE(k_.axisTick,!1),splitLine:SE(k_.splitLine,!0),splitArea:SE(k_.splitArea,!0),indicator:[]},e}(ur);const rOe=tOe;var nOe=["axisLine","axisTickLabel","axisName"],aOe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){var i=this.group;i.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},e.prototype._buildAxes=function(r){var n=r.coordinateSystem,a=n.getIndicatorAxes(),i=Oe(a,function(o){var s=o.model.get("showName")?o.name:"",l=new Sf(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});V(i,function(o){V(nOe,o.add,o),this.group.add(o.getGroup())},this)},e.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"),c=o.get("show"),d=s.get("show"),p=l.get("color"),v=u.get("color"),g=Le(p)?p:[p],m=Le(v)?v:[v],x=[],_=[];function w(j,X,te){var J=te%X.length;return j[J]=j[J]||[],J}if(i==="circle")for(var T=a[0].getTicksCoords(),A=n.cx,M=n.cy,D=0;D<T.length;D++){if(c){var P=w(x,g,D);x[P].push(new ru({shape:{cx:A,cy:M,r:T[D].coord}}))}if(d&&D<T.length-1){var P=w(_,m,D);_[P].push(new FS({shape:{cx:A,cy:M,r0:T[D].coord,r:T[D+1].coord}}))}}else for(var O,k=Oe(a,function(j,X){var te=j.getTicksCoords();return O=O==null?te.length-1:Math.min(te.length-1,O),Oe(te,function(J){return n.coordToPoint(J.coord,X)})}),N=[],D=0;D<=O;D++){for(var $=[],H=0;H<a.length;H++)$.push(k[H][D]);if($[0]?$.push($[0].slice()):console.error("Can't draw value axis "+D),c){var P=w(x,g,D);x[P].push(new fo({shape:{points:$}}))}if(d&&N){var P=w(_,m,D-1);_[P].push(new co({shape:{points:$.concat(N)}}))}N=$.slice().reverse()}var F=l.getLineStyle(),W=u.getAreaStyle();V(_,function(j,X){this.group.add(os(j,{style:wt({stroke:"none",fill:m[X%m.length]},W),silent:!0}))},this),V(x,function(j,X){this.group.add(os(j,{style:wt({fill:"none",stroke:g[X%g.length]},F),silent:!0}))},this)},e.type="radar",e}(Pn);const iOe=aOe;var oOe=function(t){he(e,t);function e(r,n,a){var i=t.call(this,r,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return e}(gl);const sOe=oOe;var lOe=function(){function t(e,r,n){this.dimensions=[],this._model=e,this._indicatorAxes=Oe(e.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new sOe(o,new bh);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(e),r)},t.prototype.coordToPoint=function(e,r){var n=this._indicatorAxes[r],a=n.angle,i=this.cx+e*Math.cos(a),o=this.cy-e*Math.sin(a);return[i,o]},t.prototype.pointToData=function(e){var r=e[0]-this.cx,n=e[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 c=this._indicatorAxes[u],d=Math.abs(i-c.angle);d<o&&(s=c,l=u,o=d)}return[l,+(s&&s.coordToData(a))]},t.prototype.resize=function(e,r){var n=e.get("center"),a=r.getWidth(),i=r.getHeight(),o=Math.min(a,i)/2;this.cx=Qe(n[0],a),this.cy=Qe(n[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(at(s)||_r(s))&&(s=[0,s]),this.r0=Qe(s[0],o),this.r=Qe(s[1],o),V(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},t.prototype.update=function(e,r){var n=this._indicatorAxes,a=this._model;V(n,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();V(n,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=a.get("splitNumber"),o=new bh;o.setExtent(0,i),o.setInterval(1),V(n,function(s,l){_ne(s.scale,s.model,o)})},t.prototype.convertToPixel=function(e,r,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,r,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,r){var n=[];return e.eachComponent("radar",function(a){var i=new t(a,e,r);n.push(i),a.coordinateSystem=i}),e.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=n[a.get("radarIndex")||0])}),n},t.dimensions=[],t}();const uOe=lOe;function cOe(t){t.registerCoordinateSystem("radar",uOe),t.registerComponentModel(rOe),t.registerComponentView(iOe),t.registerVisual({seriesType:"radar",reset:function(e){var r=e.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}function fOe(t){rr(cOe),t.registerChartView(Q2e),t.registerSeriesModel(eOe),t.registerLayout(X2e),t.registerProcessor(JS("radar")),t.registerPreprocessor(Z2e)}var G8="\0_ec_interaction_mutex";function dOe(t,e,r){var n=SV(t);n[e]=r}function hOe(t,e,r){var n=SV(t),a=n[e];a===r&&(n[e]=null)}function j8(t,e){return!!SV(t)[e]}function SV(t){return t[G8]||(t[G8]={})}au({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},ta);var pOe=function(t){he(e,t);function e(r){var n=t.call(this)||this;n._zr=r;var a=ot(n._mousedownHandler,n),i=ot(n._mousemoveHandler,n),o=ot(n._mouseupHandler,n),s=ot(n._mousewheelHandler,n),l=ot(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=wt(Et(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(r.on("mousedown",a),r.on("mousemove",i),r.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(r.on("mousewheel",s),r.on("pinch",l))},n.disable=function(){r.off("mousedown",a),r.off("mousemove",i),r.off("mouseup",o),r.off("mousewheel",s),r.off("pinch",l)},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(r){this.pointerChecker=r},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(r){if(!xj(r)){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=r.offsetX,i=r.offsetY;this.pointerChecker&&this.pointerChecker(r,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!lR("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||j8(this._zr,"globalPan"))){var n=r.offsetX,a=r.offsetY,i=this._x,o=this._y,s=n-i,l=a-o;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&mf(r.event),Rne(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:i,oldY:o,newX:n,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(r){xj(r)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(r){var n=lR("zoomOnMouseWheel",r,this._opt),a=lR("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,c=i>0?u:1/u;hB(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var d=Math.abs(i),p=(i>0?1:-1)*(d>3?.4:d>1?.15:.05);hB(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:p,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(r){if(!j8(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;hB(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},e}(dl);function hB(t,e,r,n,a){t.pointerChecker&&t.pointerChecker(n,a.originX,a.originY)&&(mf(n.event),Rne(t,e,r,n,a))}function Rne(t,e,r,n,a){a.isAvailableBehavior=ot(lR,null,r,n),t.trigger(e,a)}function lR(t,e,r){var n=r[t];return!t||n&&(!at(n)||e.event[n+"Key"])}const tw=pOe;function wV(t,e,r){var n=t.target;n.x+=e,n.y+=r,n.dirty()}function TV(t,e,r,n){var a=t.target,i=t.zoomLimit,o=t.zoom=t.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/t.zoom;t.zoom=o,a.x-=(r-a.x)*(u-1),a.y-=(n-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var vOe={axisPointer:1,tooltip:1,brush:1};function lI(t,e,r){var n=e.getComponentByElement(t.topTarget),a=n&&n.coordinateSystem;return n&&n!==r&&!vOe.hasOwnProperty(n.mainType)&&a&&a.model!==r}function Mne(t){if(at(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var r=t;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var pB,pM={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"},Y8=sr(pM),vM={"alignment-baseline":"textBaseline","stop-color":"stopColor"},q8=sr(vM),gOe=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(e,r){r=r||{};var n=Mne(e);if(!n)throw new Error("Illegal svg");this._defsUsePending=[];var a=new It;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),es(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;bOe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,d;if(o){var p=uI(o);p.length>=4&&(c={x:parseFloat(p[0]||0),y:parseFloat(p[1]||0),width:parseFloat(p[2]),height:parseFloat(p[3])})}if(c&&s!=null&&l!=null&&(d=Ine(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var v=a;a=new It,a.add(v),v.scaleX=v.scaleY=d.scale,v.x=d.x,v.y=d.y}return!r.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new yr({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:d,named:i}},t.prototype._parseNode=function(e,r,n,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!i){var c=pB[s];if(c&&it(pB,s)){l=c.call(this,e,r);var d=e.getAttribute("name");if(d){var p={name:d,namedFrom:null,svgNodeTagLower:s,el:l};n.push(p),s==="g"&&(u=p)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});r.add(l)}}var v=X8[s];if(v&&it(X8,s)){var g=v.call(this,e),m=e.getAttribute("id");m&&(this._defs[m]=g)}}if(l&&l.isGroup)for(var x=e.firstChild;x;)x.nodeType===1?this._parseNode(x,l,n,u,i,o):x.nodeType===3&&o&&this._parseText(x,l),x=x.nextSibling},t.prototype._parseText=function(e,r){var n=new Z1({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Us(r,n),es(e,n,this._defsUsePending,!1,!1),mOe(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},t.internalField=function(){pB={g:function(e,r){var n=new It;return Us(r,n),es(e,n,this._defsUsePending,!1,!1),n},rect:function(e,r){var n=new yr;return Us(r,n),es(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,r){var n=new ru;return Us(r,n),es(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,r){var n=new Ba;return Us(r,n),es(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,r){var n=new FD;return Us(r,n),es(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,r){var n=e.getAttribute("points"),a;n&&(a=Q8(n));var i=new co({shape:{points:a||[]},silent:!0});return Us(r,i),es(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,r){var n=e.getAttribute("points"),a;n&&(a=Q8(n));var i=new fo({shape:{points:a||[]},silent:!0});return Us(r,i),es(e,i,this._defsUsePending,!1,!1),i},image:function(e,r){var n=new si;return Us(r,n),es(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,r){var n=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new It;return Us(r,s),es(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,r){var n=e.getAttribute("x"),a=e.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new It;return Us(r,s),es(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,r){var n=e.getAttribute("d")||"",a=see(n);return Us(r,a),es(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),t}(),X8={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),r=parseInt(t.getAttribute("y1")||"0",10),n=parseInt(t.getAttribute("x2")||"10",10),a=parseInt(t.getAttribute("y2")||"0",10),i=new Y0(e,r,n,a);return Z8(t,i),K8(t,i),i},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),r=parseInt(t.getAttribute("cy")||"0",10),n=parseInt(t.getAttribute("r")||"0",10),a=new T3(e,r,n);return Z8(t,a),K8(t,a),a}};function Z8(t,e){var r=t.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(e.global=!0)}function K8(t,e){for(var r=t.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={};Dne(r,i,i);var o=i.stopColor||r.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}r=r.nextSibling}}function Us(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),wt(e.__inheritedStyle,t.__inheritedStyle))}function Q8(t){for(var e=uI(t),r=[],n=0;n<e.length;n+=2){var a=parseFloat(e[n]),i=parseFloat(e[n+1]);r.push([a,i])}return r}function es(t,e,r,n,a){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};t.nodeType===1&&(SOe(t,e),Dne(t,o,s),n||wOe(t,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=J8(i,"fill",o.fill,r)),o.stroke!=null&&(i.style.stroke=J8(i,"stroke",o.stroke,r)),V(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),V(["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=Oe(uI(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function mOe(t,e){var r=e.__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"),t.style.textBaseline=a}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),t.style.textAlign=s)}}var yOe=/^url\(\s*#(.*?)\)/;function J8(t,e,r,n){var a=r&&r.match(yOe);if(a){var i=tl(a[1]);n.push([t,e,i]);return}return r==="none"&&(r=null),r}function bOe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n[0].style[n[1]]=t[n[2]]}}var xOe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function uI(t){return t.match(xOe)||[]}var _Oe=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,vB=Math.PI/180;function SOe(t,e){var r=t.getAttribute("transform");if(r){r=r.replace(/,/g," ");var n=[],a=null;r.replace(_Oe,function(d,p,v){return n.push(p,v),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],l=uI(o);switch(a=a||hs(),s){case"translate":eu(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":MD(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Lh(a,a,-parseFloat(l[0])*vB);break;case"skewX":var u=Math.tan(parseFloat(l[0])*vB);lc(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*vB);lc(a,[1,c,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}}e.setLocalTransform(a)}}var e7=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Dne(t,e,r){var n=t.getAttribute("style");if(n){e7.lastIndex=0;for(var a;(a=e7.exec(n))!=null;){var i=a[1],o=it(pM,i)?pM[i]:null;o&&(e[o]=a[2]);var s=it(vM,i)?vM[i]:null;s&&(r[s]=a[2])}}}function wOe(t,e,r){for(var n=0;n<Y8.length;n++){var a=Y8[n],i=t.getAttribute(a);i!=null&&(e[pM[a]]=i)}for(var n=0;n<q8.length;n++){var a=q8[n],i=t.getAttribute(a);i!=null&&(r[vM[a]]=i)}}function Ine(t,e){var r=e.width/t.width,n=e.height/t.height,a=Math.min(r,n);return{scale:a,x:-(t.x+t.width/2)*a+(e.x+e.width/2),y:-(t.y+t.height/2)*a+(e.y+e.height/2)}}function TOe(t,e){var r=new gOe;return r.parse(t,e)}var COe=yt(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),AOe=function(){function t(e,r){this.type="geoSVG",this._usedGraphicMap=yt(),this._freedGraphics=[],this._mapName=e,this._parsedXML=Mne(r)}return t.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var r=ROe(e.named),n=r.regions,a=r.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(e){var r,n;try{r=e&&TOe(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=r.root,Tt(n!=null)}catch(x){throw new Error(`Invalid svg format `+x.message)}var a=new It;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,c=void 0,d=void 0,p=void 0;if(i!=null?(u=0,d=i):s&&(u=s.x,d=s.width),o!=null?(c=0,p=o):s&&(c=s.y,p=s.height),u==null||c==null){var v=n.getBoundingRect();u==null&&(u=v.x,d=v.width),c==null&&(c=v.y,p=v.height)}l=this._boundingRect=new Ht(u,c,d,p)}if(s){var g=Ine(s,l);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}a.setClipPath(new yr({shape:l.plain()}));var m=[];return V(r.named,function(x){COe.get(x.svgNodeTagLower)!=null&&(m.push(x),EOe(x.el))}),{root:a,boundingRect:l,named:m}},t.prototype.useGraphic=function(e){var r=this._usedGraphicMap,n=r.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),r.set(e,n),n)},t.prototype.freeGraphic=function(e){var r=this._usedGraphicMap,n=r.get(e);n&&(r.removeKey(e),this._freedGraphics.push(n))},t}();function EOe(t){t.silent=!1,t.isGroup&&t.traverse(function(e){e.silent=!1})}function ROe(t){var e=[],r=yt();return V(t,function(n){if(n.namedFrom==null){var a=new $Ie(n.name,n.el);e.push(a),r.set(n.name,a)}}),{regions:e,regionsMap:r}}var h5=[126,25],t7="南海诸岛",Av=[[[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 bv=0;bv<Av.length;bv++)for(var Py=0;Py<Av[bv].length;Py++)Av[bv][Py][0]/=10.5,Av[bv][Py][1]/=-10.5/.75,Av[bv][Py][0]+=h5[0],Av[bv][Py][1]+=h5[1];function MOe(t,e){if(t==="china"){for(var r=0;r<e.length;r++)if(e[r].name===t7)return;e.push(new Mre(t7,Oe(Av,function(n){return{type:"polygon",exterior:n}}),h5))}}var DOe={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function IOe(t,e){if(t==="china"){var r=DOe[e.name];if(r){var n=e.getCenter();n[0]+=r[0]/10.5,n[1]+=-r[1]/(10.5/.75),e.setCenter(n)}}}var POe=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function LOe(t,e){t==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:POe[0]})}var OOe="name",kOe=function(){function t(e,r,n){this.type="geoJSON",this._parsedMap=yt(),this._mapName=e,this._specialAreas=n,this._geoJSON=BOe(r)}return t.prototype.load=function(e,r){r=r||OOe;var n=this._parsedMap.get(r);if(!n){var a=this._parseToRegions(r);n=this._parsedMap.set(r,{regions:a,boundingRect:NOe(a)})}var i=yt(),o=[];return V(n.regions,function(s){var l=s.name;e&&it(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new Ht(0,0,0,0),regionsMap:i}},t.prototype._parseToRegions=function(e){var r=this._mapName,n=this._geoJSON,a;try{a=n?n5(n,e):[]}catch(i){throw new Error(`Invalid geoJson format `+i.message)}return MOe(r,a),V(a,function(i){var o=i.name;IOe(r,i),LOe(r,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function NOe(t){for(var e,r=0;r<t.length;r++){var n=t[r].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function BOe(t){return at(t)?typeof JSON<"u"&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var N_=yt();const wf={registerMap:function(t,e,r){if(e.svg){var n=new AOe(t,e.svg);N_.set(t,n)}else{var a=e.geoJson||e.geoJSON;a&&!e.features?r=e.specialAreas:a=e;var n=new kOe(t,a,r);N_.set(t,n)}},getGeoResource:function(t){return N_.get(t)},getMapForUser:function(t){var e=N_.get(t);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(t,e,r){var n=N_.get(t);if(!n){console.error("Map "+t+" not exists. The GeoJSON of the map must be provided.");return}return n.load(e,r)}};var CV=["rect","circle","line","ellipse","polygon","polyline","path"],zOe=yt(CV),$Oe=yt(CV.concat(["g"])),FOe=yt(CV.concat(["g"])),Pne=wr();function wE(t){var e=t.getItemStyle(),r=t.get("areaColor");return r!=null&&(e.fill=r),e}function r7(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var VOe=function(){function t(e){var r=new It;this.uid=Q0("ec_map_draw"),this._controller=new tw(e.getZr()),this._controllerHost={target:r},this.group=r,r.add(this._regionsGroup=new It),r.add(this._svgGroup=new It)}return t.prototype.draw=function(e,r,n,a,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&r.eachComponent({mainType:"series",subType:"map"},function(_){!s&&_.getHostGeoModel()===e&&(s=_.getData())});var l=e.coordinateSystem,u=this._regionsGroup,c=this.group,d=l.getTransformInfo(),p=d.raw,v=d.roam,g=!u.childAt(0)||i;g?(c.x=v.x,c.y=v.y,c.scaleX=v.scaleX,c.scaleY=v.scaleY,c.dirty()):Sr(c,v,e);var m=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,x={api:n,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:m,isGeo:o,transformInfoRaw:p};l.resourceType==="geoJSON"?this._buildGeoJSON(x):l.resourceType==="geoSVG"&&this._buildSVG(x),this._updateController(e,r,n),this._updateMapSelectHandler(e,u,n,a)},t.prototype._buildGeoJSON=function(e){var r=this._regionsGroupByName=yt(),n=yt(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(v,g){return g&&(v=g(v)),v&&[v[0]*i.scaleX+i.x,v[1]*i.scaleY+i.y]}function d(v){for(var g=[],m=!u&&l&&l.project,x=0;x<v.length;++x){var _=c(v[x],m);_&&g.push(_)}return g}function p(v){return{shape:{points:d(v)}}}a.removeAll(),V(e.geo.regions,function(v){var g=v.name,m=r.get(g),x=n.get(g)||{},_=x.dataIdx,w=x.regionModel;m||(m=r.set(g,new It),a.add(m),_=s?s.indexOfName(g):null,w=e.isGeo?o.getRegionModel(g):s?s.getItemModel(_):null,n.set(g,{dataIdx:_,regionModel:w}));var T=[],A=[];V(v.geometries,function(P){if(P.type==="polygon"){var O=[P.exterior].concat(P.interiors||[]);u&&(O=l7(O,u)),V(O,function(N){T.push(new co(p(N)))})}else{var k=P.points;u&&(k=l7(k,u,!0)),V(k,function(N){A.push(new fo(p(N)))})}});var M=c(v.getCenter(),l&&l.project);function D(P,O){if(P.length){var k=new UD({culling:!0,segmentIgnoreThreshold:1,shape:{paths:P}});m.add(k),n7(e,k,_,w),a7(e,k,g,w,o,_,M),O&&(r7(k),V(k.states,r7))}}D(T),D(A,!0)}),r.each(function(v,g){var m=n.get(g),x=m.dataIdx,_=m.regionModel;i7(e,v,g,_,o,x),o7(e,v,g,_,o),s7(e,v,g,_,o)},this)},t.prototype._buildSVG=function(e){var r=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(r)&&(this._freeSVG(),this._useSVG(r));var a=this._svgDispatcherMap=yt(),i=!1;V(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,c=o.svgNodeTagLower,d=o.el,p=u?u.indexOfName(s):null,v=l.getRegionModel(s);if(zOe.get(c)!=null&&d instanceof cl&&n7(e,d,p,v),d instanceof cl&&(d.culling=!0),d.z2EmphasisLift=0,!o.namedFrom&&(FOe.get(c)!=null&&a7(e,d,s,v,l,p,null),i7(e,d,s,v,l,p),o7(e,d,s,v,l),$Oe.get(c)!=null)){var g=s7(e,d,s,v,l);g==="self"&&(i=!0);var m=a.get(s)||a.set(s,[]);m.push(d)}},this),this._enableBlurEntireSVG(i,e)},t.prototype._enableBlurEntireSVG=function(e,r){if(e&&r.isGeo){var n=r.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){hg(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(e,r){if(e==null)return[];var n=r.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(e);return i?[i]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},t.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},t.prototype._useSVG=function(e){var r=wf.getGeoResource(e);if(r&&r.type==="geoSVG"){var n=r.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},t.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var r=wf.getGeoResource(e);r&&r.type==="geoSVG"&&r.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(e,r,n){var a=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=a.getZoom(),i.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,wV(o,u.dx,u.dy),n.dispatchAction(Ce(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,TV(o,u.scale,u.originX,u.originY),n.dispatchAction(Ce(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,c,d){return a.containPoint([c,d])&&!lI(u,n,e)})},t.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var r=e.getTextContent();r&&(r.ignore=Pne(r).ignore)})},t.prototype._updateMapSelectHandler=function(e,r,n,a){var i=this;r.off("mousedown"),r.off("click"),e.get("selectedMode")&&(r.on("mousedown",function(){i._mouseDownFlag=!0}),r.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},t}();function n7(t,e,r,n){var a=n.getModel("itemStyle"),i=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=wE(a),u=wE(i),c=wE(s),d=wE(o),p=t.data;if(p){var v=p.getItemVisual(r,"style"),g=p.getItemVisual(r,"decal");t.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),g&&(l.decal=R0(g,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=d,hg(e)}function a7(t,e,r,n,a,i,o){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),c=s&&s.getItemLayout(i);if(l||u||c&&c.showLabel){var d=l?r:i,p=void 0;(!s||i>=0)&&(p=a);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Ti(e,$a(n),{labelFetcher:p,labelDataIndex:d,defaultText:r},v);var g=e.getTextContent();if(g&&(Pne(g).ignore=g.ignore,e.textConfig&&o)){var m=e.getBoundingRect().clone();e.textConfig.layoutRect=m,e.textConfig.position=[(o[0]-m.x)/m.width*100+"%",(o[1]-m.y)/m.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function i7(t,e,r,n,a,i){t.data?t.data.setItemGraphicEl(i,e):Pt(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:r,region:n&&n.option||{}}}function o7(t,e,r,n,a){t.data||Z0({el:e,componentModel:a,itemName:r,itemTooltipOption:n.get("tooltip")})}function s7(t,e,r,n,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),o=i.get("focus");return Zn(e,o,i.get("blurScope"),i.get("disabled")),t.isGeo&&AAe(e,a,r),o}function l7(t,e,r){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=e({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(),V(t,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}const Lne=VOe;var UOe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.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()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===r.id){var s=this._mapDraw;s&&o.add(s.group)}else if(r.needsDrawMap){var s=this._mapDraw||new Lne(a);o.add(s.group),s.draw(r,n,a,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;r.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(r,n,a)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(r,n,a){var i=r.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,d=u.offset,p=new ru({style:{fill:r.getData().getVisual("style").fill},shape:{cx:c[0]+d*9,cy:c[1],r:3},silent:!0,z2:8+(d?0:j0+1)});if(!d){var v=r.mainSeries.getData(),g=i.getName(l),m=v.indexOfName(g),x=i.getItemModel(l),_=x.getModel("label"),w=v.getItemGraphicEl(m);Ti(p,$a(x),{labelFetcher:{getFormattedLabel:function(T,A){return r.getFormattedLabel(m,A)}},defaultText:g}),p.disableLabelAnimation=!0,_.get("position")||p.setTextConfig({position:"bottom"}),w.onHoverStateChange=function(T){WR(p,T)}}o.add(p)}}})},e.type="map",e}(Kr);const WOe=UOe;var HOe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.needsDrawMap=!1,r.seriesGroup=[],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 e.prototype.getInitialData=function(r){for(var n=sb(this,{coordDimensions:["value"],encodeDefaulter:Lt($3,this)}),a=yt(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,!0)}var u=wf.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return V(u.regions,function(c){var d=c.name;a.get(d)||i.push(d)}),n.appendValues([],i),n},e.prototype.getHostGeoModel=function(){var r=this.option.geoIndex;return r!=null?this.ecModel.getComponent("geo",r):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(r){var n=this.getData();return n.get(n.mapDimension("value"),r)},e.prototype.getRegionModel=function(r){var n=this.getData();return n.getItemModel(n.indexOfName(r))},e.prototype.formatTooltip=function(r,n,a){for(var i=this.getData(),o=this.getRawValue(r),s=i.getName(r),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var d=l[c].originalData.indexOfName(s),p=i.mapDimension("value");isNaN(l[c].originalData.get(p,d))||u.push(l[c].name)}return Fa("section",{header:u.join(", "),noHeader:!u.length,blocks:[Fa("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(r){this.option.zoom=r},e.prototype.setCenter=function(r){this.option.center=r},e.prototype.getLegendIcon=function(r){var n=r.icon||"roundRect",a=fa(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="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(xn);const GOe=HOe;function jOe(t,e){var r={};return V(t,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)})}),t[0].map(t[0].mapDimension("value"),function(n,a){for(var i="ec-"+t[0].getName(a),o=0,s=1/0,l=-1/0,u=r[i].length,c=0;c<u;c++)s=Math.min(s,r[i][c]),l=Math.max(l,r[i][c]),o+=r[i][c];var d;return e==="min"?d=s:e==="max"?d=l:e==="average"?d=o/u:d=o,u===0?NaN:d})}function YOe(t){var e={};t.eachSeriesByType("map",function(r){var n=r.getHostGeoModel(),a=n?"o"+n.id:"i"+r.getMapType();(e[a]=e[a]||[]).push(r)}),V(e,function(r,n){for(var a=jOe(Oe(r,function(o){return o.getData()}),r[0].get("mapValueCalculation")),i=0;i<r.length;i++)r[i].originalData=r[i].getData();for(var i=0;i<r.length;i++)r[i].seriesGroup=r,r[i].needsDrawMap=i===0&&!r[i].getHostGeoModel(),r[i].setData(a.cloneShallow()),r[i].mainSeries=r[0]})}function qOe(t){var e={};t.eachSeriesByType("map",function(r){var n=r.getMapType();if(!(r.getHostGeoModel()||e[n])){var a={};V(r.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&t.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var d=l.getName(c),p=s.getRegion(d);if(!(!p||isNaN(u))){var v=a[d]||0,g=s.dataToPoint(p.getCenter());a[d]=v+1,l.setItemLayout(c,{point:g,offset:v})}})});var i=r.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!a[s],i.setItemLayout(o,l)}),e[n]=!0}})}var u7=ii,XOe=function(t){he(e,t);function e(r){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new uf,n._rawTransformable=new uf,n.name=r,n}return e.prototype.setBoundingRect=function(r,n,a,i){return this._rect=new Ht(r,n,a,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(r,n,a,i){this._transformTo(r,n,a,i),this._viewRect=new Ht(r,n,a,i)},e.prototype._transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Ht(r,n,a,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(r,n){r&&(this._center=[Qe(r[0],n.getWidth()),Qe(r[1],n.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(r){r=r||1;var n=this.zoomLimit;n&&(n.max!=null&&(r=Math.min(n.max,r)),n.min!=null&&(r=Math.max(n.min,r))),this._zoom=r,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var r=this.getBoundingRect(),n=r.x+r.width/2,a=r.y+r.height/2;return[n,a]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var r=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,a=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=ii([],i,r),a=ii([],a,r),n.originX=i[0],n.originY=i[1],n.x=a[0]-i[0],n.y=a[1]-i[1],n.scaleX=n.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var r=this._roamTransformable,n=this._rawTransformable;n.parent=r,r.updateTransform(),n.updateTransform(),RD(this.transform||(this.transform=[]),n.transform||hs()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],Sg(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var r=this._rawTransformable,n=this._roamTransformable,a=new uf;return a.transform=n.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var r=this.getBoundingRect().clone();return r.applyTransform(this.transform),r},e.prototype.dataToPoint=function(r,n,a){var i=n?this._rawTransform:this.transform;return a=a||[],i?u7(a,r,i):Fi(a,r)},e.prototype.pointToData=function(r){var n=this.invTransform;return n?u7([],r,n):[r[0],r[1]]},e.prototype.convertToPixel=function(r,n,a){var i=c7(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(r,n,a){var i=c7(n);return i===this?i.pointToData(a):null},e.prototype.containPoint=function(r){return this.getViewRectAfterRoam().contain(r[0],r[1])},e.dimensions=["x","y"],e}(uf);function c7(t){var e=t.seriesModel;return e?e.coordinateSystem:null}const rw=XOe;var ZOe={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},One=["lng","lat"],kne=function(t){he(e,t);function e(r,n,a){var i=t.call(this,r)||this;i.dimensions=One,i.type="geo",i._nameCoordMap=yt(),i.map=n;var o=a.projection,s=wf.load(n,a.nameMap,a.nameProperty),l=wf.getGeoResource(n),u=i.resourceType=l?l.type:null,c=i.regions=s.regions,d=ZOe[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,o&&(u==="geoSVG"&&(Vn("Map "+n+" with SVG source can't use projection. Only GeoJSON source supports projection."),o=null),o.project&&o.unproject||(Vn("project and unproject must be both provided in the projeciton."),o=null)),i.projection=o;var p;if(o)for(var v=0;v<c.length;v++){var g=c[v].getBoundingRect(o);p=p||g.clone(),p.union(g)}else p=s.boundingRect;return i.setBoundingRect(p.x,p.y,p.width,p.height),i.aspectScale=o?1:$t(a.aspectScale,d.aspectScale),i._invertLongitute=o?!1:d.invertLongitute,i}return e.prototype._transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new Ht(r,n,a,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(r){return this._regionsMap.get(r)},e.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]}},e.prototype.addGeoCoord=function(r,n){this._nameCoordMap.set(r,n)},e.prototype.getGeoCoord=function(r){var n=this._regionsMap.get(r);return this._nameCoordMap.get(r)||n&&n.getCenter()},e.prototype.dataToPoint=function(r,n,a){if(at(r)&&(r=this.getGeoCoord(r)),r){var i=this.projection;return i&&(r=i.project(r)),r&&this.projectedToPoint(r,n,a)}},e.prototype.pointToData=function(r){var n=this.projection;return n&&(r=n.unproject(r)),r&&this.pointToProjected(r)},e.prototype.pointToProjected=function(r){return t.prototype.pointToData.call(this,r)},e.prototype.projectedToPoint=function(r,n,a){return t.prototype.dataToPoint.call(this,r,n,a)},e.prototype.convertToPixel=function(r,n,a){var i=f7(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(r,n,a){var i=f7(n);return i===this?i.pointToData(a):null},e}(rw);ra(kne,rw);function f7(t){var e=t.geoModel,r=t.seriesModel;return e?e.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo",xa).models[0]||{}).coordinateSystem:null}const d7=kne;function h7(t,e){var r=t.get("boundingCoords");if(r!=null){var n=r[0],a=r[1];if(!(isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])))console.error("Invalid boundingCoords");else{var i=this.projection;if(i){var o=n[0],s=n[1],l=a[0],u=a[1];n=[1/0,1/0],a=[-1/0,-1/0];var c=function(D,P,O,k){for(var N=O-D,$=k-P,H=0;H<=100;H++){var F=H/100,W=i.project([D+N*F,P+$*F]);sf(n,n,W),lf(a,a,W)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1])}}var d=this.getBoundingRect(),p=t.get("layoutCenter"),v=t.get("layoutSize"),g=e.getWidth(),m=e.getHeight(),x=d.width/d.height*this.aspectScale,_=!1,w,T;p&&v&&(w=[Qe(p[0],g),Qe(p[1],m)],T=Qe(v,Math.min(g,m)),!isNaN(w[0])&&!isNaN(w[1])&&!isNaN(T)?_=!0:console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."));var A;if(_)A={},x>1?(A.width=T,A.height=T/x):(A.height=T,A.width=T*x),A.y=w[1]-A.height/2,A.x=w[0]-A.width/2;else{var M=t.getBoxLayoutParams();M.aspect=x,A=_a(M,{width:g,height:m})}this.setViewRect(A.x,A.y,A.width,A.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function KOe(t,e){V(e.get("geoCoord"),function(r,n){t.addGeoCoord(n,r)})}var QOe=function(){function t(){this.dimensions=One}return t.prototype.create=function(e,r){var n=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new d7(l+s,l,Ce({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=h7,u.resize(o,r)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),V(i,function(o,s){var l=Oe(o,function(c){return c.get("nameMap")}),u=new d7(s,s,Ce({nameMap:CD(l)},a(o[0])));u.zoomLimit=ca.apply(null,Oe(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=h7,u.resize(o[0],r),V(o,function(c){c.coordinateSystem=u,KOe(u,c)})}),n},t.prototype.getFilledRegions=function(e,r,n,a){for(var i=(e||[]).slice(),o=yt(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=wf.load(r,n,a);return V(l.regions,function(u){var c=u.name;!o.get(c)&&i.push({name:c})}),i},t}(),JOe=new QOe;const Nne=JOe;var eke=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n,a){var i=wf.getGeoResource(r.map);if(i&&i.type==="geoJSON"){var o=r.itemStyle=r.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(r,a),cg(r,"label",["show"])},e.prototype.optionUpdated=function(){var r=this,n=this.option;n.regions=Nne.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=ll(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Xr(o,r,r.ecModel)),o.selected&&(a[s]=!0)),i},yt()),n.selectedMap||(n.selectedMap=a)},e.prototype.getRegionModel=function(r){return this._optionModelMap.get(r)||new Xr(null,this,this.ecModel)},e.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(vt(i))return o.status=n,i(o);if(at(i))return i.replace("{a}",r??"")},e.prototype.setZoom=function(r){this.option.zoom=r},e.prototype.setCenter=function(r){this.option.center=r},e.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}},e.prototype.unSelect=function(r){var n=this.option.selectedMap;n&&(n[r]=!1)},e.prototype.toggleSelected=function(r){this[this.isSelected(r)?"unSelect":"select"](r)},e.prototype.isSelected=function(r){var n=this.option.selectedMap;return!!(n&&n[r])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(ur);const tke=eke;function p7(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function AV(t,e,r,n){var a=t.getZoom(),i=t.getCenter(),o=e.zoom,s=t.projectedToPoint?t.projectedToPoint(i):t.dataToPoint(i);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(p7(t,s),n)),o!=null){if(r){var l=r.min||0,u=r.max||1/0;o=Math.max(Math.min(a*o,u),l)/a}t.scaleX*=o,t.scaleY*=o;var c=(e.originX-t.x)*(o-1),d=(e.originY-t.y)*(o-1);t.x-=c,t.y-=d,t.updateTransform(),t.setCenter(p7(t,s),n),t.setZoom(o*a)}return{center:t.getCenter(),zoom:t.getZoom()}}var rke=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.focusBlurEnabled=!0,r}return e.prototype.init=function(r,n){this._api=n},e.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 Lne(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)},e.prototype._handleRegionClick=function(r){var n;Hv(r.target,function(a){return(n=Pt(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},e.prototype.updateSelectStatus=function(r,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=Pt(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(r){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(r,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Pn);const nke=rke;function ake(t,e,r){wf.registerMap(t,e,r)}function Bne(t){t.registerCoordinateSystem("geo",Nne),t.registerComponentModel(tke),t.registerComponentView(nke),t.registerImpl("registerMap",ake),t.registerImpl("getMap",function(r){return wf.getMapForUser(r)});function e(r,n){n.update="geo:updateSelectStatus",t.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;V(u.regions,function(d){o[d.name]=l.isSelected(d.name)||!1});var c=[];V(o,function(d,p){o[p]&&c.push(p)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:a.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(r,n,a){var i=r.componentType||"series";n.eachComponent({mainType:i,query:r},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=AV(s,r,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&V(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function ike(t){rr(Bne),t.registerChartView(WOe),t.registerSeriesModel(GOe),t.registerLayout(qOe),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,YOe),Lte("map",t.registerAction)}function oke(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var r=[e],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 ske(t,e){var r=t.isExpand?t.children:[],n=t.parentNode.children,a=t.hierNode.i?n[t.hierNode.i-1]:null;if(r.length){cke(t);var i=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;a?(t.hierNode.prelim=a.hierNode.prelim+e(t,a),t.hierNode.modifier=t.hierNode.prelim-i):t.hierNode.prelim=i}else a&&(t.hierNode.prelim=a.hierNode.prelim+e(t,a));t.parentNode.hierNode.defaultAncestor=fke(t,a,t.parentNode.hierNode.defaultAncestor||n[0],e)}function lke(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function v7(t){return arguments.length?t:pke}function n1(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function uke(t,e){return _a(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function cke(t){for(var e=t.children,r=e.length,n=0,a=0;--r>=0;){var i=e[r];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function fke(t,e,r,n){if(e){for(var a=t,i=t,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;s=gB(s),i=mB(i),s&&i;){a=gB(a),o=mB(o),a.hierNode.ancestor=t;var p=s.hierNode.prelim+d-i.hierNode.prelim-u+n(s,i);p>0&&(hke(dke(s,t,r),t,p),u+=p,l+=p),d+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!gB(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-l),i&&!mB(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,r=t)}return r}function gB(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function mB(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function dke(t,e,r){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:r}function hke(t,e,r){var n=r/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=r,e.hierNode.modifier+=r,e.hierNode.prelim+=r,t.hierNode.change+=n}function pke(t,e){return t.parentNode===e.parentNode?1:2}var vke=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),gke=function(t){he(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new vke},e.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,c=u==="TB"||u==="BT"?0:1,d=1-c,p=Qe(n.forkPosition,1),v=[];v[c]=o[c],v[d]=o[d]+(l[d]-o[d])*p,r.moveTo(o[0],o[1]),r.lineTo(v[0],v[1]),r.moveTo(s[0],s[1]),v[c]=s[c],r.lineTo(v[0],v[1]),v[c]=l[c],r.lineTo(v[0],v[1]),r.lineTo(l[0],l[1]);for(var g=1;g<i-1;g++){var m=a[g];r.moveTo(m[0],m[1]),v[c]=m[c],r.lineTo(v[0],v[1])}},e}(ir),mke=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._mainGroup=new It,r}return e.prototype.init=function(r,n){this._controller=new tw(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.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),this._updateController(r,n,a);var u=this._data;i.diff(u).add(function(c){g7(i,c)&&m7(i,c,null,s,r)}).update(function(c,d){var p=u.getItemGraphicEl(d);if(!g7(i,c)){p&&b7(u,d,p,s,r);return}m7(i,c,p,s,r)}).remove(function(c){var d=u.getItemGraphicEl(c);d&&b7(u,c,d,s,r)}).execute(),this._nodeScaleRatio=r.get("nodeScaleRatio"),this._updateNodeAndLinkScale(r),r.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(c,d){c.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:r.id,dataIndex:d})})}),this._data=i},e.prototype._updateViewCoordSys=function(r,n){var a=r.getData(),i=[];a.each(function(d){var p=a.getItemLayout(d);p&&!isNaN(p.x)&&!isNaN(p.y)&&i.push([+p.x,+p.y])});var o=[],s=[];BD(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 c=r.coordinateSystem=new rw;c.zoomLimit=r.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(r.get("center"),n),c.setZoom(r.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(r,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,d){var p=l.getBoundingRect();return p.applyTransform(l.transform),p.contain(c,d)&&!lI(u,a,r)}),o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){wV(s,u.dx,u.dy),a.dispatchAction({seriesId:r.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){TV(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:r.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(r),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(r){var n=r.getData(),a=this._getNodeGlobalScale(r);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},e.prototype._getNodeGlobalScale=function(r){var n=r.coordinateSystem;if(n.type!=="view")return 1;var a=this._nodeScaleRatio,i=n.scaleX||1,o=n.getZoom(),s=(o-1)*a+1;return s/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(Kr);function g7(t,e){var r=t.getItemLayout(e);return r&&!isNaN(r.x)&&!isNaN(r.y)}function m7(t,e,r,n,a){var i=!r,o=t.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=t.tree.root,d=o.parentNode===c?o:o.parentNode||o,p=t.getItemGraphicEl(d.dataIndex),v=d.getLayout(),g=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:v,m=o.getLayout();i?(r=new ZS(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),r.x=g.x,r.y=g.y):r.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),r.__radialOldRawX=r.__radialRawX,r.__radialOldRawY=r.__radialRawY,r.__radialRawX=m.rawX,r.__radialRawY=m.rawY,n.add(r),t.setItemGraphicEl(e,r),r.__oldX=r.x,r.__oldY=r.y,Sr(r,{x:m.x,y:m.y},a);var x=r.getSymbolPath();if(a.get("layout")==="radial"){var _=c.children[0],w=_.getLayout(),T=_.children.length,A=void 0,M=void 0;if(m.x===w.x&&o.isExpand===!0&&_.children.length){var D={x:(_.children[0].getLayout().x+_.children[T-1].getLayout().x)/2,y:(_.children[0].getLayout().y+_.children[T-1].getLayout().y)/2};A=Math.atan2(D.y-w.y,D.x-w.x),A<0&&(A=Math.PI*2+A),M=D.x<w.x,M&&(A=A-Math.PI)}else A=Math.atan2(m.y-w.y,m.x-w.x),A<0&&(A=Math.PI*2+A),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(M=m.x<w.x,M&&(A=A-Math.PI)):(M=m.x>w.x,M||(A=A-Math.PI));var P=M?"left":"right",O=s.getModel("label"),k=O.get("rotate"),N=k*(Math.PI/180),$=x.getTextContent();$&&(x.setTextConfig({position:O.get("position")||P,rotation:k==null?-A:N,origin:"center"}),$.setStyle("verticalAlign","middle"))}var H=s.get(["emphasis","focus"]),F=H==="relative"?U1(o.getAncestorsIndices(),o.getDescendantIndices()):H==="ancestor"?o.getAncestorsIndices():H==="descendant"?o.getDescendantIndices():null;F&&(Pt(r).focus=F),yke(a,o,c,r,g,v,m,n),r.__edge&&(r.onHoverStateChange=function(W){if(W!=="blur"){var j=o.parentNode&&t.getItemGraphicEl(o.parentNode.dataIndex);j&&j.hoverState===$S||WR(r.__edge,W)}})}function yke(t,e,r,n,a,i,o,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),d=t.getOrient(),p=t.get(["lineStyle","curveness"]),v=t.get("edgeForkPosition"),g=l.getModel("lineStyle").getLineStyle(),m=n.__edge;if(u==="curve")e.parentNode&&e.parentNode!==r&&(m||(m=n.__edge=new VS({shape:p5(c,d,p,a,a)})),Sr(m,{shape:p5(c,d,p,i,o)},t));else if(u==="polyline")if(c==="orthogonal"){if(e!==r&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var x=e.children,_=[],w=0;w<x.length;w++){var T=x[w].getLayout();_.push([T.x,T.y])}m||(m=n.__edge=new gke({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:d,forkPosition:v}})),Sr(m,{shape:{parentPoint:[o.x,o.y],childPoints:_}},t)}}else throw new Error("The polyline edgeShape can only be used in orthogonal layout");m&&!(u==="polyline"&&!e.isExpand)&&(m.useStyle(wt({strokeNoScale:!0,fill:null},g)),wi(m,l,"lineStyle"),hg(m),s.add(m))}function y7(t,e,r,n,a){var i=e.tree.root,o=zne(i,t),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(t.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),d=c.__edge,p=u.__edge||(s.isExpand===!1||s.children.length===1?d:void 0),v=n.get("edgeShape"),g=n.get("layout"),m=n.get("orient"),x=n.get(["lineStyle","curveness"]);p&&(v==="curve"?mh(p,{shape:p5(g,m,x,l,l),style:{opacity:0}},n,{cb:function(){r.remove(p)},removeOpt:a}):v==="polyline"&&n.get("layout")==="orthogonal"&&mh(p,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){r.remove(p)},removeOpt:a}))}}function zne(t,e){for(var r=e.parentNode===t?e:e.parentNode||e,n;n=r.getLayout(),n==null;)r=r.parentNode===t?r:r.parentNode||r;return{source:r,sourceLayout:n}}function b7(t,e,r,n,a){var i=t.tree.getNodeByDataIndex(e),o=t.tree.root,s=zne(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};mh(r,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(r),t.setItemGraphicEl(e,null)},removeOpt:l}),r.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){y7(u,t,n,a,l)}),y7(i,t,n,a,l)}function p5(t,e,r,n,a){var i,o,s,l,u,c,d,p;if(t==="radial"){u=n.rawX,d=n.rawY,c=a.rawX,p=a.rawY;var v=n1(u,d),g=n1(u,d+(p-d)*r),m=n1(c,p+(d-p)*r),x=n1(c,p);return{x1:v.x||0,y1:v.y||0,x2:x.x||0,y2:x.y||0,cpx1:g.x||0,cpy1:g.y||0,cpx2:m.x||0,cpy2:m.y||0}}else u=n.x,d=n.y,c=a.x,p=a.y,(e==="LR"||e==="RL")&&(i=u+(c-u)*r,o=d,s=c+(u-c)*r,l=p),(e==="TB"||e==="BT")&&(i=u,o=d+(p-d)*r,s=c,l=p+(d-p)*r);return{x1:u,y1:d,x2:c,y2:p,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}const bke=mke;var al=wr();function $ne(t){var e=t.mainData,r=t.datas;r||(r={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,Fne(e,r,t),V(r,function(n){V(e.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,Lt(xke,t))})}),e.wrapMethod("cloneShallow",Lt(Ske,t)),V(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,Lt(_ke,t))}),Tt(r[e.dataType]===e)}function xke(t,e){if(Cke(this)){var r=Ce({},al(this).datas);r[this.dataType]=e,Fne(e,r,t)}else EV(e,this.dataType,al(this).mainData,t);return e}function _ke(t,e){return t.struct&&t.struct.update(),e}function Ske(t,e){return V(al(e).datas,function(r,n){r!==e&&EV(r.cloneShallow(),n,e,t)}),e}function wke(t){var e=al(this).mainData;return t==null||e==null?e:al(e).datas[t]}function Tke(){var t=al(this).mainData;return t==null?[{data:t}]:Oe(sr(al(t).datas),function(e){return{type:e,data:al(t).datas[e]}})}function Cke(t){return al(t).mainData===t}function Fne(t,e,r){al(t).datas={},V(e,function(n,a){EV(n,a,t,r)})}function EV(t,e,r,n){al(r).datas[e]=t,al(t).mainData=r,t.dataType=e,n.struct&&(t[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=t),t.getLinkedData=wke,t.getLinkedDataAll=Tke}var Ake=function(){function t(e,r){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=r}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(e,r,n){vt(e)&&(n=r,r=e,e=null),e=e||{},at(e)&&(e={order:e});var a=e.order||"preorder",i=this[e.attr||"children"],o;a==="preorder"&&(o=r.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,r,n);a==="postorder"&&r.call(n,this)},t.prototype.updateDepthAndHeight=function(e){var r=0;this.depth=e;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(e+1),a.height>r&&(r=a.height)}this.height=r+1},t.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var r=0,n=this.children,a=n.length;r<a;r++){var i=n[r].getNodeById(e);if(i)return i}},t.prototype.contains=function(e){if(e===this)return!0;for(var r=0,n=this.children,a=n.length;r<a;r++){var i=n[r].contains(e);if(i)return i}},t.prototype.getAncestors=function(e){for(var r=[],n=e?this:this.parentNode;n;)r.push(n),n=n.parentNode;return r.reverse(),r},t.prototype.getAncestorsIndices=function(){for(var e=[],r=this;r;)e.push(r.dataIndex),r=r.parentNode;return e.reverse(),e},t.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(r){e.push(r.dataIndex)}),e},t.prototype.getValue=function(e){var r=this.hostTree.data;return r.getStore().get(r.getDimensionIndex(e||"value"),this.dataIndex)},t.prototype.setLayout=function(e,r){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,r)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(e)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(e,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,r)},t.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,r=0;r<e.length;++r)if(e[r]===this)return r;return-1}return-1},t.prototype.isAncestorOf=function(e){for(var r=e.parentNode;r;){if(r===this)return!0;r=r.parentNode}return!1},t.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},t}(),Eke=function(){function t(e){this.type="tree",this._nodes=[],this.hostModel=e}return t.prototype.eachNode=function(e,r,n){this.root.eachNode(e,r,n)},t.prototype.getNodeByDataIndex=function(e){var r=this.data.getRawIndex(e);return this._nodes[r]},t.prototype.getNodeById=function(e){return this.root.getNodeById(e)},t.prototype.update=function(){for(var e=this.data,r=this._nodes,n=0,a=r.length;n<a;n++)r[n].dataIndex=-1;for(var n=0,a=e.count();n<a;n++)r[e.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,r,n){var a=new t(r),i=[],o=1;s(e);function s(c,d){var p=c.value;o=Math.max(o,Le(p)?p.length:1),i.push(c);var v=new Ake(Da(c.name,""),a);d?Rke(v,d):a.root=v,a._nodes.push(v);var g=c.children;if(g)for(var m=0;m<g.length;m++)s(g[m],v)}a.root.updateDepthAndHeight(0);var l=ib(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Ui(l,r);return u.initData(i),n&&n(u),$ne({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},t}();function Rke(t,e){var r=e.children;t.parentNode!==e&&(r.push(t),t.parentNode=e)}const RV=Eke;function cS(t,e,r){if(t&&Qt(e,t.type)>=0){var n=r.getData().tree.root,a=t.targetNode;if(at(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=t.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function Vne(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function MV(t,e){var r=Vne(t);return Qt(r,e)>=0}function cI(t,e){for(var r=[];t;){var n=t.dataIndex;r.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return r.reverse(),r}var Mke=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return e.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},a=r.leaves||{},i=new Xr(a,this,this.ecModel),o=RV.createTree(n,this,s);function s(d){d.wrapMethod("getItemModel",function(p,v){var g=o.getNodeByDataIndex(v);return g&&g.children.length&&g.isExpand||(p.parentModel=i),p})}var l=0;o.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(d){var p=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=p&&p.collapsed!=null?!p.collapsed:d.depth<=c}),o.data},e.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},e.prototype.setZoom=function(r){this.option.zoom=r},e.prototype.setCenter=function(r){this.option.center=r},e.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 Fa("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(r){var n=t.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=cI(a,this),n.collapsed=!a.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(xn);const Dke=Mke;function Ike(t,e,r){for(var n=[t],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();)e(i,r)}function B_(t,e){for(var r=[t],n;n=r.pop();)if(e(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)r.push(a[i])}}function Pke(t,e){t.eachSeriesByType("tree",function(r){Lke(r,e)})}function Lke(t,e){var r=uke(t,e);t.layoutInfo=r;var n=t.get("layout"),a=0,i=0,o=null;n==="radial"?(a=2*Math.PI,i=Math.min(r.height,r.width)/2,o=v7(function(T,A){return(T.parentNode===A.parentNode?1:2)/T.depth})):(a=r.width,i=r.height,o=v7());var s=t.getData().tree.root,l=s.children[0];if(l){oke(s),Ike(l,ske,o),s.hierNode.modifier=-l.hierNode.prelim,B_(l,lke);var u=l,c=l,d=l;B_(l,function(T){var A=T.getLayout().x;A<u.getLayout().x&&(u=T),A>c.getLayout().x&&(c=T),T.depth>d.depth&&(d=T)});var p=u===c?1:o(u,c)/2,v=p-u.getLayout().x,g=0,m=0,x=0,_=0;if(n==="radial")g=a/(c.getLayout().x+p+v),m=i/(d.depth-1||1),B_(l,function(T){x=(T.getLayout().x+v)*g,_=(T.depth-1)*m;var A=n1(x,_);T.setLayout({x:A.x,y:A.y,rawX:x,rawY:_},!0)});else{var w=t.getOrient();w==="RL"||w==="LR"?(m=i/(c.getLayout().x+p+v),g=a/(d.depth-1||1),B_(l,function(T){_=(T.getLayout().x+v)*m,x=w==="LR"?(T.depth-1)*g:a-(T.depth-1)*g,T.setLayout({x,y:_},!0)})):(w==="TB"||w==="BT")&&(g=a/(c.getLayout().x+p+v),m=i/(d.depth-1||1),B_(l,function(T){x=(T.getLayout().x+v)*g,_=w==="TB"?(T.depth-1)*m:i-(T.depth-1)*m,T.setLayout({x,y:_},!0)}))}}}function Oke(t){t.eachSeriesByType("tree",function(e){var r=e.getData(),n=r.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(a.dataIndex,"style");Ce(s,o)})})}function kke(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,r){r.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var a=e.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,r,n){r.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=AV(i,e,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function Nke(t){t.registerChartView(bke),t.registerSeriesModel(Dke),t.registerLayout(Pke),t.registerVisual(Oke),kke(t)}var x7=["treemapZoomToNode","treemapRender","treemapMove"];function Bke(t){for(var e=0;e<x7.length;e++)t.registerAction({type:x7[e],update:"updateView"},ta);t.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=cS(r,s,i);if(l){var u=i.getViewRoot();u&&(r.direction=MV(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function Une(t){var e=t.getData(),r=e.tree,n={};r.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=U$(t.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var zke=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.preventUsingHoverLayer=!0,r}return e.prototype.getInitialData=function(r,n){var a={name:r.name,children:r.data};Wne(a);var i=r.levels||[],o=this.designatedVisualItemStyle={},s=new Xr({itemStyle:o},this,n);i=r.levels=$ke(i,n);var l=Oe(i||[],function(d){return new Xr(d,s,n)},this),u=RV.createTree(a,this,c);function c(d){d.wrapMethod("getItemModel",function(p,v){var g=u.getNodeByDataIndex(v),m=g?l[g.depth]:null;return p.parentModel=m||s,p})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return Fa("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(r){var n=t.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=cI(a,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},Ce(this.layoutInfo,r)},e.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=yt(),this._idIndexMapCount=0);var a=n.get(r);return a==null&&n.set(r,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.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)},e.prototype.enableAriaDecal=function(){Une(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(xn);function Wne(t){var e=0;V(t.children,function(n){Wne(n);var a=n.value;Le(a)&&(a=a[0]),e+=a});var r=t.value;Le(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=e),r<0&&(r=0),Le(t.value)?t.value[0]=r:t.value=r}function $ke(t,e){var r=Zr(e.get("color")),n=Zr(e.get(["aria","decal","decals"]));if(r){t=t||[];var a,i;V(t,function(s){var l=new Xr(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=t[0]||(t[0]={});return a||(o.color=r.slice()),!i&&n&&(o.decal=n.slice()),t}}const Fke=zke;var Vke=8,_7=8,yB=5,Uke=function(){function t(e){this.group=new It,e.add(this.group)}return t.prototype.render=function(e,r,n,a){var i=e.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"),c=l.getModel(["itemStyle","textStyle"]),d={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,d,u),this._renderContent(e,d,s,l,u,c,a),ZD(o,d.pos,d.box)}},t.prototype._prepare=function(e,r,n){for(var a=e;a;a=a.parentNode){var i=Da(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+Vke*2,r.emptyItemWidth);r.totalWidth+=s+_7,r.renderList.push({node:a,text:i,width:s})}},t.prototype._renderContent=function(e,r,n,a,i,o,s){for(var l=0,u=r.emptyItemWidth,c=e.get(["breadcrumb","height"]),d=LEe(r.pos,r.box),p=r.totalWidth,v=r.renderList,g=a.getModel("itemStyle").getItemStyle(),m=v.length-1;m>=0;m--){var x=v[m],_=x.node,w=x.width,T=x.text;p>d.width&&(p-=w-u,w=u,T=null);var A=new co({shape:{points:Wke(l,0,w,c,m===v.length-1,m===0)},style:wt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new mr({style:cn(i,{text:T})}),textConfig:{position:"inside"},z2:j0*1e4,onclick:Lt(s,_)});A.disableLabelAnimation=!0,A.getTextContent().ensureState("emphasis").style=cn(o,{text:T}),A.ensureState("emphasis").style=g,Zn(A,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(A),Hke(A,e,_),l+=w+_7}},t.prototype.remove=function(){this.group.removeAll()},t}();function Wke(t,e,r,n,a,i){var o=[[a?t:t-yB,e],[t+r,e],[t+r,e+n],[a?t:t-yB,e+n]];return!i&&o.splice(2,0,[t+r+yB,e+n/2]),!a&&o.push([t,e+n/2]),o}function Hke(t,e,r){Pt(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&cI(r,e)}}const Gke=Uke;var jke=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(e,r,n,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:r,duration:n,delay:a,easing:i}),!0)},t.prototype.finished=function(e){return this._finishedCallback=e,this},t.prototype.start=function(){for(var e=this,r=this._storage.length,n=function(){r--,r<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._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},t}();function Yke(){return new jke}var v5=It,S7=yr,w7=3,T7="label",C7="upperLabel",qke=j0*10,Xke=j0*2,Zke=j0*3,Ev=dg([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),A7=function(t){var e=Ev(t);return e.stroke=e.fill=e.lineWidth=null,e},gM=wr(),Kke=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._state="ready",r._storage=z_(),r}return e.prototype.render=function(r,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Qt(o,r)<0)){this.seriesModel=r,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=cS(i,s,r),u=i&&i.type,c=r.layoutInfo,d=!this._oldTree,p=this._storage,v=u==="treemapRootToNode"&&l&&p?{rootNodeGroup:p.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,g=this._giveContainerGroup(c),m=r.get("animation"),x=this._doRender(g,r,v);m&&!d&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(g,x,r,v):x.renderFinally(),this._resetController(a),this._renderBreadcrumb(r,a,l)}},e.prototype._giveContainerGroup=function(r){var n=this._containerGroup;return n||(n=this._containerGroup=new v5,this._initEvents(n),this.group.add(n)),n.x=r.x,n.y=r.y,n},e.prototype._doRender=function(r,n,a){var i=n.getData().tree,o=this._oldTree,s=z_(),l=z_(),u=this._storage,c=[];function d(x,_,w,T){return Qke(n,l,u,a,s,c,x,_,w,T)}v(i.root?[i.root]:[],o&&o.root?[o.root]:[],r,i===o||!o,0);var p=g(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:p,renderFinally:m};function v(x,_,w,T,A){T?(_=x,V(x,function(P,O){!P.isRemoved()&&D(O,O)})):new xf(_,x,M,M).add(D).update(D).remove(Lt(D,null)).execute();function M(P){return P.getId()}function D(P,O){var k=P!=null?x[P]:null,N=O!=null?_[O]:null,$=d(k,N,w,A);$&&v(k&&k.viewChildren||[],N&&N.viewChildren||[],$,T,A+1)}}function g(x){var _=z_();return x&&V(x,function(w,T){var A=_[T];V(w,function(M){M&&(A.push(M),gM(M).willDelete=!0)})}),_}function m(){V(p,function(x){V(x,function(_){_.parent&&_.parent.remove(_)})}),V(c,function(x){x.invisible=!0,x.dirty()})}},e.prototype._doAnimation=function(r,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(vt(o)?0:o)||0,u=(vt(s)?null:s)||"cubicOut",c=Yke();V(n.willDeleteEls,function(d,p){V(d,function(v,g){if(!v.invisible){var m=v.parent,x,_=gM(m);if(i&&i.direction==="drillDown")x=m===i.rootNodeGroup?{shape:{x:0,y:0,width:_.nodeWidth,height:_.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var w=0,T=0;_.willDelete||(w=_.nodeWidth/2,T=_.nodeHeight/2),x=p==="nodeGroup"?{x:w,y:T,style:{opacity:0}}:{shape:{x:w,y:T,width:0,height:0},style:{opacity:0}}}x&&c.add(v,x,l,0,u)}})}),V(this._storage,function(d,p){V(d,function(v,g){var m=n.lastsForAnimation[p][g],x={};m&&(v instanceof It?m.oldX!=null&&(x.x=v.x,x.y=v.y,v.x=m.oldX,v.y=m.oldY):(m.oldShape&&(x.shape=Ce({},v.shape),v.setShape(m.oldShape)),m.fadein?(v.setStyle("opacity",0),x.style={opacity:1}):v.style.opacity!==1&&(x.style={opacity:1})),c.add(v,x,l,0,u))})},this),this._state="animating",c.finished(ot(function(){this._state="ready",n.renderFinally()},this)).start()},e.prototype._resetController=function(r){var n=this._controller;n||(n=this._controller=new tw(r.getZr()),n.enable(this.seriesModel.get("roam")),n.on("pan",ot(this._onPan,this)),n.on("zoom",ot(this._onZoom,this)));var a=new Ht(0,0,r.getWidth(),r.getHeight());n.setPointerChecker(function(i,o,s){return a.contain(o,s)})},e.prototype._clearController=function(){var r=this._controller;r&&(r.dispose(),r=null)},e.prototype._onPan=function(r){if(this._state!=="animating"&&(Math.abs(r.dx)>w7||Math.abs(r.dy)>w7)){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}})}},e.prototype._onZoom=function(r){var n=r.originX,a=r.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new Ht(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;n-=l.x,a-=l.y;var u=hs();eu(u,u,[-n,-a]),MD(u,u,[r.scale,r.scale]),eu(u,u,[n,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.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),c=l.get("target",!0)||"blank";u&&XR(u,c)}}}}},this)},e.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 Gke(this.group))).render(r,n,a.node,function(o){i._state!=="animating"&&(MV(r.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=z_(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},e.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},e.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},e.type="treemap",e}(Kr);function z_(){return{nodeGroup:[],background:[],content:[]}}function Qke(t,e,r,n,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),d=t.getData(),p=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var v=c.width,g=c.height,m=c.borderWidth,x=c.invisible,_=o.getRawIndex(),w=s&&s.getRawIndex(),T=o.viewChildren,A=c.upperHeight,M=T&&T.length,D=p.getModel("itemStyle"),P=p.getModel(["emphasis","itemStyle"]),O=p.getModel(["blur","itemStyle"]),k=p.getModel(["select","itemStyle"]),N=D.get("borderRadius")||0,$=Se("nodeGroup",v5);if(!$)return;if(l.add($),$.x=c.x||0,$.y=c.y||0,$.markRedraw(),gM($).nodeWidth=v,gM($).nodeHeight=g,c.isAboveViewRoot)return $;var H=Se("background",S7,u,Xke);H&&ie($,H,M&&c.upperLabelHeight);var F=p.getModel("emphasis"),W=F.get("focus"),j=F.get("blurScope"),X=F.get("disabled"),te=W==="ancestor"?o.getAncestorsIndices():W==="descendant"?o.getDescendantIndices():W;if(M)gh($)&&Uv($,!1),H&&(Uv(H,!X),d.setItemGraphicEl(o.dataIndex,H),L$(H,te,j));else{var J=Se("content",S7,u,Zke);J&&se($,J),H.disableMorphing=!0,H&&gh(H)&&Uv(H,!1),Uv($,!X),d.setItemGraphicEl(o.dataIndex,$),L$($,te,j)}return $;function ie(st,$e,Be){var et=Pt($e);if(et.dataIndex=o.dataIndex,et.seriesIndex=t.seriesIndex,$e.setShape({x:0,y:0,width:v,height:g,r:N}),x)le($e);else{$e.invisible=!1;var de=o.getVisual("style"),xe=de.stroke,xt=A7(D);xt.fill=xe;var Ie=Ev(P);Ie.fill=P.get("borderColor");var Ct=Ev(O);Ct.fill=O.get("borderColor");var Ot=Ev(k);if(Ot.fill=k.get("borderColor"),Be){var jt=v-2*m;be($e,xe,de.opacity,{x:m,y:0,width:jt,height:A})}else $e.removeTextContent();$e.setStyle(xt),$e.ensureState("emphasis").style=Ie,$e.ensureState("blur").style=Ct,$e.ensureState("select").style=Ot,hg($e)}st.add($e)}function se(st,$e){var Be=Pt($e);Be.dataIndex=o.dataIndex,Be.seriesIndex=t.seriesIndex;var et=Math.max(v-2*m,0),de=Math.max(g-2*m,0);if($e.culling=!0,$e.setShape({x:m,y:m,width:et,height:de,r:N}),x)le($e);else{$e.invisible=!1;var xe=o.getVisual("style"),xt=xe.fill,Ie=A7(D);Ie.fill=xt,Ie.decal=xe.decal;var Ct=Ev(P),Ot=Ev(O),jt=Ev(k);be($e,xt,xe.opacity,null),$e.setStyle(Ie),$e.ensureState("emphasis").style=Ct,$e.ensureState("blur").style=Ot,$e.ensureState("select").style=jt,hg($e)}st.add($e)}function le(st){!st.invisible&&i.push(st)}function be(st,$e,Be,et){var de=p.getModel(et?C7:T7),xe=Da(p.get("name"),null),xt=de.getShallow("show");Ti(st,$a(p,et?C7:T7),{defaultText:xt?xe:null,inheritColor:$e,defaultOpacity:Be,labelFetcher:t,labelDataIndex:o.dataIndex});var Ie=st.getTextContent();if(Ie){var Ct=Ie.style,Ot=ED(Ct.padding||0);et&&(st.setTextConfig({layoutRect:et}),Ie.disableLabelLayout=!0),Ie.beforeUpdate=function(){var nr=Math.max((et?et.width:st.shape.width)-Ot[1]-Ot[3],0),Tr=Math.max((et?et.height:st.shape.height)-Ot[0]-Ot[2],0);(Ct.width!==nr||Ct.height!==Tr)&&Ie.setStyle({width:nr,height:Tr})},Ct.truncateMinChar=2,Ct.lineOverflow="truncate",Me(Ct,et,c);var jt=Ie.getState("emphasis");Me(jt?jt.style:null,et,c)}}function Me(st,$e,Be){var et=st?st.text:null;if(!$e&&Be.isLeafRoot&&et!=null){var de=t.get("drillDownIcon",!0);st.text=de?de+" "+et:et}}function Se(st,$e,Be,et){var de=w!=null&&r[st][w],xe=a[st];return de?(r[st][w]=null,Ue(xe,de)):x||(de=new $e,de instanceof cl&&(de.z2=Jke(Be,et)),Xe(xe,de)),e[st][_]=de}function Ue(st,$e){var Be=st[_]={};$e instanceof v5?(Be.oldX=$e.x,Be.oldY=$e.y):Be.oldShape=Ce({},$e.shape)}function Xe(st,$e){var Be=st[_]={},et=o.parentNode,de=$e instanceof It;if(et&&(!n||n.direction==="drillDown")){var xe=0,xt=0,Ie=a.background[et.getRawIndex()];!n&&Ie&&Ie.oldShape&&(xe=Ie.oldShape.width,xt=Ie.oldShape.height),de?(Be.oldX=0,Be.oldY=xt):Be.oldShape={x:xe,y:xt,width:0,height:0}}Be.fadein=!de}}function Jke(t,e){return t*qke+e}const eNe=Kke;var fS=V,tNe=St,mM=-1,DV=function(){function t(e){var r=e.mappingMethod,n=e.type,a=this.option=Et(e);this.type=n,this.mappingMethod=r,this._normalizeData=aNe[r];var i=t.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[r],r==="piecewise"?(bB(a),rNe(a)):r==="category"?a.categories?nNe(a):bB(a,!0):(Tt(r!=="linear"||a.dataExtent),bB(a))}return t.prototype.mapValueToVisual=function(e){var r=this._normalizeData(e);return this._normalizedToVisual(r,e)},t.prototype.getNormalizer=function(){return ot(this._normalizeData,this)},t.listVisualTypes=function(){return sr(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(e,r,n){St(e)?V(e,r,n):r.call(n,e)},t.mapVisual=function(e,r,n){var a,i=Le(e)?[]:St(e)?{}:(a=!0,null);return t.eachVisual(e,function(o,s){var l=r.call(n,o,s);a?i=l:i[s]=l}),i},t.retrieveVisuals=function(e){var r={},n;return e&&fS(t.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(r[i]=e[i],n=!0)}),n?r:null},t.prepareVisualTypes=function(e){if(Le(e))e=e.slice();else if(tNe(e)){var r=[];fS(e,function(n,a){r.push(a)}),e=r}else return[];return e.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},t.dependsOn=function(e,r){return r==="color"?!!(e&&e.indexOf(r)===0):e===r},t.findPieceIndex=function(e,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===e||at(l)&&l===e+"")return o;n&&p(l,o)}}for(var o=0,s=r.length;o<s;o++){var u=r[o],c=u.interval,d=u.close;if(c){if(c[0]===-1/0){if(CE(d[1],e,c[1]))return o}else if(c[1]===1/0){if(CE(d[0],c[0],e))return o}else if(CE(d[0],c[0],e)&&CE(d[1],e,c[1]))return o;n&&p(c[0],o),n&&p(c[1],o)}}if(n)return e===1/0?r.length-1:e===-1/0?0:a;function p(v,g){var m=Math.abs(v-e);m<i&&(i=m,a=g)}},t.visualHandlers={color:{applyVisual:$_("color"),getColorMapper:function(){var e=this.option;return ot(e.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),a1.call(this,r)}:function(r,n,a){var i=!!a;return!n&&(r=this._normalizeData(r)),a=m1(r,e.parsedVisual,a),i?a:Kl(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Kl(m1(e,this.option.parsedVisual),"rgba")},category:a1,piecewise:function(e,r){var n=m5.call(this,r);return n==null&&(n=Kl(m1(e,this.option.parsedVisual),"rgba")),n},fixed:Rv}},colorHue:TE(function(e,r){return u0(e,r)}),colorSaturation:TE(function(e,r){return u0(e,null,r)}),colorLightness:TE(function(e,r){return u0(e,null,null,r)}),colorAlpha:TE(function(e,r){return j1(e,r)}),decal:{applyVisual:$_("decal"),_normalizedToVisual:{linear:null,category:a1,piecewise:null,fixed:null}},opacity:{applyVisual:$_("opacity"),_normalizedToVisual:g5([0,1])},liftZ:{applyVisual:$_("liftZ"),_normalizedToVisual:{linear:Rv,category:Rv,piecewise:Rv,fixed:Rv}},symbol:{applyVisual:function(e,r,n){var a=this.mapValueToVisual(e);n("symbol",a)},_normalizedToVisual:{linear:E7,category:a1,piecewise:function(e,r){var n=m5.call(this,r);return n==null&&(n=E7.call(this,e)),n},fixed:Rv}},symbolSize:{applyVisual:$_("symbolSize"),_normalizedToVisual:g5([0,1])}},t}();function rNe(t){var e=t.pieceList;t.hasSpecialVisual=!1,V(e,function(r,n){r.originIndex=n,r.visual!=null&&(t.hasSpecialVisual=!0)})}function nNe(t){var e=t.categories,r=t.categoryMap={},n=t.visual;if(fS(e,function(o,s){r[o]=s}),!Le(n)){var a=[];St(n)?fS(n,function(o,s){var l=r[s];a[l??mM]=o}):a[mM]=n,n=Hne(t,a)}for(var i=e.length-1;i>=0;i--)n[i]==null&&(delete r[e[i]],e.pop())}function bB(t,e){var r=t.visual,n=[];St(r)?fS(r,function(i){n.push(i)}):r!=null&&n.push(r);var a={color:1,symbol:1};!e&&n.length===1&&!a.hasOwnProperty(t.type)&&(n[1]=n[0]),Hne(t,n)}function TE(t){return{applyVisual:function(e,r,n){var a=this.mapValueToVisual(e);n("color",t(r("color"),a))},_normalizedToVisual:g5([0,1])}}function E7(t){var e=this.option.visual;return e[Math.round(Nr(t,[0,1],[0,e.length-1],!0))]||{}}function $_(t){return function(e,r,n){n(t,this.mapValueToVisual(e))}}function a1(t){var e=this.option.visual;return e[this.option.loop&&t!==mM?t%e.length:t]}function Rv(){return this.option.visual[0]}function g5(t){return{linear:function(e){return Nr(e,t,this.option.visual,!0)},category:a1,piecewise:function(e,r){var n=m5.call(this,r);return n==null&&(n=Nr(e,t,this.option.visual,!0)),n},fixed:Rv}}function m5(t){var e=this.option,r=e.pieceList;if(e.hasSpecialVisual){var n=DV.findPieceIndex(t,r),a=r[n];if(a&&a.visual)return a.visual[this.type]}}function Hne(t,e){return t.visual=e,t.type==="color"&&(t.parsedVisual=Oe(e,function(r){var n=io(r);return n||Vn("'"+r+"' is an illegal color, fallback to '#000000'",!0),n||[0,0,0,1]})),e}var aNe={linear:function(t){return Nr(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,r=DV.findPieceIndex(t,e,!0);if(r!=null)return Nr(r,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??mM},fixed:ta};function CE(t,e,r){return t?e<=r:e<r}const xi=DV;var iNe="itemStyle",Gne=wr();const oNe={seriesType:"treemap",reset:function(t){var e=t.getData().tree,r=e.root;r.isRemoved()||jne(r,{},t.getViewRoot().getAncestors(),t)}};function jne(t,e,r,n){var a=t.getModel(),i=t.getLayout(),o=t.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(iNe),l=sNe(s,e,n),u=o.ensureUniqueItemVisual(t.dataIndex,"style"),c=s.get("borderColor"),d=s.get("borderColorSaturation"),p;d!=null&&(p=R7(l),c=lNe(d,p)),u.stroke=c;var v=t.viewChildren;if(!v||!v.length)p=R7(l),u.fill=p;else{var g=uNe(t,a,i,s,l,v);V(v,function(m,x){if(m.depth>=r.length||m===r[m.depth]){var _=cNe(a,l,m,x,g,n);jne(m,_,r,n)}})}}}function sNe(t,e,r){var n=Ce({},e),a=r.designatedVisualItemStyle;return V(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=t.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function R7(t){var e=xB(t,"color");if(e){var r=xB(t,"colorAlpha"),n=xB(t,"colorSaturation");return n&&(e=u0(e,null,null,n)),r&&(e=j1(e,r)),e}}function lNe(t,e){return e!=null?u0(e,null,null,t):null}function xB(t,e){var r=t[e];if(r!=null&&r!=="none")return r}function uNe(t,e,r,n,a,i){if(!(!i||!i.length)){var o=_B(e,"color")||a.color!=null&&a.color!=="none"&&(_B(e,"colorAlpha")||_B(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=r.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};d.type==="color"&&(c==="index"||c==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var p=new xi(d);return Gne(p).drColorMappingBy=c,p}}}function _B(t,e){var r=t.get(e);return Le(r)&&r.length?{name:e,range:r}:null}function cNe(t,e,r,n,a,i){var o=Ce({},e);if(a){var s=a.type,l=s==="color"&&Gne(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(r.getId()):r.getValue(t.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var dS=Math.max,yM=Math.min,M7=ca,IV=V,Yne=["itemStyle","borderWidth"],fNe=["itemStyle","gapWidth"],dNe=["upperLabel","show"],hNe=["upperLabel","height"];const pNe={seriesType:"treemap",reset:function(t,e,r,n){var a=r.getWidth(),i=r.getHeight(),o=t.option,s=_a(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=Qe(M7(s.width,l[0]),a),c=Qe(M7(s.height,l[1]),i),d=n&&n.type,p=["treemapZoomToNode","treemapRootToNode"],v=cS(n,p,t),g=d==="treemapRender"||d==="treemapMove"?n.rootRect:null,m=t.getViewRoot(),x=Vne(m);if(d!=="treemapMove"){var _=d==="treemapZoomToNode"?xNe(t,v,m,u,c):g?[g.width,g.height]:[u,c],w=o.sort;w&&w!=="asc"&&w!=="desc"&&(w="desc");var T={squareRatio:o.squareRatio,sort:w,leafDepth:o.leafDepth};m.hostTree.clearLayouts();var A={x:0,y:0,width:_[0],height:_[1],area:_[0]*_[1]};m.setLayout(A),qne(m,T,!1,0),A=m.getLayout(),IV(x,function(D,P){var O=(x[P+1]||m).getValue();D.setLayout(Ce({dataExtent:[O,O],borderWidth:0,upperHeight:0},A))})}var M=t.getData().tree.root;M.setLayout(_Ne(s,g,v),!0),t.setLayoutInfo(s),Xne(M,new Ht(-s.x,-s.y,a,i),x,m,0)}};function qne(t,e,r,n){var a,i;if(!t.isRemoved()){var o=t.getLayout();a=o.width,i=o.height;var s=t.getModel(),l=s.get(Yne),u=s.get(fNe)/2,c=Zne(s),d=Math.max(l,c),p=l-u,v=d-u;t.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),a=dS(a-2*p,0),i=dS(i-p-v,0);var g=a*i,m=vNe(t,s,g,e,r,n);if(m.length){var x={x:p,y:v,width:a,height:i},_=yM(a,i),w=1/0,T=[];T.area=0;for(var A=0,M=m.length;A<M;){var D=m[A];T.push(D),T.area+=D.getLayout().area;var P=bNe(T,_,e.squareRatio);P<=w?(A++,w=P):(T.area-=T.pop().getLayout().area,D7(T,_,x,u,!1),_=yM(x.width,x.height),T.length=T.area=0,w=1/0)}if(T.length&&D7(T,_,x,u,!0),!r){var O=s.get("childrenVisibleMin");O!=null&&g<O&&(r=!0)}for(var A=0,M=m.length;A<M;A++)qne(m[A],e,r,n+1)}}}function vNe(t,e,r,n,a,i){var o=t.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return t.viewChildren=[];o=Br(o,function(v){return!v.isRemoved()}),mNe(o,s);var u=yNe(e,o,s);if(u.sum===0)return t.viewChildren=[];if(u.sum=gNe(e,r,u.sum,s,o),u.sum===0)return t.viewChildren=[];for(var c=0,d=o.length;c<d;c++){var p=o[c].getValue()/u.sum*r;o[c].setLayout({area:p})}return l&&(o.length&&t.setLayout({isLeafRoot:!0},!0),o.length=0),t.viewChildren=o,t.setLayout({dataExtent:u.dataExtent},!0),o}function gNe(t,e,r,n,a){if(!n)return r;for(var i=t.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*e<i&&(s=l,r-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),r}function mNe(t,e){return e&&t.sort(function(r,n){var a=e==="asc"?r.getValue()-n.getValue():n.getValue()-r.getValue();return a===0?e==="asc"?r.dataIndex-n.dataIndex:n.dataIndex-r.dataIndex:a}),t}function yNe(t,e,r){for(var n=0,a=0,i=e.length;a<i;a++)n+=e[a].getValue();var o=t.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&r?(s=[e[e.length-1].getValue(),e[0].getValue()],r==="asc"&&s.reverse()):(s=[1/0,-1/0],IV(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function bNe(t,e,r){for(var n=0,a=1/0,i=0,o=void 0,s=t.length;i<s;i++)o=t[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var l=t.area*t.area,u=e*e*r;return l?dS(u*n/l,l/(u*a)):1/0}function D7(t,e,r,n,a){var i=e===r.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=r[s[i]],c=e?t.area/e:0;(a||c>r[l[o]])&&(c=r[l[o]]);for(var d=0,p=t.length;d<p;d++){var v=t[d],g={},m=c?v.getLayout().area/c:0,x=g[l[o]]=dS(c-2*n,0),_=r[s[i]]+r[l[i]]-u,w=d===p-1||_<m?_:m,T=g[l[i]]=dS(w-2*n,0);g[s[o]]=r[s[o]]+yM(n,x/2),g[s[i]]=u+yM(n,T/2),u+=w,v.setLayout(g,!0)}r[s[o]]+=c,r[l[o]]-=c}function xNe(t,e,r,n,a){var i=(e||{}).node,o=[n,a];if(!i||i===r)return o;for(var s,l=n*a,u=l*t.option.zoomToNodeRatio;s=i.parentNode;){for(var c=0,d=s.children,p=0,v=d.length;p<v;p++)c+=d[p].getValue();var g=i.getValue();if(g===0)return o;u*=c/g;var m=s.getModel(),x=m.get(Yne),_=Math.max(x,Zne(m));u+=4*x*x+(3*x+_)*Math.pow(u,.5),u>T$&&(u=T$),i=s}u<l&&(u=l);var w=Math.pow(u/l,.5);return[n*w,a*w]}function _Ne(t,e,r){if(e)return{x:e.x,y:e.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:t.width/2-o[0],y:t.height/2-o[1]}}function Xne(t,e,r,n,a){var i=t.getLayout(),o=r[a],s=o&&o===t;if(!(o&&!s||a===r.length&&t!==n)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new Ht(e.x-i.x,e.y-i.y,e.width,e.height);IV(t.viewChildren||[],function(u){Xne(u,l,r,n,a+1)})}}function Zne(t){return t.get(dNe)?t.get(hNe):0}function SNe(t){t.registerSeriesModel(Fke),t.registerChartView(eNe),t.registerVisual(oNe),t.registerLayout(pNe),Bke(t)}function wNe(t){var e=t.findComponents({mainType:"legend"});!e||!e.length||t.eachSeriesByType("graph",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){_r(u)&&(u=o[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}function TNe(t){var e={};t.eachSeriesByType("graph",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,e)),n.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],d=0;d<c.length;d++){var p=l.getShallow(c[d],!0);p!=null&&n.setItemVisual(o,c[d],p)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){at(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),c=a.ensureUniqueItemVisual(o,"style");Ce(c,u);for(var d=["symbol","symbolSize","symbolKeepAspect"],p=0;p<d.length;p++)a.setItemVisual(o,d[p],n.getItemVisual(l,d[p]))}})})}function AE(t){return t instanceof Array||(t=[t,t]),t}function CNe(t){t.eachSeriesByType("graph",function(e){var r=e.getGraph(),n=e.getEdgeData(),a=AE(e.get("edgeSymbol")),i=AE(e.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",e.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=r.getEdgeByIndex(o),u=AE(s.getShallow("symbol",!0)),c=AE(s.getShallow("symbolSize",!0)),d=s.getModel("lineStyle").getLineStyle(),p=n.ensureUniqueItemVisual(o,"style");switch(Ce(p,d),p.stroke){case"source":{var v=l.node1.getVisual("style");p.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");p.stroke=v&&v.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var y5="-->",fI=function(t){return t.get("autoCurveness")||null},Kne=function(t,e){var r=fI(t),n=20,a=[];if(_r(r))n=r;else if(Le(r)){t.__curvenessList=r;return}e>n&&(n=e);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));t.__curvenessList=a},hS=function(t,e,r){var n=[t.id,t.dataIndex].join("."),a=[e.id,e.dataIndex].join(".");return[r.uid,n,a].join(y5)},Qne=function(t){var e=t.split(y5);return[e[0],e[2],e[1]].join(y5)},ANe=function(t,e){var r=hS(t.node1,t.node2,e);return e.__edgeMap[r]},ENe=function(t,e){var r=b5(hS(t.node1,t.node2,e),e),n=b5(hS(t.node2,t.node1,e),e);return r+n},b5=function(t,e){var r=e.__edgeMap;return r[t]?r[t].length:0};function RNe(t){fI(t)&&(t.__curvenessList=[],t.__edgeMap={},Kne(t))}function MNe(t,e,r,n){if(fI(r)){var a=hS(t,e,r),i=r.__edgeMap,o=i[Qne(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 PV(t,e,r,n){var a=fI(e),i=Le(a);if(!a)return null;var o=ANe(t,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===r){s=l;break}var u=ENe(t,e);Kne(e,u),t.lineStyle=t.lineStyle||{};var c=hS(t.node1,t.node2,e),d=e.__curvenessList,p=i||u%2?0:1;if(o.isForward)return d[p+s];var v=Qne(c),g=b5(v,e),m=d[s+g+p];return n?i?a&&a[0]===0?(g+p)%2?m:-m:((g%2?0:1)+p)%2?m:-m:(g+p)%2?m:-m:d[s+g+p]}function Jne(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view")){var r=t.getGraph();r.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),LV(r,t)}}function LV(t,e){t.eachEdge(function(r,n){var a=nl(r.getModel().get(["lineStyle","curveness"]),-PV(r,e,n,!0),0),i=sc(r.node1.getLayout()),o=sc(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)})}function DNe(t,e){t.eachSeriesByType("graph",function(r){var n=r.get("layout"),a=r.coordinateSystem;if(a&&a.type!=="view"){var i=r.getData(),o=[];V(a.dimensions,function(p){o=o.concat(i.mapDimensionsAll(p))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var d=i.get(o[c],s);isNaN(d)||(u=!0),l.push(d)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}LV(i.graph,r)}else(!n||n==="none")&&Jne(r)})}function i1(t){var e=t.coordinateSystem;if(e.type!=="view")return 1;var r=t.option.nodeScaleRatio,n=e.scaleX,a=e.getZoom(),i=(a-1)*r+1;return i/n}function o1(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var I7=Math.PI,SB=[];function OV(t,e,r,n){var a=t.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=t.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,c=Math.min(i.width,i.height)/2,d=o.count();if(o.setLayout({cx:l,cy:u}),!!d){if(r){var p=a.pointToData(n),v=p[0],g=p[1],m=[v-l,g-u];_g(m,m),v1(m,m,c),r.setLayout([l+m[0],u+m[1]],!0);var x=t.get(["circular","rotateLabel"]);eae(r,x,l,u)}INe[e](t,s,o,c,l,u,d),s.eachEdge(function(_,w){var T=nl(_.getModel().get(["lineStyle","curveness"]),PV(_,t,w),0),A=sc(_.node1.getLayout()),M=sc(_.node2.getLayout()),D,P=(A[0]+M[0])/2,O=(A[1]+M[1])/2;+T&&(T*=3,D=[l*T+P*(1-T),u*T+O*(1-T)]),_.setLayout([A,M,D])})}}}var INe={value:function(t,e,r,n,a,i,o){var s=0,l=r.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(c){var d=c.getValue("value"),p=u*(l?d:1)/2;s+=p,c.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=p})},symbolSize:function(t,e,r,n,a,i,o){var s=0;SB.length=o;var l=i1(t);e.eachNode(function(d){var p=o1(d);isNaN(p)&&(p=2),p<0&&(p=0),p*=l;var v=Math.asin(p/2/n);isNaN(v)&&(v=I7/2),SB[d.dataIndex]=v,s+=v*2});var u=(2*I7-s)/o/2,c=0;e.eachNode(function(d){var p=u+SB[d.dataIndex];c+=p,(!d.getLayout()||!d.getLayout().fixed)&&d.setLayout([n*Math.cos(c)+a,n*Math.sin(c)+i]),c+=p})}};function eae(t,e,r,n){var a=t.getGraphicEl();if(a){var i=t.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(e){var l=t.getLayout(),u=Math.atan2(l[1]-n,l[0]-r);u<0&&(u=Math.PI*2+u);var c=l[0]<r;c&&(u=u-Math.PI);var d=c?"left":"right";s.setTextConfig({rotation:-u,position:d,origin:"center"});var p=s.ensureState("emphasis");Ce(p.textConfig||(p.textConfig={}),{position:d})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function PNe(t){t.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&OV(e,"symbolSize")})}var Ly=LR;function LNe(t,e,r){for(var n=t,a=e,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,c=0;c<n.length;c++){var d=n[c];d.p||(d.p=Ph(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),d.pp=sc(d.p),d.edges=null}var p=r.friction==null?.6:r.friction,v=p,g,m;return{warmUp:function(){v=p*.8},setFixed:function(x){n[x].fixed=!0},setUnfixed:function(x){n[x].fixed=!1},beforeStep:function(x){g=x},afterStep:function(x){m=x},step:function(x){g&&g(n,a);for(var _=[],w=n.length,T=0;T<a.length;T++){var A=a[T];if(!A.ignoreForceLayout){var M=A.n1,D=A.n2;Kd(_,D.p,M.p);var P=W1(_)-A.d,O=D.w/(M.w+D.w);isNaN(O)&&(O=0),_g(_,_),!M.fixed&&Ly(M.p,M.p,_,O*P*v),!D.fixed&&Ly(D.p,D.p,_,-(1-O)*P*v)}}for(var T=0;T<w;T++){var k=n[T];k.fixed||(Kd(_,l,k.p),Ly(k.p,k.p,_,u*v))}for(var T=0;T<w;T++)for(var M=n[T],N=T+1;N<w;N++){var D=n[N];Kd(_,D.p,M.p);var P=W1(_);P===0&&(UQ(_,Math.random()-.5,Math.random()-.5),P=1);var $=(M.rep+D.rep)/P/P;!M.fixed&&Ly(M.pp,M.pp,_,$),!D.fixed&&Ly(D.pp,D.pp,_,-$)}for(var H=[],T=0;T<w;T++){var k=n[T];k.fixed||(Kd(H,k.p,k.pp),Ly(k.p,k.p,H,v),Fi(k.pp,k.p))}v=v*.992;var F=v<.01;m&&m(n,a,F),x&&x(F)}}}function ONe(t){t.eachSeriesByType("graph",function(e){var r=e.coordinateSystem;if(!(r&&r.type!=="view"))if(e.get("layout")==="force"){var n=e.preservedPoints||{},a=e.getGraph(),i=a.data,o=a.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(T){var A=i.getId(T);i.setItemLayout(T,n[A]||[NaN,NaN])}):!l||l==="none"?Jne(e):l==="circular"&&OV(e,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),d=s.get("repulsion"),p=s.get("edgeLength"),v=Le(d)?d:[d,d],g=Le(p)?p:[p,p];g=[g[1],g[0]];var m=i.mapArray("value",function(T,A){var M=i.getItemLayout(A),D=Nr(T,u,v);return isNaN(D)&&(D=(v[0]+v[1])/2),{w:D,rep:D,fixed:i.getItemModel(A).get("fixed"),p:!M||isNaN(M[0])||isNaN(M[1])?null:M}}),x=o.mapArray("value",function(T,A){var M=a.getEdgeByIndex(A),D=Nr(T,c,g);isNaN(D)&&(D=(g[0]+g[1])/2);var P=M.getModel(),O=nl(M.getModel().get(["lineStyle","curveness"]),-PV(M,e,A,!0),0);return{n1:m[M.node1.dataIndex],n2:m[M.node2.dataIndex],d:D,curveness:O,ignoreForceLayout:P.get("ignoreForceLayout")}}),_=r.getBoundingRect(),w=LNe(m,x,{rect:_,gravity:s.get("gravity"),friction:s.get("friction")});w.beforeStep(function(T,A){for(var M=0,D=T.length;M<D;M++)T[M].fixed&&Fi(T[M].p,a.getNodeByIndex(M).getLayout())}),w.afterStep(function(T,A,M){for(var D=0,P=T.length;D<P;D++)T[D].fixed||a.getNodeByIndex(D).setLayout(T[D].p),n[i.getId(D)]=T[D].p;for(var D=0,P=A.length;D<P;D++){var O=A[D],k=a.getEdgeByIndex(D),N=O.n1.p,$=O.n2.p,H=k.getLayout();H=H?H.slice():[],H[0]=H[0]||[],H[1]=H[1]||[],Fi(H[0],N),Fi(H[1],$),+O.curveness&&(H[2]=[(N[0]+$[0])/2-(N[1]-$[1])*O.curveness,(N[1]+$[1])/2-($[0]-N[0])*O.curveness]),k.setLayout(H)}}),e.forceLayout=w,e.preservedPoints=n,w.step()}else e.forceLayout=null})}function kNe(t,e,r){var n=Ce(t.getBoxLayoutParams(),{aspect:r});return _a(n,{width:e.getWidth(),height:e.getHeight()})}function NNe(t,e){var r=[];return t.eachSeriesByType("graph",function(n){var a=n.get("coordinateSystem");if(!a||a==="view"){var i=n.getData(),o=i.mapArray(function(x){var _=i.getItemModel(x);return[+_.get("x"),+_.get("y")]}),s=[],l=[];BD(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=kNe(n,e,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var d=l[0]-s[0],p=l[1]-s[1],v=c.width,g=c.height,m=n.coordinateSystem=new rw;m.zoomLimit=n.get("scaleLimit"),m.setBoundingRect(s[0],s[1],d,p),m.setViewRect(c.x,c.y,v,g),m.setCenter(n.get("center"),e),m.setZoom(n.get("zoom")),r.push(m)}}),r}var P7=Ba.prototype,wB=VS.prototype,tae=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(tae);function TB(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var BNe=function(t){he(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new tae},e.prototype.buildPath=function(r,n){TB(n)?P7.buildPath.call(this,r,n):wB.buildPath.call(this,r,n)},e.prototype.pointAt=function(r){return TB(this.shape)?P7.pointAt.call(this,r):wB.pointAt.call(this,r)},e.prototype.tangentAt=function(r){var n=this.shape,a=TB(n)?[n.x2-n.x1,n.y2-n.y1]:wB.tangentAt.call(this,r);return _g(a,a)},e}(ir);const zNe=BNe;var CB=["fromSymbol","toSymbol"];function L7(t){return"_"+t+"Type"}function O7(t,e,r){var n=e.getItemVisual(r,t);if(!(!n||n==="none")){var a=e.getItemVisual(r,t+"Size"),i=e.getItemVisual(r,t+"Rotate"),o=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=YS(a),u=ab(o||0,l),c=fa(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=t,c}}function $Ne(t){var e=new zNe({name:"line",subPixelOptimize:!0});return x5(e.shape,t),e}function x5(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var r=e[2];r?(t.cpx1=r[0],t.cpy1=r[1]):(t.cpx1=NaN,t.cpy1=NaN)}var FNe=function(t){he(e,t);function e(r,n,a){var i=t.call(this)||this;return i._createLine(r,n,a),i}return e.prototype._createLine=function(r,n,a){var i=r.hostModel,o=r.getItemLayout(n),s=$Ne(o);s.shape.percent=0,In(s,{shape:{percent:1}},i,n),this.add(s),V(CB,function(l){var u=O7(l,r,n);this.add(u),this[L7(l)]=r.getItemVisual(n,l)},this),this._updateCommonStl(r,n,a)},e.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};x5(l.shape,s),Sr(o,l,i,n),V(CB,function(u){var c=r.getItemVisual(n,u),d=L7(u);if(this[d]!==c){this.remove(this.childOfName(u));var p=O7(u,r,n);this.add(p)}this[d]=c},this),this._updateCommonStl(r,n,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.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,c=a&&a.labelStatesModels,d=a&&a.emphasisDisabled,p=a&&a.focus,v=a&&a.blurScope;if(!a||r.hasItemOption){var g=r.getItemModel(n),m=g.getModel("emphasis");s=m.getModel("lineStyle").getLineStyle(),l=g.getModel(["blur","lineStyle"]).getLineStyle(),u=g.getModel(["select","lineStyle"]).getLineStyle(),d=m.get("disabled"),p=m.get("focus"),v=m.get("blurScope"),c=$a(g)}var x=r.getItemVisual(n,"style"),_=x.stroke;o.useStyle(x),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,V(CB,function(D){var P=this.childOfName(D);if(P){P.setColor(_),P.style.opacity=x.opacity;for(var O=0;O<lo.length;O++){var k=lo[O],N=o.getState(k);if(N){var $=N.style||{},H=P.ensureState(k),F=H.style||(H.style={});$.stroke!=null&&(F[P.__isEmptyBrush?"stroke":"fill"]=$.stroke),$.opacity!=null&&(F.opacity=$.opacity)}}P.markRedraw()}},this);var w=i.getRawValue(n);Ti(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(D,P){return i.getFormattedLabel(D,P,r.dataType)}},inheritColor:_||"#000",defaultOpacity:x.opacity,defaultText:(w==null?r.getName(n):isFinite(w)?Xn(w):w)+""});var T=this.getTextContent();if(T){var A=c.normal;T.__align=T.style.align,T.__verticalAlign=T.style.verticalAlign,T.__position=A.get("position")||"middle";var M=A.get("distance");Le(M)||(M=[M,M]),T.__labelDistance=M}this.setTextConfig({position:null,local:!0,inside:!1}),Zn(this,p,v,d)},e.prototype.highlight=function(){yf(this)},e.prototype.downplay=function(){bf(this)},e.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},e.prototype.setLinePoints=function(r){var n=this.childOfName("line");x5(n.shape,r),n.dirty()},e.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,c=l.pointAt(0),d=l.pointAt(u),p=Kd([],d,c);_g(p,p);function v(N,$){var H=N.__specifiedRotation;if(H==null){var F=l.tangentAt($);N.attr("rotation",($===1?-1:1)*Math.PI/2-Math.atan2(F[1],F[0]))}else N.attr("rotation",H)}if(n&&(n.setPosition(c),v(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(d),v(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var g=void 0,m=void 0,x=i.__labelDistance,_=x[0]*o,w=x[1]*o,T=u/2,A=l.tangentAt(T),M=[A[1],-A[0]],D=l.pointAt(T);M[1]>0&&(M[0]=-M[0],M[1]=-M[1]);var P=A[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var O=-Math.atan2(A[1],A[0]);d[0]<c[0]&&(O=Math.PI+O),i.rotation=O}var k=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":k=-w,m="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":k=w,m="top";break;default:k=0,m="middle"}switch(i.__position){case"end":i.x=p[0]*_+d[0],i.y=p[1]*w+d[1],g=p[0]>.8?"left":p[0]<-.8?"right":"center",m=p[1]>.8?"top":p[1]<-.8?"bottom":"middle";break;case"start":i.x=-p[0]*_+c[0],i.y=-p[1]*w+c[1],g=p[0]>.8?"right":p[0]<-.8?"left":"center",m=p[1]>.8?"bottom":p[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=_*P+c[0],i.y=c[1]+k,g=A[0]<0?"right":"left",i.originX=-_*P,i.originY=-k;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=D[0],i.y=D[1]+k,g="center",i.originY=-k;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-_*P+d[0],i.y=d[1]+k,g=A[0]>=0?"right":"left",i.originX=_*P,i.originY=-k;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||m,align:i.__align||g})}},e}(It);const kV=FNe;var VNe=function(){function t(e){this.group=new It,this._LineCtor=e||kV}return t.prototype.updateData=function(e){var r=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=e,i||a.removeAll();var o=k7(e);e.diff(i).add(function(s){r._doAdd(e,s,o)}).update(function(s,l){r._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},t.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(r,n){r.updateLayout(e,n)},this)},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=k7(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r){this._progressiveEls=[];function n(s){!s.isGroup&&!UNe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var i=r.getItemLayout(a);if(AB(i)){var o=new this._LineCtor(r,a,this._seriesScope);o.traverse(n),this.group.add(o),r.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(e){Oh(this._progressiveEls||this.group,e)},t.prototype._doAdd=function(e,r,n){var a=e.getItemLayout(r);if(AB(a)){var i=new this._LineCtor(e,r,n);e.setItemGraphicEl(r,i),this.group.add(i)}},t.prototype._doUpdate=function(e,r,n,a,i){var o=e.getItemGraphicEl(n);if(!AB(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)},t}();function UNe(t){return t.animators&&t.animators.length>0}function k7(t){var e=t.hostModel,r=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:$a(e)}}function N7(t){return isNaN(t[0])||isNaN(t[1])}function AB(t){return t&&!N7(t[0])&&!N7(t[1])}const NV=VNe;var EB=[],RB=[],MB=[],Oy=ni,DB=ih,B7=Math.abs;function z7(t,e,r){for(var n=t[0],a=t[1],i=t[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){EB[0]=Oy(n[0],a[0],i[0],c),EB[1]=Oy(n[1],a[1],i[1],c);var d=B7(DB(EB,e)-l);d<o&&(o=d,s=c)}for(var p=0;p<32;p++){var v=s+u;RB[0]=Oy(n[0],a[0],i[0],s),RB[1]=Oy(n[1],a[1],i[1],s),MB[0]=Oy(n[0],a[0],i[0],v),MB[1]=Oy(n[1],a[1],i[1],v);var d=DB(RB,e)-l;if(B7(d)<.01)break;var g=DB(MB,e)-l;u/=2,d<0?g>=0?s=s+u:s=s-u:g>=0?s=s-u:s=s+u}return s}function IB(t,e){var r=[],n=H1,a=[[],[],[]],i=[[],[]],o=[];e/=2,t.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");u.__original||(u.__original=[sc(u[0]),sc(u[1])],u[2]&&u.__original.push(sc(u[2])));var p=u.__original;if(u[2]!=null){if(Fi(a[0],p[0]),Fi(a[1],p[2]),Fi(a[2],p[1]),c&&c!=="none"){var v=o1(s.node1),g=z7(a,p[0],v*e);n(a[0][0],a[1][0],a[2][0],g,r),a[0][0]=r[3],a[1][0]=r[4],n(a[0][1],a[1][1],a[2][1],g,r),a[0][1]=r[3],a[1][1]=r[4]}if(d&&d!=="none"){var v=o1(s.node2),g=z7(a,p[1],v*e);n(a[0][0],a[1][0],a[2][0],g,r),a[1][0]=r[1],a[2][0]=r[2],n(a[0][1],a[1][1],a[2][1],g,r),a[1][1]=r[1],a[2][1]=r[2]}Fi(u[0],a[0]),Fi(u[1],a[2]),Fi(u[2],a[1])}else{if(Fi(i[0],p[0]),Fi(i[1],p[1]),Kd(o,i[1],i[0]),_g(o,o),c&&c!=="none"){var v=o1(s.node1);LR(i[0],i[0],o,v*e)}if(d&&d!=="none"){var v=o1(s.node2);LR(i[1],i[1],o,-v*e)}Fi(u[0],i[0]),Fi(u[1],i[1])}})}function $7(t){return t.type==="view"}var WNe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){var a=new KS,i=new NV,o=this.group;this._controller=new tw(n.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(r,n,a){var i=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if($7(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):Sr(u,c,r)}IB(r.getGraph(),i1(r));var d=r.getData();s.updateData(d);var p=r.getEdgeData();l.updateData(p),this._updateNodeAndLinkScale(),this._updateController(r,n,a),clearTimeout(this._layoutTimeout);var v=r.forceLayout,g=r.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,g);var m=r.get("layout");d.graph.eachNode(function(T){var A=T.dataIndex,M=T.getGraphicEl(),D=T.getModel();if(M){M.off("drag").off("dragend");var P=D.get("draggable");P&&M.on("drag",function(k){switch(m){case"force":v.warmUp(),!i._layouting&&i._startForceLayoutIteration(v,g),v.setFixed(A),d.setItemLayout(A,[M.x,M.y]);break;case"circular":d.setItemLayout(A,[M.x,M.y]),T.setLayout({fixed:!0},!0),OV(r,"symbolSize",T,[k.offsetX,k.offsetY]),i.updateLayout(r);break;case"none":default:d.setItemLayout(A,[M.x,M.y]),LV(r.getGraph(),r),i.updateLayout(r);break}}).on("dragend",function(){v&&v.setUnfixed(A)}),M.setDraggable(P,!!D.get("cursor"));var O=D.get(["emphasis","focus"]);O==="adjacency"&&(Pt(M).focus=T.getAdjacentDataIndices())}}),d.graph.eachEdge(function(T){var A=T.getGraphicEl(),M=T.getModel().get(["emphasis","focus"]);A&&M==="adjacency"&&(Pt(A).focus={edge:[T.dataIndex],node:[T.node1.dataIndex,T.node2.dataIndex]})});var x=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),_=d.getLayout("cx"),w=d.getLayout("cy");d.graph.eachNode(function(T){eae(T,x,_,w)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(r,n){var a=this;(function i(){r.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(n?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(r,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,d){var p=l.getBoundingRect();return p.applyTransform(l.transform),p.contain(c,d)&&!lI(u,a,r)}),!$7(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){wV(s,u.dx,u.dy),a.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){TV(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),IB(r.getGraph(),i1(r)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),a=i1(r);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(r){IB(r.getGraph(),i1(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Kr);const HNe=WNe;function ky(t){return"_EC_"+t}var GNe=function(){function t(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(e,r){e=e==null?""+r:""+e;var n=this._nodesMap;if(n[ky(e)]){console.error("Graph nodes have duplicate name or id");return}var a=new Mv(e,r);return a.hostGraph=this,this.nodes.push(a),n[ky(e)]=a,a},t.prototype.getNodeByIndex=function(e){var r=this.data.getRawIndex(e);return this.nodes[r]},t.prototype.getNodeById=function(e){return this._nodesMap[ky(e)]},t.prototype.addEdge=function(e,r,n){var a=this._nodesMap,i=this._edgesMap;if(_r(e)&&(e=this.nodes[e]),_r(r)&&(r=this.nodes[r]),e instanceof Mv||(e=a[ky(e)]),r instanceof Mv||(r=a[ky(r)]),!(!e||!r)){var o=e.id+"-"+r.id,s=new rae(e,r,n);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),r.inEdges.push(s)),e.edges.push(s),e!==r&&r.edges.push(s),this.edges.push(s),i[o]=s,s}},t.prototype.getEdgeByIndex=function(e){var r=this.edgeData.getRawIndex(e);return this.edges[r]},t.prototype.getEdge=function(e,r){e instanceof Mv&&(e=e.id),r instanceof Mv&&(r=r.id);var n=this._edgesMap;return this._directed?n[e+"-"+r]:n[e+"-"+r]||n[r+"-"+e]},t.prototype.eachNode=function(e,r){for(var n=this.nodes,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&e.call(r,n[i],i)},t.prototype.eachEdge=function(e,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&&e.call(r,n[i],i)},t.prototype.breadthFirstTraverse=function(e,r,n,a){if(r instanceof Mv||(r=this._nodesMap[ky(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(!e.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 c=u[o],d=c.node1===l?c.node2:c.node1;if(!d.__visited){if(e.call(a,d,l))return;s.push(d),d.__visited=!0}}}},t.prototype.update=function(){for(var e=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=e.count();i<o;i++)n[e.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},t.prototype.clone=function(){for(var e=new t(this._directed),r=this.nodes,n=this.edges,a=0;a<r.length;a++)e.addNode(r[a].id,r[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},t}(),Mv=function(){function t(e,r){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=r??-1}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.data.getItemModel(this.dataIndex);return n.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},r=0;r<this.edges.length;r++){var n=this.edges[r];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},t}(),rae=function(){function t(e,r,n){this.dataIndex=-1,this.node1=e,this.node2=r,this.dataIndex=n??-1}return t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t}();function nae(t,e){return{getValue:function(r){var n=this[t][e];return n.getStore().get(n.getDimensionIndex(r||"value"),this.dataIndex)},setVisual:function(r,n){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[t][e].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}ra(Mv,nae("hostGraph","data"));ra(rae,nae("hostGraph","edgeData"));const jNe=GNe;function aae(t,e,r,n,a){for(var i=new jNe(n),o=0;o<t.length;o++)i.addNode(ca(t[o].id,t[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var c=e[o],d=c.source,p=c.target;i.addEdge(d,p,u)&&(l.push(c),s.push(ca(Da(c.id,null),d+" > "+p)),u++)}var v=r.get("coordinateSystem"),g;if(v==="cartesian2d"||v==="polar")g=mc(t,r);else{var m=Cg.get(v),x=m?m.dimensions||[]:[];Qt(x,"value")<0&&x.concat(["value"]);var _=ib(t,{coordDimensions:x,encodeDefine:r.getEncode()}).dimensions;g=new Ui(_,r),g.initData(t)}var w=new Ui(["value"],r);return w.initData(l,s),a&&a(g,w),$ne({mainData:g,struct:i,structAttr:"graph",datas:{node:g,edge:w},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var YNe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new ew(a,a),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(r){t.prototype.mergeDefaultAndTheme.apply(this,arguments),cg(r,"edgeLabel",["show"])},e.prototype.getInitialData=function(r,n){var a=r.edges||r.links||[],i=r.data||r.nodes||[],o=this;if(i&&a){RNe(this);var s=aae(i,a,this,!0,l);return V(s.edges,function(u){MNe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(g){var m=o._categoriesModels,x=g.getShallow("category"),_=m[x];return _&&(_.parentModel=g.parentModel,g.parentModel=_),g});var d=Xr.prototype.getModel;function p(g,m){var x=d.call(this,g,m);return x.resolveParentPath=v,x}c.wrapMethod("getItemModel",function(g){return g.resolveParentPath=v,g.getModel=p,g});function v(g){if(g&&(g[0]==="label"||g[1]==="label")){var m=g.slice();return g[0]==="label"?m[0]="edgeLabel":g[1]==="label"&&(m[1]="edgeLabel"),m}return g}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.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),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Fa("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var d=wte({series:this,dataIndex:r,multipleSeries:n});return d},e.prototype._updateCategoriesData=function(){var r=Oe(this.option.categories||[],function(a){return a.value!=null?a:Ce({value:0},a)}),n=new Ui(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},e.prototype.setZoom=function(r){this.option.zoom=r},e.prototype.setCenter=function(r){this.option.center=r},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(xn);const qNe=YNe;var XNe={type:"graphRoam",event:"graphRoam",update:"none"};function ZNe(t){t.registerChartView(HNe),t.registerSeriesModel(qNe),t.registerProcessor(wNe),t.registerVisual(TNe),t.registerVisual(CNe),t.registerLayout(DNe),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,PNe),t.registerLayout(ONe),t.registerCoordinateSystem("graphView",{dimensions:rw.dimensions,create:NNe}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},ta),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},ta),t.registerAction(XNe,function(e,r,n){r.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=AV(i,e,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var KNe=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),QNe=function(t){he(e,t);function e(r){var n=t.call(this,r)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new KNe},e.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),c=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),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,c)},e}(ir);const JNe=QNe;function eBe(t,e){var r=t.get("center"),n=e.getWidth(),a=e.getHeight(),i=Math.min(n,a),o=Qe(r[0],e.getWidth()),s=Qe(r[1],e.getHeight()),l=Qe(t.get("radius"),i/2);return{cx:o,cy:s,r:l}}function EE(t,e){var r=t==null?"":t+"";return e&&(at(e)?r=e.replace("{value}",r):vt(e)&&(r=e(t))),r}var tBe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){this.group.removeAll();var i=r.get(["axisLine","lineStyle","color"]),o=eBe(r,a);this._renderMain(r,n,a,i,o),this._data=r.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(r,n,a,i,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,d=r.getModel("axisLine"),p=d.get("roundCap"),v=p?hM:uo,g=d.get("show"),m=d.getModel("lineStyle"),x=m.get("width"),_=[u,c];BJ(_,!l),u=_[0],c=_[1];for(var w=c-u,T=u,A=[],M=0;g&&M<i.length;M++){var D=Math.min(Math.max(i[M][0],0),1);c=u+w*D;var P=new v({shape:{startAngle:T,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-x,r:o.r},silent:!0});P.setStyle({fill:i[M][1]}),P.setStyle(m.getLineStyle(["color","width"])),A.push(P),T=c}A.reverse(),V(A,function(k){return s.add(k)});var O=function(k){if(k<=0)return i[0][1];var N;for(N=0;N<i.length;N++)if(i[N][0]>=k&&(N===0?0:i[N-1][0])<k)return i[N][1];return i[N-1][1]};this._renderTicks(r,n,a,O,o,u,c,l,x),this._renderTitleAndDetail(r,n,a,O,o),this._renderAnchor(r,o),this._renderPointer(r,n,a,O,o,u,c,l,x)},e.prototype._renderTicks=function(r,n,a,i,o,s,l,u,c){for(var d=this.group,p=o.cx,v=o.cy,g=o.r,m=+r.get("min"),x=+r.get("max"),_=r.getModel("splitLine"),w=r.getModel("axisTick"),T=r.getModel("axisLabel"),A=r.get("splitNumber"),M=w.get("splitNumber"),D=Qe(_.get("length"),g),P=Qe(w.get("length"),g),O=s,k=(l-s)/A,N=k/M,$=_.getModel("lineStyle").getLineStyle(),H=w.getModel("lineStyle").getLineStyle(),F=_.get("distance"),W,j,X=0;X<=A;X++){if(W=Math.cos(O),j=Math.sin(O),_.get("show")){var te=F?F+c:c,J=new Ba({shape:{x1:W*(g-te)+p,y1:j*(g-te)+v,x2:W*(g-D-te)+p,y2:j*(g-D-te)+v},style:$,silent:!0});$.stroke==="auto"&&J.setStyle({stroke:i(X/A)}),d.add(J)}if(T.get("show")){var te=T.get("distance")+F,ie=EE(Xn(X/A*(x-m)+m),T.get("formatter")),se=i(X/A),le=W*(g-D-te)+p,be=j*(g-D-te)+v,Me=T.get("rotate"),Se=0;Me==="radial"?(Se=-O+2*Math.PI,Se>Math.PI/2&&(Se+=Math.PI)):Me==="tangential"?Se=-O-Math.PI/2:_r(Me)&&(Se=Me*Math.PI/180),Se===0?d.add(new mr({style:cn(T,{text:ie,x:le,y:be,verticalAlign:j<-.8?"top":j>.8?"bottom":"middle",align:W<-.4?"left":W>.4?"right":"center"},{inheritColor:se}),silent:!0})):d.add(new mr({style:cn(T,{text:ie,x:le,y:be,verticalAlign:"middle",align:"center"},{inheritColor:se}),silent:!0,originX:le,originY:be,rotation:Se}))}if(w.get("show")&&X!==A){var te=w.get("distance");te=te?te+c:c;for(var Ue=0;Ue<=M;Ue++){W=Math.cos(O),j=Math.sin(O);var Xe=new Ba({shape:{x1:W*(g-te)+p,y1:j*(g-te)+v,x2:W*(g-P-te)+p,y2:j*(g-P-te)+v},silent:!0,style:H});H.stroke==="auto"&&Xe.setStyle({stroke:i((X+Ue/M)/A)}),d.add(Xe),O+=N}O-=N}else O+=k}},e.prototype._renderPointer=function(r,n,a,i,o,s,l,u,c){var d=this.group,p=this._data,v=this._progressEls,g=[],m=r.get(["pointer","show"]),x=r.getModel("progress"),_=x.get("show"),w=r.getData(),T=w.mapDimension("value"),A=+r.get("min"),M=+r.get("max"),D=[A,M],P=[s,l];function O(N,$){var H=w.getItemModel(N),F=H.getModel("pointer"),W=Qe(F.get("width"),o.r),j=Qe(F.get("length"),o.r),X=r.get(["pointer","icon"]),te=F.get("offsetCenter"),J=Qe(te[0],o.r),ie=Qe(te[1],o.r),se=F.get("keepAspect"),le;return X?le=fa(X,J-W/2,ie-j,W,j,null,se):le=new JNe({shape:{angle:-Math.PI/2,width:W,r:j,x:J,y:ie}}),le.rotation=-($+Math.PI/2),le.x=o.cx,le.y=o.cy,le}function k(N,$){var H=x.get("roundCap"),F=H?hM:uo,W=x.get("overlap"),j=W?x.get("width"):c/w.count(),X=W?o.r-j:o.r-(N+1)*j,te=W?o.r:o.r-N*j,J=new F({shape:{startAngle:s,endAngle:$,cx:o.cx,cy:o.cy,clockwise:u,r0:X,r:te}});return W&&(J.z2=M-w.get(T,N)%M),J}(_||m)&&(w.diff(p).add(function(N){var $=w.get(T,N);if(m){var H=O(N,s);In(H,{rotation:-((isNaN(+$)?P[0]:Nr($,D,P,!0))+Math.PI/2)},r),d.add(H),w.setItemGraphicEl(N,H)}if(_){var F=k(N,s),W=x.get("clip");In(F,{shape:{endAngle:Nr($,D,P,W)}},r),d.add(F),D$(r.seriesIndex,w.dataType,N,F),g[N]=F}}).update(function(N,$){var H=w.get(T,N);if(m){var F=p.getItemGraphicEl($),W=F?F.rotation:s,j=O(N,W);j.rotation=W,Sr(j,{rotation:-((isNaN(+H)?P[0]:Nr(H,D,P,!0))+Math.PI/2)},r),d.add(j),w.setItemGraphicEl(N,j)}if(_){var X=v[$],te=X?X.shape.endAngle:s,J=k(N,te),ie=x.get("clip");Sr(J,{shape:{endAngle:Nr(H,D,P,ie)}},r),d.add(J),D$(r.seriesIndex,w.dataType,N,J),g[N]=J}}).execute(),w.each(function(N){var $=w.getItemModel(N),H=$.getModel("emphasis"),F=H.get("focus"),W=H.get("blurScope"),j=H.get("disabled");if(m){var X=w.getItemGraphicEl(N),te=w.getItemVisual(N,"style"),J=te.fill;if(X instanceof si){var ie=X.style;X.useStyle(Ce({image:ie.image,x:ie.x,y:ie.y,width:ie.width,height:ie.height},te))}else X.useStyle(te),X.type!=="pointer"&&X.setColor(J);X.setStyle($.getModel(["pointer","itemStyle"]).getItemStyle()),X.style.fill==="auto"&&X.setStyle("fill",i(Nr(w.get(T,N),D,[0,1],!0))),X.z2EmphasisLift=0,wi(X,$),Zn(X,F,W,j)}if(_){var se=g[N];se.useStyle(w.getItemVisual(N,"style")),se.setStyle($.getModel(["progress","itemStyle"]).getItemStyle()),se.z2EmphasisLift=0,wi(se,$),Zn(se,F,W,j)}}),this._progressEls=g)},e.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"),c=fa(s,n.cx-o/2+Qe(l[0],n.r),n.cy-o/2+Qe(l[1],n.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(r,n,a,i,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),d=+r.get("max"),p=new It,v=[],g=[],m=r.isAnimationEnabled(),x=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(_){v[_]=new mr({silent:!0}),g[_]=new mr({silent:!0})}).update(function(_,w){v[_]=s._titleEls[w],g[_]=s._detailEls[w]}).execute(),l.each(function(_){var w=l.getItemModel(_),T=l.get(u,_),A=new It,M=i(Nr(T,[c,d],[0,1],!0)),D=w.getModel("title");if(D.get("show")){var P=D.get("offsetCenter"),O=o.cx+Qe(P[0],o.r),k=o.cy+Qe(P[1],o.r),N=v[_];N.attr({z2:x?0:2,style:cn(D,{x:O,y:k,text:l.getName(_),align:"center",verticalAlign:"middle"},{inheritColor:M})}),A.add(N)}var $=w.getModel("detail");if($.get("show")){var H=$.get("offsetCenter"),F=o.cx+Qe(H[0],o.r),W=o.cy+Qe(H[1],o.r),j=Qe($.get("width"),o.r),X=Qe($.get("height"),o.r),te=r.get(["progress","show"])?l.getItemVisual(_,"style").fill:M,N=g[_],J=$.get("formatter");N.attr({z2:x?0:2,style:cn($,{x:F,y:W,text:EE(T,J),width:isNaN(j)?null:j,height:isNaN(X)?null:X,align:"center",verticalAlign:"middle"},{inheritColor:te})}),Mee(N,{normal:$},T,function(se){return EE(se,J)}),m&&Dee(N,_,l,r,{getFormattedLabel:function(se,le,be,Me,Se,Ue){return EE(Ue?Ue.interpolatedValue:T,J)}}),A.add(N)}p.add(A)}),this.group.add(p),this._titleEls=v,this._detailEls=g},e.type="gauge",e}(Kr);const rBe=tBe;var nBe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="itemStyle",r}return e.prototype.getInitialData=function(r,n){return sb(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(xn);const aBe=nBe;function iBe(t){t.registerChartView(rBe),t.registerSeriesModel(aBe)}var oBe=["itemStyle","opacity"],sBe=function(t){he(e,t);function e(r,n){var a=t.call(this)||this,i=a,o=new fo,s=new mr;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(r,n,!0),a}return e.prototype.updateData=function(r,n,a){var i=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(oBe);c=c??1,a||nu(i),i.useStyle(r.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,In(i,{style:{opacity:c}},o,n)):Sr(i,{style:{opacity:c},shape:{points:l.points}},o,n),wi(i,s),this._updateLabel(r,n),Zn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.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),c=u.label,d=r.getItemVisual(n,"style"),p=d.fill;Ti(o,$a(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:d.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:p,outsideFill:p});var v=c.linePoints;i.setShape({points:v}),a.textGuideLineConfig={anchor:v?new Wt(v[0][0],v[0][1]):null},Sr(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),pV(a,vV(l),{stroke:p})},e}(co),lBe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.ignoreLabelLineUpdate=!0,r}return e.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 sBe(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);Q1(u,r,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Kr);const uBe=lBe;var cBe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new ew(ot(this.getData,this),ot(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.getInitialData=function(r,n){return sb(this,{coordDimensions:["value"],encodeDefaulter:Lt($3,this)})},e.prototype._defaultLabelLine=function(r){cg(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},e.prototype.getDataParams=function(r){var n=this.getData(),a=t.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},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(xn);const fBe=cBe;function dBe(t,e){return _a(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function hBe(t,e){for(var r=t.mapDimension("value"),n=t.mapArray(r,function(l){return l}),a=[],i=e==="ascending",o=0,s=t.count();o<s;o++)a[o]=o;return vt(e)?a.sort(e):e!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function pBe(t){var e=t.hostModel,r=e.get("orient");t.each(function(n){var a=t.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=t.getItemLayout(n),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",d,p,v,g;if(c)o==="insideLeft"?(p=(u[0][0]+u[3][0])/2+5,v=(u[0][1]+u[3][1])/2,d="left"):o==="insideRight"?(p=(u[1][0]+u[2][0])/2-5,v=(u[1][1]+u[2][1])/2,d="right"):(p=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,v=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,d="center"),g=[[p,v],[p,v]];else{var m=void 0,x=void 0,_=void 0,w=void 0,T=s.get("length");r==="vertical"&&["top","bottom"].indexOf(o)>-1&&(o="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),r==="horizontal"&&["left","right"].indexOf(o)>-1&&(o="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right.")),o==="left"?(m=(u[3][0]+u[0][0])/2,x=(u[3][1]+u[0][1])/2,_=m-T,p=_-5,d="right"):o==="right"?(m=(u[1][0]+u[2][0])/2,x=(u[1][1]+u[2][1])/2,_=m+T,p=_+5,d="left"):o==="top"?(m=(u[3][0]+u[0][0])/2,x=(u[3][1]+u[0][1])/2,w=x-T,v=w-5,d="center"):o==="bottom"?(m=(u[1][0]+u[2][0])/2,x=(u[1][1]+u[2][1])/2,w=x+T,v=w+5,d="center"):o==="rightTop"?(m=r==="horizontal"?u[3][0]:u[1][0],x=r==="horizontal"?u[3][1]:u[1][1],r==="horizontal"?(w=x-T,v=w-5,d="center"):(_=m+T,p=_+5,d="top")):o==="rightBottom"?(m=u[2][0],x=u[2][1],r==="horizontal"?(w=x+T,v=w+5,d="center"):(_=m+T,p=_+5,d="bottom")):o==="leftTop"?(m=u[0][0],x=r==="horizontal"?u[0][1]:u[1][1],r==="horizontal"?(w=x-T,v=w-5,d="center"):(_=m-T,p=_-5,d="right")):o==="leftBottom"?(m=r==="horizontal"?u[1][0]:u[3][0],x=r==="horizontal"?u[1][1]:u[2][1],r==="horizontal"?(w=x+T,v=w+5,d="center"):(_=m-T,p=_-5,d="right")):(m=(u[1][0]+u[2][0])/2,x=(u[1][1]+u[2][1])/2,r==="horizontal"?(w=x+T,v=w+5,d="center"):(_=m+T,p=_+5,d="left")),r==="horizontal"?(_=m,p=_):(w=x,v=w),g=[[m,x],[_,w]]}l.label={linePoints:g,x:p,y:v,verticalAlign:"middle",textAlign:d,inside:c}})}function vBe(t,e){t.eachSeriesByType("funnel",function(r){var n=r.getData(),a=n.mapDimension("value"),i=r.get("sort"),o=dBe(r,e),s=r.get("orient"),l=o.width,u=o.height,c=hBe(n,i),d=o.x,p=o.y,v=s==="horizontal"?[Qe(r.get("minSize"),u),Qe(r.get("maxSize"),u)]:[Qe(r.get("minSize"),l),Qe(r.get("maxSize"),l)],g=n.getDataExtent(a),m=r.get("min"),x=r.get("max");m==null&&(m=Math.min(g[0],0)),x==null&&(x=g[1]);var _=r.get("funnelAlign"),w=r.get("gap"),T=s==="horizontal"?l:u,A=(T-w*(n.count()-1))/n.count(),M=function(W,j){if(s==="horizontal"){var X=n.get(a,W)||0,te=Nr(X,[m,x],v,!0),J=void 0;switch(_){case"top":J=p;break;case"center":J=p+(u-te)/2;break;case"bottom":J=p+(u-te);break}return[[j,J],[j,J+te]]}var ie=n.get(a,W)||0,se=Nr(ie,[m,x],v,!0),le;switch(_){case"left":le=d;break;case"center":le=d+(l-se)/2;break;case"right":le=d+l-se;break}return[[le,j],[le+se,j]]};i==="ascending"&&(A=-A,w=-w,s==="horizontal"?d+=l:p+=u,c=c.reverse());for(var D=0;D<c.length;D++){var P=c[D],O=c[D+1],k=n.getItemModel(P);if(s==="horizontal"){var N=k.get(["itemStyle","width"]);N==null?N=A:(N=Qe(N,l),i==="ascending"&&(N=-N));var $=M(P,d),H=M(O,d+N);d+=N+w,n.setItemLayout(P,{points:$.concat(H.slice().reverse())})}else{var F=k.get(["itemStyle","height"]);F==null?F=A:(F=Qe(F,u),i==="ascending"&&(F=-F));var $=M(P,p),H=M(O,p+F);p+=F+w,n.setItemLayout(P,{points:$.concat(H.slice().reverse())})}}pBe(n)})}function gBe(t){t.registerChartView(uBe),t.registerSeriesModel(fBe),t.registerLayout(vBe),t.registerProcessor(JS("funnel"))}var mBe=.3,yBe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._dataGroup=new It,r._initialized=!1,r}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(r,n,a,i){this._progressiveEls=null;var o=this._dataGroup,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.dimensions,d=V7(r);s.diff(l).add(p).update(v).remove(g).execute();function p(x){var _=F7(s,o,x,c,u);PB(_,s,x,d)}function v(x,_){var w=l.getItemGraphicEl(_),T=iae(s,x,c,u);s.setItemGraphicEl(x,w),Sr(w,{shape:{points:T}},r,x),nu(w),PB(w,s,x,d)}function g(x){var _=l.getItemGraphicEl(x);o.remove(_)}if(!this._initialized){this._initialized=!0;var m=bBe(u,r,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(m)}this._data=s},e.prototype.incrementalPrepareRender=function(r,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(r,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=V7(n),u=this._progressiveEls=[],c=r.start;c<r.end;c++){var d=F7(i,this._dataGroup,c,s,o);d.incremental=!0,PB(d,i,c,l),u.push(d)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(Kr);function bBe(t,e,r){var n=t.model,a=t.getRect(),i=new yr({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),In(i,{shape:{width:a.width,height:a.height}},e,r),i}function iae(t,e,r,n){for(var a=[],i=0;i<r.length;i++){var o=r[i],s=t.get(t.mapDimension(o),e);xBe(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function F7(t,e,r,n,a){var i=iae(t,r,n,a),o=new fo({shape:{points:i},z2:10});return e.add(o),t.setItemGraphicEl(r,o),o}function V7(t){var e=t.get("smooth",!0);return e===!0&&(e=mBe),e=dc(e),ph(e)&&(e=0),{smooth:e}}function PB(t,e,r,n){t.useStyle(e.getItemVisual(r,"style")),t.style.fill=null,t.setShape("smooth",n.smooth);var a=e.getItemModel(r),i=a.getModel("emphasis");wi(t,a,"lineStyle"),Zn(t,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function xBe(t,e){return e==="category"?t==null:t==null||isNaN(t)}const _Be=yBe;var SBe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return e.prototype.getInitialData=function(r,n){return mc(null,this,{useEncodeDefaulter:ot(wBe,null,this)})},e.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},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(xn);function wBe(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var r={};return V(e.dimensions,function(n){var a=TBe(n);r[n]=a}),r}}function TBe(t){return+t.replace("dim","")}const CBe=SBe;var ABe=["lineStyle","opacity"],EBe={seriesType:"parallel",reset:function(t,e){var r=t.coordinateSystem,n={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.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(ABe,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},a.start,a.end)}}}};const RBe=EBe;function MBe(t){DBe(t),IBe(t)}function DBe(t){if(!t.parallel){var e=!1;V(t.series,function(r){r&&r.type==="parallel"&&(e=!0)}),e&&(t.parallel=[{}])}}function IBe(t){var e=Zr(t.parallelAxis);V(e,function(r){if(St(r)){var n=r.parallelIndex||0,a=Zr(t.parallel)[n];a&&a.parallelAxisDefault&&Ft(r,a.parallelAxisDefault,!1)}})}var PBe=5,LBe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){this._model=r,this._api=a,this._handlers||(this._handlers={},V(OBe,function(i,o){a.getZr().on(o,this._handlers[o]=ot(i,this))},this)),nb(this,"_throttledDispatchExpand",r.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(r,n){nS(this,"_throttledDispatchExpand"),V(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(r){this._dispatchExpand(r)},e.prototype._dispatchExpand=function(r){r&&this._api.dispatchAction(Ce({type:"parallelAxisExpand"},r))},e.type="parallel",e}(Pn),OBe={mousedown:function(t){LB(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(LB(this,"click")&&e){var r=[t.offsetX,t.offsetY],n=Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2);if(n>PBe)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!(this._mouseDownPoint||!LB(this,"mousemove"))){var e=this._model,r=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function LB(t,e){var r=t._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===e}const kBe=LBe;var NBe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(r){var n=this.option;r&&Ft(n,r,!0),this._initDimensions()},e.prototype.contains=function(r,n){var a=r.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(r){V(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},e.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],a=Br(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);V(a,function(i){r.push("dim"+i.get("dim")),n.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.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},e}(ur);const BBe=NBe;var zBe=function(t){he(e,t);function e(r,n,a,i,o){var s=t.call(this,r,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(gl);const $Be=zBe;function Rg(t,e,r,n,a,i){t=t||0;var o=r[1]-r[0];if(a!=null&&(a=Ny(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(e[1]-e[0]);s=Ny(s,[0,o]),a=i=Ny(s,[a,i]),n=0}e[0]=Ny(e[0],r),e[1]=Ny(e[1],r);var l=OB(e,n);e[n]+=t;var u=a||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,e[n]=Ny(e[n],c);var d;return d=OB(e,n),a!=null&&(d.sign!==l.sign||d.span<a)&&(e[1-n]=e[n]+l.sign*a),d=OB(e,n),i!=null&&d.span>i&&(e[1-n]=e[n]+d.sign*i),e}function OB(t,e){var r=t[e]-t[1-e];return{span:Math.abs(r),sign:r>0?-1:r<0?1:e?-1:1}}function Ny(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var kB=V,oae=Math.min,sae=Math.max,U7=Math.floor,FBe=Math.ceil,W7=Xn,VBe=Math.PI,UBe=function(){function t(e,r,n){this.type="parallel",this._axesMap=yt(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,r,n)}return t.prototype._init=function(e,r,n){var a=e.dimensions,i=e.parallelAxisIndex;kB(a,function(o,s){var l=i[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new $Be(o,qS(u),[0,0],u.get("type"),l)),d=c.type==="category";c.onBand=d&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},t.prototype.update=function(e,r){this._updateAxesFromSeries(this._model,e)},t.prototype.containPoint=function(e){var r=this._makeLayoutInfo(),n=r.axisBase,a=r.layoutBase,i=r.pixelDimIndex,o=e[1-i],s=e[i];return o>=n&&o<=n+r.axisLength&&s>=a&&s<=a+r.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(e,r){r.eachSeries(function(n){if(e.contains(n,r)){var a=n.getData();kB(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),vg(o.scale,o.model)},this)}},this)},t.prototype.resize=function(e,r){this._rect=_a(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var e=this._model,r=this._rect,n=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=r[a[o]],l=[0,s],u=this.dimensions.length,c=RE(e.get("axisExpandWidth"),l),d=RE(e.get("axisExpandCount")||0,[0,u]),p=e.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,v=e.get("axisExpandWindow"),g;if(v)g=RE(v[1]-v[0],l),v[1]=v[0]+g;else{g=RE(c*(d-1),l);var m=e.get("axisExpandCenter")||U7(u/2);v=[c*m-g/2],v[1]=v[0]+g}var x=(s-g)/(u-d);x<3&&(x=0);var _=[U7(W7(v[0]/c,1))+1,FBe(W7(v[1]/c,1))-1],w=x/c*v[0];return{layout:i,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[a[1-o]],axisExpandable:p,axisExpandWidth:c,axisCollapseWidth:x,axisExpandWindow:v,axisCount:u,winInnerIndices:_,axisExpandWindow0Pos:w}},t.prototype._layoutAxes=function(){var e=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])}),kB(n,function(o,s){var l=(a.axisExpandable?HBe:WBe)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:VBe/2,vertical:0},d=[u[i].x+e.x,u[i].y+e.y],p=c[i],v=hs();Lh(v,v,p),eu(v,v,d),this._axesLayout[o]={position:d,rotation:p,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},t.prototype.getAxis=function(e){return this._axesMap.get(e)},t.prototype.dataToPoint=function(e,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(e),r)},t.prototype.eachActiveState=function(e,r,n,a){n==null&&(n=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];V(o,function(x){s.push(e.mapDimension(x)),l.push(i.get(x).model)});for(var u=this.hasAxisBrushed(),c=n;c<a;c++){var d=void 0;if(!u)d="normal";else{d="active";for(var p=e.getValues(s,c),v=0,g=o.length;v<g;v++){var m=l[v].getActiveState(p[v]);if(m==="inactive"){d="inactive";break}}}r(d,c)}},t.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,r=this._axesMap,n=!1,a=0,i=e.length;a<i;a++)r.get(e[a]).model.getActiveState()!=="normal"&&(n=!0);return n},t.prototype.axisCoordToPoint=function(e,r){var n=this._axesLayout[r];return Ql([e,0],n.transform)},t.prototype.getAxisLayout=function(e){return Et(this._axesLayout[e])},t.prototype.getSlidedAxisExpandWindow=function(e){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(e))return{behavior:"none",axisExpandWindow:a};var s=e[n]-r.layoutBase-r.axisExpandWindow0Pos,l,u="slide",c=r.axisCollapseWidth,d=this._model.get("axisExpandSlideTriggerArea"),p=d[0]!=null;if(c)p&&c&&s<i*d[0]?(u="jump",l=s-i*d[2]):p&&c&&s>i*(1-d[0])?(u="jump",l=s-i*(1-d[2])):(l=s-i*d[1])>=0&&(l=s-i*(1-d[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?Rg(l,a,o,"all"):u="none";else{var v=a[1]-a[0],g=o[1]*s/v;a=[sae(0,g-v/2)],a[1]=oae(o[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:u}},t}();function RE(t,e){return oae(sae(t,e[0]),e[1])}function WBe(t,e){var r=e.layoutLength/(e.axisCount-1);return{position:r*t,axisNameAvailableWidth:r,axisLabelShow:!0}}function HBe(t,e){var r=e.layoutLength,n=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return t<o[0]?(s=t*i,c=i):t<=o[1]?(s=e.axisExpandWindow0Pos+t*n-e.axisExpandWindow[0],l=n,u=!0):(s=r-(a-1-t)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}const GBe=UBe;function jBe(t,e){var r=[];return t.eachComponent("parallel",function(n,a){var i=new GBe(n,t,e);i.name="parallel_"+a,i.resize(n,e),n.coordinateSystem=i,i.model=n,r.push(i)}),t.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var a=n.getReferringComponents("parallel",xa).models[0];n.coordinateSystem=a.coordinateSystem}}),r}var YBe={create:jBe};const qBe=YBe;var lae=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.activeIntervals=[],r}return e.prototype.getAreaSelectStyle=function(){return dg([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(r){var n=this.activeIntervals=Et(r);if(n)for(var a=n.length-1;a>=0;a--)ss(n[a])},e.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"},e}(ur);ra(lae,ob);const H7=lae;var gg=!0,pS=Math.min,I0=Math.max,XBe=Math.pow,ZBe=1e4,KBe=6,QBe=6,G7="globalPan",JBe={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},eze={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},j7={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},tze=0,rze=function(t){he(e,t);function e(r){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},Tt(r),n._zr=r,n.group=new It,n._uid="brushController_"+tze++,V(uze,function(a,i){this._handlers[i]=ot(a,this)},n),n}return e.prototype.enableBrush=function(r){return Tt(this._mounted),this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},e.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||dOe(n,G7,this._uid),V(this._handlers,function(a,i){n.on(i,a)}),this._brushType=r.brushType,this._brushOption=Ft(Et(j7),r,!0)},e.prototype._doDisableBrush=function(){var r=this._zr;hOe(r,G7,this._uid),V(this._handlers,function(n,a){r.off(a,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};V(r,function(a){n[a.panelId]=Et(a)})}else this._panels=null;return this},e.prototype.mount=function(r){r=r||{},this._mounted=!0,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},e.prototype.updateCovers=function(r){Tt(this._mounted),r=Oe(r,function(p){return Ft(Et(j7),p,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new xf(a,r,u,l).add(c).update(c).remove(d).execute(),this;function l(p,v){return(p.id!=null?p.id:n+v)+"-"+p.brushType}function u(p,v){return l(p.__brushOption,v)}function c(p,v){var g=r[p];if(v!=null&&a[v]===s)i[p]=a[v];else{var m=i[p]=v!=null?(a[v].__brushOption=g,a[v]):cae(o,uae(o,g));BV(o,m)}}function d(p){a[p]!==s&&o.group.remove(a[p])}},e.prototype.unmount=function(){if(this._mounted)return this.enableBrush(!1),_5(this),this._zr.remove(this.group),this._mounted=!1,this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(dl);function uae(t,e){var r=dI[e.brushType].createCover(t,e);return r.__brushOption=e,dae(r,e),t.group.add(r),r}function cae(t,e){var r=zV(e);return r.endCreating&&(r.endCreating(t,e),dae(e,e.__brushOption)),e}function fae(t,e){var r=e.__brushOption;zV(e).updateCoverShape(t,e,r.range,r)}function dae(t,e){var r=e.z;r==null&&(r=ZBe),t.traverse(function(n){n.z=r,n.z2=r})}function BV(t,e){zV(e).updateCommon(t,e),fae(t,e)}function zV(t){return dI[t.__brushOption.brushType]}function $V(t,e,r){var n=t._panels;if(!n)return gg;var a,i=t._transform;return V(n,function(o){o.isTargetByCursor(e,r,i)&&(a=o)}),a}function hae(t,e){var r=t._panels;if(!r)return gg;var n=e.__brushOption.panelId;return n!=null?r[n]:gg}function _5(t){var e=t._covers,r=e.length;return V(e,function(n){t.group.remove(n)},t),e.length=0,!!r}function mg(t,e){var r=Oe(t._covers,function(n){var a=n.__brushOption,i=Et(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});t.trigger("brush",{areas:r,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function nze(t){var e=t._track;if(!e.length)return!1;var r=e[e.length-1],n=e[0],a=r[0]-n[0],i=r[1]-n[1],o=XBe(a*a+i*i,.5);return o>KBe}function pae(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function vae(t,e,r,n){var a=new It;return a.add(new yr({name:"main",style:FV(r),silent:!0,draggable:!0,cursor:"move",drift:Lt(Y7,t,e,a,["n","s","w","e"]),ondragend:Lt(mg,e,{isEnd:!0})})),V(n,function(i){a.add(new yr({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Lt(Y7,t,e,a,i),ondragend:Lt(mg,e,{isEnd:!0})}))}),a}function gae(t,e,r,n){var a=n.brushStyle.lineWidth||0,i=I0(a,QBe),o=r[0][0],s=r[1][0],l=o-a/2,u=s-a/2,c=r[0][1],d=r[1][1],p=c-i+a/2,v=d-i+a/2,g=c-o,m=d-s,x=g+a,_=m+a;tf(t,e,"main",o,s,g,m),n.transformable&&(tf(t,e,"w",l,u,i,_),tf(t,e,"e",p,u,i,_),tf(t,e,"n",l,u,x,i),tf(t,e,"s",l,v,x,i),tf(t,e,"nw",l,u,i,i),tf(t,e,"ne",p,u,i,i),tf(t,e,"sw",l,v,i,i),tf(t,e,"se",p,v,i,i))}function S5(t,e){var r=e.__brushOption,n=r.transformable,a=e.childAt(0);a.useStyle(FV(r)),a.attr({silent:!n,cursor:n?"move":"default"}),V([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?w5(t,i[0]):ize(t,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?eze[s]+"-resize":null})})}function tf(t,e,r,n,a,i,o){var s=e.childOfName(r);s&&s.setShape(sze(VV(t,e,[[n,a],[n+i,a+o]])))}function FV(t){return wt({strokeNoScale:!0},t.brushStyle)}function mae(t,e,r,n){var a=[pS(t,r),pS(e,n)],i=[I0(t,r),I0(e,n)];return[[a[0],i[0]],[a[1],i[1]]]}function aze(t){return lh(t.group)}function w5(t,e){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=HD(r[e],aze(t));return n[a]}function ize(t,e){var r=[w5(t,e[0]),w5(t,e[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function Y7(t,e,r,n,a,i){var o=r.__brushOption,s=t.toRectRange(o.range),l=yae(e,a,i);V(n,function(u){var c=JBe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=t.fromRectRange(mae(s[0][0],s[1][0],s[0][1],s[1][1])),BV(e,r),mg(e,{isEnd:!1})}function oze(t,e,r,n){var a=e.__brushOption.range,i=yae(t,r,n);V(a,function(o){o[0]+=i[0],o[1]+=i[1]}),BV(t,e),mg(t,{isEnd:!1})}function yae(t,e,r){var n=t.group,a=n.transformCoordToLocal(e,r),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function VV(t,e,r){var n=hae(t,e);return n&&n!==gg?n.clipPath(r,t._transform):Et(r)}function sze(t){var e=pS(t[0][0],t[1][0]),r=pS(t[0][1],t[1][1]),n=I0(t[0][0],t[1][0]),a=I0(t[0][1],t[1][1]);return{x:e,y:r,width:n-e,height:a-r}}function lze(t,e,r){if(!(!t._brushType||cze(t,e.offsetX,e.offsetY))){var n=t._zr,a=t._covers,i=$V(t,e,r);if(!t._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===gg||s.panelId===i.panelId)&&dI[s.brushType].contain(a[o],r[0],r[1]))return}i&&n.setCursorStyle("crosshair")}}function T5(t){var e=t.event;e.preventDefault&&e.preventDefault()}function C5(t,e,r){return t.childOfName("main").contain(e,r)}function bae(t,e,r,n){var a=t._creatingCover,i=t._creatingPanel,o=t._brushOption,s;if(t._track.push(r.slice()),nze(t)||a){if(i&&!a){o.brushMode==="single"&&_5(t);var l=Et(o);l.brushType=q7(l.brushType,i),l.panelId=i===gg?null:i.panelId,a=t._creatingCover=uae(t,l),t._covers.push(a)}if(a){var u=dI[q7(t._brushType,i)],c=a.__brushOption;c.range=u.getCreatingRange(VV(t,a,t._track)),n&&(cae(t,a),u.updateCommon(t,a)),fae(t,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&$V(t,e,r)&&_5(t)&&(s={isEnd:n,removeOnClick:!0});return s}function q7(t,e){return t==="auto"?(Tt(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):t}var uze={mousedown:function(t){if(this._dragging)X7(this,t);else if(!t.target||!t.target.draggable){T5(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var r=this._creatingPanel=$V(this,t,e);r&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,r=t.offsetY,n=this.group.transformCoordToLocal(e,r);if(lze(this,t,n),this._dragging){T5(t);var a=bae(this,t,n,!1);a&&mg(this,a)}},mouseup:function(t){X7(this,t)}};function X7(t,e){if(t._dragging){T5(e);var r=e.offsetX,n=e.offsetY,a=t.group.transformCoordToLocal(r,n),i=bae(t,e,a,!0);t._dragging=!1,t._track=[],t._creatingCover=null,i&&mg(t,i)}}function cze(t,e,r){var n=t._zr;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var dI={lineX:Z7(0),lineY:Z7(1),rect:{createCover:function(t,e){function r(n){return n}return vae({toRectRange:r,fromRectRange:r},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=pae(t);return mae(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,r,n){gae(t,e,r,n)},updateCommon:S5,contain:C5},polygon:{createCover:function(t,e){var r=new It;return r.add(new fo({name:"main",style:FV(e),silent:!0})),r},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new co({name:"main",draggable:!0,drift:Lt(oze,t,e),ondragend:Lt(mg,t,{isEnd:!0})}))},updateCoverShape:function(t,e,r,n){e.childAt(0).setShape({points:VV(t,e,r)})},updateCommon:S5,contain:C5}};function Z7(t){return{createCover:function(e,r){return vae({toRectRange:function(n){var a=[n,[0,100]];return t&&a.reverse(),a},fromRectRange:function(n){return n[t]}},e,r,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var r=pae(e),n=pS(r[0][t],r[1][t]),a=I0(r[0][t],r[1][t]);return[n,a]},updateCoverShape:function(e,r,n,a){var i,o=hae(e,r);if(o!==gg&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(t);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[n,i];t&&l.reverse(),gae(e,r,l,a)},updateCommon:S5,contain:C5}}const UV=rze;function xae(t){return t=WV(t),function(e){return R3(e,t)}}function _ae(t,e){return t=WV(t),function(r){var n=e??r,a=n?t.width:t.height,i=n?t.x:t.y;return[i,i+(a||0)]}}function Sae(t,e,r){var n=WV(t);return function(a,i){return n.contain(i[0],i[1])&&!lI(a,e,r)}}function WV(t){return Ht.create(t)}var fze=["axisLine","axisTickLabel","axisName"],dze=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){t.prototype.init.apply(this,arguments),(this._brushController=new UV(n.getZr())).on("brush",ot(this._onBrush,this))},e.prototype.render=function(r,n,a,i){if(!hze(r,n,i)){this.axisModel=r,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new It,this.group.add(this._axisGroup),!!r.get("show")){var s=vze(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,d=r.axis.dim,p=l.getAxisLayout(d),v=Ce({strokeContainThreshold:c},p),g=new Sf(r,v);V(fze,g.add,g),this._axisGroup.add(g.getGroup()),this._refreshBrushController(v,u,r,s,c,a),WS(o,this._axisGroup,r)}}},e.prototype._refreshBrushController=function(r,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),d=Ht.create({x:l[0],y:-o/2,width:u,height:o});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:xae(d),isTargetByCursor:Sae(d,s,i),getLinearBrushOtherExtent:_ae(d,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(pze(a))},e.prototype._onBrush=function(r){var n=r.areas,a=this.axisModel,i=a.axis,o=Oe(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})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Pn);function hze(t,e,r){return r&&r.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:r})[0]===t}function pze(t){var e=t.axis;return Oe(t.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(r[0],!0),e.dataToCoord(r[1],!0)]}})}function vze(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}const gze=dze;var mze={type:"axisAreaSelect",event:"axisAreaSelected"};function yze(t){t.registerAction(mze,function(e,r){r.eachComponent({mainType:"parallelAxis",query:e},function(n){n.axis.model.setActiveIntervals(e.intervals)})}),t.registerAction("parallelAxisExpand",function(e,r){r.eachComponent({mainType:"parallel",query:e},function(n){n.setAxisExpand(e)})})}var bze={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function wae(t){t.registerComponentView(kBe),t.registerComponentModel(BBe),t.registerCoordinateSystem("parallel",qBe),t.registerPreprocessor(MBe),t.registerComponentModel(H7),t.registerComponentView(gze),D0(t,"parallel",H7,bze),yze(t)}function xze(t){rr(wae),t.registerChartView(_Be),t.registerSeriesModel(CBe),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,RBe)}var _ze=function(){function t(){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 t}(),Sze=function(t){he(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new _ze},e.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()},e.prototype.highlight=function(){yf(this)},e.prototype.downplay=function(){bf(this)},e}(ir),wze=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._focusAdjacencyDisabled=!1,r}return e.prototype.render=function(r,n,a){var i=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,d=r.getData(),p=r.getData("edge"),v=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(g){var m=new Sze,x=Pt(m);x.dataIndex=g.dataIndex,x.seriesIndex=r.seriesIndex,x.dataType="edge";var _=g.getModel(),w=_.getModel("lineStyle"),T=w.get("curveness"),A=g.node1.getLayout(),M=g.node1.getModel(),D=M.get("localX"),P=M.get("localY"),O=g.node2.getLayout(),k=g.node2.getModel(),N=k.get("localX"),$=k.get("localY"),H=g.getLayout(),F,W,j,X,te,J,ie,se;switch(m.shape.extent=Math.max(1,H.dy),m.shape.orient=v,v==="vertical"?(F=(D!=null?D*u:A.x)+H.sy,W=(P!=null?P*c:A.y)+A.dy,j=(N!=null?N*u:O.x)+H.ty,X=$!=null?$*c:O.y,te=F,J=W*(1-T)+X*T,ie=j,se=W*T+X*(1-T)):(F=(D!=null?D*u:A.x)+A.dx,W=(P!=null?P*c:A.y)+H.sy,j=N!=null?N*u:O.x,X=($!=null?$*c:O.y)+H.ty,te=F*(1-T)+j*T,J=W,ie=F*T+j*(1-T),se=X),m.setShape({x1:F,y1:W,x2:j,y2:X,cpx1:te,cpy1:J,cpx2:ie,cpy2:se}),m.useStyle(w.getItemStyle()),m.style.fill){case"source":m.style.fill=g.node1.getVisual("color"),m.style.decal=g.node1.getVisual("style").decal;break;case"target":m.style.fill=g.node2.getVisual("color"),m.style.decal=g.node2.getVisual("style").decal;break;case"gradient":var le=g.node1.getVisual("color"),be=g.node2.getVisual("color");at(le)&&at(be)&&(m.style.fill=new Y0(0,0,+(v==="horizontal"),+(v==="vertical"),[{color:le,offset:0},{color:be,offset:1}]))}Ti(m,$a(_,"edgeLabel"),{labelFetcher:r,labelDataIndex:g.dataIndex,defaultText:""+_.get("value")}),m.setTextConfig({position:"inside"});var Me=_.getModel("emphasis");wi(m,_,"lineStyle",function(Ue){return Ue.getItemStyle()}),s.add(m),p.setItemGraphicEl(g.dataIndex,m);var Se=Me.get("focus");Zn(m,Se==="adjacency"?g.getAdjacentDataIndices():Se,Me.get("blurScope"),Me.get("disabled")),Pt(m).dataType="edge"}),o.eachNode(function(g){var m=g.getLayout(),x=g.getModel(),_=x.get("localX"),w=x.get("localY"),T=x.getModel("emphasis"),A=new yr({shape:{x:_!=null?_*u:m.x,y:w!=null?w*c:m.y,width:m.dx,height:m.dy},style:x.getModel("itemStyle").getItemStyle(),z2:10});Ti(A,$a(x),{labelFetcher:r,labelDataIndex:g.dataIndex,defaultText:g.id}),A.disableLabelAnimation=!0,A.setStyle("fill",g.getVisual("color")),A.setStyle("decal",g.getVisual("style").decal),wi(A,x),s.add(A),d.setItemGraphicEl(g.dataIndex,A),Pt(A).dataType="node";var M=T.get("focus");Zn(A,M==="adjacency"?g.getAdjacentDataIndices():M,T.get("blurScope"),T.get("disabled"))}),d.eachItemGraphicEl(function(g,m){var x=d.getItemModel(m);x.get("draggable")&&(g.drift=function(_,w){i._focusAdjacencyDisabled=!0,this.shape.x+=_,this.shape.y+=w,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:d.getRawIndex(m),localX:this.shape.x/u,localY:this.shape.y/c})},g.ondragend=function(){i._focusAdjacencyDisabled=!1},g.draggable=!0,g.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(Tze(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Kr);function Tze(t,e,r){var n=new yr({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return In(n,{shape:{width:t.width+20}},e,r),n}const Cze=wze;var Aze=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.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++)if(o[l].depth!=null&&o[l].depth>=0)s[o[l].depth]=new Xr(o[l],this,n);else throw new Error("levels[i].depth is mandatory and should be natural number");if(i&&a){var u=aae(i,a,this,!0,c);return u.data}function c(d,p){d.wrapMethod("getItemModel",function(v,g){var m=v.parentModel,x=m.getData().getItemLayout(g);if(x){var _=x.depth,w=m.levelModels[_];w&&(v.parentModel=w)}return v}),p.wrapMethod("getItemModel",function(v,g){var m=v.parentModel,x=m.getGraph().getEdgeByIndex(g),_=x.node1.getLayout();if(_){var w=_.depth,T=m.levelModels[w];T&&(v.parentModel=T)}return v})}},e.prototype.setNodePosition=function(r,n){var a=this.option.data||this.option.nodes,i=a[r];i.localX=n[0],i.localY=n[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(r,n,a){function i(v){return isNaN(v)||v==null}if(a==="edge"){var o=this.getDataParams(r,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Fa("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(r),d=c.getLayout().value,p=this.getDataParams(r,a).data.name;return Fa("nameValue",{name:p!=null?p+"":null,value:d,noValue:i(d)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(r,n){var a=t.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},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(xn);const Eze=Aze;function Rze(t,e){t.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),a=r.get("nodeGap"),i=Mze(r,e);r.layoutInfo=i;var o=i.width,s=i.height,l=r.getGraph(),u=l.nodes,c=l.edges;Ize(u);var d=Br(u,function(m){return m.getLayout().value===0}),p=d.length!==0?0:r.get("layoutIterations"),v=r.get("orient"),g=r.get("nodeAlign");Dze(u,c,n,a,o,s,p,v,g)})}function Mze(t,e){return _a(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Dze(t,e,r,n,a,i,o,s,l){Pze(t,e,r,a,i,s,l),Nze(t,e,i,a,n,o,s),Gze(t,s)}function Ize(t){V(t,function(e){var r=ch(e.outEdges,bM),n=ch(e.inEdges,bM),a=e.getValue()||0,i=Math.max(r,n,a);e.setLayout({value:i},!0)})}function Pze(t,e,r,n,a,i,o){for(var s=[],l=[],u=[],c=[],d=0,p=0;p<e.length;p++)s[p]=1;for(var p=0;p<t.length;p++)l[p]=t[p].inEdges.length,l[p]===0&&u.push(t[p]);for(var v=-1;u.length;){for(var g=0;g<u.length;g++){var m=u[g],x=m.hostGraph.data.getRawDataItem(m.dataIndex),_=x.depth!=null&&x.depth>=0;_&&x.depth>v&&(v=x.depth),m.setLayout({depth:_?x.depth:d},!0),i==="vertical"?m.setLayout({dy:r},!0):m.setLayout({dx:r},!0);for(var w=0;w<m.outEdges.length;w++){var T=m.outEdges[w],A=e.indexOf(T);s[A]=0;var M=T.node2,D=t.indexOf(M);--l[D]===0&&c.indexOf(M)<0&&c.push(M)}}++d,u=c,c=[]}for(var p=0;p<s.length;p++)if(s[p]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var P=v>d-1?v:d-1;o&&o!=="left"&&Lze(t,o,i,P);var O=i==="vertical"?(a-r)/P:(n-r)/P;kze(t,O,i)}function Tae(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return e.depth!=null&&e.depth>=0}function Lze(t,e,r,n){if(e==="right"){for(var a=[],i=t,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 c=l.inEdges[u];a.indexOf(c.node1)<0&&a.push(c.node1)}}i=a,a=[],++o}V(t,function(d){Tae(d)||d.setLayout({depth:Math.max(0,n-d.getLayout().skNodeHeight)},!0)})}else e==="justify"&&Oze(t,n)}function Oze(t,e){V(t,function(r){!Tae(r)&&!r.outEdges.length&&r.setLayout({depth:e},!0)})}function kze(t,e,r){V(t,function(n){var a=n.getLayout().depth*e;r==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function Nze(t,e,r,n,a,i,o){var s=Bze(t,o);zze(s,e,r,n,a,o),NB(s,a,r,n,o);for(var l=1;i>0;i--)l*=.99,$ze(s,l,o),NB(s,a,r,n,o),Hze(s,l,o),NB(s,a,r,n,o)}function Bze(t,e){var r=[],n=e==="vertical"?"y":"x",a=A$(t,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,o){return i-o}),V(a.keys,function(i){r.push(a.buckets.get(i))}),r}function zze(t,e,r,n,a,i){var o=1/0;V(t,function(s){var l=s.length,u=0;V(s,function(d){u+=d.getLayout().value});var c=i==="vertical"?(n-(l-1)*a)/u:(r-(l-1)*a)/u;c<o&&(o=c)}),V(t,function(s){V(s,function(l,u){var c=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),V(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function NB(t,e,r,n,a){var i=a==="vertical"?"x":"y";V(t,function(o){o.sort(function(m,x){return m.getLayout()[i]-x.getLayout()[i]});for(var s,l,u,c=0,d=o.length,p=a==="vertical"?"dx":"dy",v=0;v<d;v++)l=o[v],u=c-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[p]+e;var g=a==="vertical"?n:r;if(u=c-e-g,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var v=d-2;v>=0;--v)l=o[v],u=l.getLayout()[i]+l.getLayout()[p]+e-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function $ze(t,e,r){V(t.slice().reverse(),function(n){V(n,function(a){if(a.outEdges.length){var i=ch(a.outEdges,Fze,r)/ch(a.outEdges,bM);if(isNaN(i)){var o=a.outEdges.length;i=o?ch(a.outEdges,Vze,r)/o:0}if(r==="vertical"){var s=a.getLayout().x+(i-xh(a,r))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-xh(a,r))*e;a.setLayout({y:l},!0)}}})})}function Fze(t,e){return xh(t.node2,e)*t.getValue()}function Vze(t,e){return xh(t.node2,e)}function Uze(t,e){return xh(t.node1,e)*t.getValue()}function Wze(t,e){return xh(t.node1,e)}function xh(t,e){return e==="vertical"?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function bM(t){return t.getValue()}function ch(t,e,r){for(var n=0,a=t.length,i=-1;++i<a;){var o=+e(t[i],r);isNaN(o)||(n+=o)}return n}function Hze(t,e,r){V(t,function(n){V(n,function(a){if(a.inEdges.length){var i=ch(a.inEdges,Uze,r)/ch(a.inEdges,bM);if(isNaN(i)){var o=a.inEdges.length;i=o?ch(a.inEdges,Wze,r)/o:0}if(r==="vertical"){var s=a.getLayout().x+(i-xh(a,r))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-xh(a,r))*e;a.setLayout({y:l},!0)}}})})}function Gze(t,e){var r=e==="vertical"?"x":"y";V(t,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]})}),V(t,function(n){var a=0,i=0;V(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),V(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function jze(t){t.eachSeriesByType("sankey",function(e){var r=e.getGraph(),n=r.nodes,a=r.edges;if(n.length){var i=1/0,o=-1/0;V(n,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),V(n,function(s){var l=new xi({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&V(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Yze(t){t.registerChartView(Cze),t.registerSeriesModel(Eze),t.registerLayout(Rze),t.registerVisual(jze),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,r){r.eachComponent({mainType:"series",subType:"sankey",query:e},function(n){n.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Cae=function(){function t(){}return t.prototype.getInitialData=function(e,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;o==="category"?(e.layout="horizontal",n=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",n=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,d=this._baseAxisDim=u[c],p=u[1-c],v=[a,i],g=v[c].get("type"),m=v[1-c].get("type"),x=e.data;if(x&&l){var _=[];V(x,function(A,M){var D;Le(A)?(D=A.slice(),A.unshift(M)):Le(A.value)?(D=Ce({},A),D.value=D.value.slice(),A.value.unshift(M)):D=A,_.push(D)}),e.data=_}var w=this.defaultValueDimensions,T=[{name:d,type:sM(g),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:p,type:sM(m),dimsDef:w.slice()}];return sb(this,{coordDimensions:T,dimensionsCount:w.length+1,encodeDefaulter:Lt(qee,T,this)})},t.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},t}(),Aae=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.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 e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(xn);ra(Aae,Cae,!0);const qze=Aae;var Xze=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){var i=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),d=K7(c,i,u,l,!0);i.setItemGraphicEl(u,d),o.add(d)}}).update(function(u,c){var d=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(d);return}var p=i.getItemLayout(u);d?(nu(d),Eae(p,d,i,u)):d=K7(p,i,u,l),o.add(d),i.setItemGraphicEl(u,d)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(r){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},e.type="boxplot",e}(Kr),Zze=function(){function t(){}return t}(),Kze=function(t){he(e,t);function e(r){var n=t.call(this,r)||this;return n.type="boxplotBoxPath",n}return e.prototype.getDefaultShape=function(){return new Zze},e.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])},e}(ir);function K7(t,e,r,n,a){var i=t.ends,o=new Kze({shape:{points:a?Qze(i,n,t):i}});return Eae(t,o,e,r,a),o}function Eae(t,e,r,n,a){var i=r.hostModel,o=HS[a?"initProps":"updateProps"];o(e,{shape:{points:t.ends}},i,n),e.useStyle(r.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=r.getItemModel(n),l=s.getModel("emphasis");wi(e,s),Zn(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function Qze(t,e,r){return Oe(t,function(n){return n=n.slice(),n[e]=r.initBaseline,n})}const Jze=Xze;var M1=V;function e$e(t){var e=t$e(t);M1(e,function(r){var n=r.seriesModels;n.length&&(r$e(r),M1(n,function(a,i){n$e(a,r.boxOffsetList[i],r.boxWidthList[i])}))})}function t$e(t){var e=[],r=[];return t.eachSeriesByType("boxplot",function(n){var a=n.getBaseAxis(),i=Qt(r,a);i<0&&(i=r.length,r[i]=a,e[i]={axis:a,seriesModels:[]}),e[i].seriesModels.push(n)}),e}function r$e(t){var e=t.axis,r=t.seriesModels,n=r.length,a=t.boxWidthList=[],i=t.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;M1(r,function(g){l=Math.max(l,g.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}M1(r,function(g){var m=g.get("boxWidth");Le(m)||(m=[m,m]),o.push([Qe(m[0],s)||0,Qe(m[1],s)||0])});var c=s*.8-2,d=c/n*.3,p=(c-d*(n-1))/n,v=p/2-c/2;M1(r,function(g,m){i.push(v),v+=d+p,a.push(Math.min(Math.max(p,o[m][0]),o[m][1]))})}function n$e(t,e,r){var n=t.coordinateSystem,a=t.getData(),i=r/2,o=t.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),c=a.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var d=0;d<a.count();d++){var p=a.get(u,d),v=T(p,c[2],d),g=T(p,c[0],d),m=T(p,c[1],d),x=T(p,c[3],d),_=T(p,c[4],d),w=[];A(w,m,!1),A(w,x,!0),w.push(g,m,_,x),M(w,g),M(w,_),M(w,v),a.setItemLayout(d,{initBaseline:v[s],ends:w})}function T(D,P,O){var k=a.get(P,O),N=[];N[o]=D,N[s]=k;var $;return isNaN(D)||isNaN(k)?$=[NaN,NaN]:($=n.dataToPoint(N),$[o]+=e),$}function A(D,P,O){var k=P.slice(),N=P.slice();k[o]+=i,N[o]-=i,O?D.push(k,N):D.push(N,k)}function M(D,P){var O=P.slice(),k=P.slice();O[o]-=i,k[o]+=i,D.push(O,k)}}function a$e(t,e){e=e||{};for(var r=[],n=[],a=e.boundIQR,i=a==="none"||a===0,o=0;o<t.length;o++){var s=ss(t[o].slice()),l=eR(s,.25),u=eR(s,.5),c=eR(s,.75),d=s[0],p=s[s.length-1],v=(a??1.5)*(c-l),g=i?d:Math.max(d,l-v),m=i?p:Math.min(p,c+v),x=e.itemNameFormatter,_=vt(x)?x({value:o}):at(x)?x.replace("{value}",o+""):o+"";r.push([_,g,l,u,c,m]);for(var w=0;w<s.length;w++){var T=s[w];if(T<g||T>m){var A=[_,T];n.push(A)}}}return{boxData:r,outliers:n}}var i$e={type:"echarts:boxplot",transform:function(e){var r=e.upstream;if(r.sourceFormat!==Wi){var n="";n=so("source data is not applicable for this boxplot transform. Expect number[][]."),Or(n)}var a=a$e(r.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function o$e(t){t.registerSeriesModel(qze),t.registerChartView(Jze),t.registerLayout(e$e),t.registerTransform(i$e)}var s$e=["color","borderColor"],l$e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},e.prototype.incrementalPrepareRender=function(r,n,a){this._clear(),this._updateDrawMode(r)},e.prototype.incrementalRender=function(r,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},e.prototype.eachRendered=function(r){Oh(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.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();this._data||i.removeAll(),n.diff(a).add(function(c){if(n.hasValue(c)){var d=n.getItemLayout(c);if(s&&Q7(u,d))return;var p=BB(d,c,!0);In(p,{shape:{points:d.ends}},r,c),zB(p,n,c,o),i.add(p),n.setItemGraphicEl(c,p)}}).update(function(c,d){var p=a.getItemGraphicEl(d);if(!n.hasValue(c)){i.remove(p);return}var v=n.getItemLayout(c);if(s&&Q7(u,v)){i.remove(p);return}p?(Sr(p,{shape:{points:v.ends}},r,c),nu(p)):p=BB(v),zB(p,n,c,o),i.add(p),n.setItemGraphicEl(c,p)}).remove(function(c){var d=a.getItemGraphicEl(c);d&&i.remove(d)}).execute(),this._data=n},e.prototype._renderLarge=function(r){this._clear(),J7(r,this.group);var n=r.get("clip",!0)?sI(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(r,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=a.getItemLayout(o),l=BB(s);zB(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(r,n){J7(n,this.group,this._progressiveEls,!0)},e.prototype.remove=function(r){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Kr),u$e=function(){function t(){}return t}(),c$e=function(t){he(e,t);function e(r){var n=t.call(this,r)||this;return n.type="normalCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new u$e},e.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]))},e}(ir);function BB(t,e,r){var n=t.ends;return new c$e({shape:{points:r?f$e(n,t):n},z2:100})}function Q7(t,e){for(var r=!0,n=0;n<e.ends.length;n++)if(t.contain(e.ends[n][0],e.ends[n][1])){r=!1;break}return r}function zB(t,e,r,n){var a=e.getItemModel(r);t.useStyle(e.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.__simpleBox=n,wi(t,a)}function f$e(t,e){return Oe(t,function(r){return r=r.slice(),r[1]=e.initBaseline,r})}var d$e=function(){function t(){}return t}(),$B=function(t){he(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new d$e},e.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},e}(ir);function J7(t,e,r,n){var a=t.getData(),i=a.getLayout("largePoints"),o=new $B({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new $B({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new $B({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),FB(1,o,t),FB(-1,s,t),FB(0,l,t),n&&(o.incremental=!0,s.incremental=!0),r&&r.push(o,s)}function FB(t,e,r,n){var a=r.get(["itemStyle",t>0?"borderColor":"borderColor0"])||r.get(["itemStyle",t>0?"color":"color0"]);t===0&&(a=r.get(["itemStyle","borderColorDoji"]));var i=r.getModel("itemStyle").getItemStyle(s$e);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const h$e=l$e;var Rae=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(r,n,a){var i=n.getItemLayout(r);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(xn);ra(Rae,Cae,!0);const p$e=Rae;function v$e(t){!t||!Le(t.series)||V(t.series,function(e){St(e)&&e.type==="k"&&(e.type="candlestick")})}var g$e=["itemStyle","borderColor"],m$e=["itemStyle","borderColor0"],y$e=["itemStyle","borderColorDoji"],b$e=["itemStyle","color"],x$e=["itemStyle","color0"],_$e={seriesType:"candlestick",plan:rb(),performRawSeries:!0,reset:function(t,e){function r(i,o){return o.get(i>0?b$e:x$e)}function n(i,o){return o.get(i===0?y$e:i>0?g$e:m$e)}if(!e.isSeriesFiltered(t)){var a=t.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=r(u,l),c.stroke=n(u,l)||c.fill;var d=o.ensureUniqueItemVisual(s,"style");Ce(d,c)}}}}}};const S$e=_$e;var w$e={seriesType:"candlestick",plan:rb(),reset:function(t){var e=t.coordinateSystem,r=t.getData(),n=T$e(t,r),a=0,i=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[a])),l=Oe(r.mapDimensionsAll(o[i]),r.getDimensionIndex,r),u=l[0],c=l[1],d=l[2],p=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:t.pipelineContext.large?g:v};function v(m,x){for(var _,w=x.getStore();(_=m.next())!=null;){var T=w.get(s,_),A=w.get(u,_),M=w.get(c,_),D=w.get(d,_),P=w.get(p,_),O=Math.min(A,M),k=Math.max(A,M),N=te(O,T),$=te(k,T),H=te(D,T),F=te(P,T),W=[];J(W,$,0),J(W,N,1),W.push(se(F),se($),se(H),se(N));var j=x.getItemModel(_),X=!!j.get(["itemStyle","borderColorDoji"]);x.setItemLayout(_,{sign:e9(w,_,A,M,c,X),initBaseline:A>M?$[i]:N[i],ends:W,brushRect:ie(D,P,T)})}function te(le,be){var Me=[];return Me[a]=be,Me[i]=le,isNaN(be)||isNaN(le)?[NaN,NaN]:e.dataToPoint(Me)}function J(le,be,Me){var Se=be.slice(),Ue=be.slice();Se[a]=nR(Se[a]+n/2,1,!1),Ue[a]=nR(Ue[a]-n/2,1,!0),Me?le.push(Se,Ue):le.push(Ue,Se)}function ie(le,be,Me){var Se=te(le,Me),Ue=te(be,Me);return Se[a]-=n/2,Ue[a]-=n/2,{x:Se[0],y:Se[1],width:n,height:Ue[1]-Se[1]}}function se(le){return le[a]=nR(le[a],1),le}}function g(m,x){for(var _=nc(m.count*4),w=0,T,A=[],M=[],D,P=x.getStore(),O=!!t.get(["itemStyle","borderColorDoji"]);(D=m.next())!=null;){var k=P.get(s,D),N=P.get(u,D),$=P.get(c,D),H=P.get(d,D),F=P.get(p,D);if(isNaN(k)||isNaN(H)||isNaN(F)){_[w++]=NaN,w+=3;continue}_[w++]=e9(P,D,N,$,c,O),A[a]=k,A[i]=H,T=e.dataToPoint(A,null,M),_[w++]=T?T[0]:NaN,_[w++]=T?T[1]:NaN,A[i]=F,T=e.dataToPoint(A,null,M),_[w++]=T?T[1]:NaN}x.setLayout("largePoints",_)}}};function e9(t,e,r,n,a,i){var o;return r>n?o=-1:r<n?o=1:o=i?0:e>0?t.get(a,e-1)<=n?1:-1:1,o}function T$e(t,e){var r=t.getBaseAxis(),n,a=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/e.count()),i=Qe($t(t.get("barMaxWidth"),a),a),o=Qe($t(t.get("barMinWidth"),1),a),s=t.get("barWidth");return s!=null?Qe(s,a):Math.max(Math.min(a/2,i),o)}const C$e=w$e;function A$e(t){t.registerChartView(h$e),t.registerSeriesModel(p$e),t.registerPreprocessor(v$e),t.registerVisual(S$e),t.registerLayout(C$e)}function t9(t,e){var r=e.rippleEffectColor||e.color;t.eachChild(function(n){n.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?r:null,fill:e.brushType==="fill"?r:null}})})}var E$e=function(t){he(e,t);function e(r,n){var a=t.call(this)||this,i=new ZS(r,n),o=new It;return a.add(i),a.add(o),a.updateData(r,n),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.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=fa(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)}t9(o,r)},e.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}}t9(a,r)},e.prototype.highlight=function(){yf(this)},e.prototype.downplay=function(){bf(this)},e.prototype.getSymbolType=function(){var r=this.childAt(0);return r&&r.getSymbolType()},e.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=YS(r.getItemVisual(n,"symbolSize")),c=r.getItemVisual(n,"style"),d=c&&c.fill,p=s.getModel("emphasis");o.setScale(u),o.traverse(function(x){x.setStyle("fill",d)});var v=ab(r.getItemVisual(n,"symbolOffset"),u);v&&(o.x=v[0],o.y=v[1]);var g=r.getItemVisual(n,"symbolRotate");o.rotation=(g||0)*Math.PI/180||0;var m={};m.showEffectOn=i.get("showEffectOn"),m.rippleScale=s.get(["rippleEffect","scale"]),m.brushType=s.get(["rippleEffect","brushType"]),m.period=s.get(["rippleEffect","period"])*1e3,m.effectOffset=n/r.count(),m.z=i.getShallow("z")||0,m.zlevel=i.getShallow("zlevel")||0,m.symbolType=l,m.color=d,m.rippleEffectColor=s.get(["rippleEffect","color"]),m.rippleNumber=s.get(["rippleEffect","number"]),m.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(m):this.startEffectAnimation(m),this._effectCfg=m):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(x){x==="emphasis"?m.showEffectOn!=="render"&&a.startEffectAnimation(m):x==="normal"&&m.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=m,Zn(this,p.get("focus"),p.get("blurScope"),p.get("disabled"))},e.prototype.fadeOut=function(r){r&&r()},e}(It);const R$e=E$e;var M$e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this._symbolDraw=new KS(R$e)},e.prototype.render=function(r,n,a){var i=r.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(r)}),this.group.add(o.group)},e.prototype._getClipShape=function(r){var n=r.coordinateSystem,a=n&&n.getArea&&n.getArea();return r.get("clip",!0)?a:null},e.prototype.updateTransform=function(r,n,a){var i=r.getData();this.group.dirty();var o=QS("").reset(r,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(r){var n=r.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=GQ(n.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(Kr);const D$e=M$e;var I$e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,n){return mc(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(r,n,a){return a.point(n.getItemLayout(r))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.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},e}(xn);const P$e=I$e;function L$e(t){t.registerChartView(D$e),t.registerSeriesModel(P$e),t.registerLayout(QS("effectScatter"))}var O$e=function(t){he(e,t);function e(r,n,a){var i=t.call(this)||this;return i.add(i.createLine(r,n,a)),i._updateEffectSymbol(r,n),i}return e.prototype.createLine=function(r,n,a){return new kV(r,n,a)},e.prototype._updateEffectSymbol=function(r,n){var a=r.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");Le(o)||(o=[o,o]);var l=r.getItemVisual(n,"style"),u=i.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=fa(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(i.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(r,i,n))},e.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"),c=n.get("constantSpeed"),d=ca(n.get("delay"),function(v){return v/r.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),c>0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var p=void 0;vt(d)?p=d(a):p=d,i.__t>0&&(p=-s*i.__t),this._animateSymbol(i,s,p,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.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()}},e.prototype._getLineLength=function(r){return of(r.__p1,r.__cp1)+of(r.__cp1,r.__p2)},e.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]},e.prototype.updateData=function(r,n,a){this.childAt(0).updateData(r,n,a),this._updateEffectSymbol(r,n)},e.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=ni,c=f$;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var d=r.__t<1?c(n[0],i[0],a[0],o):c(a[0],i[0],n[0],1-o),p=r.__t<1?c(n[1],i[1],a[1],o):c(a[1],i[1],n[1],1-o);r.rotation=-Math.atan2(p,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT<r.__t?(r.scaleY=of(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*of(n,s):r.scaleY=this._symbolScale[1]),r.__lastT=r.__t,r.ignore=!1,r.x=s[0],r.y=s[1]},e.prototype.updateLayout=function(r,n){this.childAt(0).updateLayout(r,n);var a=r.getItemModel(n).getModel("effect");this._updateEffectAnimation(r,a,n)},e}(It);const Mae=O$e;var k$e=function(t){he(e,t);function e(r,n,a){var i=t.call(this)||this;return i._createPolyline(r,n,a),i}return e.prototype._createPolyline=function(r,n,a){var i=r.getItemLayout(n),o=new fo({shape:{points:i}});this.add(o),this._updateCommonStl(r,n,a)},e.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childAt(0),s={shape:{points:r.getItemLayout(n)}};Sr(o,s,i,n),this._updateCommonStl(r,n,a)},e.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,c=a&&a.emphasisDisabled;if(!a||r.hasItemOption){var d=o.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),c=d.get("disabled"),l=d.get("focus"),u=d.get("blurScope")}i.useStyle(r.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var p=i.ensureState("emphasis");p.style=s,Zn(this,l,u,c)},e.prototype.updateLayout=function(r,n){var a=this.childAt(0);a.setShape("points",r.getItemLayout(n))},e}(It);const Dae=k$e;var N$e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._lastFrame=0,r._lastFramePercent=0,r}return e.prototype.createLine=function(r,n,a){return new Dae(r,n,a)},e.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+=of(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},e.prototype._getLineLength=function(){return this._length},e.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 c=(n-i[l])/(i[l+1]-i[l]),d=a[l],p=a[l+1];r.x=d[0]*(1-c)+c*p[0],r.y=d[1]*(1-c)+c*p[1];var v=r.__t<1?p[0]-d[0]:d[0]-p[0],g=r.__t<1?p[1]-d[1]:d[1]-p[1];r.rotation=-Math.atan2(g,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},e}(Mae);const B$e=N$e;var z$e=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),$$e=function(t){he(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new z$e},e.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++],c=a[o++],d=a[o++],p=a[o++];if(r.moveTo(u,c),i>0){var v=(u+d)/2-(c-p)*i,g=(c+p)/2-(d-u)*i;r.quadraticCurveTo(v,g,d,p)}else r.lineTo(d,p)}this.incremental&&(this._off=o,this.notClear=!0)},e.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 c=i[u++];if(c>0)for(var d=i[u++],p=i[u++],v=1;v<c;v++){var g=i[u++],m=i[u++];if(Hd(d,p,g,m,s,r,n))return l}l++}else for(var l=0,u=0;u<i.length;){var d=i[u++],p=i[u++],g=i[u++],m=i[u++];if(o>0){var x=(d+g)/2-(p-m)*o,_=(p+m)/2-(g-d)*o;if(zJ(d,p,x,_,g,m,s,r,n))return l}else if(Hd(d,p,g,m,s,r,n))return l;l++}return-1},e.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},e.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 c=a[u++],d=a[u++];i=Math.min(c,i),s=Math.max(c,s),o=Math.min(d,o),l=Math.max(d,l)}r=this._rect=new Ht(i,o,s,l)}return r},e}(ir),F$e=function(){function t(){this.group=new It}return t.prototype.updateData=function(e){this._clear();var r=this._create();r.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(r,e)},t.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(e,r){var n=this._newAdded[0],a=r.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+a.length);s.set(i),s.set(a,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),this._setCommon(l,r),l.__startIndex=e.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new $$e({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},t.prototype._setCommon=function(e,r,n){var a=r.hostModel;e.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),e.useStyle(a.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=r.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=Pt(e);o.seriesIndex=a.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const V$e=F$e;var U$e={seriesType:"lines",plan:rb(),reset:function(t){var e=t.coordinateSystem;if(!e){Si("The lines series must have a coordinate system.");return}var r=t.get("polyline"),n=t.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,c=a.start;c<a.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var d=0,p=[],c=a.start;c<a.end;c++){var v=t.getLineCoords(c,o);r&&(s[d++]=v);for(var g=0;g<v;g++)p=e.dataToPoint(o[g],!1,p),s[d++]=p[0],s[d++]=p[1]}i.setLayout("linesPoints",s)}else for(var c=a.start;c<a.end;c++){var m=i.getItemModel(c),v=t.getLineCoords(c,o),x=[];if(r)for(var _=0;_<v;_++)x.push(e.dataToPoint(o[_]));else{x[0]=e.dataToPoint(o[0]),x[1]=e.dataToPoint(o[1]);var w=m.get(["lineStyle","curveness"]);+w&&(x[2]=[(x[0][0]+x[1][0])/2-(x[0][1]-x[1][1])*w,(x[0][1]+x[1][1])/2-(x[1][0]-x[0][0])*w])}i.setItemLayout(c,x)}}}}};const Iae=U$e;var W$e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.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(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(r)&&l>0&&(c?console.warn("SVG render mode doesn't support lines with trail effect"):u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var d=r.get("clip",!0)&&sI(r.coordinateSystem,!1,r);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,a){var i=r.getData(),o=this._updateLineDraw(i,r);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(r,n,a){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},e.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},e.prototype.updateTransform=function(r,n,a){var i=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Iae.reset(r,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(r,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return i&&l&&console.warn("Large lines not support effect"),(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new V$e:new NV(o?i?B$e:Dae:i?Mae:kV),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(r){return!!r.get(["effect","show"])},e.prototype._clearLayer=function(r){var n=r.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},e.prototype.dispose=function(r,n){this.remove(r,n)},e.type="lines",e}(Kr);const H$e=W$e;var G$e=typeof Uint32Array>"u"?Array:Uint32Array,j$e=typeof Float64Array>"u"?Array:Float64Array;function r9(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),t.data=Oe(e,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),CD([a,r[0],r[1]])}))}var Y$e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return e.prototype.init=function(r){r.data=r.data||[],r9(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(r){if(r9(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))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=U1(this._flatCoords,n.flatCoords),this._flatCoordsOffset=U1(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},e.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),a=n.option instanceof Array?n.option:n.getShallow("coords");if(!(a instanceof Array&&a.length>0&&a[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(a)+". Lines must have 2d coords array in data item.");return a},e.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},e.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}},e.prototype._processFlatCoordsArray=function(r){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),_r(r[0])){for(var a=r.length,i=new G$e(a),o=new j$e(a),s=0,l=0,u=0,c=0;c<a;){u++;var d=r[c++];i[l++]=s+n,i[l++]=d;for(var p=0;p<d;p++){var v=r[c++],g=r[c++];if(o[s++]=v,o[s++]=g,c>a)throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:r.length}},e.prototype.getInitialData=function(r,n){{var a=Cg.get(r.coordinateSystem);if(!a)throw new Error("Unknown coordinate system "+r.coordinateSystem)}var i=new Ui(["value"],this);return i.hasItemOption=!1,i.initData(r.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;i.hasItemOption=!0;var c=o.value;if(c!=null)return c instanceof Array?c[u]:c}),i},e.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=i.getItemModel(r),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Fa("nameValue",{name:c.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},e.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+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.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}},e}(xn);const q$e=Y$e;function ME(t){return t instanceof Array||(t=[t,t]),t}var X$e={seriesType:"lines",reset:function(t){var e=ME(t.get("symbol")),r=ME(t.get("symbolSize")),n=t.getData();n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function a(i,o){var s=i.getItemModel(o),l=ME(s.getShallow("symbol",!0)),u=ME(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}}};const Z$e=X$e;function K$e(t){t.registerChartView(H$e),t.registerSeriesModel(q$e),t.registerLayout(Iae),t.registerVisual(Z$e)}var Q$e=256,J$e=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Jl.createCanvas();this.canvas=e}return t.prototype.update=function(e,r,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,p=d.getContext("2d"),v=e.length;d.width=r,d.height=n;for(var g=0;g<v;++g){var m=e[g],x=m[0],_=m[1],w=m[2],T=a(w);p.globalAlpha=T,p.drawImage(s,x-c,_-c)}if(!d.width||!d.height)return d;for(var A=p.getImageData(0,0,d.width,d.height),M=A.data,D=0,P=M.length,O=this.minOpacity,k=this.maxOpacity,N=k-O;D<P;){var T=M[D+3]/256,$=Math.floor(T*(Q$e-1))*4;if(T>0){var H=o(T)?l:u;T>0&&(T=T*N+O),M[D++]=H[$],M[D++]=H[$+1],M[D++]=H[$+2],M[D++]=H[$+3]*T*256}else D+=4}return p.putImageData(A,0,0),d},t.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Jl.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;e.width=n,e.height=n;var a=e.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-r,r,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},t.prototype._getGradient=function(e,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++)e[r](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},t}();const e5e=J$e;function t5e(t,e,r){var n=t[1]-t[0];e=Oe(e,function(o){return{interval:[(o.interval[0]-t[0])/n,(o.interval[1]-t[0])/n]}});var a=e.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&r[s]}}function r5e(t,e){var r=t[1]-t[0];return e=[(e[0]-t[0])/r,(e[1]-t[0])/r],function(n){return n>=e[0]&&n<=e[1]}}function n9(t){var e=t.dimensions;return e[0]==="lng"&&e[1]==="lat"}var n5e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){var i;if(n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(i=s)})}),!i)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,a,0,r.getData().count()):n9(o)&&this._renderOnGeo(o,r,i,a)},e.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll()},e.prototype.incrementalRender=function(r,n,a,i){var o=n.coordinateSystem;o&&(n9(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,r.start,r.end,!0)))},e.prototype.eachRendered=function(r){Oh(this._progressiveEls||this.group,r)},e.prototype._renderOnCartesianAndCalendar=function(r,n,a,i,o){var s=r.coordinateSystem,l=Ag(s,"cartesian2d"),u,c,d,p;if(l){var v=s.getAxis("x"),g=s.getAxis("y");{if(!(v.type==="category"&&g.type==="category"))throw new Error("Heatmap on cartesian must have two category axes");if(!(v.onBand&&g.onBand))throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}u=v.getBandWidth()+.5,c=g.getBandWidth()+.5,d=v.scale.getExtent(),p=g.scale.getExtent()}for(var m=this.group,x=r.getData(),_=r.getModel(["emphasis","itemStyle"]).getItemStyle(),w=r.getModel(["blur","itemStyle"]).getItemStyle(),T=r.getModel(["select","itemStyle"]).getItemStyle(),A=r.get(["itemStyle","borderRadius"]),M=$a(r),D=r.getModel("emphasis"),P=D.get("focus"),O=D.get("blurScope"),k=D.get("disabled"),N=l?[x.mapDimension("x"),x.mapDimension("y"),x.mapDimension("value")]:[x.mapDimension("time"),x.mapDimension("value")],$=a;$<i;$++){var H=void 0,F=x.getItemVisual($,"style");if(l){var W=x.get(N[0],$),j=x.get(N[1],$);if(isNaN(x.get(N[2],$))||isNaN(W)||isNaN(j)||W<d[0]||W>d[1]||j<p[0]||j>p[1])continue;var X=s.dataToPoint([W,j]);H=new yr({shape:{x:X[0]-u/2,y:X[1]-c/2,width:u,height:c},style:F})}else{if(isNaN(x.get(N[1],$)))continue;H=new yr({z2:1,shape:s.dataToRect([x.get(N[0],$)]).contentShape,style:F})}if(x.hasItemOption){var te=x.getItemModel($),J=te.getModel("emphasis");_=J.getModel("itemStyle").getItemStyle(),w=te.getModel(["blur","itemStyle"]).getItemStyle(),T=te.getModel(["select","itemStyle"]).getItemStyle(),A=te.get(["itemStyle","borderRadius"]),P=J.get("focus"),O=J.get("blurScope"),k=J.get("disabled"),M=$a(te)}H.shape.r=A;var ie=r.getRawValue($),se="-";ie&&ie[2]!=null&&(se=ie[2]+""),Ti(H,M,{labelFetcher:r,labelDataIndex:$,defaultOpacity:F.opacity,defaultText:se}),H.ensureState("emphasis").style=_,H.ensureState("blur").style=w,H.ensureState("select").style=T,Zn(H,P,O,k),H.incremental=o,o&&(H.states.emphasis.hoverLayer=!0),m.add(H),x.setItemGraphicEl($,H),this._progressiveEls&&this._progressiveEls.push(H)}},e.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 e5e;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),d=r.getRoamTransform();c.applyTransform(d);var p=Math.max(c.x,0),v=Math.max(c.y,0),g=Math.min(c.width+c.x,i.getWidth()),m=Math.min(c.height+c.y,i.getHeight()),x=g-p,_=m-v,w=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],T=l.mapArray(w,function(P,O,k){var N=r.dataToPoint([P,O]);return N[0]-=p,N[1]-=v,N.push(k),N}),A=a.getExtent(),M=a.type==="visualMap.continuous"?r5e(A,a.option.range):t5e(A,a.getPieceList(),a.option.selected);u.update(T,x,_,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},M);var D=new si({style:{width:x,height:_,x:p,y:v,image:u.canvas},silent:!0});this.group.add(D)},e.type="heatmap",e}(Kr);const a5e=n5e;var i5e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return mc(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var r=Cg.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(xn);const o5e=i5e;function s5e(t){t.registerChartView(a5e),t.registerSeriesModel(o5e)}var l5e=["itemStyle","borderWidth"],a9=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],VB=new ru,u5e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){var i=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),d=l.master.getRect(),p={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:c,valueDim:a9[+c],categoryDim:a9[1-+c]};return o.diff(s).add(function(v){if(o.hasValue(v)){var g=o9(o,v),m=i9(o,v,g,p),x=s9(o,p,m);o.setItemGraphicEl(v,x),i.add(x),u9(x,p,m)}}).update(function(v,g){var m=s.getItemGraphicEl(g);if(!o.hasValue(v)){i.remove(m);return}var x=o9(o,v),_=i9(o,v,x,p),w=Bae(o,_);m&&w!==m.__pictorialShapeStr&&(i.remove(m),o.setItemGraphicEl(v,null),m=null),m?g5e(m,p,_):m=s9(o,p,_,!0),o.setItemGraphicEl(v,m),m.__pictorialSymbolMeta=_,i.add(m),u9(m,p,_)}).remove(function(v){var g=s.getItemGraphicEl(v);g&&l9(s,v,g.__pictorialSymbolMeta.animationModel,g)}).execute(),this._data=o,this.group},e.prototype.remove=function(r,n){var a=this.group,i=this._data;r.get("animation")?i&&i.eachItemGraphicEl(function(o){l9(i,Pt(o).dataIndex,r,o)}):a.removeAll()},e.type="pictorialBar",e}(Kr);function i9(t,e,r,n){var a=t.getItemLayout(e),i=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,d=r.isAnimationEnabled(),p={dataIndex:e,layout:a,itemModel:r,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?r:null,hoverScale:d&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};c5e(r,i,a,n,p),f5e(t,e,a,i,o,p.boundingLength,p.pxSign,c,n,p),d5e(r,p.symbolScale,u,n,p);var v=p.symbolSize,g=ab(r.get("symbolOffset"),v);return h5e(r,v,a,i,o,g,s,p.valueLineWidth,p.boundingLength,p.repeatCutLength,n,p),p}function c5e(t,e,r,n,a){var i=n.valueDim,o=t.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[i.wh]<=0),c;if(Le(o)){var d=[UB(s,o[0])-l,UB(s,o[1])-l];d[1]<d[0]&&d.reverse(),c=d[u]}else o!=null?c=UB(s,o)-l:e?c=n.coordSysExtent[i.index][u]-l:c=r[i.wh];a.boundingLength=c,e&&(a.repeatCutLength=r[i.wh]),a.pxSign=c>0?1:-1}function UB(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function f5e(t,e,r,n,a,i,o,s,l,u){var c=l.valueDim,d=l.categoryDim,p=Math.abs(r[d.wh]),v=t.getItemVisual(e,"symbolSize"),g;Le(v)?g=v.slice():v==null?g=["100%","100%"]:g=[v,v],g[d.index]=Qe(g[d.index],p),g[c.index]=Qe(g[c.index],n?p:Math.abs(i)),u.symbolSize=g;var m=u.symbolScale=[g[0]/s,g[1]/s];m[c.index]*=(l.isHorizontal?-1:1)*o}function d5e(t,e,r,n,a){var i=t.get(l5e)||0;i&&(VB.attr({scaleX:e[0],scaleY:e[1],rotation:r}),VB.updateTransform(),i/=VB.getLineScale(),i*=e[n.valueDim.index]),a.valueLineWidth=i||0}function h5e(t,e,r,n,a,i,o,s,l,u,c,d){var p=c.categoryDim,v=c.valueDim,g=d.pxSign,m=Math.max(e[v.index]+s,0),x=m;if(n){var _=Math.abs(l),w=ca(t.get("symbolMargin"),"15%")+"",T=!1;w.lastIndexOf("!")===w.length-1&&(T=!0,w=w.slice(0,w.length-1));var A=Qe(w,e[v.index]),M=Math.max(m+A*2,0),D=T?0:A*2,P=PD(n),O=P?n:c9((_+D)/M),k=_-O*m;A=k/2/(T?O:Math.max(O-1,1)),M=m+A*2,D=T?0:A*2,!P&&n!=="fixed"&&(O=u?c9((Math.abs(u)+D)/M):0),x=O*M-D,d.repeatTimes=O,d.symbolMargin=A}var N=g*(x/2),$=d.pathPosition=[];$[p.index]=r[p.wh]/2,$[v.index]=o==="start"?N:o==="end"?l-N:l/2,i&&($[0]+=i[0],$[1]+=i[1]);var H=d.bundlePosition=[];H[p.index]=r[p.xy],H[v.index]=r[v.xy];var F=d.barRectShape=Ce({},r);F[v.wh]=g*Math.max(Math.abs(r[v.wh]),Math.abs($[v.index]+N)),F[p.wh]=r[p.wh];var W=d.clipShape={};W[p.xy]=-r[p.xy],W[p.wh]=c.ecSize[p.wh],W[v.xy]=0,W[v.wh]=r[v.wh]}function Pae(t){var e=t.symbolPatternSize,r=fa(t.symbolType,-e/2,-e/2,e,e);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function Lae(t,e,r,n){var a=t.__pictorialBundle,i=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=e.valueDim,u=r.repeatTimes||0,c=0,d=i[e.valueDim.index]+o+r.symbolMargin*2;for(HV(t,function(m){m.__pictorialAnimationIndex=c,m.__pictorialRepeatTimes=u,c<u?h0(m,null,g(c),r,n):h0(m,null,{scaleX:0,scaleY:0},r,n,function(){a.remove(m)}),c++});c<u;c++){var p=Pae(r);p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,a.add(p);var v=g(c);h0(p,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},r,n)}function g(m){var x=s.slice(),_=r.pxSign,w=m;return(r.symbolRepeatDirection==="start"?_>0:_<0)&&(w=u-1-m),x[l.index]=d*(w-u/2+.5)+s[l.index],{x:x[0],y:x[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function Oae(t,e,r,n){var a=t.__pictorialBundle,i=t.__pictorialMainPath;i?h0(i,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(i=t.__pictorialMainPath=Pae(r),a.add(i),h0(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 kae(t,e,r){var n=Ce({},e.barRectShape),a=t.__pictorialBarRect;a?h0(a,null,{shape:n},e,r):(a=t.__pictorialBarRect=new yr({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,t.add(a))}function Nae(t,e,r,n){if(r.symbolClip){var a=t.__pictorialClipPath,i=Ce({},r.clipShape),o=e.valueDim,s=r.animationModel,l=r.dataIndex;if(a)Sr(a,{shape:i},s,l);else{i[o.wh]=0,a=new yr({shape:i}),t.__pictorialBundle.setClipPath(a),t.__pictorialClipPath=a;var u={};u[o.wh]=r.clipShape[o.wh],HS[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function o9(t,e){var r=t.getItemModel(e);return r.getAnimationDelayParams=p5e,r.isAnimationEnabled=v5e,r}function p5e(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function v5e(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function s9(t,e,r,n){var a=new It,i=new It;return a.add(i),a.__pictorialBundle=i,i.x=r.bundlePosition[0],i.y=r.bundlePosition[1],r.symbolRepeat?Lae(a,e,r):Oae(a,e,r),kae(a,r,n),Nae(a,e,r,n),a.__pictorialShapeStr=Bae(t,r),a.__pictorialSymbolMeta=r,a}function g5e(t,e,r){var n=r.animationModel,a=r.dataIndex,i=t.__pictorialBundle;Sr(i,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,a),r.symbolRepeat?Lae(t,e,r,!0):Oae(t,e,r,!0),kae(t,r,!0),Nae(t,e,r,!0)}function l9(t,e,r,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];HV(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),V(i,function(o){mh(o,{scaleX:0,scaleY:0},r,e,function(){n.parent&&n.parent.remove(n)})}),t.setItemGraphicEl(e,null)}function Bae(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function HV(t,e,r){V(t.__pictorialBundle.children(),function(n){n!==t.__pictorialBarRect&&e.call(r,n)})}function h0(t,e,r,n,a,i){e&&t.attr(e),n.symbolClip&&!a?r&&t.attr(r):r&&HS[a?"updateProps":"initProps"](t,r,n.animationModel,n.dataIndex,i)}function u9(t,e,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"),c=i.get("focus"),d=i.get("blurScope"),p=i.get("scale");HV(t,function(m){if(m instanceof si){var x=m.style;m.useStyle(Ce({image:x.image,x:x.x,y:x.y,width:x.width,height:x.height},r.style))}else m.useStyle(r.style);var _=m.ensureState("emphasis");_.style=o,p&&(_.scaleX=m.scaleX*1.1,_.scaleY=m.scaleY*1.1),m.ensureState("blur").style=s,m.ensureState("select").style=l,u&&(m.cursor=u),m.z2=r.z2});var v=e.valueDim.posDesc[+(r.boundingLength>0)],g=t.__pictorialBarRect;Ti(g,$a(a),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:M0(e.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:v}),Zn(t,c,d,i.get("disabled"))}function c9(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}const m5e=u5e;var y5e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return e.prototype.getInitialData=function(r){return r.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=kh(dM.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%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(dM);const b5e=y5e;function x5e(t){t.registerChartView(m5e),t.registerSeriesModel(b5e),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Lt(yre,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bre("pictorialBar"))}var _5e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._layers=[],r}return e.prototype.render=function(r,n,a){var i=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,d=u.boundaryGap;s.x=0,s.y=c.y+d[0];function p(x){return x.name}var v=new xf(this._layersSeries||[],l,p,p),g=[];v.add(ot(m,this,"add")).update(ot(m,this,"update")).remove(ot(m,this,"remove")).execute();function m(x,_,w){var T=o._layers;if(x==="remove"){s.remove(T[_]);return}for(var A=[],M=[],D,P=l[_].indices,O=0;O<P.length;O++){var k=i.getItemLayout(P[O]),N=k.x,$=k.y0,H=k.y;A.push(N,$),M.push(N,$+H),D=i.getItemVisual(P[O],"style")}var F,W=i.getItemLayout(P[0]),j=r.getModel("label"),X=j.get("margin"),te=r.getModel("emphasis");if(x==="add"){var J=g[_]=new It;F=new sne({shape:{points:A,stackedOnPoints:M,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),J.add(F),s.add(J),r.isAnimationEnabled()&&F.setClipPath(S5e(F.getBoundingRect(),r,function(){F.removeClipPath()}))}else{var J=T[w];F=J.childAt(0),s.add(J),g[_]=J,Sr(F,{shape:{points:A,stackedOnPoints:M}},r),nu(F)}Ti(F,$a(r),{labelDataIndex:P[O-1],defaultText:i.getName(P[O-1]),inheritColor:D.fill},{normal:{verticalAlign:"middle"}}),F.setTextConfig({position:null,local:!0});var ie=F.getTextContent();ie&&(ie.x=W.x-X,ie.y=W.y0+W.y/2),F.useStyle(D),i.setItemGraphicEl(_,F),wi(F,r),Zn(F,te.get("focus"),te.get("blurScope"),te.get("disabled"))}this._layersSeries=l,this._layers=g},e.type="themeRiver",e}(Kr);function S5e(t,e,r){var n=new yr({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return In(n,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,r),n}const w5e=_5e;var WB=2,T5e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new ew(ot(this.getData,this),ot(this.getRawData,this))},e.prototype.fixData=function(r){var n=r.length,a={},i=A$(r,function(p){return a.hasOwnProperty(p[0]+"")||(a[p[0]+""]=-1),p[2]}),o=[];i.buckets.each(function(p,v){o.push({name:v,dataList:p})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var d=o[l].dataList[c][0]+"";a[d]=l}for(var d in a)a.hasOwnProperty(d)&&a[d]!==l&&(a[d]=l,r[n]=[d,0,u],n++)}return r},e.prototype.getInitialData=function(r,n){for(var a=this.getReferringComponents("singleAxis",xa).models[0],i=a.get("type"),o=Br(r.data,function(g){return g[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=yt(),c=0,d=0;d<s.length;++d)l.push(s[d][WB]),u.get(s[d][WB])||(u.set(s[d][WB],c),c++);var p=ib(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:sM(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,v=new Ui(p,this);return v.initData(s),v},e.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=A$(a,function(u){return r.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(d,p){return r.get(o,d)-r.get(o,p)}),l.push({name:c,indices:u})}),l},e.prototype.getAxisTooltipData=function(r,n,a){Le(r)||(r=r?[r]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var d=Number.MAX_VALUE,p=-1,v=o[c].indices.length,g=0;g<v;++g){var m=i.get(r[0],o[c].indices[g]),x=Math.abs(m-n);x<=d&&(u=m,d=x,p=o[c].indices[g])}s.push(p)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=i.getName(r),s=i.get(i.mapDimension("value"),r);return Fa("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.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}}},e}(xn);const C5e=T5e;function A5e(t,e){t.eachSeriesByType("themeRiver",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]=Qe(s[0],o.height),s[1]=Qe(s[1],o.height);var u=o.height-s[0]-s[1];f9(n,r,u)}else{s[0]=Qe(s[0],o.width),s[1]=Qe(s[1],o.width);var c=o.width-s[0]-s[1];f9(n,r,c)}n.setLayout("layoutInfo",i)})}function f9(t,e,r){if(t.count())for(var n=e.coordinateSystem,a=e.getLayerSeries(),i=t.mapDimension("single"),o=t.mapDimension("value"),s=Oe(a,function(x){return Oe(x.indices,function(_){var w=n.dataToPoint(t.get(i,_));return w[1]=t.get(o,_),w})}),l=E5e(s),u=l.y0,c=r/l.max,d=a.length,p=a[0].indices.length,v,g=0;g<p;++g){v=u[g]*c,t.setItemLayout(a[0].indices[g],{layerIndex:0,x:s[0][g][0],y0:v,y:s[0][g][1]*c});for(var m=1;m<d;++m)v+=s[m-1][g][1]*c,t.setItemLayout(a[m].indices[g],{layerIndex:m,x:s[m][g][0],y0:v,y:s[m][g][1]*c})}}function E5e(t){for(var e=t.length,r=t[0].length,n=[],a=[],i=0,o=0;o<r;++o){for(var s=0,l=0;l<e;++l)s+=t[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 c=0;c<r;++c){var d=n[c]+a[c];d>i&&(i=d)}return{y0:a,max:i}}function R5e(t){t.registerChartView(w5e),t.registerSeriesModel(C5e),t.registerLayout(A5e),t.registerProcessor(JS("themeRiver"))}var M5e=2,D5e=4,I5e=function(t){he(e,t);function e(r,n,a,i){var o=t.call(this)||this;o.z2=M5e,o.textConfig={inside:!0},Pt(o).seriesIndex=n.seriesIndex;var s=new mr({z2:D5e,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,a,i),o}return e.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;Pt(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),d=Ce({},c);d.label=null;var p=n.getVisual("style");p.lineJoin="bevel";var v=n.getVisual("decal");v&&(p.decal=R0(v,o));var g=t0(l.getModel("itemStyle"),d,!0);Ce(d,g),V(lo,function(w){var T=s.ensureState(w),A=l.getModel([w,"itemStyle"]);T.style=A.getItemStyle();var M=t0(A,d);M&&(T.shape=M)}),r?(s.setShape(d),s.shape.r=c.r0,Sr(s,{shape:{r:c.r}},a,n.dataIndex)):(Sr(s,{shape:d},a),nu(s)),s.useStyle(p),this._updateLabel(a);var m=l.getShallow("cursor");m&&s.attr("cursor",m),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var x=u.get("focus"),_=x==="ancestor"?n.getAncestorsIndices():x==="descendant"?n.getDescendantIndices():x;Zn(this,_,u.get("blurScope"),u.get("disabled"))},e.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),c=Math.sin(l),d=this,p=d.getTextContent(),v=this.node.dataIndex,g=i.get("minAngle")/180*Math.PI,m=i.get("show")&&!(g!=null&&Math.abs(s)<g);p.ignore=!m,V(K1,function(_){var w=_==="normal"?a.getModel("label"):a.getModel([_,"label"]),T=_==="normal",A=T?p:p.ensureState(_),M=r.getFormattedLabel(v,_);T&&(M=M||n.node.name),A.style=cn(w,{},null,_!=="normal",!0),M&&(A.style.text=M);var D=w.get("show");D!=null&&!T&&(A.ignore=!D);var P=x(w,"position"),O=T?d:d.states[_],k=O.style.fill;O.textConfig={outsideFill:w.get("color")==="inherit"?k:null,inside:P!=="outside"};var N,$=x(w,"distance")||0,H=x(w,"align");P==="outside"?(N=o.r+$,H=l>Math.PI/2?"right":"left"):!H||H==="center"?(s===2*Math.PI&&o.r0===0?N=0:N=(o.r+o.r0)/2,H="center"):H==="left"?(N=o.r0+$,l>Math.PI/2&&(H="right")):H==="right"&&(N=o.r-$,l>Math.PI/2&&(H="left")),A.style.align=H,A.style.verticalAlign=x(w,"verticalAlign")||"middle",A.x=N*u+o.cx,A.y=N*c+o.cy;var F=x(w,"rotate"),W=0;F==="radial"?(W=-l,W<-Math.PI/2&&(W+=Math.PI)):F==="tangential"?(W=Math.PI/2-l,W>Math.PI/2?W-=Math.PI:W<-Math.PI/2&&(W+=Math.PI)):_r(F)&&(W=F*Math.PI/180),A.rotation=W});function x(_,w){var T=_.get(w);return T??i.get(w)}p.dirtyStyle()},e}(uo);const d9=I5e;var A5="sunburstRootToNode",h9="sunburstHighlight",P5e="sunburstUnhighlight";function L5e(t){t.registerAction({type:A5,update:"updateView"},function(e,r){r.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(a,i){var o=cS(e,[A5],a);if(o){var s=a.getViewRoot();s&&(e.direction=MV(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),t.registerAction({type:h9,update:"none"},function(e,r,n){e=Ce({},e),r.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=cS(e,[h9],i);o&&(e.dataIndex=o.node.dataIndex)}ua("sunburstHighlight","highlight"),n.dispatchAction(Ce(e,{type:"highlight"}))}),t.registerAction({type:P5e,update:"updateView"},function(e,r,n){e=Ce({},e),ua("sunburstUnhighlight","downplay"),n.dispatchAction(Ce(e,{type:"downplay"}))})}var O5e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.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(),c=this.group,d=r.get("renderLabelForZeroData"),p=[];u.eachNode(function(w){p.push(w)});var v=this._oldChildren||[];g(p,v),_(l,u),this._initEvents(),this._oldChildren=p;function g(w,T){if(w.length===0&&T.length===0)return;new xf(T,w,A,A).add(M).update(M).remove(Lt(M,null)).execute();function A(D){return D.getId()}function M(D,P){var O=D==null?null:w[D],k=P==null?null:T[P];m(O,k)}}function m(w,T){if(!d&&w&&!w.getValue()&&(w=null),w!==l&&T!==l){if(T&&T.piece)w?(T.piece.updateData(!1,w,r,n,a),s.setItemGraphicEl(w.dataIndex,T.piece)):x(T);else if(w){var A=new d9(w,r,n,a);c.add(A),s.setItemGraphicEl(w.dataIndex,A)}}}function x(w){w&&w.piece&&(c.remove(w.piece),w.piece=null)}function _(w,T){T.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,w,r,n,a):(o.virtualPiece=new d9(w,r,n,a),c.add(o.virtualPiece)),T.piece.off("click"),o.virtualPiece.on("click",function(A){o._rootToNode(T.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.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 c=l.get("target",!0)||"_blank";XR(u,c)}}a=!0}})})},e.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:A5,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},e.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}},e.type="sunburst",e}(Kr);const k5e=O5e;var N5e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.ignoreStyleOnData=!0,r}return e.prototype.getInitialData=function(r,n){var a={name:r.name,children:r.data};zae(a);var i=this._levelModels=Oe(r.levels||[],function(l){return new Xr(l,this,n)},this),o=RV.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var d=o.getNodeByDataIndex(c),p=i[d.depth];return p&&(u.parentModel=p),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(r){var n=t.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=cI(a,this),n},e.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.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)},e.prototype.enableAriaDecal=function(){Une(this)},e.type="series.sunburst",e.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"},e}(xn);function zae(t){var e=0;V(t.children,function(n){zae(n);var a=n.value;Le(a)&&(a=a[0]),e+=a});var r=t.value;Le(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=e),r<0&&(r=0),Le(t.value)?t.value[0]=r:t.value=r}const B5e=N5e;var p9=Math.PI/180;function z5e(t,e,r){e.eachSeriesByType(t,function(n){var a=n.get("center"),i=n.get("radius");Le(i)||(i=[0,i]),Le(a)||(a=[a,a]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=Qe(a[0],o),c=Qe(a[1],s),d=Qe(i[0],l/2),p=Qe(i[1],l/2),v=-n.get("startAngle")*p9,g=n.get("minAngle")*p9,m=n.getData().tree.root,x=n.getViewRoot(),_=x.depth,w=n.get("sort");w!=null&&$ae(x,w);var T=0;V(x.children,function(X){!isNaN(X.getValue())&&T++});var A=x.getValue(),M=Math.PI/(A||T)*2,D=x.depth>0,P=x.height-(D?-1:1),O=(p-d)/(P||1),k=n.get("clockwise"),N=n.get("stillShowZeroSum"),$=k?1:-1,H=function(X,te){if(X){var J=te;if(X!==m){var ie=X.getValue(),se=A===0&&N?M:ie*M;se<g&&(se=g),J=te+$*se;var le=X.depth-_-(D?-1:1),be=d+O*le,Me=d+O*(le+1),Se=n.getLevelModel(X);if(Se){var Ue=Se.get("r0",!0),Xe=Se.get("r",!0),st=Se.get("radius",!0);st!=null&&(Ue=st[0],Xe=st[1]),Ue!=null&&(be=Qe(Ue,l/2)),Xe!=null&&(Me=Qe(Xe,l/2))}X.setLayout({angle:se,startAngle:te,endAngle:J,clockwise:k,cx:u,cy:c,r0:be,r:Me})}if(X.children&&X.children.length){var $e=0;V(X.children,function(Be){$e+=H(Be,te+$e)})}return J-te}};if(D){var F=d,W=d+O,j=Math.PI*2;m.setLayout({angle:j,startAngle:v,endAngle:v+j,clockwise:k,cx:u,cy:c,r0:F,r:W})}H(x,v)})}function $ae(t,e){var r=t.children||[];t.children=$5e(r,e),r.length&&V(t.children,function(n){$ae(n,e)})}function $5e(t,e){if(vt(e)){var r=Oe(t,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 e(a.params,i.params)}),Oe(r,function(a){return t[a.index]})}else{var n=e==="asc";return t.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 F5e(t){var e={};function r(n,a,i){for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return n.depth>1&&at(s)&&(s=BR(s,(n.depth-1)/(i-1)*.5)),s}t.eachSeriesByType("sunburst",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");Ce(u,l)})})}function V5e(t){t.registerChartView(k5e),t.registerSeriesModel(B5e),t.registerLayout(Lt(z5e,"sunburst")),t.registerProcessor(Lt(JS,"sunburst")),t.registerVisual(F5e),L5e(t)}var v9={color:"fill",borderColor:"stroke"},U5e={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},hf=wr(),W5e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(r,n){return mc(null,this)},e.prototype.getDataParams=function(r,n,a){var i=t.prototype.getDataParams.call(this,r,n);return a&&(i.info=hf(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(xn);const H5e=W5e;function G5e(t,e){return e=e||[0,0],Oe(["x","y"],function(r,n){var a=this.getAxis(r),i=e[n],o=t[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function j5e(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(r){return t.dataToPoint(r)},size:ot(G5e,t)}}}function Y5e(t,e){return e=e||[0,0],Oe([0,1],function(r){var n=e[r],a=t[r]/2,i=[],o=[];return i[r]=n-a,o[r]=n+a,i[1-r]=o[1-r]=e[1-r],Math.abs(this.dataToPoint(i)[r]-this.dataToPoint(o)[r])},this)}function q5e(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(r){return t.dataToPoint(r)},size:ot(Y5e,t)}}}function X5e(t,e){var r=this.getAxis(),n=e instanceof Array?e[0]:e,a=(t instanceof Array?t[0]:t)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-a)-r.dataToCoord(n+a))}function Z5e(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(r){return t.dataToPoint(r)},size:ot(X5e,t)}}}function K5e(t,e){return e=e||[0,0],Oe(["Radius","Angle"],function(r,n){var a="get"+r+"Axis",i=this[a](),o=e[n],s=t[n]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function Q5e(t){var e=t.getRadiusAxis(),r=t.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=r.dataToAngle(a[1]),s=t.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:ot(K5e,t)}}}function J5e(t){var e=t.getRect(),r=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,a){return t.dataToPoint(n,a)}}}}var g9={};function Fae(t,e,r,n){return t&&(t.legacy||t.legacy!==!1&&!r&&!n&&e!=="tspan"&&(e==="text"||it(t,"text")))}function Vae(t,e,r){var n=t,a,i,o;if(e==="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 m9(o,t),V(o.rich,function(l){m9(l,l)}),{textConfig:a,textContent:i}}function m9(t,e){e&&(e.font=e.textFont||e.font,it(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),it(e,"textAlign")&&(t.align=e.textAlign),it(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),it(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),it(e,"textWidth")&&(t.width=e.textWidth),it(e,"textHeight")&&(t.height=e.textHeight),it(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),it(e,"textPadding")&&(t.padding=e.textPadding),it(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),it(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),it(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),it(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),it(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),it(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),it(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function y9(t,e,r){var n=t;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=t.fill||"#000";b9(n,e);var o=n.textFill==null;return a?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=t.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=e.text,n.rich=e.rich,V(e.rich,function(s){b9(s,s)}),n}function b9(t,e){e&&(it(e,"fill")&&(t.textFill=e.fill),it(e,"stroke")&&(t.textStroke=e.fill),it(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),it(e,"font")&&(t.font=e.font),it(e,"fontStyle")&&(t.fontStyle=e.fontStyle),it(e,"fontWeight")&&(t.fontWeight=e.fontWeight),it(e,"fontSize")&&(t.fontSize=e.fontSize),it(e,"fontFamily")&&(t.fontFamily=e.fontFamily),it(e,"align")&&(t.textAlign=e.align),it(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),it(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),it(e,"width")&&(t.textWidth=e.width),it(e,"height")&&(t.textHeight=e.height),it(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),it(e,"padding")&&(t.textPadding=e.padding),it(e,"borderColor")&&(t.textBorderColor=e.borderColor),it(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),it(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),it(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),it(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),it(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),it(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),it(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),it(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),it(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),it(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}function x9(t,e){{var r=t+"^_^"+e;g9[r]||(console.warn('[ECharts] DEPRECATED: "'+t+'" has been deprecated. '+e),g9[r]=!0)}}var Uae={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},_9=sr(Uae),xM=ll(fc,function(t,e){return t[e]=1,t},{}),S9=fc.join(", "),_M=["","style","shape","extra"],P0=wr();function GV(t,e,r,n,a){var i=t+"Animation",o=q0(t,n,a)||{},s=P0(e).userDuring;return o.duration>0&&(o.during=s?ot(aFe,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),Ce(o,r[i]),o}function uR(t,e,r,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=P0(t),u=e.style;l.userDuring=e.during;var c={},d={};if(oFe(t,e,d),T9("shape",e,d),T9("extra",e,d),!i&&s&&(iFe(t,e,c),w9("shape",t,e,c),w9("extra",t,e,c),sFe(t,e,u,c)),d.style=u,eFe(t,d,o),rFe(t,e),s)if(i){var p={};V(_M,function(g){var m=g?e[g]:e;m&&m.enterFrom&&(g&&(p[g]=p[g]||{}),Ce(g?p[g]:p,m.enterFrom))});var v=GV("enter",t,e,r,a);v.duration>0&&t.animateFrom(p,v)}else tFe(t,e,a||0,r,c);Wae(t,e),u?t.dirty():t.markRedraw()}function Wae(t,e){for(var r=P0(t).leaveToProps,n=0;n<_M.length;n++){var a=_M[n],i=a?e[a]:e;i&&i.leaveTo&&(r||(r=P0(t).leaveToProps={}),a&&(r[a]=r[a]||{}),Ce(a?r[a]:r,i.leaveTo))}}function hI(t,e,r,n){if(t){var a=t.parent,i=P0(t).leaveToProps;if(i){var o=GV("update",t,e,r,0);o.done=function(){a.remove(t),n&&n()},t.animateTo(i,o)}else a.remove(t),n&&n()}}function eg(t){return t==="all"}function eFe(t,e,r){var n=e.style;if(!t.isGroup&&n){if(r){t.useStyle({});for(var a=t.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(t.style)}}t.setStyle(n)}e&&(e.style=null,e&&t.attr(e),e.style=n)}function tFe(t,e,r,n,a){if(a){var i=GV("update",t,e,n,r);i.duration>0&&t.animateFrom(a,i)}}function rFe(t,e){it(e,"silent")&&(t.silent=e.silent),it(e,"ignore")&&(t.ignore=e.ignore),t instanceof cl&&it(e,"invisible")&&(t.invisible=e.invisible),t instanceof ir&&it(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var Gu={},nFe={setTransform:function(t,e){return Tt(it(xM,t),"Only "+S9+" available in `setTransform`."),Gu.el[t]=e,this},getTransform:function(t){return Tt(it(xM,t),"Only "+S9+" available in `getTransform`."),Gu.el[t]},setShape:function(t,e){By(t);var r=Gu.el,n=r.shape||(r.shape={});return n[t]=e,r.dirtyShape&&r.dirtyShape(),this},getShape:function(t){By(t);var e=Gu.el.shape;if(e)return e[t]},setStyle:function(t,e){By(t);var r=Gu.el,n=r.style;return n&&(ph(e)&&Vn("style."+t+" must not be assigned with NaN."),n[t]=e,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(t){By(t);var e=Gu.el.style;if(e)return e[t]},setExtra:function(t,e){By(t);var r=Gu.el.extra||(Gu.el.extra={});return r[t]=e,this},getExtra:function(t){By(t);var e=Gu.el.extra;if(e)return e[t]}};function By(t){if(t==="transition"||t==="enterFrom"||t==="leaveTo")throw new Error('key must not be "'+t+'"')}function aFe(){var t=this,e=t.el;if(e){var r=P0(e).userDuring,n=t.userDuring;if(r!==n){t.el=t.userDuring=null;return}Gu.el=e,n(nFe)}}function w9(t,e,r,n){var a=r[t];if(a){var i=e[t],o;if(i){var s=r.transition,l=a.transition;if(l)if(!o&&(o=n[t]={}),eg(l))Ce(o,i);else for(var u=Zr(l),c=0;c<u.length;c++){var d=u[c],p=i[d];o[d]=p}else if(eg(s)||Qt(s,t)>=0){!o&&(o=n[t]={});for(var v=sr(i),c=0;c<v.length;c++){var d=v[c],p=i[d];lFe(a[d],p)&&(o[d]=p)}}}}}function T9(t,e,r){var n=e[t];if(n)for(var a=r[t]={},i=sr(n),o=0;o<i.length;o++){var s=i[o];a[s]=y1(n[s])}}function iFe(t,e,r){for(var n=e.transition,a=eg(n)?fc:Zr(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=t[o];Hae(o,"el.transition"),r[o]=s}}}function oFe(t,e,r){for(var n=0;n<_9.length;n++){var a=_9[n],i=Uae[a],o=e[a];o&&(r[i[0]]=o[0],r[i[1]]=o[1])}for(var n=0;n<fc.length;n++){var s=fc[n];e[s]!=null&&(r[s]=e[s])}}function sFe(t,e,r,n){if(r){var a=t.style,i;if(a){var o=r.transition,s=e.transition;if(o&&!eg(o)){var l=Zr(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var c=l[u],d=a[c];i[c]=d}}else if(t.getAnimationStyleProps&&(eg(s)||eg(o)||Qt(s,"style")>=0)){var p=t.getAnimationStyleProps(),v=p?p.style:null;if(v){!i&&(i=n.style={});for(var g=sr(r),u=0;u<g.length;u++){var c=g[u];if(v[c]){var d=a[c];i[c]=d}}}}}}}function lFe(t,e){return _i(t)?t!==e:t!=null&&isFinite(t)}var Hae;Hae=function(t,e){it(xM,t)||Vn("Prop `"+t+"` is not a permitted in `"+e+"`. Only `"+sr(xM).join("`, `")+"` are permitted.")};var Gae=wr(),uFe=["percent","easing","shape","style","extra"];function jae(t){t.stopAnimation("keyframe"),t.attr(Gae(t))}function SM(t,e,r){if(!(!r.isAnimationEnabled()||!e)){if(Le(e)){V(e,function(s){SM(t,s,r)});return}var n=e.keyframes,a=e.duration;if(r&&a==null){var i=q0("enter",r,0);a=i&&i.duration}if(!(!n||!a)){var o=Gae(t);V(_M,function(s){if(!(s&&!t[s])){var l,u=!1;n.sort(function(c,d){return c.percent-d.percent}),V(n,function(c){var d=t.animators,p=s?c[s]:c;if(c.percent>=1&&(u=!0),!!p){var v=sr(p);if(s||(v=Br(v,function(x){return Qt(uFe,x)<0})),!!v.length){l||(l=t.animate(s,e.loop,!0),l.scope="keyframe");for(var g=0;g<d.length;g++)d[g]!==l&&d[g].targetName===l.targetName&&d[g].stopTracks(v);s&&(o[s]=o[s]||{});var m=s?o[s]:o;V(v,function(x){m[x]=((s?t[s]:t)||{})[x]}),l.whenWithKeys(a*c.percent,p,v,c.easing)}}}),l&&(u||Vn("End frame with percent: 1 is missing in the keyframeAnimation.",!0),l.delay(e.delay||0).duration(a).start(e.easing))}})}}}var pf="emphasis",nh="normal",jV="blur",YV="select",_h=[nh,pf,jV,YV],HB={normal:["itemStyle"],emphasis:[pf,"itemStyle"],blur:[jV,"itemStyle"],select:[YV,"itemStyle"]},GB={normal:["label"],emphasis:[pf,"label"],blur:[jV,"label"],select:[YV,"label"]},cFe=["x","y"],fFe="e\0\0",Ws={normal:{},emphasis:{},blur:{},select:{}},C9={cartesian2d:j5e,geo:q5e,single:Z5e,polar:Q5e,calendar:J5e};function wM(t){return t instanceof ir}function E5(t){return t instanceof cl}function dFe(t,e){e.copyTransform(t),E5(e)&&E5(t)&&(e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel,e.invisible=t.invisible,e.ignore=t.ignore,wM(e)&&wM(t)&&e.setShape(t.shape))}var hFe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a,i){this._progressiveEls=null;var o=this._data,s=r.getData(),l=this.group,u=A9(r,s,n,a);o||l.removeAll(),s.diff(o).add(function(d){jB(a,null,d,u(d,i),r,l,s)}).remove(function(d){var p=o.getItemGraphicEl(d);p&&hI(p,hf(p).option,r)}).update(function(d,p){var v=o.getItemGraphicEl(p);jB(a,v,d,u(d,i),r,l,s)}).execute();var c=r.get("clip",!0)?sI(r.coordinateSystem,!1,r):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(r,n,a,i,o){var s=n.getData(),l=A9(n,s,a,i),u=this._progressiveEls=[];function c(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var d=r.start;d<r.end;d++){var p=jB(null,null,d,l(d,o),n,this.group,s);p&&(p.traverse(c),u.push(p))}},e.prototype.eachRendered=function(r){Oh(this._progressiveEls||this.group,r)},e.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},e.type="custom",e}(Kr);const pFe=hFe;function qV(t){var e=t.type,r;if(e==="path"){var n=t.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=Xae(n);r=US(i,null,a,n.layout||"center"),hf(r).customPathData=i}else if(e==="image")r=new si({}),hf(r).customImagePath=t.style.image;else if(e==="text")r=new mr({});else if(e==="group")r=new It;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=WD(e);if(!o){var s="";s='graphic type "'+e+'" can not be found.',Or(s)}r=new o}return hf(r).customGraphicType=e,r.name=t.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function XV(t,e,r,n,a,i,o){jae(e);var s=a&&a.normal.cfg;s&&e.setTextConfig(s),n&&n.transition==null&&(n.transition=cFe);var l=n&&n.style;if(l){if(e.type==="text"){var u=l;it(u,"textFill")&&(u.fill=u.textFill),it(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,d=wM(e)?l.decal:null;t&&d&&(d.dirty=!0,c=R0(d,t)),l.__decalPattern=c}if(E5(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}uR(e,n,i,{dataIndex:r,isInit:o,clearStyle:!0}),SM(e,n.keyframeAnimation,i)}function Yae(t,e,r,n,a){var i=e.isGroup?null:e,o=a&&a[t].cfg;if(i){var s=i.ensureState(t);if(n===!1){var l=i.getState(t);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),hg(i)}}function vFe(t,e,r){if(!t.isGroup){var n=t,a=r.currentZ,i=r.currentZLevel;n.z=a,n.zlevel=i;var o=e.z2;o!=null&&(n.z2=o||0);for(var s=0;s<_h.length;s++)gFe(n,e,_h[s])}}function gFe(t,e,r){var n=r===nh,a=n?e:TM(e,r),i=a?a.z2:null,o;i!=null&&(o=n?t:t.ensureState(r),o.z2=i||0)}function A9(t,e,r,n){var a=t.get("renderItem"),i=t.coordinateSystem,o={};i&&(Tt(a,"series.render is required."),Tt(i.prepareCustoms||C9[i.type],"This coordSys does not support custom series."),o=i.prepareCustoms?i.prepareCustoms(i):C9[i.type](i));for(var s=wt({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:A,style:D,ordinalRawValue:M,styleEmphasis:P,visual:N,barLayout:$,currentSeriesIndices:H,font:F},o.api||{}),l={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:mFe(t.getData())},u,c,d={},p={},v={},g={},m=0;m<_h.length;m++){var x=_h[m];v[x]=t.getModel(HB[x]),g[x]=t.getModel(GB[x])}function _(W){return W===u?c||(c=e.getItemModel(W)):e.getItemModel(W)}function w(W,j){return e.hasItemOption?W===u?d[j]||(d[j]=_(W).getModel(HB[j])):_(W).getModel(HB[j]):v[j]}function T(W,j){return e.hasItemOption?W===u?p[j]||(p[j]=_(W).getModel(GB[j])):_(W).getModel(GB[j]):g[j]}return function(W,j){return u=W,c=null,d={},p={},a&&a(wt({dataIndexInside:W,dataIndex:e.getRawIndex(W),actionType:j?j.type:null},l),s)};function A(W,j){return j==null&&(j=u),e.getStore().get(e.getDimensionIndex(W||0),j)}function M(W,j){j==null&&(j=u),W=W||0;var X=e.getDimensionInfo(W);if(!X){var te=e.getDimensionIndex(W);return te>=0?e.getStore().get(te,j):void 0}var J=e.get(X.name,j),ie=X&&X.ordinalMeta;return ie?ie.categories[J]:J}function D(W,j){x9("api.style","Please write literal style directly instead."),j==null&&(j=u);var X=e.getItemVisual(j,"style"),te=X&&X.fill,J=X&&X.opacity,ie=w(j,nh).getItemStyle();te!=null&&(ie.fill=te),J!=null&&(ie.opacity=J);var se={inheritColor:at(te)?te:"#000"},le=T(j,nh),be=cn(le,null,se,!1,!0);be.text=le.getShallow("show")?$t(t.getFormattedLabel(j,nh),M0(e,j)):null;var Me=YR(le,se,!1);return k(W,ie),ie=y9(ie,be,Me),W&&O(ie,W),ie.legacy=!0,ie}function P(W,j){x9("api.styleEmphasis","Please write literal style directly instead."),j==null&&(j=u);var X=w(j,pf).getItemStyle(),te=T(j,pf),J=cn(te,null,null,!0,!0);J.text=te.getShallow("show")?nl(t.getFormattedLabel(j,pf),t.getFormattedLabel(j,nh),M0(e,j)):null;var ie=YR(te,null,!0);return k(W,X),X=y9(X,J,ie),W&&O(X,W),X.legacy=!0,X}function O(W,j){for(var X in j)it(j,X)&&(W[X]=j[X])}function k(W,j){W&&(W.textFill&&(j.textFill=W.textFill),W.textPosition&&(j.textPosition=W.textPosition))}function N(W,j){if(j==null&&(j=u),it(v9,W)){var X=e.getItemVisual(j,"style");return X?X[v9[W]]:null}if(it(U5e,W))return e.getItemVisual(j,W)}function $(W){if(i.type==="cartesian2d"){var j=i.getBaseAxis();return oIe(wt({axis:j},W))}}function H(){return r.getCurrentSeriesIndices()}function F(W){return Ree(W,r)}}function mFe(t){var e={};return V(t.dimensions,function(r){var n=t.getDimensionInfo(r);if(!n.isExtraCoord){var a=n.coordDim,i=e[a]=e[a]||[];i[n.coordDimIndex]=t.getDimensionIndex(r)}}),e}function jB(t,e,r,n,a,i,o){if(!n){i.remove(e);return}var s=ZV(t,e,r,n,a,i);return s&&o.setItemGraphicEl(r,s),s&&Zn(s,n.focus,n.blurScope,n.emphasisDisabled),s}function ZV(t,e,r,n,a,i){Tt(n,"should not have an null/undefined element setting");var o=-1,s=e;e&&qae(e,n,a)&&(o=Qt(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=qV(n),s&&dFe(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Ws.normal.cfg=Ws.normal.conOpt=Ws.emphasis.cfg=Ws.emphasis.conOpt=Ws.blur.cfg=Ws.blur.conOpt=Ws.select.cfg=Ws.select.conOpt=null,Ws.isLegacy=!1,bFe(u,r,n,a,l,Ws),yFe(u,r,n,a,l),XV(t,u,r,n,Ws,a,l),it(n,"info")&&(hf(u).info=n.info);for(var c=0;c<_h.length;c++){var d=_h[c];if(d!==nh){var p=TM(n,d),v=KV(n,p,d);Yae(d,u,p,v,Ws)}}return vFe(u,n,a),n.type==="group"&&xFe(t,u,r,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function qae(t,e,r){var n=hf(t),a=e.type,i=e.shape,o=e.style;return r.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&TFe(i)&&Xae(i)!==n.customPathData||a==="image"&&it(o,"image")&&o.image!==n.customImagePath}function yFe(t,e,r,n,a){var i=r.clipPath;if(i===!1)t&&t.getClipPath()&&t.removeClipPath();else if(i){var o=t.getClipPath();o&&qae(o,i,n)&&(o=null),o||(o=qV(i),Tt(wM(o),"Only any type of `path` can be used in `clipPath`, rather than "+o.type+"."),t.setClipPath(o)),XV(null,o,e,i,null,n,a)}}function bFe(t,e,r,n,a,i){if(!t.isGroup){E9(r,null,i),E9(r,pf,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 c=t.getTextContent();if(o===!1)c&&t.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=qV(o),t.setTextContent(c)),XV(null,c,e,o,null,n,a);for(var d=o&&o.style,p=0;p<_h.length;p++){var v=_h[p];if(v!==nh){var g=i[v].conOpt;Yae(v,c,g,KV(o,g,v),null)}}d?c.dirty():c.markRedraw()}}}}function E9(t,e,r){var n=e?TM(t,e):t,a=e?KV(t,n,pf):t.style,i=t.type,o=n?n.textConfig:null,s=t.textContent,l=s?e?TM(s,e):s:null;if(a&&(r.isLegacy||Fae(a,i,!!o,!!l))){r.isLegacy=!0;var u=Vae(a,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text"),Tt(c.type==="text",'textContent.type must be "text"')}var d=e?r[e]:r.normal;d.cfg=o,d.conOpt=l}function TM(t,e){return e?t?t[e]:null:t}function KV(t,e,r){var n=e&&e.style;return n==null&&r===pf&&t&&(n=t.styleEmphasis),n}function xFe(t,e,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){SFe({api:t,oldChildren:e.children()||[],newChildren:i||[],dataIndex:r,seriesModel:a,group:e});return}u&&e.removeAll();for(var c=0;c<o;c++){var d=i[c],p=e.childAt(c);d?(d.ignore==null&&(d.ignore=!1),ZV(t,p,r,d,a,e)):(Tt(p,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),p.ignore=!0)}for(var v=e.childCount()-1;v>=c;v--){var g=e.childAt(v);_Fe(e,g,a)}}}function _Fe(t,e,r){e&&hI(e,hf(t).option,r)}function SFe(t){new xf(t.oldChildren,t.newChildren,R9,R9,t).add(M9).update(M9).remove(wFe).execute()}function R9(t,e){var r=t&&t.name;return r??fFe+e}function M9(t,e){var r=this.context,n=t!=null?r.newChildren[t]:null,a=e!=null?r.oldChildren[e]:null;ZV(r.api,a,r.dataIndex,n,r.seriesModel,r.group)}function wFe(t){var e=this.context,r=e.oldChildren[t];r&&hI(r,hf(r).option,e.seriesModel)}function Xae(t){return t&&(t.pathData||t.d)}function TFe(t){return t&&(it(t,"pathData")||it(t,"d"))}function CFe(t){t.registerChartView(pFe),t.registerSeriesModel(H5e)}var Bv=wr(),D9=Et,YB=ot,AFe=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,a){var i=r.get("value"),o=r.get("status");if(this._axisModel=e,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,e,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new It,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var p=Lt(I9,r,d);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,r)}L9(s,r,!0),this._renderHandle(i)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),a=e.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&&a.getBandWidth()>s)return!0;if(o){var l=_V(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,a,i){},t.prototype.createPointerEl=function(e,r,n,a){var i=r.pointer;if(i){var o=Bv(e).pointerEl=new HS[i.type](D9(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,a){if(r.label){var i=Bv(e).labelEl=new mr(D9(r.label));e.add(i),P9(i,a)}},t.prototype.updatePointerEl=function(e,r,n){var a=Bv(e).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,a){var i=Bv(e).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),P9(i,a))},t.prototype._renderHandle=function(e){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=X0(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){mf(u.event)},onmousedown:YB(this._onHandleDragMove,this,0,0),drift:YB(this._onHandleDragMove,this),ondragend:YB(this._onHandleDragEnd,this)}),n.add(a)),L9(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");Le(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,nb(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){I9(this._axisPointerModel,!r&&this._moveAnimation,this._handle,qB(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(qB(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(qB(a)),Bv(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){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}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.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),nS(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t}();function I9(t,e,r,n){Zae(Bv(r).lastProp,n)||(Bv(r).lastProp=n,e?Sr(r,n,t):(r.stopAnimation(),r.attr(n)))}function Zae(t,e){if(St(t)&&St(e)){var r=!0;return V(e,function(n,a){r=r&&Zae(t[a],n)}),!!r}else return t===e}function P9(t,e){t[e.get(["label","show"])?"show":"hide"]()}function qB(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function L9(t,e,r){var n=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=r)})}const QV=AFe;function JV(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function Kae(t,e,r,n,a){var i=r.get("value"),o=Qae(i,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Tg(s.get("padding")||0),u=s.getFont(),c=NS(o,u),d=a.position,p=c.width+l[1]+l[3],v=c.height+l[0]+l[2],g=a.align;g==="right"&&(d[0]-=p),g==="center"&&(d[0]-=p/2);var m=a.verticalAlign;m==="bottom"&&(d[1]-=v),m==="middle"&&(d[1]-=v/2),EFe(d,p,v,n);var x=s.get("backgroundColor");(!x||x==="auto")&&(x=e.get(["axisLine","lineStyle","color"])),t.label={x:d[0],y:d[1],style:cn(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:x}),z2:10}}function EFe(t,e,r,n){var a=n.getWidth(),i=n.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+r,i)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Qae(t,e,r,n,a){t=e.scale.parse(t);var i=e.scale.getLabel({value:t},{precision:a.precision}),o=a.formatter;if(o){var s={value:dV(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};V(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,d=u&&u.getDataParams(c);d&&s.seriesData.push(d)}),at(o)?i=o.replace("{value}",i):vt(o)&&(i=o(s))}return i}function eU(t,e,r){var n=hs();return Lh(n,n,r.rotation),eu(n,n,r.position),Ql([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function Jae(t,e,r,n,a,i){var o=Sf.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),Kae(e,n,a,i,{position:eU(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function tU(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function eie(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function O9(t,e,r,n,a,i){return{cx:t,cy:e,r0:r,r:n,startAngle:a,endAngle:i,clockwise:!0}}var RFe=function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=k9(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var p=JV(i),v=MFe[u](s,d,c);v.style=p,r.graphicKey=v.type,r.pointer=v}var g=c5(l.model,a);Jae(n,r,g,a,i,o)},e.prototype.getHandleTransform=function(r,n,a){var i=c5(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=eU(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=k9(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,d=[r.x,r.y];d[c]+=n[c],d[c]=Math.min(l[1],d[c]),d[c]=Math.max(l[0],d[c]);var p=(u[1]+u[0])/2,v=[p,p];v[c]=d[c];var g=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:r.rotation,cursorPoint:v,tooltipOption:g[c]}},e}(QV);function k9(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var MFe={line:function(t,e,r){var n=tU([e,r[0]],[e,r[1]],N9(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth()),a=r[1]-r[0];return{type:"Rect",shape:eie([e-n/2,r[0]],[n,a],N9(t))}}};function N9(t){return t.dim==="x"?0:1}const DFe=RFe;var IFe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(ur);const PFe=IFe;var cf=wr(),LFe=V;function tie(t,e,r){if(!gr.node){var n=e.getZr();cf(n).records||(cf(n).records={}),OFe(n,e);var a=cf(n).records[t]||(cf(n).records[t]={});a.handler=r}}function OFe(t,e){if(cf(t).initialized)return;cf(t).initialized=!0,r("click",Lt(B9,"click")),r("mousemove",Lt(B9,"mousemove")),r("globalout",NFe);function r(n,a){t.on(n,function(i){var o=BFe(e);LFe(cf(t).records,function(s){s&&a(s,i,o.dispatchAction)}),kFe(o.pendings,e)})}}function kFe(t,e){var r=t.showTip.length,n=t.hideTip.length,a;r?a=t.showTip[r-1]:n&&(a=t.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function NFe(t,e,r){t.handler("leave",null,r)}function B9(t,e,r,n){e.handler(t,r,n)}function BFe(t){var e={showTip:[],hideTip:[]},r=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function R5(t,e){if(!gr.node){var r=e.getZr(),n=(cf(r).records||{})[t];n&&(cf(r).records[t]=null)}}var zFe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";tie("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})})},e.prototype.remove=function(r,n){R5("axisPointer",n)},e.prototype.dispose=function(r,n){R5("axisPointer",n)},e.type="axisPointer",e}(Pn);const $Fe=zFe;function rie(t,e){var r=[],n=t.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=fg(i,t);if(o==null||o<0||Le(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,p=u.dim,v=d==="x"||d==="radius"?1:0,g=i.mapDimension(p),m=[];m[v]=i.get(g,o),m[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(m)||[]}else r=l.dataToPoint(i.getValues(Oe(l.dimensions,function(_){return i.mapDimension(_)}),o))||[];else if(s){var x=s.getBoundingRect().clone();x.applyTransform(s.transform),r=[x.x+x.width/2,x.y+x.height/2]}return{point:r,el:s}}var z9=wr();function FFe(t,e,r){var n=t.currTrigger,a=[t.x,t.y],i=t,o=t.dispatchAction||ot(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){cR(a)&&(a=rie({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=cR(a),u=i.axesInfo,c=s.axesInfo,d=n==="leave"||cR(a),p={},v={},g={list:[],map:{}},m={showPointer:Lt(UFe,v),showTooltip:Lt(WFe,g)};V(s.coordSysMap,function(_,w){var T=l||_.containPoint(a);V(s.coordSysAxesInfo[w],function(A,M){var D=A.axis,P=YFe(u,A);if(!d&&T&&(!u||P)){var O=P&&P.value;O==null&&!l&&(O=D.pointToData(a)),O!=null&&$9(A,O,m,!1,p)}})});var x={};return V(c,function(_,w){var T=_.linkGroup;T&&!v[w]&&V(T.axesInfo,function(A,M){var D=v[M];if(A!==_&&D){var P=D.value;T.mapper&&(P=_.axis.scale.parse(T.mapper(P,F9(A),F9(_)))),x[_.key]=P}})}),V(x,function(_,w){$9(c[w],_,m,!0,p)}),HFe(v,c,p),GFe(g,a,t,o),jFe(c,o,r),p}}function $9(t,e,r,n,a){var i=t.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=VFe(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&Ce(a,s[0]),!n&&t.snap&&i.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function VFe(t,e){var r=e.axis,n=r.dim,a=t,i=[],o=Number.MAX_VALUE,s=-1;return V(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),d,p;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,t,r);p=v.dataIndices,d=v.nestestValue}else{if(p=l.getData().indicesOfNearest(c[0],t,r.type==="category"?.5:null),!p.length)return;d=l.getData().get(c[0],p[0])}if(!(d==null||!isFinite(d))){var g=t-d,m=Math.abs(g);m<=o&&((m<o||g>=0&&s<0)&&(o=m,s=g,a=d,i.length=0),V(p,function(x){i.push({seriesIndex:l.seriesIndex,dataIndexInside:x,dataIndex:l.getData().getRawIndex(x)})}))}}),{payloadBatch:i,snapToValue:a}}function UFe(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function WFe(t,e,r,n){var a=r.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=uS(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.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 HFe(t,e,r){var n=r.axesInfo=[];V(e,function(a,i){var o=a.axisPointerModel.option,s=t[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 GFe(t,e,r,n){if(cR(e)||!t.list.length){n({type:"hideTip"});return}var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}function jFe(t,e,r){var n=r.getZr(),a="axisPointerLastHighlights",i=z9(n)[a]||{},o=z9(n)[a]={};V(t,function(u,c){var d=u.axisPointerModel.option;d.status==="show"&&V(d.seriesDataIndices,function(p){var v=p.seriesIndex+" | "+p.dataIndex;o[v]=p})});var s=[],l=[];V(i,function(u,c){!o[c]&&l.push(u)}),V(o,function(u,c){!i[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function YFe(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function F9(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function cR(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function nw(t){Eg.registerAxisPointerClass("CartesianAxisPointer",DFe),t.registerComponentModel(PFe),t.registerComponentView($Fe),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!Le(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=k2e(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},FFe)}function qFe(t){rr(Ene),rr(nw)}var XFe=function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.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=l.getOtherAxis(s),c=u.getExtent(),d=s.dataToCoord(n),p=i.get("type");if(p&&p!=="none"){var v=JV(i),g=KFe[p](s,l,d,c);g.style=v,r.graphicKey=g.type,r.pointer=g}var m=i.get(["label","margin"]),x=ZFe(n,a,i,l,m);Kae(r,a,i,o,x)},e}(QV);function ZFe(t,e,r,n,a){var i=e.axis,o=i.dataToCoord(t),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,d;if(i.dim==="radius"){var p=hs();Lh(p,p,s),eu(p,p,[n.cx,n.cy]),u=Ql([o,-a],p);var v=e.getModel("axisLabel").get("rotate")||0,g=Sf.innerTextLayout(s,v*Math.PI/180,-1);c=g.textAlign,d=g.textVerticalAlign}else{var m=l[1];u=n.coordToPoint([m+a,o]);var x=n.cx,_=n.cy;c=Math.abs(u[0]-x)/m<.3?"center":u[0]>x?"left":"right",d=Math.abs(u[1]-_)/m<.3?"middle":u[1]>_?"top":"bottom"}return{position:u,align:c,verticalAlign:d}}var KFe={line:function(t,e,r,n){return t.dim==="angle"?{type:"Line",shape:tU(e.coordToPoint([n[0],r]),e.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r}}},shadow:function(t,e,r,n){var a=Math.max(1,t.getBandWidth()),i=Math.PI/180;return t.dim==="angle"?{type:"Sector",shape:O9(e.cx,e.cy,n[0],n[1],(-r-a/2)*i,(-r+a/2)*i)}:{type:"Sector",shape:O9(e.cx,e.cy,r-a/2,r+a/2,0,Math.PI*2)}}};const QFe=XFe;var JFe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.findAxisModel=function(r){var n,a=this.ecModel;return a.eachComponent(r,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(ur);const e3e=JFe;var rU=function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",xa).models[0]},e.type="polarAxis",e}(ur);ra(rU,ob);var t3e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="angleAxis",e}(rU),r3e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="radiusAxis",e}(rU),nU=function(t){he(e,t);function e(r,n){return t.call(this,"radius",r,n)||this}return e.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},e}(gl);nU.prototype.dataToRadius=gl.prototype.dataToCoord;nU.prototype.radiusToData=gl.prototype.coordToData;const n3e=nU;var a3e=wr(),aU=function(t){he(e,t);function e(r,n){return t.call(this,"angle",r,n||[0,360])||this}return e.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},e.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),c=NS(s==null?"":s+"",n.getFont(),"center","top"),d=Math.max(c.height,7),p=d/u;isNaN(p)&&(p=1/0);var v=Math.max(0,Math.floor(p)),g=a3e(r.model),m=g.lastAutoInterval,x=g.lastTickCount;return m!=null&&x!=null&&Math.abs(m-v)<=1&&Math.abs(x-o)<=1&&m>v?v=m:(g.lastTickCount=o,g.lastAutoInterval=v),v},e}(gl);aU.prototype.dataToAngle=gl.prototype.dataToCoord;aU.prototype.angleToData=gl.prototype.coordToData;const i3e=aU;var nie=["radius","angle"],o3e=function(){function t(e){this.dimensions=nie,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new n3e,this._angleAxis=new i3e,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(e){var r=this.pointToCoord(e);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},t.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},t.prototype.getAxis=function(e){var r="_"+e+"Axis";return this[r]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(e){var r=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===e&&r.push(n),a.scale.type===e&&r.push(a),r},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(e){var r=this._angleAxis;return e===r?this._radiusAxis:r},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(e){var r=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},t.prototype.dataToPoint=function(e,r){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],r),this._angleAxis.dataToAngle(e[1],r)])},t.prototype.pointToData=function(e,r){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},t.prototype.pointToCoord=function(e){var r=e[0]-this.cx,n=e[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,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},t.prototype.coordToPoint=function(e){var r=e[0],n=e[1]/180*Math.PI,a=Math.cos(n)*r+this.cx,i=-Math.sin(n)*r+this.cy;return[a,i]},t.prototype.getArea=function(){var e=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var a=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,d=this.r,p=this.r0;return c<=d*d&&c>=p*p}}},t.prototype.convertToPixel=function(e,r,n){var a=V9(r);return a===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,r,n){var a=V9(r);return a===this?this.pointToData(n):null},t}();function V9(t){var e=t.seriesModel,r=t.polarModel;return r&&r.coordinateSystem||e&&e.coordinateSystem}const s3e=o3e;function l3e(t,e,r){var n=e.get("center"),a=r.getWidth(),i=r.getHeight();t.cx=Qe(n[0],a),t.cy=Qe(n[1],i);var o=t.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:Le(l)||(l=[0,l]);var u=[Qe(l[0],s),Qe(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function u3e(t,e){var r=this,n=r.getAngleAxis(),a=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),t.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();V(lM(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),V(lM(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),vg(n.scale,n.model),vg(a.scale,a.model),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 c3e(t){return t.mainType==="angleAxis"}function U9(t,e){if(t.type=e.get("type"),t.scale=qS(e),t.onBand=e.get("boundaryGap")&&t.type==="category",t.inverse=e.get("inverse"),c3e(e)){t.inverse=t.inverse!==e.get("clockwise");var r=e.get("startAngle");t.setExtent(r,r+(t.inverse?-360:360))}e.axis=t,t.model=e}var f3e={dimensions:nie,create:function(t,e){var r=[];return t.eachComponent("polar",function(n,a){var i=new s3e(a+"");i.update=u3e;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");U9(o,l),U9(s,u),l3e(i,n,e),r.push(i),n.coordinateSystem=i,i.model=n}),t.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",xa).models[0];if(!a)throw new Error('Polar "'+ca(n.get("polarIndex"),n.get("polarId"),0)+'" not found');n.coordinateSystem=a.coordinateSystem}}),r}};const d3e=f3e;var h3e=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function DE(t,e,r){e[1]>e[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],r]),a=t.coordToPoint([e[1],r]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function IE(t){var e=t.getRadiusAxis();return e.inverse?0:1}function W9(t){var e=t[0],r=t[t.length-1];e&&r&&Math.abs(Math.abs(e.coord-r.coord)-360)<1e-4&&t.pop()}var p3e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="PolarAxisPointer",r}return e.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(),l=a.getMinorTicksCoords(),u=Oe(a.getViewLabels(),function(c){c=Et(c);var d=a.scale,p=d.type==="ordinal"?d.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(p),c});W9(u),W9(s),V(h3e,function(c){r.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&v3e[c](this.group,r,i,s,l,o,u)},this)}},e.type="angleAxis",e}(Eg),v3e={axisLine:function(t,e,r,n,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=IE(r),l=s?0:1,u;i[l]===0?u=new ru({shape:{cx:r.cx,cy:r.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new FS({shape:{cx:r.cx,cy:r.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,t.add(u)},axisTick:function(t,e,r,n,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[IE(r)],u=Oe(n,function(c){return new Ba({shape:DE(r,[l,l+s],c.coord)})});t.add(os(u,{style:wt(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,r,n,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[IE(r)],c=[],d=0;d<a.length;d++)for(var p=0;p<a[d].length;p++)c.push(new Ba({shape:DE(r,[u,u+l],a[d][p].coord)}));t.add(os(c,{style:wt(s.getModel("lineStyle").getLineStyle(),wt(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,r,n,a,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");V(o,function(d,p){var v=l,g=d.tickValue,m=i[IE(r)],x=r.coordToPoint([m+u,d.coord]),_=r.cx,w=r.cy,T=Math.abs(x[0]-_)/m<.3?"center":x[0]>_?"left":"right",A=Math.abs(x[1]-w)/m<.3?"middle":x[1]>w?"top":"bottom";if(s&&s[g]){var M=s[g];St(M)&&M.textStyle&&(v=new Xr(M.textStyle,l,l.ecModel))}var D=new mr({silent:Sf.isLabelSilent(e),style:cn(v,{x:x[0],y:x[1],fill:v.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:T,verticalAlign:A})});if(t.add(D),c){var P=Sf.makeAxisEventDataBase(e);P.targetType="axisLabel",P.value=d.rawLabel,Pt(D).eventData=P}},this)},splitLine:function(t,e,r,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d<n.length;d++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new Ba({shape:DE(r,i,n[d].coord)}))}for(var d=0;d<c.length;d++)t.add(os(c[d],{style:wt({stroke:l[d%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,r,n,a,i){if(a.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new Ba({shape:DE(r,i,a[u][c].coord)}));t.add(os(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,r,n,a,i){if(n.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=Math.PI/180,p=-n[0].coord*d,v=Math.min(i[0],i[1]),g=Math.max(i[0],i[1]),m=e.get("clockwise"),x=1,_=n.length;x<=_;x++){var w=x===_?n[0].coord:n[x].coord,T=u++%l.length;c[T]=c[T]||[],c[T].push(new uo({shape:{cx:r.cx,cy:r.cy,r0:v,r:g,startAngle:p,endAngle:-w*d,clockwise:m},silent:!0})),p=-w*d}for(var x=0;x<c.length;x++)t.add(os(c[x],{style:wt({fill:l[x%l.length]},s.getAreaStyle()),silent:!0}))}}};const g3e=p3e;var m3e=["axisLine","axisTickLabel","axisName"],y3e=["splitLine","splitArea","minorSplitLine"],b3e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="PolarAxisPointer",r}return e.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var a=this._axisGroup,i=this._axisGroup=new It;this.group.add(i);var o=r.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),d=l.getExtent()[0],p=o.getExtent(),v=_3e(s,r,d),g=new Sf(r,v);V(m3e,g.add,g),i.add(g.getGroup()),WS(a,i,r),V(y3e,function(m){r.get([m,"show"])&&!o.scale.isBlank()&&x3e[m](this.group,r,s,d,p,u,c)},this)}},e.type="radiusAxis",e}(Eg),x3e={splitLine:function(t,e,r,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d<i.length;d++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new ru({shape:{cx:r.cx,cy:r.cy,r:Math.max(i[d].coord,0)}}))}for(var d=0;d<c.length;d++)t.add(os(c[d],{style:wt({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,r,n,a,i,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var d=0;d<o[c].length;d++)u.push(new ru({shape:{cx:r.cx,cy:r.cy,r:o[c][d].coord}}));t.add(os(u,{style:wt({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(t,e,r,n,a,i){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=i[0].coord,p=1;p<i.length;p++){var v=u++%l.length;c[v]=c[v]||[],c[v].push(new uo({shape:{cx:r.cx,cy:r.cy,r0:d,r:i[p].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),d=i[p].coord}for(var p=0;p<c.length;p++)t.add(os(c[p],{style:wt({fill:l[p%l.length]},s.getAreaStyle()),silent:!0}))}}};function _3e(t,e,r){return{position:[t.cx,t.cy],rotation:r/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}const S3e=b3e;function aie(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function iie(t,e){return e.dim+t.model.componentIndex}function w3e(t,e,r){var n={},a=T3e(Br(e.getSeriesByType(t),function(i){return!e.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));e.eachSeriesByType(t,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=iie(s,l),c=aie(i),d=a[u][c],p=d.offset,v=d.width,g=s.getOtherAxis(l),m=i.coordinateSystem.cx,x=i.coordinateSystem.cy,_=i.get("barMinHeight")||0,w=i.get("barMinAngle")||0;n[c]=n[c]||[];for(var T=o.mapDimension(g.dim),A=o.mapDimension(l.dim),M=_f(o,T),D=l.dim!=="radius"||!i.get("roundCap",!0),P=g.dataToCoord(0),O=0,k=o.count();O<k;O++){var N=o.get(T,O),$=o.get(A,O),H=N>=0?"p":"n",F=P;M&&(n[c][$]||(n[c][$]={p:P,n:P}),F=n[c][$][H]);var W=void 0,j=void 0,X=void 0,te=void 0;if(g.dim==="radius"){var J=g.dataToCoord(N)-P,ie=l.dataToCoord($);Math.abs(J)<_&&(J=(J<0?-1:1)*_),W=F,j=F+J,X=ie-p,te=X-v,M&&(n[c][$][H]=j)}else{var se=g.dataToCoord(N,D)-P,le=l.dataToCoord($);Math.abs(se)<w&&(se=(se<0?-1:1)*w),W=le+p,j=W+v,X=F,te=F+se,M&&(n[c][$][H]=te)}o.setItemLayout(O,{cx:m,cy:x,r0:W,r:j,startAngle:-X*Math.PI/180,endAngle:-te*Math.PI/180,clockwise:X>=te})}}})}function T3e(t){var e={};V(t,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=iie(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),d=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},p=d.stacks;e[l]=d;var v=aie(n);p[v]||d.autoWidthCount++,p[v]=p[v]||{width:0,maxWidth:0};var g=Qe(n.get("barWidth"),c),m=Qe(n.get("barMaxWidth"),c),x=n.get("barGap"),_=n.get("barCategoryGap");g&&!p[v].width&&(g=Math.min(d.remainedWidth,g),p[v].width=g,d.remainedWidth-=g),m&&(p[v].maxWidth=m),x!=null&&(d.gap=x),_!=null&&(d.categoryGap=_)});var r={};return V(e,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=Qe(n.categoryGap,o),l=Qe(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),V(i,function(m,x){var _=m.maxWidth;_&&_<d&&(_=Math.min(_,u),m.width&&(_=Math.min(_,m.width)),u-=_,m.width=_,c--)}),d=(u-s)/(c+(c-1)*l),d=Math.max(d,0);var p=0,v;V(i,function(m,x){m.width||(m.width=d),v=m,p+=m.width*(1+l)}),v&&(p-=v.width*l);var g=-p/2;V(i,function(m,x){r[a][x]=r[a][x]||{offset:g,width:m.width},g+=m.width*(1+l)})}),r}var C3e={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},A3e={splitNumber:5},E3e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="polar",e}(Pn);function R3e(t){rr(nw),Eg.registerAxisPointerClass("PolarAxisPointer",QFe),t.registerCoordinateSystem("polar",d3e),t.registerComponentModel(e3e),t.registerComponentView(E3e),D0(t,"angle",t3e,C3e),D0(t,"radius",r3e,A3e),t.registerComponentView(g3e),t.registerComponentView(S3e),t.registerLayout(Lt(w3e,"bar"))}function M5(t,e){e=e||{};var r=t.coordinateSystem,n=t.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 c={horizontal:0,vertical:1};a.rotation=Math.PI/2*c[o];var d={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=d[i],t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),ca(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var p=e.rotate;return p==null&&(p=t.get(["axisLabel","rotate"])),a.labelRotation=i==="top"?-p:p,a.z2=1,a}var M3e=["axisLine","axisTickLabel","axisName"],D3e=["splitArea","splitLine"],I3e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="SingleAxisPointer",r}return e.prototype.render=function(r,n,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new It;var l=M5(r),u=new Sf(r,l);V(M3e,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),V(D3e,function(c){r.get([c,"show"])&&P3e[c](this,this.group,this._axisGroup,r)},this),WS(s,this._axisGroup,r),t.prototype.render.call(this,r,n,a,i)},e.prototype.remove=function(){Tne(this)},e.type="singleAxis",e}(Eg),P3e={splitLine:function(t,e,r,n){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=n.coordinateSystem.getRect(),c=a.isHorizontal(),d=[],p=0,v=a.getTicksCoords({tickModel:i}),g=[],m=[],x=0;x<v.length;++x){var _=a.toGlobalCoord(v[x].coord);c?(g[0]=_,g[1]=u.y,m[0]=_,m[1]=u.y+u.height):(g[0]=u.x,g[1]=_,m[0]=u.x+u.width,m[1]=_);var w=new Ba({shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},silent:!0});A0(w.shape,l);var T=p++%s.length;d[T]=d[T]||[],d[T].push(w)}for(var A=o.getLineStyle(["color"]),x=0;x<d.length;++x)e.add(os(d[x],{style:wt({stroke:s[x%s.length]},A),silent:!0}))}},splitArea:function(t,e,r,n){wne(t,r,n,n)}};const L3e=I3e;var oie=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.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}}},e}(ur);ra(oie,ob.prototype);const XB=oie;var O3e=function(t){he(e,t);function e(r,n,a,i,o){var s=t.call(this,r,n,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.pointToData=function(r,n){return this.coordinateSystem.pointToData(r)[0]},e}(gl);const k3e=O3e;var sie=["single"],N3e=function(){function t(e,r,n){this.type="single",this.dimension="single",this.dimensions=sie,this.axisPointerEnabled=!0,this.model=e,this._init(e,r,n)}return t.prototype._init=function(e,r,n){var a=this.dimension,i=new k3e(a,qS(e),[0,0],e.get("type"),e.get("position")),o=i.type==="category";i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},t.prototype.update=function(e,r){e.eachSeries(function(n){if(n.coordinateSystem===this){var a=n.getData();V(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),vg(this._axis.scale,this._axis.model)}},this)},t.prototype.resize=function(e,r){this._rect=_a({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:r.getWidth(),height:r.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var e=this._rect,r=this._axis,n=r.isHorizontal(),a=n?[0,e.width]:[0,e.height],i=r.inverse?1:0;r.setExtent(a[i],a[1-i]),this._updateAxisTransform(r,n?e.x:e.y)},t.prototype._updateAxisTransform=function(e,r){var n=e.getExtent(),a=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+r}:function(o){return a-o+r},e.toLocalCoord=i?function(o){return o-r}:function(o){return a-o+r}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(e){var r=this.getRect(),n=this.getAxis(),a=n.orient;return a==="horizontal"?n.contain(n.toLocalCoord(e[0]))&&e[1]>=r.y&&e[1]<=r.y+r.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=r.y&&e[0]<=r.y+r.height},t.prototype.pointToData=function(e){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(e[r.orient==="horizontal"?0:1]))]},t.prototype.dataToPoint=function(e){var r=this.getAxis(),n=this.getRect(),a=[],i=r.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=r.toGlobalCoord(r.dataToCoord(+e)),a[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,a},t.prototype.convertToPixel=function(e,r,n){var a=H9(r);return a===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,r,n){var a=H9(r);return a===this?this.pointToData(n):null},t}();function H9(t){var e=t.seriesModel,r=t.singleAxisModel;return r&&r.coordinateSystem||e&&e.coordinateSystem}function B3e(t,e){var r=[];return t.eachComponent("singleAxis",function(n,a){var i=new N3e(n,t,e);i.name="single_"+a,i.resize(n,e),n.coordinateSystem=i,r.push(i)}),t.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",xa).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),r}var z3e={create:B3e,dimensions:sie};const $3e=z3e;var G9=["x","y"],F3e=["width","height"],V3e=function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=ZB(l,1-CM(s)),c=l.dataToPoint(n)[0],d=i.get("type");if(d&&d!=="none"){var p=JV(i),v=U3e[d](s,c,u);v.style=p,r.graphicKey=v.type,r.pointer=v}var g=M5(a);Jae(n,r,g,a,i,o)},e.prototype.getHandleTransform=function(r,n,a){var i=M5(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=eU(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.coordinateSystem,l=CM(o),u=ZB(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var d=ZB(s,1-l),p=(d[1]+d[0])/2,v=[p,p];return v[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},e}(QV),U3e={line:function(t,e,r){var n=tU([e,r[0]],[e,r[1]],CM(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=t.getBandWidth(),a=r[1]-r[0];return{type:"Rect",shape:eie([e-n/2,r[0]],[n,a],CM(t))}}};function CM(t){return t.isHorizontal()?0:1}function ZB(t,e){var r=t.getRect();return[r[G9[e]],r[G9[e]]+r[F3e[e]]]}const W3e=V3e;var H3e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="single",e}(Pn);function G3e(t){rr(nw),Eg.registerAxisPointerClass("SingleAxisPointer",W3e),t.registerComponentView(H3e),t.registerComponentView(L3e),t.registerComponentModel(XB),D0(t,"single",XB,XB.defaultOption),t.registerCoordinateSystem("single",$3e)}var j3e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n,a){var i=J0(r);t.prototype.init.apply(this,arguments),j9(r,i)},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),j9(this.option,r)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(ur);function j9(t,e){var r=t.cellSize,n;Le(r)?n=r:n=t.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var a=Oe([0,1],function(i){return OEe(e,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});yh(t,e,{type:"box",ignoreSize:a})}const Y3e=j3e;var q3e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.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)},e.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 c=i.dataToRect([u],!1).tl,d=new yr({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(d)}},e.prototype._renderLines=function(r,n,a,i){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=n.start,p=0;d.time<=n.end.time;p++){g(d.formatedDate),p===0&&(d=s.getDateInfo(n.start.y+"-"+n.start.m));var v=d.date;v.setMonth(v.getMonth()+1),d=s.getDateInfo(v)}g(s.getNextNDay(n.end.time,1).formatedDate);function g(m){o._firstDayOfMonth.push(s.getDateInfo(m)),o._firstDayPoints.push(s.dataToRect([m],!1).tl);var x=o._getLinePointsOfOneWeek(r,m,a);o._tlpoints.push(x[0]),o._blpoints.push(x[x.length-1]),u&&o._drawSplitline(x,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},e.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},e.prototype._drawSplitline=function(r,n,a){var i=new fo({z2:20,shape:{points:r},style:n});a.add(i)},e.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),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(r,n){return at(r)&&r?DEe(r,n):vt(r)?r(n):n.nameMap},e.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 c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.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]],c=(u[0][0]+u[1][0])/2,d=(u[0][1]+u[1][1])/2,p=a==="horizontal"?0:1,v={top:[c,u[p][1]],bottom:[c,u[1-p][1]],left:[u[1-p][0],d],right:[u[p][0],d]},g=n.start.y;+n.end.y>+n.start.y&&(g=g+"-"+n.end.y);var m=o.get("formatter"),x={start:n.start.y,end:n.end.y,nameMap:g},_=this._formatterLabel(m,x),w=new mr({z2:30,style:cn(o,{text:_})});w.attr(this._yearTextPositionControl(w,v[l],a,l,s)),i.add(w)}},e.prototype._monthTextPositionControl=function(r,n,a,i,o){var s="left",l="top",u=r[0],c=r[1];return a==="horizontal"?(c=c+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.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"),c=o.get("align"),d=[this._tlpoints,this._blpoints];(!s||at(s))&&(s&&(n=z$(s)||n),s=n.get(["time","monthAbbr"])||[]);var p=u==="start"?0:1,v=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var g=c==="center",m=0;m<d[p].length-1;m++){var x=d[p][m].slice(),_=this._firstDayOfMonth[m];if(g){var w=this._firstDayPoints[m];x[v]=(w[v]+d[0][m+1][v])/2}var T=o.get("formatter"),A=s[+_.m-1],M={yyyy:_.y,yy:(_.y+"").slice(2),MM:_.m,M:+_.m,nameMap:A},D=this._formatterLabel(T,M),P=new mr({z2:30,style:Ce(cn(o,{text:D}),this._monthTextPositionControl(x,g,a,u,l))});i.add(P)}}},e.prototype._weekTextPositionControl=function(r,n,a,i,o){var s="center",l="middle",u=r[0],c=r[1],d=a==="start";return n==="horizontal"?(u=u+i+(d?1:-1)*o[0]/2,s=d?"right":"left"):(c=c+i+(d?1:-1)*o[1]/2,l=d?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},e.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"),c=s.get("nameMap"),d=s.get("margin"),p=l.getFirstDayOfWeek();if(!c||at(c)){c&&(n=z$(c)||n);var v=n.get(["time","dayOfWeekShort"]);c=v||Oe(n.get(["time","dayOfWeekAbbr"]),function(M){return M[0]})}var g=l.getNextNDay(a.end.time,7-a.lweek).time,m=[l.getCellWidth(),l.getCellHeight()];d=Qe(d,Math.min(m[1],m[0])),u==="start"&&(g=l.getNextNDay(a.start.time,-(7+a.fweek)).time,d=-d);for(var x=0;x<7;x++){var _=l.getNextNDay(g,x),w=l.dataToRect([_.time],!1).center,T=x;T=Math.abs((x+p)%7);var A=new mr({z2:30,style:Ce(cn(s,{text:c[T]}),this._weekTextPositionControl(w,i,u,d,m))});o.add(A)}}},e.type="calendar",e}(Pn);const X3e=q3e;var KB=864e5,Z3e=function(){function t(e,r,n){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(e){e=ps(e);var r=e.getFullYear(),n=e.getMonth()+1,a=n<10?"0"+n:""+n,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:r+"",m:a,d:o,day:s,time:e.getTime(),formatedDate:r+"-"+a+"-"+o,date:e}},t.prototype.getNextNDay=function(e,r){return r=r||0,r===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+r),this.getDateInfo(e))},t.prototype.update=function(e,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];V([0,1],function(d){c(i,d)&&(o[a[d]]=i[d]*s[d])});var l={width:r.getWidth(),height:r.getHeight()},u=this._rect=_a(o,l);V([0,1],function(d){c(i,d)||(i[d]=u[a[d]]/s[d])});function c(d,p){return d[p]!=null&&d[p]!=="auto"}this._sw=i[0],this._sh=i[1]},t.prototype.dataToPoint=function(e,r){Le(e)&&(e=e[0]),r==null&&(r=!0);var n=this.getDateInfo(e),a=this._rangeInfo,i=n.formatedDate;if(r&&!(n.time>=a.start.time&&n.time<a.end.time+KB))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([a.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},t.prototype.pointToData=function(e){var r=this.pointToDate(e);return r&&r.time},t.prototype.dataToRect=function(e,r){var n=this.dataToPoint(e,r);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},t.prototype.pointToDate=function(e){var r=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[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)},t.prototype.convertToPixel=function(e,r,n){var a=Y9(r);return a===this?a.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,r,n){var a=Y9(r);return a===this?a.pointToData(n):null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var e=this._model.get("range"),r;if(Le(e)&&e.length===1&&(e=e[0]),Le(e))r=e;else{var n=e.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 rl("Invalid date range."),e;var s=this._getRangeInfo(r);return s.start.time>s.end.time&&r.reverse(),r},t.prototype._getRangeInfo=function(e){var r=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var a=Math.floor(r[1].time/KB)-Math.floor(r[0].time/KB)+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 c=Math.floor((a+r[0].day+6)/7),d=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:a,weeks:c,nthWeek:d,fweek:r[0].day,lweek:r[1].day}},t.prototype._getDateByWeeksAndDay=function(e,r,n){var a=this._getRangeInfo(n);if(e>a.weeks||e===0&&r<a.fweek||e===a.weeks&&r>a.lweek)return null;var i=(e-1)*7-a.fweek+r,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},t.create=function(e,r){var n=[];return e.eachComponent("calendar",function(a){var i=new t(a);n.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=n[a.get("calendarIndex")||0])}),n},t.dimensions=["time","value"],t}();function Y9(t){var e=t.calendarModel,r=t.seriesModel,n=e?e.coordinateSystem:r?r.coordinateSystem:null;return n}const K3e=Z3e;function Q3e(t){t.registerComponentModel(Y3e),t.registerComponentView(X3e),t.registerCoordinateSystem("calendar",K3e)}function J3e(t,e){var r=t.existing;if(e.id=t.keyInfo.id,!e.type&&r&&(e.type=r.type),e.parentId==null){var n=e.parentOption;n?e.parentId=n.id:r&&(e.parentId=r.parentId)}e.parentOption=null}function q9(t,e){var r;return V(e,function(n){t[n]!=null&&t[n]!=="auto"&&(r=!0)}),r}function eVe(t,e,r){var n=Ce({},r),a=t[e],i=r.$action||"merge";if(i==="merge")if(a){{var o=r.type;Tt(!o||a.type===o,'Please set $action: "replace" to change `type`')}Ft(a,n,!0),yh(a,n,{ignoreSize:!0}),Hee(r,a),PE(r,a),PE(r,a,"shape"),PE(r,a,"style"),PE(r,a,"extra"),r.clipPath=a.clipPath}else t[e]=n;else i==="replace"?t[e]=n:i==="remove"&&a&&(t[e]=null)}var lie=["transition","enterFrom","leaveTo"],tVe=lie.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function PE(t,e,r){if(r&&(!t[r]&&e[r]&&(t[r]={}),t=t[r],e=e[r]),!(!t||!e))for(var n=r?lie:tVe,a=0;a<n.length;a++){var i=n[a];t[i]==null&&e[i]!=null&&(t[i]=e[i])}}function rVe(t,e){if(t&&(t.hv=e.hv=[q9(e,["left","right"]),q9(e,["top","bottom"])],t.type==="group")){var r=t,n=e;r.width==null&&(r.width=n.width=0),r.height==null&&(r.height=n.height=0)}}var nVe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.preventAutoZ=!0,r}return e.prototype.mergeOption=function(r,n){var a=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,r,n),this.option.elements=a},e.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=EJ(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];V(l,function(c,d){var p=c.newOption;Tt(St(p)||c.existing,"Empty graphic option definition"),p&&(u.push(p),J3e(c,p),eVe(o,d,p),rVe(o[d],p))},this),a.elements=Br(o,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(r,n,a){V(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)},e.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},e.type="graphic",e.defaultOption={elements:[]},e}(ur),X9={path:null,compoundPath:null,group:It,image:si,text:mr},Xs=wr(),aVe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this._elMap=yt()},e.prototype.render=function(r,n,a){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,a)},e.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");V(n,function(l){var u=Da(l.id,null),c=u!=null?a.get(u):null,d=Da(l.parentId,null),p=d!=null?a.get(d):i,v=l.type,g=l.style;v==="text"&&g&&l.hv&&l.hv[1]&&(g.textVerticalAlign=g.textBaseline=g.verticalAlign=g.align=null);var m=l.textContent,x=l.textConfig;if(g&&Fae(g,v,!!x,!!m)){var _=Vae(g,v,!0);!x&&_.textConfig&&(x=l.textConfig=_.textConfig),!m&&_.textContent&&(m=_.textContent)}var w=iVe(l);c&&Tt(p===c.parent,"Changing parent is not supported.");var T=l.$action||"merge",A=T==="merge",M=T==="replace";if(A){var D=!c,P=c;D?P=Z9(u,p,l.type,a):(P&&(Xs(P).isNew=!1),jae(P)),P&&(uR(P,w,r,{isInit:D}),K9(P,l,o,s))}else if(M){fR(c,l,a,r);var O=Z9(u,p,l.type,a);O&&(uR(O,w,r,{isInit:!0}),K9(O,l,o,s))}else T==="remove"&&(Wae(c,l),fR(c,l,a,r));var k=a.get(u);if(k&&m)if(A){var N=k.getTextContent();N?N.attr(m):k.setTextContent(new mr(m))}else M&&k.setTextContent(new mr(m));if(k){var $=l.clipPath;if($){var H=$.type,F=void 0,D=!1;if(A){var W=k.getClipPath();D=!W||Xs(W).type!==H,F=D?D5(H):W}else M&&(D=!0,F=D5(H));k.setClipPath(F),uR(F,$,r,{isInit:D}),SM(F,$.keyframeAnimation,r)}var j=Xs(k);k.setTextConfig(x),j.option=l,oVe(k,r,l),Z0({el:k,componentModel:r,itemName:k.name,itemTooltipOption:l.tooltip}),SM(k,l.keyframeAnimation,r)}})}},e.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"],c=0;c<a.length;c++){var d=a[c],p=Da(d.id,null),v=p!=null?o.get(p):null;if(!(!v||!v.isGroup)){var g=v.parent,m=g===i,x=Xs(v),_=Xs(g);x.width=Qe(x.option.width,m?s:_.width)||0,x.height=Qe(x.option.height,m?l:_.height)||0}}for(var c=a.length-1;c>=0;c--){var d=a[c],p=Da(d.id,null),v=p!=null?o.get(p):null;if(v){var g=v.parent,_=Xs(g),w=g===i?{width:s,height:l}:{width:_.width,height:_.height},T={},A=ZD(v,d,w,null,{hv:d.hv,boundingMode:d.bounding},T);if(!Xs(v).isNew&&A){for(var M=d.transition,D={},P=0;P<u.length;P++){var O=u[P],k=T[O];M&&(eg(M)||Qt(M,O)>=0)?D[O]=k:v[O]=k}Sr(v,D,r,0)}else v.attr(T)}}},e.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(a){fR(a,Xs(a).option,n,r._lastGraphicModel)}),this._elMap=yt()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Pn);function D5(t){Tt(t,"graphic type MUST be set");var e=it(X9,t)?X9[t]:WD(t);Tt(e,"graphic type "+t+" can not be found");var r=new e({});return Xs(r).type=t,r}function Z9(t,e,r,n){var a=D5(r);return e.add(a),n.set(t,a),Xs(a).id=t,Xs(a).isNew=!0,a}function fR(t,e,r,n){var a=t&&t.parent;a&&(t.type==="group"&&t.traverse(function(i){fR(i,e,r,n)}),hI(t,e,n),r.removeKey(Xs(t).id))}function K9(t,e,r,n){t.isGroup||V([["cursor",cl.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(a){var i=a[0];it(e,i)?t[i]=$t(e[i],a[1]):t[i]==null&&(t[i]=a[1])}),V(sr(e),function(a){if(a.indexOf("on")===0){var i=e[a];t[a]=vt(i)?i:null}}),it(e,"draggable")&&(t.draggable=e.draggable),e.name!=null&&(t.name=e.name),e.id!=null&&(t.id=e.id)}function iVe(t){return t=Ce({},t),V(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Wee),function(e){delete t[e]}),t}function oVe(t,e,r){var n=Pt(t).eventData;!t.silent&&!t.ignore&&!n&&(n=Pt(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),n&&(n.info=r.info)}function sVe(t){t.registerComponentModel(nVe),t.registerComponentView(aVe),t.registerPreprocessor(function(e){var r=e.graphic;Le(r)?!r[0]||!r[0].elements?e.graphic=[{elements:r}]:e.graphic=[e.graphic[0]]:r&&!r.elements&&(e.graphic=[{elements:[r]}])})}var Q9=["x","y","radius","angle","single"],lVe=["cartesian2d","polar","singleAxis"];function uVe(t){var e=t.get("coordinateSystem");return Qt(lVe,e)>=0}function ah(t){return Tt(t),t+"Axis"}function cVe(t,e){var r=yt(),n=[],a=yt();t.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,t.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),n.push(c),u(c)}function l(c){var d=!1;return c.eachTargetAxis(function(p,v){var g=r.get(p);g&&g[v]&&(d=!0)}),d}function u(c){c.eachTargetAxis(function(d,p){(r.get(d)||r.set(d,[]))[p]=!0})}return n}function uie(t){var e=t.ecModel,r={infoList:[],infoMap:yt()};return t.eachTargetAxis(function(n,a){var i=e.getComponent(ah(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}var QB=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},t}(),fVe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return e.prototype.init=function(r,n,a){var i=J9(r);this.settledOption=i,this.mergeDefaultAndTheme(r,a),this._doInit(i)},e.prototype.mergeOption=function(r){var n=J9(r);Ft(this.option,r,!0),Ft(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var a=this.settledOption;V([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=yt(),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)},e.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return V(Q9,function(a){var i=this.getReferringComponents(ah(a),hCe);if(i.specified){n=!0;var o=new QB;V(i.models,function(s){o.add(s.componentIndex)}),r.set(a,o)}},this),n},e.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(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var d=u[0];if(d){var p=new QB;if(p.add(d.componentIndex),r.set(c,p),i=!1,c==="x"||c==="y"){var v=d.getReferringComponents("grid",xa).models[0];v&&V(u,function(g){d.componentIndex!==g.componentIndex&&v===g.getReferringComponents("grid",xa).models[0]&&p.add(g.componentIndex)})}}}i&&V(Q9,function(u){if(i){var c=a.findComponents({mainType:ah(u),filter:function(p){return p.get("type",!0)==="category"}});if(c[0]){var d=new QB;d.add(c[0].componentIndex),r.set(u,d),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},e.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}},e.prototype._updateRangeUse=function(r){var n=this._rangePropMode,a=this.get("rangeMode");V([["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")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,a){r==null&&(r=this.ecModel.getComponent(ah(n),a))},this),r},e.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(a,i){V(a.indexList,function(o){r.call(n,i,o)})})},e.prototype.getAxisProxy=function(r,n){var a=this.getAxisModel(r,n);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(r,n){Tt(r&&n!=null);var a=this._targetAxisInfoMap.get(r);if(a&&a.indexMap[n])return this.ecModel.getComponent(ah(r),n)},e.prototype.setRawRange=function(r){var n=this.option,a=this.settledOption;V([["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)},e.prototype.setCalculatedRange=function(r){var n=this.option;V(["start","startValue","end","endValue"],function(a){n[a]=r[a]})},e.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},e.prototype.getValueRange=function(r,n){if(r==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;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},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return Tt(this._orient),this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(ur);function J9(t){var e={};return V(["start","end","startValue","endValue","throttle"],function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}const vS=fVe;var dVe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.select",e}(vS);const hVe=dVe;var pVe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a,i){this.dataZoomModel=r,this.ecModel=n,this.api=a},e.type="dataZoom",e}(Pn);const iU=pVe;var vVe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.select",e}(iU);const gVe=vVe;var qy=V,eq=ss,mVe=function(){function t(e,r,n,a){this._dimName=e,this._axisIndex=r,this.ecModel=a,this._dataZoomModel=n}return t.prototype.hostedBy=function(e){return this._dataZoomModel===e},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(r){if(uVe(r)){var n=ah(this._dimName),a=r.getReferringComponents(n,xa).models[0];a&&this._axisIndex===a.componentIndex&&e.push(r)}},this),e},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return Et(this._minMaxSpan)},t.prototype.calculateDataWindow=function(e){var r=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;qy(["start","end"],function(p,v){var g=e[p],m=e[p+"Value"];i[v]==="percent"?(g==null&&(g=o[v]),m=a.parse(Nr(g,o,r))):(u=!0,m=m==null?r[v]:a.parse(m),g=Nr(m,r,o)),l[v]=m==null||isNaN(m)?r[v]:m,s[v]=g==null||isNaN(g)?o[v]:g}),eq(l),eq(s);var c=this._minMaxSpan;u?d(l,s,r,o,!1):d(s,l,o,r,!0);function d(p,v,g,m,x){var _=x?"Span":"ValueSpan";Rg(0,p,g,"all",c["min"+_],c["max"+_]);for(var w=0;w<2;w++)v[w]=Nr(p[w],g,m,!0),x&&(v[w]=a.parse(v[w]))}return{valueWindow:l,percentWindow:s}},t.prototype.reset=function(e){if(e===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=yVe(this,this._dimName,r),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(e,r){if(e!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;qy(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(i==="weakFilter"){var d=u.getStore(),p=Oe(c,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var g,m,x,_=0;_<c.length;_++){var w=d.get(p[_],v),T=!isNaN(w),A=w<o[0],M=w>o[1];if(T&&!A&&!M)return!0;T&&(x=!0),A&&(g=!0),M&&(m=!0)}return x&&g&&m})}else qy(c,function(v){if(i==="empty")l.setData(u=u.map(v,function(m){return s(m)?m:NaN}));else{var g={};g[v]=o,u.selectRange(g)}});qy(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},t.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;qy(["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=Nr(n[0]+o,n,[0,100],!0):i!=null&&(o=Nr(i,[0,100],n,!0)-n[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},t.prototype._setAxisModel=function(){var e=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var a=f3(n,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;r[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),r[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},t}();function yVe(t,e,r){var n=[1/0,-1/0];qy(r,function(o){MIe(n,o.getData(),e)});var a=t.getAxisModel(),i=Cre(a.axis.scale,a,n).calculate();return[i.min,i.max]}const bVe=mVe;var xVe={getTargetSeries:function(t){function e(a){t.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=t.getComponent(ah(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var r=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new bVe(a,i,s,t),r.push(o.__dzAxisProxy))});var n=yt();return V(r,function(a){V(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(t,e){t.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).reset(r)}),r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).filterData(r,e)})}),t.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();r.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const _Ve=xVe;function SVe(t){t.registerAction("dataZoom",function(e,r){var n=cVe(r,e);V(n,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var tq=!1;function oU(t){tq||(tq=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,_Ve),SVe(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function wVe(t){t.registerComponentModel(hVe),t.registerComponentView(gVe),oU(t)}var Qs=function(){function t(){}return t}(),cie={};function Xy(t,e){cie[t]=e}function fie(t){return cie[t]}var TVe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;V(this.option.feature,function(n,a){var i=fie(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(r)),Ft(n,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(ur);const CVe=TVe;function AVe(t,e,r){var n=e.getBoxLayoutParams(),a=e.get("padding"),i={width:r.getWidth(),height:r.getHeight()},o=_a(n,i,a);Zv(e.get("orient"),t,e.get("itemGap"),o.width,o.height),ZD(t,n,i,a)}function die(t,e){var r=Tg(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new yr({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),t}var EVe=function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.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")||{},c=this._features||(this._features={}),d=[];V(u,function(g,m){d.push(m)}),new xf(this._featureNames||[],d).add(p).update(p).remove(Lt(p,null)).execute(),this._featureNames=d;function p(g,m){var x=d[g],_=d[m],w=u[x],T=new Xr(w,r,r.ecModel),A;if(i&&i.newTitle!=null&&i.featureName===x&&(w.title=i.newTitle),x&&!_){if(RVe(x))A={onclick:T.option.onclick,featureName:x};else{var M=fie(x);if(!M)return;A=new M}c[x]=A}else if(A=c[_],!A)return;A.uid=Q0("toolbox-feature"),A.model=T,A.ecModel=n,A.api=a;var D=A instanceof Qs;if(!x&&_){D&&A.dispose&&A.dispose(n,a);return}if(!T.get("show")||D&&A.unusable){D&&A.remove&&A.remove(n,a);return}v(T,A,x),T.setIconStatus=function(P,O){var k=this.option,N=this.iconPaths;k.iconStatus=k.iconStatus||{},k.iconStatus[P]=O,N[P]&&(O==="emphasis"?yf:bf)(N[P])},A instanceof Qs&&A.render&&A.render(T,n,a,i)}function v(g,m,x){var _=g.getModel("iconStyle"),w=g.getModel(["emphasis","iconStyle"]),T=m instanceof Qs&&m.getIcons?m.getIcons():g.get("icon"),A=g.get("title")||{},M,D;at(T)?(M={},M[x]=T):M=T,at(A)?(D={},D[x]=A):D=A;var P=g.iconPaths={};V(M,function(O,k){var N=X0(O,{},{x:-s/2,y:-s/2,width:s,height:s});N.setStyle(_.getItemStyle());var $=N.ensureState("emphasis");$.style=w.getItemStyle();var H=new mr({style:{text:D[k],align:w.get("textAlign"),borderRadius:w.get("textBorderRadius"),padding:w.get("textPadding"),fill:null},ignore:!0});N.setTextContent(H),Z0({el:N,componentModel:r,itemName:k,formatterParamsExtra:{title:D[k]}}),N.__title=D[k],N.on("mouseover",function(){var F=w.getItemStyle(),W=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";H.setStyle({fill:w.get("textFill")||F.fill||F.stroke||"#000",backgroundColor:w.get("textBackgroundColor")}),N.setTextConfig({position:w.get("textPosition")||W}),H.ignore=!r.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){g.get(["iconStatus",k])!=="emphasis"&&a.leaveEmphasis(this),H.hide()}),(g.get(["iconStatus",k])==="emphasis"?yf:bf)(N),o.add(N),N.on("click",ot(m.onclick,m,n,a,k)),P[k]=N})}AVe(o,r,a),o.add(die(o.getBoundingRect(),r)),l||o.eachChild(function(g){var m=g.__title,x=g.ensureState("emphasis"),_=x.textConfig||(x.textConfig={}),w=g.getTextContent(),T=w&&w.ensureState("emphasis");if(T&&!vt(T)&&m){var A=T.style||(T.style={}),M=NS(m,mr.makeFont(A)),D=g.x+o.x,P=g.y+o.y+s,O=!1;P+M.height>a.getHeight()&&(_.position="top",O=!0);var k=O?-5-M.height:s+10;D+M.width/2>a.getWidth()?(_.position=["100%",k],A.align="right"):D-M.width/2<0&&(_.position=[0,k],A.align="left")}})},e.prototype.updateView=function(r,n,a,i){V(this._features,function(o){o instanceof Qs&&o.updateView&&o.updateView(o.model,n,a,i)})},e.prototype.remove=function(r,n){V(this._features,function(a){a instanceof Qs&&a.remove&&a.remove(r,n)}),this.group.removeAll()},e.prototype.dispose=function(r,n){V(this._features,function(a){a instanceof Qs&&a.dispose&&a.dispose(r,n)})},e.type="toolbox",e}(Pn);function RVe(t){return t.indexOf("my")===0}const MVe=EVe;var DVe=function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.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")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=gr.browser;if(vt(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var p=l.split(","),v=p[0].indexOf("base64")>-1,g=o?decodeURIComponent(p[1]):p[1];v&&(g=window.atob(g));var m=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var x=g.length,_=new Uint8Array(x);x--;)_[x]=g.charCodeAt(x);var w=new Blob([_]);window.navigator.msSaveOrOpenBlob(w,m)}else{var T=document.createElement("iframe");document.body.appendChild(T);var A=T.contentWindow,M=A.document;M.open("image/svg+xml","replace"),M.write(g),M.close(),A.focus(),M.execCommand("SaveAs",!0,m),document.body.removeChild(T)}}else{var D=a.get("lang"),P='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(D&&D[0]||"")+'" /></body>',O=window.open();O.document.write(P),O.document.title=i}},e.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e}(Qs);const IVe=DVe;var rq="__ec_magicType_stack__",PVe=[["line","bar"],["stack"]],LVe=function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),a={};return V(r.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},e.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},e.prototype.onclick=function(r,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(nq[a]){var s={series:[]},l=function(d){var p=d.subType,v=d.id,g=nq[a](p,v,d,i);g&&(wt(g,d.option),s.series.push(g));var m=d.coordinateSystem;if(m&&m.type==="cartesian2d"&&(a==="line"||a==="bar")){var x=m.getAxesByScale("ordinal")[0];if(x){var _=x.dim,w=_+"Axis",T=d.getReferringComponents(w,xa).models[0],A=T.componentIndex;s[w]=s[w]||[];for(var M=0;M<=A;M++)s[w][A]=s[w][A]||{};s[w][A].boundaryGap=a==="bar"}}};V(PVe,function(d){Qt(d,a)>=0&&V(d,function(p){i.setIconStatus(p,"normal")})}),i.setIconStatus(a,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Ft({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(Qs),nq={line:function(t,e,r,n){if(t==="bar")return Ft({id:e,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(t,e,r,n){if(t==="line")return Ft({id:e,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(t,e,r,n){var a=r.get("stack")===rq;if(t==="line"||t==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Ft({id:e,stack:a?"":rq},n.get(["option","stack"])||{},!0)}};au({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});const OVe=LVe;var pI=new Array(60).join("-"),L0=" ";function kVe(t){var e={},r=[],n=[];return t.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=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else r.push(a)}else r.push(a)}),{seriesGroupByCategoryAxis:e,other:r,meta:n}}function NVe(t){var e=[];return V(t,function(r,n){var a=r.categoryAxis,i=r.valueAxis,o=i.dim,s=[" "].concat(Oe(r.series,function(v){return v.name})),l=[a.model.getCategories()];V(r.series,function(v){var g=v.getRawData();l.push(v.getRawData().mapArray(g.mapDimension(o),function(m){return m}))});for(var u=[s.join(L0)],c=0;c<l[0].length;c++){for(var d=[],p=0;p<l.length;p++)d.push(l[p][c]);u.push(d.join(L0))}e.push(u.join(` `))}),e.join(` `+pI+` `)}function BVe(t){return Oe(t,function(e){var r=e.getRawData(),n=[e.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+L0:"")+a.join(L0))}),n.join(` `)}).join(` `+pI+` `)}function zVe(t){var e=kVe(t);return{value:Br([NVe(e.seriesGroupByCategoryAxis),BVe(e.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(` `+pI+` `),meta:e.meta}}function AM(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function $Ve(t){var e=t.slice(0,t.indexOf(` `));if(e.indexOf(L0)>=0)return!0}var I5=new RegExp("["+L0+"]+","g");function FVe(t){for(var e=t.split(/\n+/g),r=AM(e.shift()).split(I5),n=[],a=Oe(r,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=AM(e[i]).split(I5);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 VVe(t){for(var e=t.split(/\n+/g),r=AM(e.shift()),n=[],a=0;a<e.length;a++){var i=AM(e[a]);if(i){var o=i.split(I5),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 c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:r,data:n}}function UVe(t,e){var r=t.split(new RegExp(` *`+pI+` *`,"g")),n={series:[]};return V(r,function(a,i){if($Ve(a)){var o=FVe(a),s=e[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=VVe(a);n.series.push(o)}}),n}var WVe=function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.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")||"#fff";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"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var d=i.get("optionToContent"),p=i.get("contentToOption"),v=zVe(r);if(vt(d)){var g=d(n.getOption());at(g)?u.innerHTML=g:ug(g)&&u.appendChild(g)}else{c.readOnly=i.get("readOnly");var m=c.style;m.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",m.color=i.get("textColor"),m.borderColor=i.get("textareaBorderColor"),m.backgroundColor=i.get("textareaColor"),c.value=v.value,u.appendChild(c)}var x=v.meta,_=document.createElement("div");_.style.cssText="position:absolute;bottom:5px;left:0;right:0";var w="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",T=document.createElement("div"),A=document.createElement("div");w+=";background-color:"+i.get("buttonColor"),w+=";color:"+i.get("buttonTextColor");var M=this;function D(){a.removeChild(o),M._dom=null}u$(T,"click",D),u$(A,"click",function(){if(p==null&&d!=null||p!=null&&d==null){Vn("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),D();return}var P;try{vt(p)?P=p(u,n.getOption()):P=UVe(c.value,x)}catch(O){throw D(),new Error("Data view format error "+O)}P&&n.dispatchAction({type:"changeDataView",newOption:P}),D()}),T.innerHTML=l[1],A.innerHTML=l[2],A.style.cssText=T.style.cssText=w,!i.get("readOnly")&&_.appendChild(A),_.appendChild(T),o.appendChild(s),o.appendChild(u),o.appendChild(_),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},e.prototype.remove=function(r,n){this._dom&&n.getDom().removeChild(this._dom)},e.prototype.dispose=function(r,n){this.remove(r,n)},e.getDefaultOption=function(r){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:r.getLocaleModel().get(["toolbox","dataView","title"]),lang:r.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},e}(Qs);function HVe(t,e){return Oe(t,function(r,n){var a=e&&e[n];if(St(a)&&!Le(a)){var i=St(r)&&!Le(r);i||(r={value:r});var o=a.name!=null&&r.name==null;return r=wt(r,a),o&&delete r.name,r}else return r})}au({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var r=[];V(t.newOption.series,function(n){var a=e.getSeriesByName(n.name)[0];if(!a)r.push(Ce({type:"scatter"},n));else{var i=a.get("data");r.push({name:n.name,data:HVe(n.data,i)})}}),e.mergeOption(wt({series:r},t.newOption))});const GVe=WVe;var hie=V,pie=wr();function jVe(t,e){var r=sU(t);hie(e,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=t.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(e)}function YVe(t){var e=sU(t),r=e[e.length-1];e.length>1&&e.pop();var n={};return hie(r,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){n[i]=a;break}}),n}function qVe(t){pie(t).snapshots=null}function XVe(t){return sU(t).length}function sU(t){var e=pie(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var ZVe=function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(r,n){qVe(r),n.dispatchAction({type:"restore",from:this.uid})},e.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},e}(Qs);au({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});const KVe=ZVe;var QVe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],JVe=function(){function t(e,r,n){var a=this;this._targetInfoList=[];var i=aq(r,e);V(eUe,function(o,s){(!n||!n.include||Qt(n.include,s)>=0)&&o(i,a._targetInfoList)})}return t.prototype.setOutputRanges=function(e,r){return this.matchOutputRanges(e,r,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=JB[n.brushType](0,i,a);n.__rangeOffset={offset:lq[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},t.prototype.matchOutputRanges=function(e,r,n){V(e,function(a){var i=this.findTargetInfo(a,r);i&&i!==!0&&V(i.coordSyses,function(o){var s=JB[a.brushType](1,o,a.range,!0);n(a,s.values,o,r)})},this)},t.prototype.setInputRanges=function(e,r){V(e,function(n){var a=this.findTargetInfo(n,r);if(Tt(!a||a===!0||n.coordRange,"coordRange must be specified when coord index specified."),Tt(!a||a!==!0||n.range,"range must be specified in global brush."),n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=JB[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?lq[n.brushType](i.values,o.offset,tUe(i.xyMinMax,o.xyMinMax)):i.values}},this)},t.prototype.makePanelOpts=function(e,r){return Oe(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:xae(a),isTargetByCursor:Sae(a,e,n.coordSysModel),getLinearBrushOtherExtent:_ae(a)}})},t.prototype.controlSeries=function(e,r,n){var a=this.findTargetInfo(e,n);return a===!0||a&&Qt(a.coordSyses,r.coordinateSystem)>=0},t.prototype.findTargetInfo=function(e,r){for(var n=this._targetInfoList,a=aq(r,e),i=0;i<n.length;i++){var o=n[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<iq.length;l++)if(iq[l](a,o))return o}return!0},t}();function P5(t){return t[0]>t[1]&&t.reverse(),t}function aq(t,e){return x1(t,e,{includeMainTypes:QVe})}var eUe={grid:function(t,e){var r=t.xAxisModels,n=t.yAxisModels,a=t.gridModels,i=yt(),o={},s={};!r&&!n&&!a||(V(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),V(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),V(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];V(u.getCartesians(),function(d,p){(Qt(r,d.getAxis("x").model)>=0||Qt(n,d.getAxis("y").model)>=0)&&c.push(d)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:oq.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(t,e){V(t.geoModels,function(r){var n=r.coordinateSystem;e.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:oq.geo})})}},iq=[function(t,e){var r=t.xAxisModel,n=t.yAxisModel,a=t.gridModel;return!a&&r&&(a=r.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(t,e){var r=t.geoModel;return r&&r===e.geoModel}],oq={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(lh(t)),e}},JB={lineX:Lt(sq,0),lineY:Lt(sq,1),rect:function(t,e,r,n){var a=t?e.pointToData([r[0][0],r[1][0]],n):e.dataToPoint([r[0][0],r[1][0]],n),i=t?e.pointToData([r[0][1],r[1][1]],n):e.dataToPoint([r[0][1],r[1][1]],n),o=[P5([a[0],i[0]]),P5([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,r,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=Oe(r,function(o){var s=t?e.pointToData(o,n):e.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 sq(t,e,r,n){Tt(r.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var a=r.getAxis(["x","y"][t]),i=P5(Oe([0,1],function(s){return e?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[t]=i,o[1-t]=[NaN,NaN],{values:i,xyMinMax:o}}var lq={lineX:Lt(uq,0),lineY:Lt(uq,1),rect:function(t,e,r){return[[t[0][0]-r[0]*e[0][0],t[0][1]-r[0]*e[0][1]],[t[1][0]-r[1]*e[1][0],t[1][1]-r[1]*e[1][1]]]},polygon:function(t,e,r){return Oe(t,function(n,a){return[n[0]-r[0]*e[a][0],n[1]-r[1]*e[a][1]]})}};function uq(t,e,r,n){return[e[0]-n[t]*r[0],e[1]-n[t]*r[1]]}function tUe(t,e){var r=cq(t),n=cq(e),a=[r[0]/n[0],r[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function cq(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}const lU=JVe;var L5=V,rUe=lCe("toolbox-dataZoom_"),nUe=function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(r,n,a,i){this._brushController||(this._brushController=new UV(a.getZr()),this._brushController.on("brush",ot(this._onBrush,this)).mount()),oUe(r,n,this,i,a),iUe(r,n)},e.prototype.onclick=function(r,n,a){aUe[a].call(this)},e.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},e.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 lU(uU(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,c,d){if(d.type==="cartesian2d"){var p=u.brushType;p==="rect"?(s("x",d,c[0]),s("y",d,c[1])):s({lineX:"x",lineY:"y"}[p],d,c)}}),jVe(i,a),this._dispatchZoomAction(a);function s(u,c,d){var p=c.getAxis(u),v=p.model,g=l(u,v,i),m=g.findRepresentativeAxisProxy(v).getMinMaxSpan();(m.minValueSpan!=null||m.maxValueSpan!=null)&&(d=Rg(0,d.slice(),p.scale.getExtent(),0,m.minValueSpan,m.maxValueSpan)),g&&(a[g.id]={dataZoomId:g.id,startValue:d[0],endValue:d[1]})}function l(u,c,d){var p;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var g=v.getAxisModel(u,c.componentIndex);g&&(p=v)}),p}},e.prototype._dispatchZoomAction=function(r){var n=[];L5(r,function(a,i){n.push(Et(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},e}(Qs),aUe={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(YVe(this.ecModel))}};function uU(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function iUe(t,e){t.setIconStatus("back",XVe(e)>1?"emphasis":"normal")}function oUe(t,e,r,n,a){var i=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=i,t.setIconStatus("zoom",i?"emphasis":"normal");var o=new lU(uU(t),e,{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:t.getModel("brushStyle").getItemStyle()}:!1)}FEe("dataZoom",function(t){var e=t.getComponent("toolbox",0),r=["feature","dataZoom"];if(!e||e.get(r)==null)return;var n=e.getModel(r),a=[],i=uU(n),o=x1(t,i);L5(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),L5(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var d=l.componentIndex,p={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:rUe+u+d};p[c]=d,a.push(p)}return a});const sUe=nUe;function lUe(t){t.registerComponentModel(CVe),t.registerComponentView(MVe),Xy("saveAsImage",IVe),Xy("magicType",OVe),Xy("dataView",GVe),Xy("dataZoom",sUe),Xy("restore",KVe),rr(wVe)}var uUe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(ur);const cUe=uUe;function vie(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function gie(t){if(gr.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var mie=gie(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),fUe=gie(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function yie(t,e){if(!t)return e;e=N3(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function dUe(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}var hUe=yie(fUe,"transition"),cU=yie(mie,"transform"),pUe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(gr.transform3dSupported?"will-change:transform;":"");function vUe(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function gUe(t,e,r){if(!at(r)||r==="inside")return"";var n=t.get("backgroundColor"),a=t.get("borderWidth");e=pg(e);var i=vUe(r),o=Math.max(Math.round(a)*1.5,6),s="",l=cU+":",u;Qt(["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 c=u*Math.PI/180,d=o+a,p=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),v=Math.round(((p-Math.SQRT2*a)/2+Math.SQRT2*a-(p-d)/2)*100)/100;s+=";"+i+":-"+v+"px";var g=e+" solid "+a+"px;",m=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+g,"border-right:"+g,"background-color:"+n+";"];return'<div style="'+m.join("")+'"></div>'}function mUe(t,e){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+t/2+"s "+r,a="opacity"+n+",visibility"+n;return e||(n=" "+t+"s "+r,a+=gr.transformSupported?","+cU+n:",left"+n+",top"+n),hUe+":"+a}function fq(t,e,r){var n=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!gr.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=gr.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+cU+":"+o+";":[["top",0],["left",0],[mie,o]]}function yUe(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont()),r&&e.push("line-height:"+Math.round(r*3/2)+"px");var a=t.get("textShadowColor"),i=t.get("textShadowBlur")||0,o=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return a&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),V(["decoration","align"],function(l){var u=t.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function bUe(t,e,r){var n=[],a=t.get("transitionDuration"),i=t.get("backgroundColor"),o=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),d=Ste(t,"html"),p=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+p),e&&a&&n.push(mUe(a,r)),i&&n.push("background-color:"+i),V(["width","color","radius"],function(v){var g="border-"+v,m=N3(g),x=t.get(m);x!=null&&n.push(g+":"+x+(v==="color"?"":"px"))}),n.push(yUe(c)),d!=null&&n.push("padding:"+Tg(d).join("px ")+"px"),n.join(";")+";"}function dq(t,e,r,n,a){var i=e&&e.painter;if(r){var o=i&&i.getViewportRoot();o&&wwe(t,o,document.body,n,a)}else{t[0]=n,t[1]=a;var s=i&&i.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var xUe=function(){function t(e,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,gr.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;dq(this._styleCoord,i,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();js(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){var r=this._container,n=dUe(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=pUe+bUe(e,!this._firstShow,this._longHide)+fq(i[0],i[1],!0)+("border-color:"+pg(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(at(i)&&n.get("trigger")==="item"&&!vie(n)&&(s=gUe(n,a,i)),at(e))o.innerHTML=e+s;else if(e){o.innerHTML="",Le(e)||(e=[e]);for(var l=0;l<e.length;l++)ug(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},t.prototype.moveTo=function(e,r){var n=this._styleCoord;if(dq(n,this._zr,this._appendToBody,e,r),n[0]!=null&&n[1]!=null){var a=this.el.style,i=fq(n[0],n[1]);V(i,function(o){a[o[0]]=o[1]})}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;r.visibility="hidden",r.opacity="0",gr.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ot(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}();const _Ue=xUe;var SUe=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=e.getZr(),pq(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized()},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,a,i){var o=this;St(e)&&Or("Passing DOM nodes as content is not supported in richText tooltip!"),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new mr({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Ste(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),V(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),V(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=hq(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var a=this._styleCoord;pq(a,this._zr,e,r),e=a[0],r=a[1];var i=n.style,o=Ud(i.borderWidth||0),s=hq(i);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ot(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function Ud(t){return Math.max(0,t)}function hq(t){var e=Ud(t.shadowBlur||0),r=Ud(t.shadowOffsetX||0),n=Ud(t.shadowOffsetY||0);return{left:Ud(e-r),right:Ud(e+r),top:Ud(e-n),bottom:Ud(e+n)}}function pq(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const wUe=SUe;var TUe=new yr({shape:{x:-1,y:-1,width:2,height:2}}),CUe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(gr.node||!n.getDom())){var a=r.getComponent("tooltip"),i=this._renderMode=vCe(a.get("renderMode"));this._tooltipContent=i==="richText"?new wUe(n):new _Ue(n.getDom(),n,{appendToBody:a.get("appendToBody",!0)})}},e.prototype.render=function(r,n,a){if(!(gr.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a,this._alwaysShowContent=r.get("alwaysShowContent");var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?nb(this,"_updatePosition",50,"fixRate"):nS(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");tie("itemTooltip",this._api,ot(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,i=r.get("triggerOn");if(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})})}},e.prototype.manuallyShowTip=function(r,n,a,i){if(!(i.from===this.uid||gr.node||!a.getDom())){var o=vq(i,a);this._ticket="";var s=i.dataByCoordSys,l=MUe(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 c=TUe;c.x=i.x,c.y=i.y,c.update(),Pt(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},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 d=rie(i,n),p=d.point[0],v=d.point[1];p!=null&&v!=null&&this._tryShow({offsetX:p,offsetY:v,target:d.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))}},e.prototype.manuallyHideTip=function(r,n,a,i){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(vq(i,a))},e.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 c=u.getData(),d=F_([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.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){this._lastDataByCoordSys=null;var s,l;Hv(a,function(u){if(Pt(u).dataIndex!=null)return s=u,!0;if(Pt(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=ot(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=F_([n.tooltipOption],i),l=this._renderMode,u=[],c=Fa("section",{blocks:[],noHeader:!0}),d=[],p=new BN;V(r,function(w){V(w.dataByAxis,function(T){var A=a.getComponent(T.axisDim+"Axis",T.axisIndex),M=T.value;if(!(!A||M==null)){var D=Qae(M,A.axis,a,T.seriesDataIndices,T.valueLabelOpt),P=Fa("section",{header:D,noHeader:!tl(D),sortBlocks:!0,blocks:[]});c.blocks.push(P),V(T.seriesDataIndices,function(O){var k=a.getSeriesByIndex(O.seriesIndex),N=O.dataIndexInside,$=k.getDataParams(N);if(!($.dataIndex<0)){$.axisDim=T.axisDim,$.axisIndex=T.axisIndex,$.axisType=T.axisType,$.axisId=T.axisId,$.axisValue=dV(A.axis,{value:M}),$.axisValueLabel=D,$.marker=p.makeTooltipMarker("item",pg($.color),l);var H=eY(k.formatTooltip(N,!0,null)),F=H.frag;if(F){var W=F_([k],i).get("valueFormatter");P.blocks.push(W?Ce({valueFormatter:W},F):F)}H.text&&d.push(H.text),u.push($)}})}})}),c.blocks.reverse(),d.reverse();var v=n.position,g=s.get("order"),m=oY(c,p,l,g,a.get("useUTC"),s.get("textStyle"));m&&d.unshift(m);var x=l==="richText"?` `:"<br/>",_=d.join(x);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,_,u,Math.random()+"",o[0],o[1],v,null,p)})},e.prototype._showSeriesItemTooltip=function(r,n,a){var i=this._ecModel,o=Pt(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,p=u.getData(d),v=this._renderMode,g=r.positionDefault,m=F_([p.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),x=m.get("trigger");if(!(x!=null&&x!=="item")){var _=u.getDataParams(c,d),w=new BN;_.marker=w.makeTooltipMarker("item",pg(_.color),v);var T=eY(u.formatTooltip(c,!1,d)),A=m.get("order"),M=m.get("valueFormatter"),D=T.frag,P=D?oY(M?Ce({valueFormatter:M},D):D,w,v,A,i.get("useUTC"),m.get("textStyle")):T.text,O="item_"+u.name+"_"+c;this._showOrMove(m,function(){this._showTooltipContent(m,P,_,O,r.offsetX,r.offsetY,r.position,r.target,w)}),a({type:"showTip",dataIndexInside:c,dataIndex:p.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,a){var i=Pt(n),o=i.tooltipConfig,s=o.option||{};if(at(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var d=r.positionDefault,p=F_(u,this._tooltipModel,d?{position:d}:null),v=p.get("content"),g=Math.random()+"",m=new BN;this._showOrMove(p,function(){var x=Et(p.get("formatterParams")||{});this._showTooltipContent(p,v,x,g,r.offsetX,r.offsetY,r.position,n,m)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,a,i,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var d=this._tooltipContent;d.setEnterable(r.get("enterable"));var p=r.get("formatter");l=l||r.get("position");var v=n,g=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor")),m=g.color;if(p)if(at(p)){var x=r.ecModel.get("useUTC"),_=Le(a)?a[0]:a,w=_&&_.axisType&&_.axisType.indexOf("time")>=0;v=p,w&&(v=GS(_.axisValue,v,x)),v=B3(v,a,!0)}else if(vt(p)){var T=ot(function(A,M){A===this._ticket&&(d.setContent(M,c,r,m,l),this._updatePosition(r,l,o,s,d,a,u))},this);this._ticket=i,v=p(a,i,T)}else v=p;d.setContent(v,c,r,m,l),d.show(r,m),this._updatePosition(r,l,o,s,d,a,u)}},e.prototype._getNearestPoint=function(r,n,a,i){if(a==="axis"||Le(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!Le(n))return{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var d=o.getSize(),p=r.get("align"),v=r.get("verticalAlign"),g=l&&l.getBoundingRect().clone();if(l&&g.applyTransform(l.transform),vt(n)&&(n=n([a,i],s,o.el,g,{viewSize:[u,c],contentSize:d.slice()})),Le(n))a=Qe(n[0],u),i=Qe(n[1],c);else if(St(n)){var m=n;m.width=d[0],m.height=d[1];var x=_a(m,{width:u,height:c});a=x.x,i=x.y,p=null,v=null}else if(at(n)&&l){var _=RUe(n,g,d,r.get("borderWidth"));a=_[0],i=_[1]}else{var _=AUe(a,i,o,u,c,p?null:20,v?null:20);a=_[0],i=_[1]}if(p&&(a-=gq(p)?d[0]/2:p==="right"?d[0]:0),v&&(i-=gq(v)?d[1]/2:v==="bottom"?d[1]:0),vie(r)){var _=EUe(a,i,o,u,c);a=_[0],i=_[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===r.length;return o&&V(a,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&V(u,function(p,v){var g=d[v]||{},m=p.seriesDataIndices||[],x=g.seriesDataIndices||[];o=o&&p.value===g.value&&p.axisType===g.axisType&&p.axisId===g.axisId&&m.length===x.length,o&&V(m,function(_,w){var T=x[w];o=o&&_.seriesIndex===T.seriesIndex&&_.dataIndex===T.dataIndex}),i&&V(p.seriesDataIndices,function(_){var w=_.seriesIndex,T=n[w],A=i[w];T&&A&&A.data!==T.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){gr.node||!n.getDom()||(nS(this,"_updatePosition"),this._tooltipContent.dispose(),R5("itemTooltip",n))},e.type="tooltip",e}(Pn);function F_(t,e,r){var n=e.ecModel,a;r?(a=new Xr(r,n,n),a=new Xr(e.option,a,n)):a=e;for(var i=t.length-1;i>=0;i--){var o=t[i];o&&(o instanceof Xr&&(o=o.get("tooltip",!0)),at(o)&&(o={formatter:o}),o&&(a=new Xr(o,a,n)))}return a}function vq(t,e){return t.dispatchAction||ot(e.dispatchAction,e)}function AUe(t,e,r,n,a,i,o){var s=r.getSize(),l=s[0],u=s[1];return i!=null&&(t+l+i+2>n?t-=l+i:t+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[t,e]}function EUe(t,e,r,n,a){var i=r.getSize(),o=i[0],s=i[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,a)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function RUe(t,e,r,n){var a=r[0],i=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function gq(t){return t==="center"||t==="middle"}function MUe(t,e,r){var n=v3(t).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=zS(e,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 c=Pt(u).tooltipConfig;if(c&&c.name===t.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const DUe=CUe;function IUe(t){rr(nw),t.registerComponentModel(cUe),t.registerComponentView(DUe),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ta),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ta)}var PUe=["rect","polygon","keep","clear"];function LUe(t,e){var r=Zr(t?t.brush:[]);if(r.length){var n=[];V(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=t&&t.toolbox;Le(a)&&(a=a[0]),a||(a={feature:{}},t.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),OUe(s),e&&!s.length&&s.push.apply(s,PUe)}}function OUe(t){var e={};V(t,function(r){e[r]=1}),t.length=0,V(e,function(r,n){t.push(n)})}var mq=V;function yq(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function O5(t,e,r){var n={};return mq(e,function(i){var o=n[i]=a();mq(t[i],function(s,l){if(xi.isValidType(l)){var u={type:l,visual:s};r&&r(u,i),o[l]=new xi(u),l==="opacity"&&(u=Et(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new xi(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function bie(t,e,r){var n;V(r,function(a){e.hasOwnProperty(a)&&yq(e[a])&&(n=!0)}),n&&V(r,function(a){e.hasOwnProperty(a)&&yq(e[a])?t[a]=Et(e[a]):delete t[a]})}function kUe(t,e,r,n,a,i){var o={};V(t,function(d){var p=xi.prepareVisualTypes(e[d]);o[d]=p});var s;function l(d){return X3(r,s,d)}function u(d,p){Pte(r,s,d,p)}i==null?r.each(c):r.each([i],c);function c(d,p){s=i==null?d:p;var v=r.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var g=n.call(a,d),m=e[g],x=o[g],_=0,w=x.length;_<w;_++){var T=x[_];m[T]&&m[T].applyVisual(d,l,u)}}}function NUe(t,e,r,n){var a={};return V(t,function(i){var o=xi.prepareVisualTypes(e[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(M){return X3(s,d,M)}function c(M,D){Pte(s,d,M,D)}for(var d,p=s.getStore();(d=o.next())!=null;){var v=s.getRawDataItem(d);if(!(v&&v.visualMap===!1))for(var g=n!=null?p.get(l,d):d,m=r(g),x=e[m],_=a[m],w=0,T=_.length;w<T;w++){var A=_[w];x[A]&&x[A].applyVisual(g,u,c)}}}}}function BUe(t){var e=t.brushType,r={point:function(n){return bq[e].point(n,r,t)},rect:function(n){return bq[e].rect(n,r,t)}};return r}var bq={lineX:xq(0),lineY:xq(1),rect:{point:function(t,e,r){return t&&r.boundingRect.contain(t[0],t[1])},rect:function(t,e,r){return t&&r.boundingRect.intersect(t)}},polygon:{point:function(t,e,r){return t&&r.boundingRect.contain(t[0],t[1])&&kv(r.range,t[0],t[1])},rect:function(t,e,r){var n=r.range;if(!t||n.length<=1)return!1;var a=t.x,i=t.y,o=t.width,s=t.height,l=n[0];if(kv(n,a,i)||kv(n,a+o,i)||kv(n,a,i+s)||kv(n,a+o,i+s)||Ht.create(t).contain(l[0],l[1])||J_(a,i,a+o,i,n)||J_(a,i,a,i+s,n)||J_(a+o,i,a+o,i+s,n)||J_(a,i+s,a+o,i+s,n))return!0}}};function xq(t){var e=["x","y"],r=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[t];return V_(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[e[t]],n[e[t]]+n[r[t]]];return s[1]<s[0]&&s.reverse(),V_(s[0],o)||V_(s[1],o)||V_(o[0],s)||V_(o[1],s)}}}}function V_(t,e){return e[0]<=t&&t<=e[1]}var _q=["inBrush","outOfBrush"],ez="__ecBrushSelect",k5="__ecInBrushSelectEvent";function xie(t){t.eachComponent({mainType:"brush"},function(e){var r=e.brushTargetManager=new lU(e.option,t);r.setInputRanges(e.areas,t)})}function zUe(t,e,r){var n=[],a,i;t.eachComponent({mainType:"brush"},function(o){r&&r.type==="takeGlobalCursor"&&o.setBrushOption(r.key==="brush"?r.brushOption:{brushType:!1})}),xie(t),t.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Et(o.areas),selected:[]};n.push(l);var u=o.option,c=u.brushLink,d=[],p=[],v=[],g=!1;s||(a=u.throttleType,i=u.throttleDelay);var m=Oe(o.areas,function(M){var D=UUe[M.brushType],P=wt({boundingRect:D?D(M):void 0},M);return P.selectors=BUe(P),P}),x=O5(o.option,_q,function(M){M.mappingMethod="fixed"});Le(c)&&V(c,function(M){d[M]=1});function _(M){return c==="all"||!!d[M]}function w(M){return!!M.length}t.eachSeries(function(M,D){var P=v[D]=[];M.subType==="parallel"?T(M,D):A(M,D,P)});function T(M,D){var P=M.coordinateSystem;g=g||P.hasAxisBrushed(),_(D)&&P.eachActiveState(M.getData(),function(O,k){O==="active"&&(p[k]=1)})}function A(M,D,P){if(!(!M.brushSelector||VUe(o,D))&&(V(m,function(k){o.brushTargetManager.controlSeries(k,M,t)&&P.push(k),g=g||w(P)}),_(D)&&w(P))){var O=M.getData();O.each(function(k){Sq(M,P,O,k)&&(p[k]=1)})}}t.eachSeries(function(M,D){var P={seriesId:M.id,seriesIndex:D,seriesName:M.name,dataIndex:[]};l.selected.push(P);var O=v[D],k=M.getData(),N=_(D)?function($){return p[$]?(P.dataIndex.push(k.getRawIndex($)),"inBrush"):"outOfBrush"}:function($){return Sq(M,O,k,$)?(P.dataIndex.push(k.getRawIndex($)),"inBrush"):"outOfBrush"};(_(D)?g:w(O))&&kUe(_q,x,k,N)})}),$Ue(e,a,i,n,r)}function $Ue(t,e,r,n,a){if(a){var i=t.getZr();if(!i[k5]){i[ez]||(i[ez]=FUe);var o=nb(i,ez,r,e);o(t,n)}}}function FUe(t,e){if(!t.isDisposed()){var r=t.getZr();r[k5]=!0,t.dispatchAction({type:"brushSelect",batch:e}),r[k5]=!1}}function Sq(t,e,r,n){for(var a=0,i=e.length;a<i;a++){var o=e[a];if(t.brushSelector(n,r,o.selectors,o))return!0}}function VUe(t,e){var r=t.option.seriesIndex;return r!=null&&r!=="all"&&(Le(r)?Qt(r,e)<0:e!==r)}var UUe={rect:function(t){return wq(t.range)},polygon:function(t){for(var e,r=t.range,n=0,a=r.length;n<a;n++){e=e||[[1/0,-1/0],[1/0,-1/0]];var i=r[n];i[0]<e[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&wq(e)}};function wq(t){return new Ht(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var WUe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new UV(n.getZr())).on("brush",ot(this._onBrush,this)).mount()},e.prototype.render=function(r,n,a,i){this.model=r,this._updateController(r,n,a,i)},e.prototype.updateTransform=function(r,n,a,i){xie(n),this._updateController(r,n,a,i)},e.prototype.updateVisual=function(r,n,a,i){this.updateTransform(r,n,a,i)},e.prototype.updateView=function(r,n,a,i){this._updateController(r,n,a,i)},e.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())},e.prototype.dispose=function(){this._brushController.dispose()},e.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:Et(a),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Et(a),$from:n})},e.type="brush",e}(Pn);const HUe=WUe;var GUe="#ddd",jUe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.areas=[],r.brushOption={},r}return e.prototype.optionUpdated=function(r,n){var a=this.option;!n&&bie(a,r,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:GUe},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(r){Tt(Le(r)),V(r,function(n){Tt(n.brushType,"Illegal areas")}),r&&(this.areas=Oe(r,function(n){return Tq(this.option,n)},this))},e.prototype.setBrushOption=function(r){this.brushOption=Tq(this.option,r),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(ur);function Tq(t,e){return Ft({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Xr(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}const YUe=jUe;var qUe=["rect","polygon","lineX","lineY","keep","clear"],XUe=function(t){he(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.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,V(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(r,n,a){this.render(r,n,a)},e.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),a={};return V(r.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},e.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}})},e.getDefaultOption=function(r){var n={show:!0,type:qUe.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},e}(Qs);const ZUe=XUe;function KUe(t){t.registerComponentView(HUe),t.registerComponentModel(YUe),t.registerPreprocessor(LUe),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,zUe),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,r){r.eachComponent({mainType:"brush",query:e},function(n){n.setAreas(e.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},ta),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},ta),Xy("brush",ZUe)}var QUe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(ur),JUe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.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=$t(r.get("textBaseline"),r.get("textVerticalAlign")),c=new mr({style:cn(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),p=r.get("subtext"),v=new mr({style:cn(s,{text:p,fill:s.getTextColor(),y:d.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),g=r.get("link"),m=r.get("sublink"),x=r.get("triggerEvent",!0);c.silent=!g&&!x,v.silent=!m&&!x,g&&c.on("click",function(){XR(g,"_"+r.get("target"))}),m&&v.on("click",function(){XR(m,"_"+r.get("subtarget"))}),Pt(c).eventData=Pt(v).eventData=x?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(c),p&&i.add(v);var _=i.getBoundingRect(),w=r.getBoxLayoutParams();w.width=_.width,w.height=_.height;var T=_a(w,{width:a.getWidth(),height:a.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?T.x+=T.width:l==="center"&&(T.x+=T.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?T.y+=T.height:u==="middle"&&(T.y+=T.height/2),u=u||"top"),i.x=T.x,i.y=T.y,i.markRedraw();var A={align:l,verticalAlign:u};c.setStyle(A),v.setStyle(A),_=i.getBoundingRect();var M=T.margin,D=r.getItemStyle(["color","opacity"]);D.fill=r.get("backgroundColor");var P=new yr({shape:{x:_.x-M[3],y:_.y-M[0],width:_.width+M[1]+M[3],height:_.height+M[0]+M[2],r:r.get("borderRadius")},style:D,subPixelOptimize:!0,silent:!0});i.add(P)}},e.type="title",e}(Pn);function eWe(t){t.registerComponentModel(QUe),t.registerComponentView(JUe)}var tWe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode="box",r}return e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),this._initData()},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.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},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(r){this.option.autoPlay=!!r},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var r=this.option,n=r.data||[],a=r.axisType,i=this._names=[],o;a==="category"?(o=[],V(n,function(u,c){var d=Da(G0(u),""),p;St(u)?(p=Et(u),p.value=c):p=c,o.push(p),i.push(d)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new Ui([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(ur);const Cq=tWe;var _ie=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="timeline.slider",e.defaultOption=kh(Cq.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(Cq);ra(_ie,G3.prototype);const rWe=_ie;var nWe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="timeline",e}(Pn);const aWe=nWe;var iWe=function(t){he(e,t);function e(r,n,a,i){var o=t.call(this,r,n,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(gl);const oWe=iWe;var tz=Math.PI,Aq=wr(),sWe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){this.api=n},e.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 c=l.scale.getLabel({value:u});return Fa("nameValue",{noName:!0,value:c})},V(["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()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(r,n){var a=r.get(["label","position"]),i=r.get("orient"),o=uWe(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?"+":"-":at(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"},c={horizontal:0,vertical:tz/2},d=i==="vertical"?o.height:o.width,p=r.getModel("controlStyle"),v=p.get("show",!0),g=v?p.get("itemSize"):0,m=v?p.get("itemGap"):0,x=g+m,_=r.get(["label","rotate"])||0;_=_*tz/180;var w,T,A,M=p.get("position",!0),D=v&&p.get("showPlayBtn",!0),P=v&&p.get("showPrevBtn",!0),O=v&&p.get("showNextBtn",!0),k=0,N=d;M==="left"||M==="bottom"?(D&&(w=[0,0],k+=x),P&&(T=[k,0],k+=x),O&&(A=[N-g,0],N-=x)):(D&&(w=[N-g,0],N-=x),P&&(T=[0,0],k+=x),O&&(A=[N-g,0],N-=x));var $=[k,N];return r.get("inverse")&&$.reverse(),{viewRect:o,mainLength:d,orient:i,rotation:c[i],labelRotation:_,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[i],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[i],playPosition:w,prevBtnPosition:T,nextBtnPosition:A,axisExtent:$,controlSize:g,controlGap:m}},e.prototype._position=function(r,n){var a=this._mainGroup,i=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=hs(),l=o.x,u=o.y+o.height;eu(s,s,[-l,-u]),Lh(s,s,-tz/2),eu(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=w(o),d=w(a.getBoundingRect()),p=w(i.getBoundingRect()),v=[a.x,a.y],g=[i.x,i.y];g[0]=v[0]=c[0][0];var m=r.labelPosOpt;if(m==null||at(m)){var x=m==="+"?0:1;T(v,d,c,1,x),T(g,p,c,1,1-x)}else{var x=m>=0?0:1;T(v,d,c,1,x),g[1]=v[1]+m}a.setPosition(v),i.setPosition(g),a.rotation=i.rotation=r.rotation,_(a),_(i);function _(A){A.originX=c[0][0]-A.x,A.originY=c[1][0]-A.y}function w(A){return[[A.x,A.x+A.width],[A.y,A.y+A.height]]}function T(A,M,D,P,O){A[P]+=D[P][O]-M[P][O]}},e.prototype._createAxis=function(r,n){var a=n.getData(),i=n.get("axisType"),o=lWe(n,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new oWe("value",o,r.axisExtent,i);return l.model=n,l},e.prototype._createGroup=function(r){var n=this[r]=new It;return this.group.add(n),n},e.prototype._renderAxisLine=function(r,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new Ba({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Ce({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Ba({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:wt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},e.prototype._renderAxisTick=function(r,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],V(l,function(u){var c=a.dataToCoord(u.value),d=s.getItemModel(u.value),p=d.getModel("itemStyle"),v=d.getModel(["emphasis","itemStyle"]),g=d.getModel(["progress","itemStyle"]),m={x:c,y:0,onclick:ot(o._changeTimeline,o,u.value)},x=Eq(d,p,n,m);x.ensureState("emphasis").style=v.getItemStyle(),x.ensureState("progress").style=g.getItemStyle(),sh(x);var _=Pt(x);d.get("tooltip")?(_.dataIndex=u.value,_.dataModel=i):_.dataIndex=_.dataModel=null,o._tickSymbols.push(x)})},e.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=[],V(u,function(c){var d=c.tickValue,p=l.getItemModel(d),v=p.getModel("label"),g=p.getModel(["emphasis","label"]),m=p.getModel(["progress","label"]),x=a.dataToCoord(c.tickValue),_=new mr({x,y:0,rotation:r.labelRotation-r.rotation,onclick:ot(o._changeTimeline,o,d),silent:!1,style:cn(v,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});_.ensureState("emphasis").style=cn(g),_.ensureState("progress").style=cn(m),n.add(_),sh(_),Aq(_).dataIndex=d,o._tickLabels.push(_)})}},e.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(),c=i.getPlayState(),d=i.get("inverse",!0);p(r.nextBtnPosition,"next",ot(this._changeTimeline,this,d?"-":"+")),p(r.prevBtnPosition,"prev",ot(this._changeTimeline,this,d?"+":"-")),p(r.playPosition,c?"stop":"play",ot(this._handlePlayClick,this,!c),!0);function p(v,g,m,x){if(v){var _=tu($t(i.get(["controlStyle",g+"BtnSize"]),o),o),w=[0,-_/2,_,_],T=cWe(i,g+"Icon",w,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:x?-s:0,rectHover:!0,style:l,onclick:m});T.ensureState("emphasis").style=u,n.add(T),sh(T)}}},e.prototype._renderCurrentPointer=function(r,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(d){d.draggable=!0,d.drift=ot(u._handlePointerDrag,u),d.ondragend=ot(u._handlePointerDragend,u),Rq(d,u._progressLine,s,a,i,!0)},onUpdate:function(d){Rq(d,u._progressLine,s,a,i)}};this._currentPointer=Eq(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},e.prototype._handlePointerDrag=function(r,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},e.prototype._pointerChangeTimeline=function(r,n){var a=this._toAxisCoord(r)[0],i=this._axis,o=ss(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)},e.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")))},e.prototype._toAxisCoord=function(r){var n=this._mainGroup.getLocalTransform();return Ql(r,n,!0)},e.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),c=Math.abs(u-r);c<a&&(a=c,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.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})},e.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",Aq(a[i]).dataIndex<=r)},e.type="timeline.slider",e}(aWe);function lWe(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new lV({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new wre({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new bh}}function uWe(t,e){return _a(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function cWe(t,e,r,n){var a=n.style,i=X0(t.get(["controlStyle",e]),n||{},new Ht(r[0],r[1],r[2],r[3]));return a&&i.setStyle(a),i}function Eq(t,e,r,n,a,i){var o=e.get("color");if(a)a.setColor(o),r.add(a),i&&i.onUpdate(a);else{var s=t.get("symbol");a=fa(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),r.add(a),i&&i.onCreate(a)}var l=e.getItemStyle(["color"]);a.setStyle(l),n=Ft({rectHover:!0,z2:100},n,!0);var u=YS(t.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=ab(t.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var d=t.get("symbolRotate");return n.rotation=(d||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function Rq(t,e,r,n,a,i){if(!t.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",r));if(i||!o.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}const fWe=sWe;function dWe(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,r,n){var a=r.getComponent("timeline");return a&&e.currentIndex!=null&&(a.setCurrentIndex(e.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),r.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),wt({currentIndex:a.option.currentIndex},e)}),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,r){var n=r.getComponent("timeline");n&&e.playState!=null&&n.setPlayState(e.playState)})}function hWe(t){var e=t&&t.timeline;Le(e)||(e=e?[e]:[]),V(e,function(r){r&&pWe(r)})}function pWe(t){var e=t.type,r={number:"value",time:"time"};if(r[e]&&(t.axisType=r[e],delete t.type),Mq(t),zv(t,"controlPosition")){var n=t.controlStyle||(t.controlStyle={});zv(n,"position")||(n.position=t.controlPosition),n.position==="none"&&!zv(n,"show")&&(n.show=!1,delete n.position),delete t.controlPosition}V(t.data||[],function(a){St(a)&&!Le(a)&&(!zv(a,"value")&&zv(a,"name")&&(a.value=a.name),Mq(a))})}function Mq(t){var e=t.itemStyle||(t.itemStyle={}),r=e.emphasis||(e.emphasis={}),n=t.label||t.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};V(n,function(o,s){!i[s]&&!zv(a,s)&&(a[s]=o)}),r.label&&!zv(n,"emphasis")&&(n.emphasis=r.label,delete r.label)}function zv(t,e){return t.hasOwnProperty(e)}function vWe(t){t.registerComponentModel(rWe),t.registerComponentView(fWe),t.registerSubTypeDefaulter("timeline",function(){return"slider"}),dWe(t),t.registerPreprocessor(hWe)}function fU(t,e){if(!t)return!1;for(var r=Le(t)?t:[t],n=0;n<r.length;n++)if(r[n]&&r[n][e])return!0;return!1}function LE(t){cg(t,"label",["show"])}var OE=wr(),Sie=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.createdBySelf=!1,r}return e.prototype.init=function(r,n,a){if(this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(r,a),this._mergeOption(r,a,!1,!0)},e.prototype.isAnimationEnabled=function(){if(gr.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},e.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},e.prototype._mergeOption=function(r,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=OE(s)[o];if(!l||!l.data){OE(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&LE(l),V(l.data,function(c){c instanceof Array?(LE(c[0]),LE(c[1])):LE(c)}),u=this.createMarkerModelFromSeries(l,this,n),Ce(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),OE(s)[o]=u},this)},e.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return Fa("section",{header:this.name,blocks:[Fa("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(r){this._data=r},e.getMarkerModelFromSeries=function(r,n){return OE(r)[n]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(ur);ra(Sie,G3.prototype);const Sh=Sie;var gWe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,n,a){return new e(r,n,a)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(Sh);const mWe=gWe;function N5(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function yWe(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function kE(t,e,r,n,a,i){var o=[],s=_f(e,n),l=s?e.getCalculationInfo("stackResultDimension"):n,u=dU(e,l,t),c=e.indicesOfNearest(l,u)[0];o[a]=e.get(r,c),o[i]=e.get(l,c);var d=e.get(n,c),p=ql(e.get(n,c));return p=Math.min(p,20),p>=0&&(o[i]=+o[i].toFixed(p)),[o,d]}var rz={min:Lt(kE,"min"),max:Lt(kE,"max"),average:Lt(kE,"average"),median:Lt(kE,"median")};function gS(t,e){if(e){var r=t.getData(),n=t.coordinateSystem,a=n.dimensions;if(!yWe(e)&&!Le(e.coord)&&n){var i=wie(e,r,n,t);if(e=Et(e),e.type&&rz[e.type]&&i.baseAxis&&i.valueAxis){var o=Qt(a,i.baseAxis.dim),s=Qt(a,i.valueAxis.dim),l=rz[e.type](r,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null)e.coord=[];else for(var u=e.coord,c=0;c<2;c++)rz[u[c]]&&(u[c]=dU(r,r.mapDimension(a[c]),u[c]));return e}}function wie(t,e,r,n){var a={};return t.valueIndex!=null||t.valueDim!=null?(a.valueDataDim=t.valueIndex!=null?e.getDimension(t.valueIndex):t.valueDim,a.valueAxis=r.getAxis(bWe(n,a.valueDataDim)),a.baseAxis=r.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=r.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function bWe(t,e){var r=t.getData().getDimensionInfo(e);return r&&r.coordDim}function mS(t,e){return t&&t.containData&&e.coord&&!N5(e)?t.containData(e.coord):!0}function xWe(t,e,r){return t&&t.containZone&&e.coord&&r.coord&&!N5(e)&&!N5(r)?t.containZone(e.coord,r.coord):!0}function Tie(t,e){return t?function(r,n,a,i){var o=i<2?r.coord&&r.coord[i]:r.value;return uh(o,e[i])}:function(r,n,a,i){return uh(r.value,e[i])}}function dU(t,e,r){if(r==="average"){var n=0,a=0;return t.each(e,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return r==="median"?t.getMedian(e):t.getDataExtent(e)[r==="max"?1:0]}var nz=wr(),_We=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this.markerGroupMap=yt()},e.prototype.render=function(r,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){nz(s).keep=!1}),n.eachSeries(function(s){var l=Sh.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!nz(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(r){nz(r).keep=!0},e.prototype.toggleBlurSeries=function(r,n){var a=this;V(r,function(i){var o=Sh.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?QJ(l):_3(l))})}})},e.type="marker",e}(Pn);const hU=_We;function Dq(t,e,r){var n=e.coordinateSystem;t.each(function(a){var i=t.getItemModel(a),o,s=Qe(i.get("x"),r.getWidth()),l=Qe(i.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,a));else if(n){var u=t.get(n.dimensions[0],a),c=t.get(n.dimensions[1],a);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(a,o)})}var SWe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=Sh.getMarkerModelFromSeries(i,"markPoint");o&&(Dq(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new KS),d=wWe(o,r,n);n.setData(d),Dq(n.getData(),r,i),d.each(function(p){var v=d.getItemModel(p),g=v.getShallow("symbol"),m=v.getShallow("symbolSize"),x=v.getShallow("symbolRotate"),_=v.getShallow("symbolOffset"),w=v.getShallow("symbolKeepAspect");if(vt(g)||vt(m)||vt(x)||vt(_)){var T=n.getRawValue(p),A=n.getDataParams(p);vt(g)&&(g=g(T,A)),vt(m)&&(m=m(T,A)),vt(x)&&(x=x(T,A)),vt(_)&&(_=_(T,A))}var M=v.getModel("itemStyle").getItemStyle(),D=jS(l,"color");M.fill||(M.fill=D),d.setItemVisual(p,{symbol:g,symbolSize:m,symbolRotate:x,symbolOffset:_,symbolKeepAspect:w,style:M})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(p){p.traverse(function(v){Pt(v).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},e.type="markPoint",e}(hU);function wWe(t,e,r){var n;t?n=Oe(t&&t.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return Ce(Ce({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Ui(n,r),i=Oe(r.get("data"),Lt(gS,e));t&&(i=Br(i,Lt(mS,t)));var o=Tie(!!t,n);return a.initData(i,null,o),a}const TWe=SWe;function CWe(t){t.registerComponentModel(mWe),t.registerComponentView(TWe),t.registerPreprocessor(function(e){fU(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var AWe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,n,a){return new e(r,n,a)},e.type="markLine",e.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"},e}(Sh);const EWe=AWe;var NE=wr(),RWe=function(t,e,r,n){var a=t.getData(),i;if(Le(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=e.getAxis(n.yAxis!=null?"y":"x"),l=ca(n.yAxis,n.xAxis);else{var u=wie(n,a,e,t);s=u.valueAxis;var c=sV(a,u.valueDataDim);l=dU(a,c,o)}var d=s.dim==="x"?0:1,p=1-d,v=Et(n),g={coord:[]};v.type=null,v.coord=[],v.coord[p]=-1/0,g.coord[p]=1/0;var m=r.get("precision");m>=0&&_r(l)&&(l=+l.toFixed(Math.min(m,20))),v.coord[d]=g.coord[d]=l,i=[v,g,{type:o,valueIndex:n.valueIndex,value:l}]}else rl("Invalid markLine data."),i=[]}var x=[gS(t,i[0]),gS(t,i[1]),Ce({},i[2])];return x[2].type=x[2].type||null,Ft(x[2],x[0]),Ft(x[2],x[1]),x};function EM(t){return!isNaN(t)&&!isFinite(t)}function Iq(t,e,r,n){var a=1-t,i=n.dimensions[t];return EM(e[a])&&EM(r[a])&&e[t]===r[t]&&n.getAxis(i).containData(e[t])}function MWe(t,e){if(t.type==="cartesian2d"){var r=e[0].coord,n=e[1].coord;if(r&&n&&(Iq(1,r,n,t)||Iq(0,r,n,t)))return!0}return mS(t,e[0])&&mS(t,e[1])}function az(t,e,r,n,a){var i=n.coordinateSystem,o=t.getItemModel(e),s,l=Qe(o.get("x"),a.getWidth()),u=Qe(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=i.dimensions,d=t.get(c[0],e),p=t.get(c[1],e);s=i.dataToPoint([d,p])}if(Ag(i,"cartesian2d")){var v=i.getAxis("x"),g=i.getAxis("y"),c=i.dimensions;EM(t.get(c[0],e))?s[0]=v.toGlobalCoord(v.getExtent()[r?0:1]):EM(t.get(c[1],e))&&(s[1]=g.toGlobalCoord(g.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}t.setItemLayout(e,s)}var DWe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=Sh.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=NE(o).from,u=NE(o).to;l.each(function(c){az(l,c,!0,i,a),az(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new NV);this.group.add(c.group);var d=IWe(o,r,n),p=d.from,v=d.to,g=d.line;NE(n).from=p,NE(n).to=v,n.setData(g);var m=n.get("symbol"),x=n.get("symbolSize"),_=n.get("symbolRotate"),w=n.get("symbolOffset");Le(m)||(m=[m,m]),Le(x)||(x=[x,x]),Le(_)||(_=[_,_]),Le(w)||(w=[w,w]),d.from.each(function(A){T(p,A,!0),T(v,A,!1)}),g.each(function(A){var M=g.getItemModel(A).getModel("lineStyle").getLineStyle();g.setItemLayout(A,[p.getItemLayout(A),v.getItemLayout(A)]),M.stroke==null&&(M.stroke=p.getItemVisual(A,"style").fill),g.setItemVisual(A,{fromSymbolKeepAspect:p.getItemVisual(A,"symbolKeepAspect"),fromSymbolOffset:p.getItemVisual(A,"symbolOffset"),fromSymbolRotate:p.getItemVisual(A,"symbolRotate"),fromSymbolSize:p.getItemVisual(A,"symbolSize"),fromSymbol:p.getItemVisual(A,"symbol"),toSymbolKeepAspect:v.getItemVisual(A,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(A,"symbolOffset"),toSymbolRotate:v.getItemVisual(A,"symbolRotate"),toSymbolSize:v.getItemVisual(A,"symbolSize"),toSymbol:v.getItemVisual(A,"symbol"),style:M})}),c.updateData(g),d.line.eachItemGraphicEl(function(A){Pt(A).dataModel=n,A.traverse(function(M){Pt(M).dataModel=n})});function T(A,M,D){var P=A.getItemModel(M);az(A,M,D,r,i);var O=P.getModel("itemStyle").getItemStyle();O.fill==null&&(O.fill=jS(l,"color")),A.setItemVisual(M,{symbolKeepAspect:P.get("symbolKeepAspect"),symbolOffset:$t(P.get("symbolOffset",!0),w[D?0:1]),symbolRotate:$t(P.get("symbolRotate",!0),_[D?0:1]),symbolSize:$t(P.get("symbolSize"),x[D?0:1]),symbol:$t(P.get("symbol",!0),m[D?0:1]),style:O})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},e.type="markLine",e}(hU);function IWe(t,e,r){var n;t?n=Oe(t&&t.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return Ce(Ce({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Ui(n,r),i=new Ui(n,r),o=new Ui([],r),s=Oe(r.get("data"),Lt(RWe,e,t,r));t&&(s=Br(s,Lt(MWe,t)));var l=Tie(!!t,n);return a.initData(Oe(s,function(u){return u[0]}),null,l),i.initData(Oe(s,function(u){return u[1]}),null,l),o.initData(Oe(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const PWe=DWe;function LWe(t){t.registerComponentModel(EWe),t.registerComponentView(PWe),t.registerPreprocessor(function(e){fU(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var OWe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,n,a){return new e(r,n,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Sh);const kWe=OWe;var BE=wr(),NWe=function(t,e,r,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=gS(t,a),s=gS(t,i),l=o.coord,u=s.coord;l[0]=ca(l[0],-1/0),l[1]=ca(l[1],-1/0),u[0]=ca(u[0],1/0),u[1]=ca(u[1],1/0);var c=CD([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function RM(t){return!isNaN(t)&&!isFinite(t)}function Pq(t,e,r,n){var a=1-t;return RM(e[a])&&RM(r[a])}function BWe(t,e){var r=e.coord[0],n=e.coord[1],a={coord:r,x:e.x0,y:e.y0},i={coord:n,x:e.x1,y:e.y1};return Ag(t,"cartesian2d")?r&&n&&(Pq(1,r,n)||Pq(0,r,n))?!0:xWe(t,a,i):mS(t,a)||mS(t,i)}function Lq(t,e,r,n,a){var i=n.coordinateSystem,o=t.getItemModel(e),s,l=Qe(o.get(r[0]),a.getWidth()),u=Qe(o.get(r[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=t.getValues(["x0","y0"],e),d=t.getValues(["x1","y1"],e),p=i.clampData(c),v=i.clampData(d),g=[];r[0]==="x0"?g[0]=p[0]>v[0]?d[0]:c[0]:g[0]=p[0]>v[0]?c[0]:d[0],r[1]==="y0"?g[1]=p[1]>v[1]?d[1]:c[1]:g[1]=p[1]>v[1]?c[1]:d[1],s=n.getMarkerPosition(g,r,!0)}else{var m=t.get(r[0],e),x=t.get(r[1],e),_=[m,x];i.clampData&&i.clampData(_,_),s=i.dataToPoint(_,!0)}if(Ag(i,"cartesian2d")){var w=i.getAxis("x"),T=i.getAxis("y"),m=t.get(r[0],e),x=t.get(r[1],e);RM(m)?s[0]=w.toGlobalCoord(w.getExtent()[r[0]==="x0"?0:1]):RM(x)&&(s[1]=T.toGlobalCoord(T.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var Oq=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],zWe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=Sh.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Oe(Oq,function(d){return Lq(s,l,d,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new It});this.group.add(c.group),this.markKeep(c);var d=$We(o,r,n);n.setData(d),d.each(function(p){var v=Oe(Oq,function(O){return Lq(d,p,O,r,i)}),g=o.getAxis("x").scale,m=o.getAxis("y").scale,x=g.getExtent(),_=m.getExtent(),w=[g.parse(d.get("x0",p)),g.parse(d.get("x1",p))],T=[m.parse(d.get("y0",p)),m.parse(d.get("y1",p))];ss(w),ss(T);var A=!(x[0]>w[1]||x[1]<w[0]||_[0]>T[1]||_[1]<T[0]),M=!A;d.setItemLayout(p,{points:v,allClipped:M});var D=d.getItemModel(p).getModel("itemStyle").getItemStyle(),P=jS(l,"color");D.fill||(D.fill=P,at(D.fill)&&(D.fill=j1(D.fill,.4))),D.stroke||(D.stroke=P),d.setItemVisual(p,"style",D)}),d.diff(BE(c).data).add(function(p){var v=d.getItemLayout(p);if(!v.allClipped){var g=new co({shape:{points:v.points}});d.setItemGraphicEl(p,g),c.group.add(g)}}).update(function(p,v){var g=BE(c).data.getItemGraphicEl(v),m=d.getItemLayout(p);m.allClipped?g&&c.group.remove(g):(g?Sr(g,{shape:{points:m.points}},n,p):g=new co({shape:{points:m.points}}),d.setItemGraphicEl(p,g),c.group.add(g))}).remove(function(p){var v=BE(c).data.getItemGraphicEl(p);c.group.remove(v)}).execute(),d.eachItemGraphicEl(function(p,v){var g=d.getItemModel(v),m=d.getItemVisual(v,"style");p.useStyle(d.getItemVisual(v,"style")),Ti(p,$a(g),{labelFetcher:n,labelDataIndex:v,defaultText:d.getName(v)||"",inheritColor:at(m.fill)?j1(m.fill,1):"#000"}),wi(p,g),Zn(p,null,null,g.get(["emphasis","disabled"])),Pt(p).dataModel=n}),BE(c).data=d,c.group.silent=n.get("silent")||r.get("silent")},e.type="markArea",e}(hU);function $We(t,e,r){var n,a,i=["x0","y0","x1","y1"];if(t){var o=Oe(t&&t.dimensions,function(u){var c=e.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return Ce(Ce({},d),{name:u,ordinalMeta:null})});a=Oe(i,function(u,c){return{name:u,type:o[c%2].type}}),n=new Ui(a,r)}else a=[{name:"value",type:"float"}],n=new Ui(a,r);var s=Oe(r.get("data"),Lt(NWe,e,t,r));t&&(s=Br(s,Lt(BWe,t)));var l=t?function(u,c,d,p){var v=u.coord[Math.floor(p/2)][p%2];return uh(v,a[p])}:function(u,c,d,p){return uh(u.value,a[p])};return n.initData(s,null,l),n.hasItemOption=!0,n}const FWe=zWe;function VWe(t){t.registerComponentModel(kWe),t.registerComponentView(FWe),t.registerPreprocessor(function(e){fU(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var UWe=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},WWe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),Le(n)&&V(n,function(i,o){at(i)&&(i={type:i}),n[o]=Ft(i,UWe(a,i.type))})},e.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"))}},e.prototype._updateData=function(r){var n=[],a=[];r.eachRawSeries(function(l){var u=l.name;a.push(u);var c;if(l.legendVisualProvider){var d=l.legendVisualProvider,p=d.getAllNames();r.isSeriesFiltered(l)||(a=a.concat(p)),p.length?n=n.concat(p):c=!0}else c=!0;c&&p3(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=yt(),s=Oe(i,function(l){return(at(l)||_r(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Xr(l,this,this.ecModel))},this);this._data=Br(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;V(i,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;V(r,function(a){n[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;V(r,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&Qt(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(ur);const B5=WWe;var zy=Lt,z5=V,zE=It,HWe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new zE),this.group.add(this._selectorGroup=new zE),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.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 c=r.getBoxLayoutParams(),d={width:a.getWidth(),height:a.getHeight()},p=r.get("padding"),v=_a(c,d,p),g=this.layoutInner(r,o,v,i,l,u),m=_a(wt({width:g.width,height:g.height},c),d,p);this.group.x=m.x-g.x,this.group.y=m.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=die(g,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this.getContentGroup(),c=yt(),d=n.get("selectedMode"),p=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&p.push(v.id)}),z5(n.getData(),function(v,g){var m=v.get("name");if(!this.newlineDisabled&&(m===""||m===` `)){var x=new zE;x.newline=!0,u.add(x);return}var _=a.getSeriesByName(m)[0];if(!c.get(m)){if(_){var w=_.getData(),T=w.getVisual("legendLineStyle")||{},A=w.getVisual("legendIcon"),M=w.getVisual("style"),D=this._createItem(_,m,g,v,n,r,T,M,A,d,i);D.on("click",zy(kq,m,null,i,p)).on("mouseover",zy($5,_.name,null,i,p)).on("mouseout",zy(F5,_.name,null,i,p)),c.set(m,!0)}else a.eachRawSeries(function(P){if(!c.get(m)&&P.legendVisualProvider){var O=P.legendVisualProvider;if(!O.containName(m))return;var k=O.indexOfName(m),N=O.getItemVisual(k,"style"),$=O.getItemVisual(k,"legendIcon"),H=io(N.fill);H&&H[3]===0&&(H[3]=.2,N=Ce(Ce({},N),{fill:Kl(H,"rgba")}));var F=this._createItem(P,m,g,v,n,r,{},N,$,d,i);F.on("click",zy(kq,null,m,i,p)).on("mouseover",zy($5,null,m,i,p)).on("mouseout",zy(F5,null,m,i,p)),c.set(m,!0)}},this);c.get(m)||console.warn(m+" series not exists. Legend data should be same with series name or data name.")}},this),o&&this._createSelector(o,n,i,s,l)},e.prototype._createSelector=function(r,n,a,i,o){var s=this.getSelectorGroup();z5(r,function(u){var c=u.type,d=new mr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var p=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Ti(d,{normal:p,emphasis:v},{defaultText:u.title}),sh(d)})},e.prototype._createItem=function(r,n,a,i,o,s,l,u,c,d,p){var v=r.visualDrawType,g=o.get("itemWidth"),m=o.get("itemHeight"),x=o.isSelected(n),_=i.get("symbolRotate"),w=i.get("symbolKeepAspect"),T=i.get("icon");c=T||c||"roundRect";var A=GWe(c,i,l,u,v,x,p),M=new zE,D=i.getModel("textStyle");if(vt(r.getLegendIcon)&&(!T||T==="inherit"))M.add(r.getLegendIcon({itemWidth:g,itemHeight:m,icon:c,iconRotate:_,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:w}));else{var P=T==="inherit"&&r.getData().getVisual("symbol")?_==="inherit"?r.getData().getVisual("symbolRotate"):_:0;M.add(jWe({itemWidth:g,itemHeight:m,icon:c,iconRotate:P,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:w}))}var O=s==="left"?g+5:-5,k=s,N=o.get("formatter"),$=n;at(N)&&N?$=N.replace("{name}",n??""):vt(N)&&($=N(n));var H=i.get("inactiveColor");M.add(new mr({style:cn(D,{text:$,x:O,y:m/2,fill:x?D.getTextColor():H,align:k,verticalAlign:"middle"})}));var F=new yr({shape:M.getBoundingRect(),invisible:!0}),W=i.getModel("tooltip");return W.get("show")&&Z0({el:F,componentModel:o,itemName:n,itemTooltipOption:W.option}),M.add(F),M.eachChild(function(j){j.silent=!0}),F.silent=!d,this.getContentGroup().add(M),sh(M),M.__legendDataIndex=a,M},e.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Zv(r.get("orient"),l,r.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Zv("horizontal",u,r.get("selectorItemGap",!0));var p=u.getBoundingRect(),v=[-p.x,-p.y],g=r.get("selectorButtonGap",!0),m=r.getOrient().index,x=m===0?"width":"height",_=m===0?"height":"width",w=m===0?"y":"x";s==="end"?v[m]+=c[x]+g:d[m]+=p[x]+g,v[1-m]+=c[_]/2-p[_]/2,u.x=v[0],u.y=v[1],l.x=d[0],l.y=d[1];var T={x:0,y:0};return T[x]=c[x]+g+p[x],T[_]=Math.max(c[_],p[_]),T[w]=Math.min(0,p[w]+v[1-m]),T}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Pn);function GWe(t,e,r,n,a,i,o){function s(x,_){x.lineWidth==="auto"&&(x.lineWidth=_.lineWidth>0?2:0),z5(x,function(w,T){x[T]==="inherit"&&(x[T]=_[T])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=t.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");u.decal=!d||d==="inherit"?n.decal:R0(d,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:r).opacity),s(u,n);var p=e.getModel("lineStyle"),v=p.getLineStyle();if(s(v,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var g=e.get("inactiveBorderWidth"),m=u[c];u.lineWidth=g==="auto"?n.lineWidth>0&&m?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=p.get("inactiveColor"),v.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function jWe(t){var e=t.icon||"roundRect",r=fa(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function kq(t,e,r,n){F5(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),$5(t,e,r,n)}function Cie(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,a=e.length;n<a&&!(r=e[n].states.emphasis);)n++;return r&&r.hoverLayer}function $5(t,e,r,n){Cie(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function F5(t,e,r,n){Cie(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}const Aie=HWe;function YWe(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function U_(t,e,r){var n={},a=t==="toggleSelected",i;return r.eachComponent("legend",function(o){a&&i!=null?o[i?"select":"unSelect"](e.name):t==="allSelect"||t==="inverseSelect"?o[t]():(o[t](e.name),i=o.isSelected(e.name));var s=o.getData();V(s,function(l){var u=l.get("name");if(!(u===` `||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),t==="allSelect"||t==="inverseSelect"?{selected:n}:{name:e.name,selected:n}}function qWe(t){t.registerAction("legendToggleSelect","legendselectchanged",Lt(U_,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Lt(U_,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Lt(U_,"inverseSelect")),t.registerAction("legendSelect","legendselected",Lt(U_,"select")),t.registerAction("legendUnSelect","legendunselected",Lt(U_,"unSelect"))}function Eie(t){t.registerComponentModel(B5),t.registerComponentView(Aie),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,YWe),t.registerSubTypeDefaulter("legend",function(){return"plain"}),qWe(t)}var XWe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,a){var i=J0(r);t.prototype.init.call(this,r,n,a),Nq(this,r,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),Nq(this,this.option,r)},e.type="legend.scroll",e.defaultOption=kh(B5.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(B5);function Nq(t,e,r){var n=t.getOrient(),a=[1,1];a[n.index]=0,yh(e,r,{type:"box",ignoreSize:!!a})}const ZWe=XWe;var Bq=It,iz=["width","height"],oz=["x","y"],KWe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new Bq),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Bq)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,a,i,o,s,l);var c=this._controllerGroup,d=n.get("pageIconSize",!0),p=Le(d)?d:[d,d];g("pagePrev",0);var v=n.getModel("pageTextStyle");c.add(new mr({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),g("pageNext",1);function g(m,x){var _=m+"DataIndex",w=X0(n.get("pageIcons",!0)[n.getOrient().name][x],{onclick:ot(u._pageGo,u,_,n,i)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});w.name=m,c.add(w)}},e.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=iz[u],d=oz[u],p=iz[1-u],v=oz[1-u];o&&Zv("horizontal",l,r.get("selectorItemGap",!0));var g=r.get("selectorButtonGap",!0),m=l.getBoundingRect(),x=[-m.x,-m.y],_=Et(a);o&&(_[c]=a[c]-m[c]-g);var w=this._layoutContentAndController(r,i,_,u,c,p,v,d);if(o){if(s==="end")x[u]+=w[c]+g;else{var T=m[c]+g;x[u]-=T,w[d]-=T}w[c]+=m[c]+g,x[1-u]+=w[v]+w[p]/2-m[p]/2,w[p]=Math.max(w[p],m[p]),w[v]=Math.min(w[v],m[v]+x[1-u]),l.x=x[0],l.y=x[1],l.markRedraw()}return w},e.prototype._layoutContentAndController=function(r,n,a,i,o,s,l,u){var c=this.getContentGroup(),d=this._containerGroup,p=this._controllerGroup;Zv(r.get("orient"),c,r.get("itemGap"),i?a.width:null,i?null:a.height),Zv("horizontal",p,r.get("pageButtonItemGap",!0));var v=c.getBoundingRect(),g=p.getBoundingRect(),m=this._showController=v[o]>a[o],x=[-v.x,-v.y];n||(x[i]=c[u]);var _=[0,0],w=[-g.x,-g.y],T=$t(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(m){var A=r.get("pageButtonPosition",!0);A==="end"?w[i]+=a[o]-g[o]:_[i]+=g[o]+T}w[1-i]+=v[s]/2-g[s]/2,c.setPosition(x),d.setPosition(_),p.setPosition(w);var M={x:0,y:0};if(M[o]=m?a[o]:v[o],M[s]=Math.max(v[s],g[s]),M[l]=Math.min(0,g[l]+w[1-i]),d.__rectSize=a[o],m){var D={x:0,y:0};D[o]=Math.max(a[o]-g[o]-T,0),D[s]=M[s],d.setClipPath(new yr({shape:D})),d.__rectSize=D[o]}else p.eachChild(function(O){O.attr({invisible:!0,silent:!0})});var P=this._getPageInfo(r);return P.pageIndex!=null&&Sr(c,{x:P.contentPosition[0],y:P.contentPosition[1]},m?r:null),this._updatePageInfoView(r,P),M},e.prototype._pageGo=function(r,n,a){var i=this._getPageInfo(n)[r];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;V(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",p=n[d]!=null,v=a.childOfName(c);v&&(v.setStyle("fill",p?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.cursor=p?"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",at(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=iz[o],l=oz[o],u=this._findTargetItemIndex(n),c=a.children(),d=c[u],p=c.length,v=p?1:0,g={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return g;var m=A(d);g.contentPosition[o]=-m.s;for(var x=u+1,_=m,w=m,T=null;x<=p;++x)T=A(c[x]),(!T&&w.e>_.s+i||T&&!M(T,_.s))&&(w.i>_.i?_=w:_=T,_&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=_.i),++g.pageCount)),w=T;for(var x=u-1,_=m,w=m,T=null;x>=-1;--x)T=A(c[x]),(!T||!M(w,T.s))&&_.i<w.i&&(w=_,g.pagePrevDataIndex==null&&(g.pagePrevDataIndex=_.i),++g.pageCount,++g.pageIndex),_=T;return g;function A(D){if(D){var P=D.getBoundingRect(),O=P[l]+D[l];return{s:O,e:O+P[s],i:D.__legendDataIndex}}}function M(D,P){return D.e>=P&&D.s<=P+i}},e.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},e.type="legend.scroll",e}(Aie);const QWe=KWe;function JWe(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}function eHe(t){rr(Eie),t.registerComponentModel(ZWe),t.registerComponentView(QWe),JWe(t)}function tHe(t){rr(Eie),rr(eHe)}var rHe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.inside",e.defaultOption=kh(vS.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(vS);const nHe=rHe;var pU=wr();function aHe(t,e,r){pU(t).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(e.uid);a&&(a.getRange=r)})}function iHe(t,e){for(var r=pU(t).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=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||Rie(r,o))}}}function Rie(t,e){if(e){t.removeKey(e.model.uid);var r=e.controller;r&&r.dispose()}}function oHe(t,e){var r={model:e,containsPoint:Lt(lHe,e),dispatchAction:Lt(sHe,t),dataZoomInfoMap:null,controller:null},n=r.controller=new tw(t.getZr());return V(["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 sHe(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function lHe(t,e,r,n){return t.coordinateSystem.containPoint([r,n])}function uHe(t){var e,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return t.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function cHe(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(e,r){var n=pU(r),a=n.coordSysRecordMap||(n.coordSysRecordMap=yt());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=uie(i);V(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,oHe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=yt());c.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){Rie(a,i);return}var c=uHe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),nb(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var fHe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return e.prototype.render=function(r,n,a){if(t.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),aHe(a,r,{pan:ot(sz.pan,this),zoom:ot(sz.zoom,this),scrollMove:ot(sz.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){iHe(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(iU),sz={zoom:function(t,e,r,n){var a=this.range,i=a.slice(),o=t.axisModels[0];if(o){var s=lz[e](null,[n.originX,n.originY],o,r,t),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 c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Rg(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:zq(function(t,e,r,n,a,i){var o=lz[n]([i.oldX,i.oldY],[i.newX,i.newY],e,a,r);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength}),scrollMove:zq(function(t,e,r,n,a,i){var o=lz[n]([0,0],[i.scrollDelta,i.scrollDelta],e,a,r);return o.signal*(t[1]-t[0])*i.scrollDelta})};function zq(t){return function(e,r,n,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=t(o,s,e,r,n,a);if(Rg(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var lz={grid:function(t,e,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem.getRect();return t=t||[0,0],i.dim==="x"?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(t,e,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),r.mainType==="radiusAxis"?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(t,e,r,n,a){var i=r.axis,o=a.model.coordinateSystem.getRect(),s={};return t=t||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const dHe=fHe;function Mie(t){oU(t),t.registerComponentModel(nHe),t.registerComponentView(dHe),cHe(t)}var hHe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=kh(vS.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(vS);const pHe=hHe;var W_=yr,$q=7,vHe=1,uz=30,gHe=7,H_="horizontal",Fq="vertical",mHe=5,yHe=["line","bar","candlestick","scatter"],bHe={easing:"cubicOut",duration:100,delay:0},xHe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._displayables={},r}return e.prototype.init=function(r,n){this.api=n,this._onBrush=ot(this._onBrush,this),this._onBrushEnd=ot(this._onBrushEnd,this)},e.prototype.render=function(r,n,a,i){if(t.prototype.render.apply(this,arguments),nb(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()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){nS(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},e.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 It;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,a=r.get("brushSelect"),i=a?gHe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===H_?{right:s.width-o.x-o.width,top:s.height-uz-$q-i,width:o.width,height:uz}:{right:$q,top:o.y,width:uz,height:o.height},u=J0(r.option);V(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=_a(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===Fq&&this._size.reverse()},e.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===H_&&!o?{scaleY:l?1:-1,scaleX:1}:a===H_&&o?{scaleY:l?1:-1,scaleX:-1}:a===Fq&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=r.get("brushSelect");a.add(new W_({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new W_({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ot(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)},e.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,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var d=o.getDataExtent(l),p=(d[1]-d[0])*.3;d=[d[0]-p,d[1]+p];var v=[0,n[1]],g=[0,n[0]],m=[[n[0],0],[0,0]],x=[],_=g[1]/(o.count()-1),w=0,T=Math.round(o.count()/n[0]),A;o.each([l],function(k,N){if(T>0&&N%T){w+=_;return}var $=k==null||isNaN(k)||k==="",H=$?0:Nr(k,d,v,!0);$&&!A&&N?(m.push([m[m.length-1][0],0]),x.push([x[x.length-1][0],0])):!$&&A&&(m.push([w,0]),x.push([w,0])),m.push([w,H]),x.push([w,H]),w+=_,A=$}),u=this._shadowPolygonPts=m,c=this._shadowPolylinePts=x}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var M=this.dataZoomModel;function D(k){var N=M.getModel(k?"selectedDataBackground":"dataBackground"),$=new It,H=new co({shape:{points:u},segmentIgnoreThreshold:1,style:N.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),F=new fo({shape:{points:c},segmentIgnoreThreshold:1,style:N.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return $.add(H),$.add(F),$}for(var P=0;P<3;P++){var O=D(P===1);this._displayables.sliderGroup.add(O),this._displayables.dataShadowSegs.push(O)}},e.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();V(l,function(u){if(!a&&!(n!==!0&&Qt(yHe,u.get("type"))<0)){var c=i.getComponent(ah(o),s).axis,d=_He(o),p,v=u.coordinateSystem;d!=null&&v.getOtherAxis&&(p=v.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),a={thisAxis:c,series:u,thisDim:o,otherDim:d,otherAxisInverse:p}}},this)},this),a}},e.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,c=l.get("borderRadius")||0,d=l.get("brushSelect"),p=n.filler=new W_({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(p),o.add(new W_({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:vHe,fill:"rgba(0,0,0,0)"}})),V([0,1],function(T){var A=l.get("handleIcon");!JR[A]&&A.indexOf("path://")<0&&A.indexOf("image://")<0&&(A="path://"+A,ul("handleIcon now needs 'path://' prefix when using a path string"));var M=fa(A,-1,0,2,2,null,!0);M.attr({cursor:Vq(this._orient),draggable:!0,drift:ot(this._onDragMove,this,T),ondragend:ot(this._onDragEnd,this),onmouseover:ot(this._showDataInfo,this,!0),onmouseout:ot(this._showDataInfo,this,!1),z2:5});var D=M.getBoundingRect(),P=l.get("handleSize");this._handleHeight=Qe(P,this._size[1]),this._handleWidth=D.width/D.height*this._handleHeight,M.setStyle(l.getModel("handleStyle").getItemStyle()),M.style.strokeNoScale=!0,M.rectHover=!0,M.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),sh(M);var O=l.get("handleColor");O!=null&&(M.style.fill=O),o.add(a[T]=M);var k=l.getModel("textStyle");r.add(i[T]=new mr({silent:!0,invisible:!0,style:cn(k,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:k.getTextColor(),font:k.getFont()}),z2:10}))},this);var v=p;if(d){var g=Qe(l.get("moveHandleSize"),s[1]),m=n.moveHandle=new yr({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:g}}),x=g*.8,_=n.moveHandleIcon=fa(l.get("moveHandleIcon"),-x/2,-x/2,x,x,"#fff",!0);_.silent=!0,_.y=s[1]+g/2-.5,m.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var w=Math.min(s[1]/2,Math.max(g,10));v=n.moveZone=new yr({invisible:!0,shape:{y:s[1]-w,height:g+w}}),v.on("mouseover",function(){u.enterEmphasis(m)}).on("mouseout",function(){u.leaveEmphasis(m)}),o.add(m),o.add(_),o.add(v)}v.attr({draggable:!0,cursor:Vq(this._orient),drift:ot(this._onDragMove,this,"all"),ondragstart:ot(this._showDataInfo,this,!0),ondragend:ot(this._onDragEnd,this),onmouseover:ot(this._showDataInfo,this,!0),onmouseout:ot(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Nr(r[0],[0,100],n,!0),Nr(r[1],[0,100],n,!0)]},e.prototype._updateInterval=function(r,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Rg(n,i,o,a.get("zoomLock")?"all":r,s.minSpan!=null?Nr(s.minSpan,l,o,!0):null,s.maxSpan!=null?Nr(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=ss([Nr(i[0],o,l,!0),Nr(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(r){var n=this._displayables,a=this._handleEnds,i=ss(a.slice()),o=this._size;V([0,1],function(v){var g=n.handles[v],m=this._handleHeight;g.attr({scaleX:m/2,scaleY:m/2,x:a[v]+(v?-1:1),y:o[1]/2-m/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]],c=0;c<l.length;c++){var d=l[c],p=d.getClipPath();p||(p=new yr,d.setClipPath(p)),p.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(r)},e.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();if(l){var u=l.getAxisModel().axis,c=this._range,d=r?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(d[0],u),this._formatLabel(d[1],u)]}}var p=ss(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(g){var m=lh(a.handles[g].parent,this.group),x=HD(g===0?"right":"left",m),_=this._handleWidth/2+mHe,w=Ql([p[g]+(g===0?-_:_),this._size[1]/2],m);i[g].setStyle({x:w[0],y:w[1],verticalAlign:o===H_?"middle":x,align:o===H_?x:"center",text:s[g]})}},e.prototype._formatLabel=function(r,n){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(o,20));return vt(i)?i(r,s):at(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(r){r=this._dragging||r;var n=this._displayables,a=n.handleLabels;a[0].attr("invisible",!r),a[1].attr("invisible",!r),n.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},e.prototype._onDragMove=function(r,n,a,i){this._dragging=!0,mf(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Ql([n,a],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},e.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)}},e.prototype._onBrushStart=function(r){var n=r.offsetX,a=r.offsetY;this._brushStart=new Wt(n,a),this._brushing=!0,this._brushStartTime=+new Date},e.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];this._range=ss([Nr(a.x,o,s,!0),Nr(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(r){this._brushing&&(mf(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},e.prototype._updateBrushRect=function(r,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new W_({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),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},e.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?bHe:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var r,n=uie(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},e.type="dataZoom.slider",e}(iU);function _He(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function Vq(t){return t==="vertical"?"ns-resize":"ew-resize"}const SHe=xHe;function Die(t){t.registerComponentModel(pHe),t.registerComponentView(SHe),oU(t)}function wHe(t){rr(Mie),rr(Die)}var THe={get:function(t,e,r){var n=Et((CHe[t]||{})[e]);return r&&Le(n)?n[n.length-1]:n}},CHe={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const Iie=THe;var Uq=xi.mapVisual,AHe=xi.eachVisual,EHe=Le,Wq=V,RHe=ss,MHe=Nr,DHe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.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 e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},e.prototype.optionUpdated=function(r,n){var a=this.option;!n&&bie(a,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(r){var n=this.stateList;r=ot(r,this),this.controllerVisuals=O5(this.option.controller,n,r),this.targetVisuals=O5(this.option.target,n,r)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(a,i){n.push(i)}):n=Zr(r),n},e.prototype.eachTargetSeries=function(r,n){V(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&r.call(n,i)},this)},e.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(a){a===r&&(n=!0)}),n},e.prototype.formatValueText=function(r,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],Le(r)&&(r=r.slice(),u=!0);var c=n?r:u?[d(r[0]),d(r[1])]:d(r);if(at(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(vt(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?a[0]+" "+c[1]:r[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(p){return p===s[0]?"min":p===s[1]?"max":(+p).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var r=this.option,n=RHe([r.min,r.max]);this._dataExtent=n},e.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var a=r.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.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={});Ft(i,a),Ft(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(d){EHe(n.color)&&!d.inRange&&(d.inRange={color:n.color.slice().reverse()}),d.inRange=d.inRange||{color:r.get("gradientColor")}}function u(d,p,v){var g=d[p],m=d[v];g&&!m&&(m=d[v]={},Wq(g,function(x,_){if(xi.isValidType(_)){var w=Iie.get(_,"inactive",s);w!=null&&(m[_]=w,_==="color"&&!m.hasOwnProperty("opacity")&&!m.hasOwnProperty("colorAlpha")&&(m.opacity=[0,0]))}}))}function c(d){var p=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,v=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,g=this.get("inactiveColor"),m=this.getItemSymbol(),x=m||"roundRect";Wq(this.stateList,function(_){var w=this.itemSize,T=d[_];T||(T=d[_]={color:s?g:[g]}),T.symbol==null&&(T.symbol=p&&Et(p)||(s?x:[x])),T.symbolSize==null&&(T.symbolSize=v&&Et(v)||(s?w[0]:[w[0],w[0]])),T.symbol=Uq(T.symbol,function(D){return D==="none"?x:D});var A=T.symbolSize;if(A!=null){var M=-1/0;AHe(A,function(D){D>M&&(M=D)}),T.symbolSize=Uq(A,function(D){return MHe(D,[0,M],[0,w[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(r){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(r){return null},e.prototype.getVisualMeta=function(r){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(ur);const MM=DHe;var Hq=[20,140],IHe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(r,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=Hq[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=Hq[1])},e.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):Le(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),V(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},e.prototype.getSelected=function(){var r=this.getExtent(),n=ss((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},e.prototype.getValueState=function(r){var n=this.option.range,a=this.getExtent();return(n[0]<=a[0]||n[0]<=r)&&(n[1]>=a[1]||r<=n[1])?"inRange":"outOfRange"},e.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},e.prototype.getVisualMeta=function(r){var n=Gq(this,"outOfRange",this.getExtent()),a=Gq(this,"inRange",this.option.range.slice()),i=[];function o(v,g){i.push({value:v,color:r(v,g)})}for(var s=0,l=0,u=a.length,c=n.length;l<c&&(!a.length||n[l]<=a[0]);l++)n[l]<a[s]&&o(n[l],"outOfRange");for(var d=1;s<u;s++,d=0)d&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var d=1;l<c;l++)(!a.length||a[a.length-1]<n[l])&&(d&&(i.length&&o(i[i.length-1].value,"outOfRange"),d=0),o(n[l],"outOfRange"));var p=i.length;return{stops:i,outerColors:[p?i[0].color:"transparent",p?i[p-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=kh(MM.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(MM);function Gq(t,e,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}const PHe=IHe;var LHe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return e.prototype.init=function(r,n){this.ecModel=r,this.api=n},e.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)},e.prototype.renderBackground=function(r){var n=this.visualMapModel,a=Tg(n.get("padding")||0),i=r.getBoundingRect();r.add(new yr({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")}}))},e.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(v){return s[v]}function c(v,g){s[v]=g}var d=o.controllerVisuals[i||o.getValueState(r)],p=xi.prepareVisualTypes(d);return V(p,function(v){var g=d[v];a.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",g=d.__alphaForOpacity),xi.dependsOn(v,n)&&g&&g.applyVisual(r,u,c)}),s[n]},e.prototype.positionGroup=function(r){var n=this.visualMapModel,a=this.api;ZD(r,n.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},e.prototype.doRender=function(r,n,a,i){},e.type="visualMap",e}(Pn);const Pie=LHe;var jq=[["left","right","width"],["top","bottom","height"]];function Lie(t,e,r){var n=t.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=jq[o],l=[0,null,10],u={},c=0;c<3;c++)u[jq[1-o][c]]=l[c],u[s[c]]=c===2?r[0]:n[s[c]];var d=[["x","width",3],["y","height",0]][o],p=_a(u,i,n.padding);return s[(p.margin[d[2]]||0)+p[d[0]]+p[d[1]]*.5<i[d[1]]*.5?0:1]}function dR(t,e){return V(t||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var ju=Nr,OHe=V,Yq=Math.min,cz=Math.max,kHe=12,NHe=6,BHe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return e.prototype.doRender=function(r,n,a,i){this._api=a,(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.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)},e.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,c=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),d=this._applyTransform(a===0?"bottom":"top",u),p=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new mr({style:cn(v,{x:c[0],y:c[1],verticalAlign:p==="horizontal"?"middle":d,align:p==="horizontal"?d:"center",text:i})}))}},e.prototype._renderBar=function(r){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=Lie(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),c=new It;u.add(c),c.add(a.outOfRange=qq()),c.add(a.inRange=qq(null,s?Zq(this._orient):null,ot(this._dragHandle,this,"all",!1),ot(this._dragHandle,this,"all",!0))),c.setClipPath(new yr({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var d=n.textStyleModel.getTextRect("国"),p=cz(d.width,d.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,p,o),this._createHandle(n,u,1,i,p,o)),this._createIndicator(n,u,i,p,o),r.add(u)},e.prototype._createHandle=function(r,n,a,i,o,s){var l=ot(this._dragHandle,this,a,!1),u=ot(this._dragHandle,this,a,!0),c=tu(r.get("handleSize"),i[0]),d=fa(r.get("handleIcon"),-c/2,-c/2,c,c,null,!0),p=Zq(this._orient);d.attr({cursor:p,draggable:!0,drift:l,ondragend:u,onmousemove:function(_){mf(_.event)}}),d.x=i[0]/2,d.useStyle(r.getModel("handleStyle").getItemStyle()),d.setStyle({strokeNoScale:!0,strokeFirst:!0}),d.style.lineWidth*=2,d.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),Uv(d,!0),n.add(d);var v=this.visualMapModel.textStyleModel,g=new mr({cursor:p,draggable:!0,drift:l,onmousemove:function(_){mf(_.event)},ondragend:u,style:cn(v,{x:0,y:0,text:""})});g.ensureState("blur").style={opacity:.1},g.stateTransition={duration:200},this.group.add(g);var m=[c,0],x=this._shapes;x.handleThumbs[a]=d,x.handleLabelPoints[a]=m,x.handleLabels[a]=g},e.prototype._createIndicator=function(r,n,a,i,o){var s=tu(r.get("indicatorSize"),a[0]),l=fa(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 si){var c=l.style;l.useStyle(Ce({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var d=this.visualMapModel.textStyleModel,p=new mr({silent:!0,invisible:!0,style:cn(d,{x:0,y:0,text:""})});this.group.add(p);var v=[(o==="horizontal"?i/2:NHe)+a[0]/2,0],g=this._shapes;g.indicator=l,g.indicatorLabel=p,g.indicatorLabelPoint=v,this._firstShowIndicator=!0},e.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():Xq(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},e.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),a=r.getExtent(),i=[0,r.itemSize[1]];this._handleEnds=[ju(n[0],a,i,!0),ju(n[1],a,i,!0)]},e.prototype._updateInterval=function(r,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];Rg(n,i,o,r,0);var s=a.getExtent();this._dataInterval=[ju(i[0],o,s,!0),ju(i[1],o,s,!0)]},e.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)},e.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 Y0(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.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},e.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]]]},e.prototype._createBarGroup=function(r){var n=this._orient,a=this.visualMapModel.get("inverse");return new It(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})},e.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();OHe([0,1],function(c){var d=o[c];d.setStyle("fill",n.handlesColor[c]),d.y=r[c];var p=ju(r[c],[0,l[1]],u,!0),v=this.getControllerVisual(p,"symbolSize");d.scaleX=d.scaleY=v/l[0],d.x=l[0]-v/2;var g=Ql(a.handleLabelPoints[c],lh(d,this.group));s[c].setStyle({x:g[0],y:g[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(r,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(d){d.attr("invisible",!1);var p={convertOpacityToAlpha:!0},v=this.getControllerVisual(r,"color",p),g=this.getControllerVisual(r,"symbolSize"),m=ju(r,s,u,!0),x=l[0]-g/2,_={x:d.x,y:d.y};d.y=m,d.x=x;var w=Ql(c.indicatorLabelPoint,lh(d,this.group)),T=c.indicatorLabel;T.attr("invisible",!1);var A=this._applyTransform("left",c.mainGroup),M=this._orient,D=M==="horizontal";T.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:D?A:"middle",align:D?"center":A});var P={x,y:m,style:{fill:v}},O={style:{x:w[0],y:w[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var k={duration:100,easing:"cubicInOut",additive:!0};d.x=_.x,d.y=_.y,d.animateTo(P,k),T.animateTo(O,k)}else d.attr(P),T.attr(O);this._firstShowIndicator=!1;var N=this._shapes.handleLabels;if(N)for(var $=0;$<N.length;$++)this._api.enterBlur(N[$])}},e.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]=Yq(cz(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()})},e.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()},e.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=Yq(cz(o[0],r),o[1]);var l=zHe(a,s,o),u=[r-l,r+l],c=ju(r,o,s,!0),d=[ju(u[0],o,s,!0),ju(u[1],o,s,!0)];u[0]<o[0]&&(d[0]=-1/0),u[1]>o[1]&&(d[1]=1/0),n&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var p=this._hoverLinkDataIndices,v=[];(n||Xq(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(d));var g=fCe(p,v);this._dispatchHighDown("downplay",dR(g[0],a)),this._dispatchHighDown("highlight",dR(g[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Hv(r.target,function(l){var u=Pt(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)}}},e.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])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",dR(r,this.visualMapModel)),r.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(r,n,a,i){var o=lh(n,i?null:this.group);return Le(r)?Ql(r,o,a):HD(r,o,a)},e.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(Pie);function qq(t,e,r,n){return new co({shape:{points:t},draggable:!!r,cursor:e,drift:r,onmousemove:function(a){mf(a.event)},ondragend:n})}function zHe(t,e,r){var n=kHe/2,a=t.get("hoverLinkDataSize");return a&&(n=ju(a,e,r,!0)/2),n}function Xq(t){var e=t.get("hoverLinkOnHandle");return!!(e??t.get("realtime"))}function Zq(t){return t==="vertical"?"ns-resize":"ew-resize"}const $He=BHe;var FHe={type:"selectDataRange",event:"dataRangeSelected",update:"update"},VHe=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(r){r.setSelected(t.selected)})},UHe=[{createOnAllSeries:!0,reset:function(t,e){var r=[];return e.eachComponent("visualMap",function(n){var a=t.pipelineContext;!n.isTargetSeries(t)||a&&a.large||r.push(NUe(n.stateList,n.targetVisuals,ot(n.getValueState,n),n.getDataDimensionIndex(t.getData())))}),r}},{createOnAllSeries:!0,reset:function(t,e){var r=t.getData(),n=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(t)){var i=a.getVisualMeta(ot(WHe,null,t,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(r);o>=0&&(i.dimension=o,n.push(i))}}),t.getData().setVisual("visualMeta",n)}}];function WHe(t,e,r,n){for(var a=e.targetVisuals[n],i=xi.prepareVisualTypes(a),o={color:jS(t.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],c=a[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(r,d,p)}return o.color;function d(v){return o[v]}function p(v,g){o[v]=g}}var Kq=V;function HHe(t){var e=t&&t.visualMap;Le(e)||(e=e?[e]:[]),Kq(e,function(r){if(r){$y(r,"splitList")&&!$y(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&Le(n)&&Kq(n,function(a){St(a)&&($y(a,"start")&&!$y(a,"min")&&(a.min=a.start),$y(a,"end")&&!$y(a,"max")&&(a.max=a.end))})}})}function $y(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var Qq=!1;function Oie(t){Qq||(Qq=!0,t.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),t.registerAction(FHe,VHe),V(UHe,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(HHe))}function kie(t){t.registerComponentModel(PHe),t.registerComponentView($He),Oie(t)}var GHe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._pieceList=[],r}return e.prototype.optionUpdated=function(r,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],jHe[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=Et(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Oe(this._pieceList,function(l){return l=Et(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var r=this.option,n={},a=xi.listVisualTypes(),i=this.isCategory();V(r.pieces,function(s){V(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),V(n,function(s,l){var u=!1;V(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&V(this.stateList,function(c){(r[c]||(r[c]={}))[l]=Iie.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(r,n){var a=this.option,i=this._pieceList,o=(n?a:r).selected||{};if(a.selected=o,V(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;V(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(r){this.option.selected=Et(r)},e.prototype.getValueState=function(r){var n=xi.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.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 c=xi.findPieceIndex(l,a);c===r&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},e.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},e.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(c,d){var p=i.getRepresentValue({interval:c});d||(d=i.getValueState(p));var v=r(p,d);c[0]===-1/0?a[0]=v:c[1]===1/0?a[1]=v:n.push({value:c[0],color:v},{value:c[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return V(s,function(c){var d=c.interval;d&&(d[0]>u&&o([u,d[0]],"outOfRange"),o(d.slice()),u=d[1])},this),{stops:n,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=kh(MM.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}),e}(MM),jHe={splitNumber:function(t){var e=this.option,r=Math.min(e.precision,20),n=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(r)!==i&&r<5;)r++;e.precision=r,i=+i.toFixed(r),e.minOpen&&t.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;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[n[1],1/0],close:[0,0]}),C$(t),V(t,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(t){var e=this.option;V(e.categories,function(r){t.push({text:this.formatValueText(r,!0),value:r})},this),Jq(e,t)},pieces:function(t){var e=this.option;V(e.pieces,function(r,n){St(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],c=[],d=0;d<2;d++){for(var p=[["gte","gt","min"],["lte","lt","max"]][d],v=0;v<3&&o[d]==null;v++)o[d]=r[p[v]],s[d]=l[v],c[d]=v===2;o[d]==null&&(o[d]=u[d])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]>o[1]&&console.warn("Piece "+n+"is illegal: "+o+" lower bound should not greater then uppper bound."),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=xi.retrieveVisuals(r),t.push(a)},this),Jq(e,t),C$(t),V(t,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 Jq(t,e){var r=t.inverse;(t.orient==="vertical"?!r:r)&&e.reverse()}const YHe=GHe;var qHe=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),d=c.endsText,p=ca(n.get("showLabel",!0),!d);d&&this._renderEndsText(r,d[0],u,p,l),V(c.viewPieceList,function(v){var g=v.piece,m=new It;m.onclick=ot(this._onItemClick,this,g),this._enableHoverLink(m,v.indexInModelPieceList);var x=n.getRepresentValue(g);if(this._createItemSymbol(m,x,[0,0,u[0],u[1]]),p){var _=this.visualMapModel.getValueState(x);m.add(new mr({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:g.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:_==="outOfRange"?.5:1}}))}r.add(m)},this),d&&this._renderEndsText(r,d[1],u,p,l),Zv(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},e.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:dR(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return Lie(r,this.api,r.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(r,n,a,i,o){if(n){var s=new It,l=this.visualMapModel.textStyleModel;s.add(new mr({style:cn(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)}},e.prototype._getViewData=function(){var r=this.visualMapModel,n=Oe(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}},e.prototype._createItemSymbol=function(r,n,a){r.add(fa(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color")))},e.prototype._onItemClick=function(r){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=Et(a.selected),s=n.getSelectedMapKey(r);i==="single"||i===!0?(o[s]=!0,V(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(Pie);const XHe=qHe;function Nie(t){t.registerComponentModel(YHe),t.registerComponentView(XHe),Oie(t)}function ZHe(t){rr(kie),rr(Nie)}var KHe={label:{enabled:!0},decal:{show:!1}},eX=wr(),QHe={};function JHe(t,e){var r=t.getModel("aria");if(!r.get("enabled"))return;var n=Et(KHe);Ft(n.label,t.getLocaleModel().get("aria"),!1),Ft(r.option,n,!1),a(),i();function a(){var u=r.getModel("decal"),c=u.get("show");if(c){var d=yt();t.eachSeries(function(p){if(!p.isColorBySeries()){var v=d.get(p.type);v||(v={},d.set(p.type,v)),eX(p).scope=v}}),t.eachRawSeries(function(p){if(t.isSeriesFiltered(p))return;if(vt(p.enableAriaDecal)){p.enableAriaDecal();return}var v=p.getData();if(p.isColorBySeries()){var w=U$(p.ecModel,p.name,QHe,t.getSeriesCount()),T=v.getVisual("decal");v.setVisual("decal",A(T,w))}else{var g=p.getRawData(),m={},x=eX(p).scope;v.each(function(M){var D=v.getRawIndex(M);m[D]=M});var _=g.count();g.each(function(M){var D=m[M],P=g.getName(M)||M+"",O=U$(p.ecModel,P,x,_),k=v.getItemVisual(D,"decal");v.setItemVisual(D,"decal",A(k,O))})}function A(M,D){var P=M?Ce(Ce({},D),M):D;return P.dirty=!0,P}})}}function i(){var u=t.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=wt(c.option,u),!!c.get("enabled")){var d=e.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var p=t.getSeriesCount(),v=c.get(["data","maxCount"])||10,g=c.get(["series","maxCount"])||10,m=Math.min(p,g),x;if(!(p<1)){var _=s();if(_){var w=c.get(["general","withTitle"]);x=o(w,{title:_})}else x=c.get(["general","withoutTitle"]);var T=[],A=p>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);x+=o(A,{seriesCount:p}),t.eachSeries(function(O,k){if(k<m){var N=void 0,$=O.get("name"),H=$?"withName":"withoutName";N=p>1?c.get(["series","multiple",H]):c.get(["series","single",H]),N=o(N,{seriesId:O.seriesIndex,seriesName:O.get("name"),seriesType:l(O.subType)});var F=O.getData();if(F.count()>v){var W=c.get(["data","partialData"]);N+=o(W,{displayCnt:v})}else N+=c.get(["data","allData"]);for(var j=c.get(["data","separator","middle"]),X=c.get(["data","separator","end"]),te=[],J=0;J<F.count();J++)if(J<v){var ie=F.getName(J),se=F.getValues(J),le=c.get(["data",ie?"withName":"withoutName"]);te.push(o(le,{name:ie,value:se.join(j)}))}N+=te.join(j)+X,T.push(N)}});var M=c.getModel(["series","multiple","separator"]),D=M.get("middle"),P=M.get("end");x+=T.join(D)+P,d.setAttribute("aria-label",x)}}}function o(u,c){if(!at(u))return u;var d=u;return V(c,function(p,v){d=d.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),p)}),d}function s(){var u=t.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return t.getLocaleModel().get(["series","typeNames"])[u]||"自定义图"}}function e4e(t){if(!(!t||!t.aria)){var e=t.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},V(["description","general","series","data"],function(r){e[r]!=null&&(e.label[r]=e[r])})}}function t4e(t){t.registerPreprocessor(e4e),t.registerVisual(t.PRIORITY.VISUAL.ARIA,JHe)}var tX={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},r4e=function(){function t(e){var r=this._condVal=at(e)?new RegExp(e):r3(e)?e:null;if(r==null){var n="";n=so("Illegal regexp",e,"in"),Or(n)}}return t.prototype.evaluate=function(e){var r=typeof e;return at(r)?this._condVal.test(e):_r(r)?this._condVal.test(e+""):!1},t}(),n4e=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),a4e=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,r=0;r<e.length;r++)if(!e[r].evaluate())return!1;return!0},t}(),i4e=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,r=0;r<e.length;r++)if(e[r].evaluate())return!0;return!1},t}(),o4e=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),s4e=function(){function t(){}return t.prototype.evaluate=function(){for(var e=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),a=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?a:n))return!1;return!0},t}();function vU(t,e){if(t===!0||t===!1){var r=new n4e;return r.value=t,r}var n="";return Bie(t)||(n=so("Illegal config. Expect a plain object but actually",t),Or(n)),t.and?rX("and",t,e):t.or?rX("or",t,e):t.not?l4e(t,e):u4e(t,e)}function rX(t,e,r){var n=e[t],a="";a=so('"and"/"or" condition should only be `'+t+": [...]` and must not be empty array.","Illegal condition:",e),Le(n)||Or(a),n.length||Or(a);var i=t==="and"?new a4e:new i4e;return i.children=Oe(n,function(o){return vU(o,r)}),i.children.length||Or(a),i}function l4e(t,e){var r=t.not,n="";n=so('"not" condition should only be `not: {}`.',"Illegal condition:",t),Bie(r)||Or(n);var a=new o4e;return a.child=vU(r,e),a.child||Or(n),a}function u4e(t,e){for(var r="",n=e.prepareGetValue(t),a=[],i=sr(t),o=t.parser,s=o?ute(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=it(tX,u)?tX[u]:u,d=t[u],p=s?s(d):d,v=ARe(c,p)||c==="reg"&&new r4e(p);v||(r=so('Illegal relational operation: "'+u+'" in condition:',t),Or(r)),a.push(v)}}a.length||(r=so("Relational condition must have at least one operator.","Illegal condition:",t),Or(r));var g=new s4e;return g.valueGetterParam=n,g.valueParser=s,g.getValue=e.getValue,g.subCondList=a,g}function Bie(t){return St(t)&&!_i(t)}var c4e=function(){function t(e,r){this._cond=vU(e,r)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function f4e(t,e){return new c4e(t,e)}var d4e={type:"echarts:filter",transform:function(t){for(var e=t.upstream,r,n=f4e(t.config,{valueGetterAttrMap:yt({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;it(s,"dimension")||(l=so('Relation condition must has prop "dimension" specified.',"Illegal condition:",s),Or(l));var c=e.getDimensionInfo(u);return c||(l=so("Can not find dimension info via: "+u+`. `,"Existing dimensions: ",e.cloneAllDimensionInfo(),`. `,"Illegal condition:",s,`. `),Or(l)),{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(r,s.dimIdx)}}),a=[],i=0,o=e.count();i<o;i++)r=e.getRawDataItem(i),n.evaluate()&&a.push(r);return{data:a}}},V5="";V5=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" ");var h4e={type:"echarts:sort",transform:function(t){var e=t.upstream,r=t.config,n="",a=Zr(r);a.length||(n="Empty `config` in sort transform.",Or(n));var i=[];V(a,function(c){var d=c.dimension,p=c.order,v=c.parser,g=c.incomparable;if(d==null&&(n='Sort transform config must has "dimension" specified.'+V5,Or(n)),p!=="asc"&&p!=="desc"&&(n='Sort transform config must has "order" specified.'+V5,Or(n)),g&&g!=="min"&&g!=="max"){var m="";m='incomparable must be "min" or "max" rather than "'+g+'".',Or(m)}if(p!=="asc"&&p!=="desc"){var x="";x='order must be "asc" or "desc" rather than "'+p+'".',Or(x)}var _=e.getDimensionInfo(d);_||(n=so("Can not find dimension info via: "+d+`. `,"Existing dimensions: ",e.cloneAllDimensionInfo(),`. `,"Illegal config:",c,`. `),Or(n));var w=v?ute(v):null;v&&!w&&(n=so("Invalid parser name "+v+`. `,"Illegal config:",c,`. `),Or(n)),i.push({dimIdx:_.index,parser:w,comparator:new fte(p,g)})});var o=e.sourceFormat;o!==Wi&&o!==vl&&(n='sourceFormat "'+o+'" is not supported yet',Or(n));for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,d){for(var p=0;p<i.length;p++){var v=i[p],g=e.retrieveValueFromItem(c,v.dimIdx),m=e.retrieveValueFromItem(d,v.dimIdx);v.parser&&(g=v.parser(g),m=v.parser(m));var x=v.comparator.evaluate(g,m);if(x!==0)return x}return 0}),{data:s}}};function p4e(t){t.registerTransform(d4e),t.registerTransform(h4e)}var v4e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.prototype.init=function(r,n,a){t.prototype.init.call(this,r,n,a),this._sourceManager=new vte(this),aY(this)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),aY(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:uc},e}(ur),g4e=function(t){he(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.type="dataset",e}(Pn);function m4e(t){t.registerComponentModel(v4e),t.registerComponentView(g4e)}var Hu=hc.CMD;function r0(t,e){return Math.abs(t-e)<1e-5}function U5(t){var e=t.data,r=t.len(),n=[],a,i=0,o=0,s=0,l=0;function u(F,W){a&&a.length>2&&n.push(a),a=[F,W]}function c(F,W,j,X){r0(F,j)&&r0(W,X)||a.push(F,W,j,X,j,X)}function d(F,W,j,X,te,J){var ie=Math.abs(W-F),se=Math.tan(ie/4)*4/3,le=W<F?-1:1,be=Math.cos(F),Me=Math.sin(F),Se=Math.cos(W),Ue=Math.sin(W),Xe=be*te+j,st=Me*J+X,$e=Se*te+j,Be=Ue*J+X,et=te*se*le,de=J*se*le;a.push(Xe-et*Me,st+de*be,$e+et*Ue,Be-de*Se,$e,Be)}for(var p,v,g,m,x=0;x<r;){var _=e[x++],w=x===1;switch(w&&(i=e[x],o=e[x+1],s=i,l=o,(_===Hu.L||_===Hu.C||_===Hu.Q)&&(a=[s,l])),_){case Hu.M:i=s=e[x++],o=l=e[x++],u(s,l);break;case Hu.L:p=e[x++],v=e[x++],c(i,o,p,v),i=p,o=v;break;case Hu.C:a.push(e[x++],e[x++],e[x++],e[x++],i=e[x++],o=e[x++]);break;case Hu.Q:p=e[x++],v=e[x++],g=e[x++],m=e[x++],a.push(i+2/3*(p-i),o+2/3*(v-o),g+2/3*(p-g),m+2/3*(v-m),g,m),i=g,o=m;break;case Hu.A:var T=e[x++],A=e[x++],M=e[x++],D=e[x++],P=e[x++],O=e[x++]+P;x+=1;var k=!e[x++];p=Math.cos(P)*M+T,v=Math.sin(P)*D+A,w?(s=p,l=v,u(s,l)):c(i,o,p,v),i=Math.cos(O)*M+T,o=Math.sin(O)*D+A;for(var N=(k?-1:1)*Math.PI/2,$=P;k?$>O:$<O;$+=N){var H=k?Math.max($+N,O):Math.min($+N,O);d($,H,T,A,M,D)}break;case Hu.R:s=i=e[x++],l=o=e[x++],p=s+e[x++],v=l+e[x++],u(p,l),c(p,l,p,v),c(p,v,s,v),c(s,v,s,l),c(s,l,p,l);break;case Hu.Z:a&&c(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function W5(t,e,r,n,a,i,o,s,l,u){if(r0(t,r)&&r0(e,n)&&r0(a,o)&&r0(i,s)){l.push(o,s);return}var c=2/u,d=c*c,p=o-t,v=s-e,g=Math.sqrt(p*p+v*v);p/=g,v/=g;var m=r-t,x=n-e,_=a-o,w=i-s,T=m*m+x*x,A=_*_+w*w;if(T<d&&A<d){l.push(o,s);return}var M=p*m+v*x,D=-p*_-v*w,P=T-M*M,O=A-D*D;if(P<d&&M>=0&&O<d&&D>=0){l.push(o,s);return}var k=[],N=[];vh(t,r,a,o,.5,k),vh(e,n,i,s,.5,N),W5(k[0],N[0],k[1],N[1],k[2],N[2],k[3],N[3],l,u),W5(k[4],N[4],k[5],N[5],k[6],N[6],k[7],N[7],l,u)}function y4e(t,e){var r=U5(t),n=[];e=e||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 c=i[u++],d=i[u++],p=i[u++],v=i[u++],g=i[u++],m=i[u++];W5(s,l,c,d,p,v,g,m,o,e),s=g,l=m}n.push(o)}return n}function zie(t,e,r){var n=t[e],a=t[1-e],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 c=o*s,d=r-c;if(d>0)for(var u=0;u<d;u++)l[u%o]+=1;return l}function nX(t,e,r){for(var n=t.r0,a=t.r,i=t.startAngle,o=t.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,c=l>Math.abs(u),d=zie([l,u],c?0:1,e),p=(c?s:u)/d.length,v=0;v<d.length;v++)for(var g=(c?u:s)/d[v],m=0;m<d[v];m++){var x={};c?(x.startAngle=i+p*v,x.endAngle=i+p*(v+1),x.r0=n+g*m,x.r=n+g*(m+1)):(x.startAngle=i+g*m,x.endAngle=i+g*(m+1),x.r0=n+p*v,x.r=n+p*(v+1)),x.clockwise=t.clockwise,x.cx=t.cx,x.cy=t.cy,r.push(x)}}function b4e(t,e,r){for(var n=t.width,a=t.height,i=n>a,o=zie([n,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",d=t[s]/o.length,p=0;p<o.length;p++)for(var v=t[l]/o[p],g=0;g<o[p];g++){var m={};m[u]=p*d,m[c]=g*v,m[s]=d,m[l]=v,m.x+=t.x,m.y+=t.y,r.push(m)}}function aX(t,e,r,n){return t*n-r*e}function x4e(t,e,r,n,a,i,o,s){var l=r-t,u=n-e,c=o-a,d=s-i,p=aX(c,d,l,u);if(Math.abs(p)<1e-6)return null;var v=t-a,g=e-i,m=aX(v,g,c,d)/p;return m<0||m>1?null:new Wt(m*l+t,m*u+e)}function _4e(t,e,r){var n=new Wt;Wt.sub(n,r,e),n.normalize();var a=new Wt;Wt.sub(a,t,e);var i=a.dot(n);return i}function Fy(t,e){var r=t[t.length-1];r&&r[0]===e[0]&&r[1]===e[1]||t.push(e)}function S4e(t,e,r){for(var n=t.length,a=[],i=0;i<n;i++){var o=t[i],s=t[(i+1)%n],l=x4e(o[0],o[1],s[0],s[1],e.x,e.y,r.x,r.y);l&&a.push({projPt:_4e(l,e,r),pt:l,idx:i})}if(a.length<2)return[{points:t},{points:t}];a.sort(function(x,_){return x.projPt-_.projPt});var u=a[0],c=a[a.length-1];if(c.idx<u.idx){var d=u;u=c,c=d}for(var p=[u.pt.x,u.pt.y],v=[c.pt.x,c.pt.y],g=[p],m=[v],i=u.idx+1;i<=c.idx;i++)Fy(g,t[i].slice());Fy(g,v),Fy(g,p);for(var i=c.idx+1;i<=u.idx+n;i++)Fy(m,t[i%n].slice());return Fy(m,p),Fy(m,v),[{points:g},{points:m}]}function iX(t){var e=t.points,r=[],n=[];BD(e,r,n);var a=new Ht(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 Wt,c=new Wt;return i>o?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),S4e(e,u,c)}function DM(t,e,r,n){if(r===1)n.push(e);else{var a=Math.floor(r/2),i=t(e);DM(t,i[0],a,n),DM(t,i[1],r-a,n)}return n}function w4e(t,e){for(var r=[],n=0;n<e;n++)r.push(w3(t));return r}function T4e(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function C4e(t){for(var e=[],r=0;r<t.length;)e.push([t[r++],t[r++]]);return e}function A4e(t,e){var r=[],n=t.shape,a;switch(t.type){case"rect":b4e(n,e,r),a=yr;break;case"sector":nX(n,e,r),a=uo;break;case"circle":nX({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},e,r),a=uo;break;default:var i=t.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=Oe(y4e(t.getUpdatedPathProxy(),o),function(_){return C4e(_)}),l=s.length;if(l===0)DM(iX,{points:s[0]},e,r);else if(l===e)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,d=Oe(s,function(_){var w=[],T=[];BD(_,w,T);var A=(T[1]-w[1])*(T[0]-w[0]);return c+=A,{poly:_,area:A}});d.sort(function(_,w){return w.area-_.area});for(var p=e,u=0;u<l;u++){var v=d[u];if(p<=0)break;var g=u===l-1?p:Math.ceil(v.area/c*e);g<0||(DM(iX,{points:v.poly},g,r),p-=g)}}a=co;break}if(!a)return w4e(t,e);for(var m=[],u=0;u<r.length;u++){var x=new a;x.setShape(r[u]),T4e(t,x),m.push(x)}return m}function E4e(t,e){var r=t.length,n=e.length;if(r===n)return[t,e];for(var a=[],i=[],o=r<n?t:e,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,d=[o[0],o[1]],p=l,v=2;v<s;){var g=o[v-2],m=o[v-1],x=o[v++],_=o[v++],w=o[v++],T=o[v++],A=o[v++],M=o[v++];if(p<=0){d.push(x,_,w,T,A,M);continue}for(var D=Math.min(p,c-1)+1,P=1;P<=D;P++){var O=P/D;vh(g,x,w,A,O,a),vh(m,_,T,M,O,i),g=a[3],m=i[3],d.push(a[1],i[1],a[2],i[2],g,m),x=a[5],_=i[5],w=a[6],T=i[6]}p-=D-1}return o===t?[d,e]:[t,d]}function oX(t,e){for(var r=t.length,n=t[r-2],a=t[r-1],i=[],o=0;o<e.length;)i[o++]=n,i[o++]=a;return i}function R4e(t,e){for(var r,n,a,i=[],o=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,d=void 0;l?u?(r=E4e(l,u),c=r[0],d=r[1],n=c,a=d):(d=oX(a||l,l),c=l):(c=oX(n||u,u),d=u),i.push(c),o.push(d)}return[i,o]}function sX(t){for(var e=0,r=0,n=0,a=t.length,i=0,o=a-2;i<a;o=i,i+=2){var s=t[o],l=t[o+1],u=t[i],c=t[i+1],d=s*c-u*l;e+=d,r+=(s+u)*d,n+=(l+c)*d}return e===0?[t[0]||0,t[1]||0]:[r/e/3,n/e/3,e]}function M4e(t,e,r,n){for(var a=(t.length-2)/6,i=1/0,o=0,s=t.length,l=s-2,u=0;u<a;u++){for(var c=u*6,d=0,p=0;p<s;p+=2){var v=p===0?c:(c+p-2)%l+2,g=t[v]-r[0],m=t[v+1]-r[1],x=e[p]-n[0],_=e[p+1]-n[1],w=x-g,T=_-m;d+=w*w+T*T}d<i&&(i=d,o=u)}return o}function D4e(t){for(var e=[],r=t.length,n=0;n<r;n+=2)e[n]=t[r-n-2],e[n+1]=t[r-n-1];return e}function I4e(t,e,r,n){for(var a=[],i,o=0;o<t.length;o++){var s=t[o],l=e[o],u=sX(s),c=sX(l);i==null&&(i=u[2]<0!=c[2]<0);var d=[],p=[],v=0,g=1/0,m=[],x=s.length;i&&(s=D4e(s));for(var _=M4e(s,l,u,c)*6,w=x-2,T=0;T<w;T+=2){var A=(_+T)%w+2;d[T+2]=s[A]-u[0],d[T+3]=s[A+1]-u[1]}if(d[0]=s[_]-u[0],d[1]=s[_+1]-u[1],r>0)for(var M=n/r,D=-n/2;D<=n/2;D+=M){for(var P=Math.sin(D),O=Math.cos(D),k=0,T=0;T<s.length;T+=2){var N=d[T],$=d[T+1],H=l[T]-c[0],F=l[T+1]-c[1],W=H*O-F*P,j=H*P+F*O;m[T]=W,m[T+1]=j;var X=W-N,te=j-$;k+=X*X+te*te}if(k<g){g=k,v=D;for(var J=0;J<m.length;J++)p[J]=m[J]}}else for(var ie=0;ie<x;ie+=2)p[ie]=l[ie]-c[0],p[ie+1]=l[ie+1]-c[1];a.push({from:d,to:p,fromCp:u,toCp:c,rotation:-v})}return a}function IM(t){return t.__isCombineMorphing}var $ie="__mOriginal_";function PM(t,e,r){var n=$ie+e,a=t[n]||t[e];t[n]||(t[n]=t[e]);var i=r.replace,o=r.after,s=r.before;t[e]=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 D1(t,e){var r=$ie+e;t[r]&&(t[e]=t[r],t[r]=null)}function lX(t,e){for(var r=0;r<t.length;r++)for(var n=t[r],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=e[0]*i+e[2]*o+e[4],n[a++]=e[1]*i+e[3]*o+e[5]}}function Fie(t,e){var r=t.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),a=R4e(U5(r),U5(n)),i=a[0],o=a[1],s=t.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&lX(i,s),l&&lX(o,l),PM(e,"updateTransform",{replace:u}),e.transform=null;var c=I4e(i,o,10,Math.PI),d=[];PM(e,"buildPath",{replace:function(p){for(var v=e.__morphT,g=1-v,m=[],x=0;x<c.length;x++){var _=c[x],w=_.from,T=_.to,A=_.rotation*v,M=_.fromCp,D=_.toCp,P=Math.sin(A),O=Math.cos(A);g1(m,M,D,v);for(var k=0;k<w.length;k+=2){var N=w[k],$=w[k+1],H=T[k],F=T[k+1],W=N*g+H*v,j=$*g+F*v;d[k]=W*O-j*P+m[0],d[k+1]=W*P+j*O+m[1]}var X=d[0],te=d[1];p.moveTo(X,te);for(var k=2;k<w.length;){var H=d[k++],F=d[k++],J=d[k++],ie=d[k++],se=d[k++],le=d[k++];X===H&&te===F&&J===se&&ie===le?p.lineTo(se,le):p.bezierCurveTo(H,F,J,ie,se,le),X=se,te=le}}}})}function gU(t,e,r){if(!t||!e)return e;var n=r.done,a=r.during;Fie(t,e),e.__morphT=0;function i(){D1(e,"buildPath"),D1(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},wt({during:function(o){e.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},r)),e}function P4e(t,e,r,n,a,i){var o=16;t=a===r?0:Math.round(32767*(t-r)/(a-r)),e=i===n?0:Math.round(32767*(e-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,d=0;(t&u)>0&&(c=1),(e&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(t=u-1-t,e=u-1-e),l=t,t=e,e=l)}return s}function LM(t){var e=1/0,r=1/0,n=-1/0,a=-1/0,i=Oe(t,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),r=Math.min(d,r),n=Math.max(c,n),a=Math.max(d,a),[c,d]}),o=Oe(i,function(s,l){return{cp:s,z:P4e(s[0],s[1],e,r,n,a),path:t[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Vie(t){return A4e(t.path,t.count)}function H5(){return{fromIndividuals:[],toIndividuals:[],count:0}}function L4e(t,e,r){var n=[];function a(M){for(var D=0;D<M.length;D++){var P=M[D];IM(P)?a(P.childrenRef()):P instanceof ir&&n.push(P)}}a(t);var i=n.length;if(!i)return H5();var o=r.dividePath||Vie,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),H5();n=LM(n),s=LM(s);for(var l=r.done,u=r.during,c=r.individualDelay,d=new uf,p=0;p<i;p++){var v=n[p],g=s[p];g.parent=e,g.copyTransform(d),c||Fie(v,g)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function m(M){for(var D=0;D<s.length;D++)s[D].addSelfToZr(M)}PM(e,"addSelfToZr",{after:function(M){m(M)}}),PM(e,"removeSelfFromZr",{after:function(M){for(var D=0;D<s.length;D++)s[D].removeSelfFromZr(M)}});function x(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,D1(e,"addSelfToZr"),D1(e,"removeSelfFromZr")}var _=s.length;if(c)for(var w=_,T=function(){w--,w===0&&(x(),l&&l())},p=0;p<_;p++){var A=c?wt({delay:(r.delay||0)+c(p,_,n[p],s[p]),done:T},r):r;gU(n[p],s[p],A)}else e.__morphT=0,e.animateTo({__morphT:1},wt({during:function(M){for(var D=0;D<_;D++){var P=s[D];P.__morphT=e.__morphT,P.dirtyShape()}u&&u(M)},done:function(){x();for(var M=0;M<t.length;M++)D1(t[M],"updateTransform");l&&l()}},r));return e.__zr&&m(e.__zr),{fromIndividuals:n,toIndividuals:s,count:_}}function O4e(t,e,r){var n=e.length,a=[],i=r.dividePath||Vie;function o(v){for(var g=0;g<v.length;g++){var m=v[g];IM(m)?o(m.childrenRef()):m instanceof ir&&a.push(m)}}if(IM(t)){o(t.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(w3(a[l++%s]));a.length=n}else{a=i({path:t,count:n});for(var c=t.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(c);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),H5()}a=LM(a),e=LM(e);for(var d=r.individualDelay,u=0;u<n;u++){var p=d?wt({delay:(r.delay||0)+d(u,n,a[u],e[u])},r):r;gU(a[u],e[u],p)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function uX(t){return Le(t[0])}function cX(t,e){for(var r=[],n=t.length,a=0;a<n;a++)r.push({one:t[a],many:[]});for(var a=0;a<e.length;a++){var i=e[a].length,o=void 0;for(o=0;o<i;o++)r[o%n].many.push(e[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 k4e={clone:function(t){for(var e=[],r=1-Math.pow(1-t.path.style.opacity,1/t.count),n=0;n<t.count;n++){var a=w3(t.path);a.setStyle("opacity",r),e.push(a)}return e},split:null};function fz(t,e,r,n,a,i){if(!t.length||!e.length)return;var o=q0("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;uX(t)&&(u=t,c=e),uX(e)&&(u=e,c=t);function d(_,w,T,A,M){var D=_.many,P=_.one;if(D.length===1&&!M){var O=w?D[0]:P,k=w?P:D[0];if(IM(O))d({many:[O],one:k},!0,T,A,!0);else{var N=s?wt({delay:s(T,A)},l):l;gU(O,k,N),i(O,k,O,k,N)}}else for(var $=wt({dividePath:k4e[r],individualDelay:s&&function(te,J,ie,se){return s(te+T,A)}},l),H=w?L4e(D,P,$):O4e(P,D,$),F=H.fromIndividuals,W=H.toIndividuals,j=F.length,X=0;X<j;X++){var N=s?wt({delay:s(X,j)},l):l;i(F[X],W[X],w?D[X]:_.one,w?_.one:D[X],N)}}for(var p=u?u===t:t.length>e.length,v=u?cX(c,u):cX(p?e:t,[p?t:e]),g=0,m=0;m<v.length;m++)g+=v[m].many.length;for(var x=0,m=0;m<v.length;m++)d(v[m],p,x,g),x+=v[m].many.length}function Dv(t){if(!t)return[];if(Le(t)){for(var e=[],r=0;r<t.length;r++)e.push(Dv(t[r]));return e}var n=[];return t.traverse(function(a){a instanceof ir&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var Uie=1e4,N4e=wr();function B4e(t){for(var e=t.dimensions,r=0;r<e.length;r++){var n=t.getDimensionInfo(e[r]);if(n&&n.otherDims.itemGroupId===0)return e[r]}}function fX(t){var e=[];return V(t,function(r){var n=r.data;if(n.count()>Uie){Vn("Universal transition is disabled on large data > 10k.");return}for(var a=n.getIndices(),i=B4e(n),o=0;o<a.length;o++)e.push({dataGroupId:r.dataGroupId,data:n,dim:r.dim||i,divide:r.divide,dataIndex:o})}),e}function dz(t,e,r){t.traverse(function(n){n instanceof ir&&In(n,{style:{opacity:0}},e,{dataIndex:r,isFrom:!0})})}function hz(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function Vy(t){t.stopAnimation(),t.isGroup&&t.traverse(function(e){e.stopAnimation()})}function z4e(t,e,r){var n=q0("update",r,e);n&&t.traverse(function(a){if(a instanceof cl){var i=aEe(a);i&&a.animateFrom({style:i},n)}})}function $4e(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++){var a=t[n],i=e[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function Wie(t,e,r){var n=fX(t),a=fX(e);function i(_,w,T,A,M){(T||_)&&w.animateFrom({style:T&&T!==_?Ce(Ce({},T.style),_.style):_.style},M)}function o(_){for(var w=0;w<_.length;w++)if(_[w].dim)return _[w].dim}var s=o(n),l=o(a),u=!1;function c(_,w){return function(T){var A=T.data,M=T.dataIndex;if(w)return A.getId(M);var D=T.dataGroupId,P=_?s||l:l||s,O=P&&A.getDimensionInfo(P),k=O&&O.ordinalMeta;if(O){var N=A.get(O.name,M);return k&&k.categories[N]||N+""}var $=A.getRawDataItem(M);return $&&$.groupId?$.groupId+"":D||A.getId(M)}}var d=$4e(n,a),p={};if(!d)for(var v=0;v<a.length;v++){var g=a[v],m=g.data.getItemGraphicEl(g.dataIndex);m&&(p[m.id]=!0)}function x(_,w){var T=n[w],A=a[_],M=A.data.hostModel,D=T.data.getItemGraphicEl(T.dataIndex),P=A.data.getItemGraphicEl(A.dataIndex);if(D===P){P&&z4e(P,A.dataIndex,M);return}D&&p[D.id]||P&&(Vy(P),D?(Vy(D),hz(D),u=!0,fz(Dv(D),Dv(P),A.divide,M,_,i)):dz(P,M,_))}new xf(n,a,c(!0,d),c(!1,d),null,"multiple").update(x).updateManyToOne(function(_,w){var T=a[_],A=T.data,M=A.hostModel,D=A.getItemGraphicEl(T.dataIndex),P=Br(Oe(w,function(O){return n[O].data.getItemGraphicEl(n[O].dataIndex)}),function(O){return O&&O!==D&&!p[O.id]});D&&(Vy(D),P.length?(V(P,function(O){Vy(O),hz(O)}),u=!0,fz(Dv(P),Dv(D),T.divide,M,_,i)):dz(D,M,T.dataIndex))}).updateOneToMany(function(_,w){var T=n[w],A=T.data.getItemGraphicEl(T.dataIndex);if(!(A&&p[A.id])){var M=Br(Oe(_,function(P){return a[P].data.getItemGraphicEl(a[P].dataIndex)}),function(P){return P&&P!==A}),D=a[_[0]].data.hostModel;M.length&&(V(M,function(P){return Vy(P)}),A?(Vy(A),hz(A),u=!0,fz(Dv(A),Dv(M),T.divide,D,_[0],i)):V(M,function(P){return dz(P,D,_[0])}))}}).updateManyToMany(function(_,w){new xf(w,_,function(T){return n[T].data.getId(n[T].dataIndex)},function(T){return a[T].data.getId(a[T].dataIndex)}).update(function(T,A){x(_[T],w[A])}).execute()}).execute(),u&&V(e,function(_){var w=_.data,T=w.hostModel,A=T&&r.getViewOfSeriesModel(T),M=q0("update",T,0);A&&T.isAnimationEnabled()&&M&&M.duration>0&&A.group.traverse(function(D){D instanceof ir&&!D.animators.length&&D.animateFrom({style:{opacity:0}},M)})})}function dX(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function hX(t){return Le(t)?t.sort().join(","):t}function Gd(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function F4e(t,e){var r=yt(),n=yt(),a=yt();V(t.oldSeries,function(o,s){var l=t.oldDataGroupIds[s],u=t.oldData[s],c=dX(o),d=hX(c);n.set(d,{dataGroupId:l,data:u}),Le(c)&&V(c,function(p){a.set(p,{key:d,dataGroupId:l,data:u})})});function i(o){r.get(o)&&Vn("Duplicated seriesKey in universalTransition "+o)}return V(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=dX(o),c=hX(u),d=n.get(c);if(d)i(c),r.set(c,{oldSeries:[{dataGroupId:d.dataGroupId,divide:Gd(d.data),data:d.data}],newSeries:[{dataGroupId:s,divide:Gd(l),data:l}]});else if(Le(u)){i(c);var p=[];V(u,function(m){var x=n.get(m);x.data&&p.push({dataGroupId:x.dataGroupId,divide:Gd(x.data),data:x.data})}),p.length&&r.set(c,{oldSeries:p,newSeries:[{dataGroupId:s,data:l,divide:Gd(l)}]})}else{var v=a.get(u);if(v){var g=r.get(v.key);g||(g={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:Gd(v.data)}],newSeries:[]},r.set(v.key,g)),g.newSeries.push({dataGroupId:s,data:l,divide:Gd(l)})}}}}),r}function pX(t,e){for(var r=0;r<t.length;r++){var n=e.seriesIndex!=null&&e.seriesIndex===t[r].seriesIndex||e.seriesId!=null&&e.seriesId===t[r].id;if(n)return r}}function V4e(t,e,r,n){var a=[],i=[];V(Zr(t.from),function(o){var s=pX(e.oldSeries,o);s>=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Gd(e.oldData[s]),dim:o.dimension})}),V(Zr(t.to),function(o){var s=pX(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Gd(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Wie(a,i,n)}function U4e(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){V(Zr(n.seriesTransition),function(a){V(Zr(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][oR]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(e,r,n){var a=N4e(r);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)V(Zr(i),function(v){V4e(v,a,n,r)});else{var o=F4e(a,n);V(o.keys(),function(v){var g=o.get(v);Wie(g.oldSeries,g.newSeries,r)})}V(n.updatedSeries,function(v){v[oR]&&(v[oR]=!1)})}for(var s=e.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],c=a.oldData=[],d=0;d<s.length;d++){var p=s[d].getData();p.count()<Uie&&(l.push(s[d]),u.push(s[d].get("dataGroupId")),c.push(p))}})}rr([oLe]);rr([JPe]);rr([DLe,qLe,s2e,q2e,fOe,ike,Nke,SNe,ZNe,iBe,gBe,xze,Yze,o$e,A$e,L$e,K$e,s5e,x5e,R5e,V5e,CFe]);rr(qFe);rr(R3e);rr(Bne);rr(G3e);rr(wae);rr(Q3e);rr(sVe);rr(lUe);rr(IUe);rr(nw);rr(KUe);rr(eWe);rr(vWe);rr(CWe);rr(LWe);rr(VWe);rr(tHe);rr(wHe);rr(Mie);rr(Die);rr(ZHe);rr(kie);rr(Nie);rr(t4e);rr(p4e);rr(m4e);rr(U4e);rr(bPe);const hYe=Object.freeze(Object.defineProperty({__proto__:null,Axis:gl,ChartView:Kr,ComponentModel:ur,ComponentView:Pn,List:Ui,Model:Xr,PRIORITY:Wte,SeriesModel:xn,color:lTe,connect:xDe,dataTool:EDe,dependencies:rDe,disConnect:Kte,disconnect:_De,dispose:SDe,env:gr,extendChartView:iPe,extendComponentModel:rPe,extendComponentView:nPe,extendSeriesModel:aPe,format:HIe,getCoordinateSystemDimensions:TDe,getInstanceByDom:tV,getInstanceById:wDe,getMap:ADe,graphic:WIe,helper:kIe,init:bDe,innerDrawElementOnCanvas:K3,matrix:Owe,number:VIe,parseGeoJSON:n5,parseGeoJson:n5,registerAction:au,registerCoordinateSystem:ere,registerLayout:tre,registerLoading:oV,registerLocale:I3,registerMap:rre,registerPostInit:Qte,registerPostUpdate:Jte,registerPreprocessor:nV,registerProcessor:aV,registerTheme:rV,registerTransform:nre,registerUpdateLifecycle:rI,registerVisual:Nh,setCanvasCreator:CDe,setPlatformAPI:OQ,throttle:eI,time:UIe,use:rr,util:GIe,vector:ywe,version:tDe,zrUtil:fwe,zrender:YTe},Symbol.toStringTag,{value:"Module"})),W4e=({children:t})=>{const{settings:e}=wD();let r={...e.themes[e.activeTheme]};return re.jsxs(N1,{theme:r,children:[re.jsx(MF,{}),t]})},H4e=fl("div")(({theme:t})=>({"& .expandIcon":{transition:"transform 0.3s cubic-bezier(0, 0, 0.2, 1) 0ms",transform:"rotate(90deg)"},"& .collapseIcon":{transition:"transform 0.3s cubic-bezier(0, 0, 0.2, 1) 0ms",transform:"rotate(0deg)"},"& .expansion-panel":{overflow:"hidden",transition:"max-height 0.3s cubic-bezier(0, 0, 0.2, 1)"},"& .highlight":{background:t.palette.primary.main},"&.compactNavItem":{width:44,overflow:"hidden",justifyContent:"center !important","& .itemText":{display:"none"},"& .itemIcon":{display:"none"}}})),G4e=fl(B1)(({theme:t})=>({height:44,width:"100%",whiteSpace:"pre",overflow:"hidden",paddingRight:"16px",borderRadius:"4px",marginBottom:"8px",display:"flex",justifyContent:"space-between !important",color:t.palette.text.primary,"&:hover":{background:"rgba(255, 255, 255, 0.08)"},"& .icon":{width:36,fontSize:"18px",paddingLeft:"16px",paddingRight:"16px",verticalAlign:"middle"}})),j4e=fl("div")(({theme:t})=>({width:4,height:4,color:"inherit",overflow:"hidden",marginLeft:"20px",marginRight:"8px",borderRadius:"300px !important",background:t.palette.text.primary})),Y4e=fl("span")(()=>({fontSize:"0.875rem",paddingLeft:"0.8rem",verticalAlign:"middle"})),q4e=fl("div")(()=>({padding:"1px 4px",overflow:"hidden",borderRadius:"300px"})),X4e=({item:t,children:e,mode:r})=>{const[n,a]=Y.useState(!0),i=Y.useRef(null),o=Y.useRef(0),{pathname:s}=Mh(),{name:l,icon:u,iconText:c,badge:d}=t,p=()=>{o.current=0,v(i.current),a(!n)},v=Y.useCallback(g=>{if(g.name!=="child")for(let m of g.children)v(m);g.name==="child"?o.current+=g.scrollHeight:o.current+=44},[]);return Y.useEffect(()=>{if(i){v(i.current);for(let g of i.current.children)g.getAttribute("href")===s&&a(!1)}},[s,v]),re.jsxs(H4e,{children:[re.jsxs(G4e,{className:ar({"has-submenu compactNavItem":!0,compactNavItem:r==="compact",open:!n}),onClick:p,children:[re.jsxs(oD,{display:"flex",alignItems:"center",children:[u&&re.jsx(oc,{className:"icon",children:u}),c&&re.jsx(j4e,{}),re.jsx(Y4e,{className:"sidenavHoverShow",children:l})]}),d&&re.jsx(q4e,{className:"sidenavHoverShow itemIcon",children:d.value}),re.jsx("div",{className:ar({sidenavHoverShow:!0,collapseIcon:n,expandIcon:!n}),children:re.jsx(oc,{fontSize:"small",sx:{verticalAlign:"middle"},children:"chevron_right"})})]}),re.jsx("div",{ref:i,className:"expansion-panel submenu",style:n?{maxHeight:"0px"}:{maxHeight:o.current+"px"},children:e})]})},Z4e=nt(mSe)(({theme:t,mode:e})=>({fontSize:"12px",marginTop:"20px",marginLeft:"15px",marginBottom:"10px",textTransform:"uppercase",display:e==="compact"&&"none",color:t.palette.text.secondary})),Hie={display:"flex",overflow:"hidden",borderRadius:"4px",height:44,whiteSpace:"pre",marginBottom:"8px",textDecoration:"none",justifyContent:"space-between",transition:"all 150ms ease-in","&:hover":{background:"rgba(255, 255, 255, 0.08)"},"&.compactNavItem":{overflow:"hidden",justifyContent:"center !important"},"& .icon":{fontSize:"18px",paddingLeft:"16px",paddingRight:"16px",verticalAlign:"middle"}},K4e=nt("a")(({theme:t})=>({...Hie,color:t.palette.text.primary})),Q4e=nt(ns)(({theme:t})=>({"& a":{...Hie,color:t.palette.text.primary},"& .navItemActive":{backgroundColor:"rgba(255, 255, 255, 0.16)"}})),vX=nt(MQ)(({mode:t})=>({fontSize:"0.875rem",paddingLeft:"0.8rem",display:t==="compact"&&"none"})),J4e=nt("div")(({theme:t})=>({padding:"2px",marginLeft:"24px",marginRight:"8px",overflow:"hidden",borderRadius:"300px",background:t.palette.text.primary})),gX=nt("div")(()=>({padding:"1px 8px",overflow:"hidden",borderRadius:"300px"})),eGe=({items:t})=>{const{settings:e}=wD(),{mode:r}=e.layout1Settings.leftSidebar,n=a=>a.map((i,o)=>i.type==="label"?re.jsx(Z4e,{mode:r,className:"sidenavHoverShow",children:i.label},o):i.children&&i.children.length>0?re.jsx(X4e,{mode:r,item:i,children:n(i.children)},o):i.type==="extLink"?re.jsx(K4e,{href:i.path,className:`${r==="compact"&&"compactNavItem"}`,rel:"noopener noreferrer",target:"_blank",children:re.jsxs(B1,{name:"child",sx:{width:"100%"},children:[(()=>i.icon?re.jsx(oc,{className:"icon",children:i.icon}):re.jsx("span",{className:"item-icon icon-text",children:i.iconText}))(),re.jsx(vX,{mode:r,className:"sidenavHoverShow",children:i.name}),re.jsx(ns,{mx:"auto"}),i.badge&&re.jsx(gX,{children:i.badge.value})]},i.name)},o):re.jsx(Q4e,{children:re.jsx(WK,{to:i.path,className:({isActive:s})=>s?`navItemActive ${r==="compact"&&"compactNavItem"}`:`${r==="compact"&&"compactNavItem"}`,children:re.jsxs(B1,{name:"child",sx:{width:"100%"},children:[i!=null&&i.icon?re.jsx(oc,{className:"icon",sx:{width:36},children:i.icon}):re.jsxs(Y.Fragment,{children:[re.jsx(J4e,{className:"nav-bullet",sx:{display:r==="compact"&&"none"}}),re.jsx(ns,{className:"nav-bullet-text",sx:{ml:"20px",fontSize:"11px",display:r!=="compact"&&"none"},children:i.iconText})]}),re.jsx(vX,{mode:r,className:"sidenavHoverShow",children:i.name}),re.jsx(ns,{mx:"auto"}),i.badge&&re.jsx(gX,{className:"sidenavHoverShow",children:i.badge.value})]},i.name)})},o));return re.jsx("div",{className:"navigation",children:n(t)})},pYe=bi.memo(eGe),tGe=fl(age)(()=>({height:"100%",padding:"20px 24px"})),rGe=fl("div")(({subtitle:t})=>({fontSize:"1rem",fontWeight:"500",textTransform:"capitalize",marginBottom:!t&&"16px"})),vYe=({children:t,title:e,subtitle:r,icon:n})=>re.jsxs(tGe,{elevation:6,children:[re.jsx(rGe,{subtitle:r,children:e}),r&&re.jsx(oD,{sx:{mb:2},children:r}),t]});function G5(t){this.message=t}G5.prototype=new Error,G5.prototype.name="InvalidCharacterError";typeof window<"u"&&window.atob&&window.atob.bind(window);function mX(t){this.message=t}mX.prototype=new Error,mX.prototype.name="InvalidTokenError";const il=Dh.create();il.interceptors.response.use(t=>t,t=>Promise.reject(t.response||"Something went wrong!"));async function Gie(t,e,r){try{const n=await il.get(IS+t,e);return delete n.data["@odata.context"],n.data}catch(n){switch(n.status){case 401:throw r&&r.logout(),new Error(n);default:return n}}}async function nGe(t,e){return il.defaults.headers.Accept="application/json",il.defaults.withCredentials=!0,(await il.post(IS+t,e)).data}async function j5(t,e,r){return(await il.post(IS+t,e)).data}function jie(t,e,r){return il.patch(IS+t,e)}async function Yie(t,e){return(await il.delete(IS+t)).data}class qie{constructor(e,r){bt(this,"prefix");bt(this,"path");bt(this,"GetAuthenPUBLIC",(e,r)=>this.GetAuthenIni(my,`${this.path}${e}`,r));bt(this,"GetAuthen",(e,r)=>this.GetAuthenIni(NA,`${this.path}${e}`,r));bt(this,"GetAuthenADMIN",(e,r)=>this.GetAuthenIni(Hk,`${this.path}${e}`,r));bt(this,"GetAllow",(e,r)=>this.GetAuthenIni(v_,`${this.path}${e}`,r));bt(this,"GetPartner",(e,r)=>this.GetAuthenIni("",`${e}`,r));bt(this,"PostAuthenPUBLIC",(e,r,n)=>this.PostAuthenIni(my,`${this.path}${e}`,r,n));bt(this,"PostAuthen",(e,r,n)=>this.PostAuthenIni(NA,`${this.path}${e}`,r,n));bt(this,"PostALLow",(e,r,n)=>this.PostAuthenIni(v_,`${this.path}${e}`,r,n));bt(this,"PostPublic",(e,r,n)=>this.PostAuthenIni(my,`${this.path}${e}`,r,n));bt(this,"PatchAuthenPUBLIC",(e,r,n)=>this.PatchAuthenIni(`${my}${this.path}${e}`,r,n));bt(this,"PatchAuthen",(e,r,n)=>this.PatchAuthenIni(NA,`${this.path}${e}`,r,n));bt(this,"PatchAllow",(e,r,n)=>this.PatchAuthenIni(v_,`${this.path}${e}`,r,n));bt(this,"PatchAuthenADMIN",(e,r,n)=>this.PatchAuthenIni(Hk,`${this.path}${e}`,r,n));bt(this,"UploadAllow",(e,r)=>this.UploadIni(`${v_}${this.path}${e}`,r));bt(this,"DeleteAuthenPUBLIC",(e,r)=>this.DeleteAuthenIni(`${my}${this.path}${e}`,r));bt(this,"DeleteAuthen",(e,r)=>this.DeleteAuthenIni(`${NA}${this.path}${e}`,r));bt(this,"DeleteAuthenADMIN",(e,r)=>this.DeleteAuthenIni(`${Hk}${this.path}${e}`,r));bt(this,"DeleteAllow",(e,r)=>this.DeleteAuthenIni(`${v_}${this.path}${e}`,r));bt(this,"DeletePUBLIC",(e,r)=>this.DeleteAuthenIni(`${my}${this.path}${e}`,r));this.prefix=e||"",this.path=r||""}PostAuthenIniNotCheckToken(e,r,n){return j5(`${e}`,r)}GetAuthenIni(e,r,n){return Gie(`${this.prefix}${e}${r}`,n||{})}PostAuthenIni(e,r,n,a){const{notPrefix:i=null}=a||{};return j5(`${i?"":this.prefix}${e}${r}`,n)}PatchAuthenIni(e,r,n,a){return jie(`${this.prefix}${e}${r}`,n)}DeleteAuthenIni(e,r){return Yie(`${this.prefix}${e}`)}UploadIni(e,r){const n=new FormData;Object.keys(r).forEach(i=>{n.append(i,r[i])});const a=`${this.prefix}${e}`;return nGe(a,n)}}class lb extends qie{constructor(e){super("/admin",e)}}class aGe extends lb{constructor(){super("/Authenticate");bt(this,"loginAccount",r=>this.PostPublic("/Login",r));bt(this,"logoutAccount",()=>this.DeleteAllow("/Logout"))}}const OM=new aGe;class iGe extends lb{constructor(){super("/Accounts");bt(this,"getDetail",()=>this.GetAuthen("/ChiTietTaiKhoan"));bt(this,"getMenuWithAuthority",()=>this.GetAllow("/Menus"));bt(this,"resetPassword",r=>this.GetAuthen(`/ResetPassword?userName=${r}`));bt(this,"changePassword",({userName:r,password:n})=>this.GetAuthen(`/ChangePass?userName=${r}&password=${n}`));bt(this,"accChangePassword",r=>this.PostALLow("/ChangePassword",r));bt(this,"addNewUsers",r=>this.PostAuthen("/ThemTaiKhoan",r));bt(this,"getInfoByIdAccount",r=>this.GetAuthen(`(${r})?$select=displayName, userName, email, phoneNumber`));bt(this,"addAuthorities",r=>this.PostAuthen("/ThemVaiTro",r));bt(this,"getAvatars",()=>this.GetAllow("/GetAvatar"));bt(this,"updateInfo",r=>this.PostAuthen("/UpdateChiTietTaiKhoan",r));bt(this,"getInfo",()=>this.GetAuthen("/ChiTietTaiKhoan",{noLoading:!0}))}uploadAvatar(r){return this.UploadAllow("/UploadAvatar",{file:r})}}const mU=new iGe;class oGe extends lb{constructor(){super("/Roles");bt(this,"getAllRoles",()=>this.GetAllow("?$select=name,isRoot,id,normalizedName",null,null,!0));bt(this,"setAllMenuAdministrationWithRole",r=>this.PostAuthen("/ThemMenus",r));bt(this,"getMenuWithIDRole",r=>this.GetAllow(`?$filter=id eq ${r}&$expand=menus`));bt(this,"saveAllWithRoleAndGroupName",r=>this.PostAuthen("/ThemEndpoints",r))}}const gYe=new oGe;class sGe extends lb{constructor(){super("/Menus");bt(this,"getMenuTree",()=>this.GetAllow("?$select=id,label,icon,link,parentId,ordinal&$orderby=ordinal asc"));bt(this,"saveMenu",r=>this.PostAuthen(r,null));bt(this,"deleteMenu",r=>this.DeleteAuthen(`(${r})`));bt(this,"updateMenuAdmin",(r,n)=>this.PatchAuthen(`(${r})`,n))}}const mYe=new sGe;class lGe extends lb{constructor(){super("/Endpoints");bt(this,"findAllGroupName",()=>this.GetAuthen("/EndpointGroups"));bt(this,"findAllIdEndpoint",(r,n)=>this.GetAuthenADMIN(`/findAllIdEndpoint?id=${r}&groupName=${n}`));bt(this,"findAllEndpointByGroupName",r=>this.GetAuthen(`?$filter=controller eq '${r}'`,null));bt(this,"getAll",r=>this.getAll(r))}}const yYe=new lGe;class uGe extends lb{constructor(){super("/AuthorizedRoles");bt(this,"getEndpointWithIDRole",(r,n)=>this.GetAuthen(`?$expand=endpoint&$filter=roleId eq ${r} and endpoint/controller eq '${n}'`))}}const bYe=new uGe;class cGe extends qie{constructor(e){super("",e)}}class fGe extends cGe{constructor(){super("/Storage");bt(this,"downloadFile",r=>this.GetAllow("/Download/"+r,{responseType:"blob"}))}}const xYe=new fGe,Xie={isAuthenticated:!1,isInitialised:!1,user:null},pz=t=>{t?localStorage.setItem("info",JSON.stringify(t)):(localStorage.removeItem("info"),delete il.defaults.headers.common.Authorization)},dGe=(t,e)=>{switch(e.type){case"INIT":{const{isAuthenticated:r,user:n}=e.payload;return{...t,isAuthenticated:r,isInitialised:!0,user:n}}case"LOGIN":{const{user:r}=e.payload;return{...t,isAuthenticated:!0,user:r}}case"LOGOUT":return{...t,isAuthenticated:!1,user:null};case"REGISTER":{const{user:r}=e.payload;return{...t,isAuthenticated:!0,user:r}}case"USER":return{...t,user:{...t.user,...e.payload}};default:return{...t}}},Zie=Y.createContext({...Xie,method:"JWT",login:()=>Promise.resolve(),logout:()=>{},register:()=>Promise.resolve(),updateUser:()=>{}}),hGe=({children:t})=>{const[e,r]=Y.useReducer(dGe,Xie),n=async(s,l)=>{await OM.loginAccount({username:s,password:l});const{resultObj:u}=await mU.getDetail();pz({name:u.displayName,avatar:null,id:"admin",...u}),r({type:"LOGIN",payload:{user:{name:u.displayName,avatar:null,id:"admin",...u}}})},a=async(s,l,u)=>{const c=await il.post("/api/auth/register",{email:s,username:l,password:u}),{accessToken:d,user:p}=c.data;pz(d),r({type:"REGISTER",payload:{user:p}})},i=()=>{OM.logoutAccount().then(()=>{}),pz(null),r({type:"LOGOUT",payload:{isAuthenticated:void 0,user:void 0}})},o=s=>{r({type:"USER",payload:s})};return Y.useEffect(()=>{(async()=>{try{const s=window.localStorage.getItem("info");r({type:"INIT",payload:{isAuthenticated:!0,user:JSON.parse(s)}})}catch(s){console.error(s),r({type:"INIT",payload:{isAuthenticated:!1,user:null}})}})()},[]),e.isInitialised?re.jsx(Zie.Provider,{value:{...e,method:"JWT",login:n,logout:i,register:a,updateUser:o},children:t}):re.jsx(ZF,{})},yU=()=>Y.useContext(Zie),pGe=({children:t})=>{let{isAuthenticated:e}=yU();const{pathname:r}=Mh();let n=e;return re.jsx(re.Fragment,{children:n?t:re.jsx(VK,{replace:!0,to:"/session/signin",state:{from:r}})})},el={sa:["SA"],admin:["SA","ADMIN"],editor:["SA","ADMIN","EDITOR"],guest:["SA","ADMIN","EDITOR","GUEST"]},an=t=>e=>re.jsx(Y.Suspense,{fallback:re.jsx(ZF,{}),children:re.jsx(t,{...e})}),vGe=an(Y.lazy(()=>Qr(()=>import("./AppEchart-6c999d16.js"),["assets/AppEchart-6c999d16.js","assets/index-35c07bce.js"]))),gGe=[{path:"/charts/echarts",element:re.jsx(vGe,{}),auth:el.editor}],mGe=an(Y.lazy(()=>Qr(()=>import("./Analytics-c2b7f9b9.js"),["assets/Analytics-c2b7f9b9.js","assets/index-35c07bce.js","assets/Fab-ba6297ee.js","assets/Checkbox-60209323.js","assets/SwitchBase-f2562236.js","assets/Hidden-5cc502db.js","assets/useMediaQuery-72cdd2fe.js","assets/Tooltip-4d2e5457.js","assets/Popper-151dcaf9.js","assets/popper-578b62a7.js","assets/TableRow-55190f90.js","assets/MenuItem-3ea292e1.js","assets/listItemIconClasses-873dc6a3.js"]))),yGe=[{path:"/dashboard/default",element:Y.createElement(mGe),auth:el.admin}],bGe=an(Y.lazy(()=>Qr(()=>import("./AppTable-41dd3b8e.js"),["assets/AppTable-41dd3b8e.js","assets/TableRow-55190f90.js","assets/TablePagination-014b81e1.js","assets/KeyboardArrowRight-930a3b01.js","assets/Toolbar-d5f2ec66.js","assets/MenuItem-3ea292e1.js","assets/listItemIconClasses-873dc6a3.js"]))),xGe=an(Y.lazy(()=>Qr(()=>import("./AppForm-f1bbd83a.js"),["assets/AppForm-f1bbd83a.js","assets/warning-d8cd23a0.js","assets/RadioGroup-75efda1a.js","assets/SwitchBase-f2562236.js","assets/FormGroup-c4ebc22e.js","assets/FormControlLabel-a1a576f7.js","assets/Checkbox-60209323.js","assets/Stack-6f785cc2.js"]))),_Ge=an(Y.lazy(()=>Qr(()=>import("./AppButton-53db0c1f.js"),["assets/AppButton-53db0c1f.js","assets/Fab-ba6297ee.js"]))),SGe=an(Y.lazy(()=>Qr(()=>import("./AppIcon-ad330d96.js"),["assets/AppIcon-ad330d96.js","assets/Tooltip-4d2e5457.js","assets/Popper-151dcaf9.js","assets/popper-578b62a7.js"]))),wGe=an(Y.lazy(()=>Qr(()=>import("./AppProgress-98dc5025.js"),[]))),TGe=an(Y.lazy(()=>Qr(()=>import("./AppMenu-15adec09.js"),["assets/AppMenu-15adec09.js","assets/createSvgIcon-842e6ef8.js","assets/unsupportedProp-e368368f.js","assets/MenuItem-3ea292e1.js","assets/listItemIconClasses-873dc6a3.js","assets/ListItemIcon-236483f0.js","assets/ListItemText-9db2b571.js","assets/ListItem-93baa3cc.js","assets/Stack-6f785cc2.js"]))),CGe=an(Y.lazy(()=>Qr(()=>import("./AppCheckbox-4624149f.js"),["assets/AppCheckbox-4624149f.js","assets/FormGroup-c4ebc22e.js","assets/FormControlLabel-a1a576f7.js","assets/Checkbox-60209323.js","assets/SwitchBase-f2562236.js","assets/createSvgIcon-842e6ef8.js","assets/unsupportedProp-e368368f.js"]))),AGe=an(Y.lazy(()=>Qr(()=>import("./AppSwitch-48650fee.js"),["assets/AppSwitch-48650fee.js","assets/Switch-04a62a88.js","assets/SwitchBase-f2562236.js","assets/FormGroup-c4ebc22e.js","assets/FormControlLabel-a1a576f7.js","assets/Stack-6f785cc2.js"]))),EGe=an(Y.lazy(()=>Qr(()=>import("./AppRadio-2fe4cd5a.js"),["assets/AppRadio-2fe4cd5a.js","assets/RadioGroup-75efda1a.js","assets/SwitchBase-f2562236.js","assets/FormGroup-c4ebc22e.js","assets/FormControlLabel-a1a576f7.js","assets/createSvgIcon-842e6ef8.js","assets/unsupportedProp-e368368f.js","assets/Stack-6f785cc2.js"]))),RGe=an(Y.lazy(()=>Qr(()=>import("./AppSlider-cd881248.js"),["assets/AppSlider-cd881248.js","assets/createSvgIcon-842e6ef8.js","assets/unsupportedProp-e368368f.js","assets/Stack-6f785cc2.js","assets/shouldSpreadAdditionalProps-98202fee.js"]))),MGe=an(Y.lazy(()=>Qr(()=>import("./AppDialog-402e69a1.js"),["assets/AppDialog-402e69a1.js","assets/ListItem-93baa3cc.js","assets/ListItemText-9db2b571.js","assets/MenuItem-3ea292e1.js","assets/listItemIconClasses-873dc6a3.js","assets/DialogTitle-762ac824.js","assets/RadioGroup-75efda1a.js","assets/SwitchBase-f2562236.js","assets/FormGroup-c4ebc22e.js","assets/FormControlLabel-a1a576f7.js","assets/Close-a51c0c95.js","assets/createSvgIcon-842e6ef8.js","assets/unsupportedProp-e368368f.js","assets/Slide-d13e3d86.js","assets/DialogContentText-22d7ed41.js","assets/AppBar-a2b92a6e.js","assets/Toolbar-d5f2ec66.js","assets/Switch-04a62a88.js","assets/useMediaQuery-72cdd2fe.js","assets/Stack-6f785cc2.js"]))),DGe=an(Y.lazy(()=>Qr(()=>import("./AppSnackbar-e8b02c86.js"),["assets/AppSnackbar-e8b02c86.js","assets/Close-a51c0c95.js","assets/createSvgIcon-842e6ef8.js","assets/unsupportedProp-e368368f.js","assets/Snackbar-43c044f4.js","assets/Alert-60369fbc.js","assets/Close-1f3816f8.js","assets/Slide-d13e3d86.js","assets/Collapse-d6305a4f.js","assets/Stack-6f785cc2.js"]))),IGe=an(Y.lazy(()=>Qr(()=>import("./AppAutoComplete-1159343f.js"),["assets/AppAutoComplete-1159343f.js","assets/Close-1f3816f8.js","assets/Popper-151dcaf9.js","assets/popper-578b62a7.js","assets/Chip-76b2389c.js","assets/unsupportedProp-e368368f.js"]))),PGe=an(Y.lazy(()=>Qr(()=>import("./AppExpansionPanel-19b5848b.js"),["assets/AppExpansionPanel-19b5848b.js","assets/createSvgIcon-842e6ef8.js","assets/unsupportedProp-e368368f.js","assets/Collapse-d6305a4f.js","assets/Chip-76b2389c.js","assets/Stack-6f785cc2.js"]))),LGe=[{path:"/material/table",element:re.jsx(bGe,{})},{path:"/material/form",element:re.jsx(xGe,{})},{path:"/material/buttons",element:re.jsx(_Ge,{})},{path:"/material/icons",element:re.jsx(SGe,{})},{path:"/material/progress",element:re.jsx(wGe,{})},{path:"/material/menu",element:re.jsx(TGe,{})},{path:"/material/checkbox",element:re.jsx(CGe,{})},{path:"/material/switch",element:re.jsx(AGe,{})},{path:"/material/radio",element:re.jsx(EGe,{})},{path:"/material/slider",element:re.jsx(RGe,{})},{path:"/material/autocomplete",element:re.jsx(IGe,{})},{path:"/material/expansion-panel",element:re.jsx(PGe,{})},{path:"/material/dialog",element:re.jsx(MGe,{})},{path:"/material/snackbar",element:re.jsx(DGe,{})}],OGe=an(Y.lazy(()=>Qr(()=>import("./index-f6d32087.js"),["assets/index-f6d32087.js","assets/NumberFormat-694550a2.js","assets/tiny-warning.esm-d265c1d1.js","assets/DialogTitle-762ac824.js","assets/reactstrap.modern-0a8c2eab.js","assets/popper-578b62a7.js","assets/warning-d8cd23a0.js","assets/FormGroup-c4ebc22e.js","assets/NumberFormat-afcff40b.css","assets/Form-84841cbf.js","assets/Alert-60369fbc.js","assets/Close-1f3816f8.js","assets/Checkbox-60209323.js","assets/SwitchBase-f2562236.js","assets/TreeView-f2bb0588.js","assets/Collapse-d6305a4f.js","assets/unsupportedProp-e368368f.js","assets/Chip-76b2389c.js","assets/CardContent-7571d5c8.js"]))),kGe=an(Y.lazy(()=>Qr(()=>import("./index-c8cef105.js"),["assets/index-c8cef105.js","assets/NumberFormat-694550a2.js","assets/tiny-warning.esm-d265c1d1.js","assets/DialogTitle-762ac824.js","assets/reactstrap.modern-0a8c2eab.js","assets/popper-578b62a7.js","assets/warning-d8cd23a0.js","assets/FormGroup-c4ebc22e.js","assets/NumberFormat-afcff40b.css","assets/DataTable-63f87428.js","assets/Tooltip-4d2e5457.js","assets/Popper-151dcaf9.js","assets/TableRow-55190f90.js","assets/Checkbox-60209323.js","assets/SwitchBase-f2562236.js","assets/Toolbar-d5f2ec66.js","assets/AppBar-a2b92a6e.js","assets/TablePagination-014b81e1.js","assets/KeyboardArrowRight-930a3b01.js","assets/MenuItem-3ea292e1.js","assets/listItemIconClasses-873dc6a3.js","assets/TreeView-f2bb0588.js","assets/Collapse-d6305a4f.js","assets/unsupportedProp-e368368f.js","assets/Chip-76b2389c.js","assets/Tabs-59094e22.js","assets/Skeleton-16a64d4f.js"]))),NGe=an(Y.lazy(()=>Qr(()=>import("./index-1634a788.js"),["assets/index-1634a788.js","assets/NumberFormat-694550a2.js","assets/tiny-warning.esm-d265c1d1.js","assets/DialogTitle-762ac824.js","assets/reactstrap.modern-0a8c2eab.js","assets/popper-578b62a7.js","assets/warning-d8cd23a0.js","assets/FormGroup-c4ebc22e.js","assets/NumberFormat-afcff40b.css","assets/Slide-d13e3d86.js","assets/AppBar-a2b92a6e.js","assets/Toolbar-d5f2ec66.js","assets/CardContent-7571d5c8.js","assets/Skeleton-16a64d4f.js","assets/Chip-76b2389c.js","assets/unsupportedProp-e368368f.js","assets/DataTable-63f87428.js","assets/Tooltip-4d2e5457.js","assets/Popper-151dcaf9.js","assets/TableRow-55190f90.js","assets/Checkbox-60209323.js","assets/SwitchBase-f2562236.js","assets/TablePagination-014b81e1.js","assets/KeyboardArrowRight-930a3b01.js","assets/MenuItem-3ea292e1.js","assets/listItemIconClasses-873dc6a3.js","assets/DialogContentText-22d7ed41.js","assets/Snackbar-43c044f4.js","assets/Alert-60369fbc.js","assets/Close-1f3816f8.js"]))),BGe=an(Y.lazy(()=>Qr(()=>import("./Analytics-119942f6.js"),["assets/Analytics-119942f6.js","assets/DataTable-63f87428.js","assets/Tooltip-4d2e5457.js","assets/Popper-151dcaf9.js","assets/popper-578b62a7.js","assets/NumberFormat-694550a2.js","assets/tiny-warning.esm-d265c1d1.js","assets/DialogTitle-762ac824.js","assets/reactstrap.modern-0a8c2eab.js","assets/warning-d8cd23a0.js","assets/FormGroup-c4ebc22e.js","assets/NumberFormat-afcff40b.css","assets/TableRow-55190f90.js","assets/Checkbox-60209323.js","assets/SwitchBase-f2562236.js","assets/Toolbar-d5f2ec66.js","assets/AppBar-a2b92a6e.js","assets/TablePagination-014b81e1.js","assets/KeyboardArrowRight-930a3b01.js","assets/MenuItem-3ea292e1.js","assets/listItemIconClasses-873dc6a3.js"]))),zGe=[{path:"/admin/quan-tri/cau-hinh-vai-tro",element:Y.createElement(kGe),auth:el.admin},{path:"/admin/quan-tri/menu-he-thong",element:Y.createElement(OGe),auth:el.admin},{path:"/admin/quan-tri/quan-li-tai-khoan",element:Y.createElement(NGe),auth:el.admin},{path:"/admin/quan-tri/danh-sach-quyen",element:Y.createElement(BGe),auth:el.admin}],$Ge=an(Y.lazy(()=>Qr(()=>import("./index-781868f0.js"),["assets/index-781868f0.js","assets/DataTable-63f87428.js","assets/Tooltip-4d2e5457.js","assets/Popper-151dcaf9.js","assets/popper-578b62a7.js","assets/NumberFormat-694550a2.js","assets/tiny-warning.esm-d265c1d1.js","assets/DialogTitle-762ac824.js","assets/reactstrap.modern-0a8c2eab.js","assets/warning-d8cd23a0.js","assets/FormGroup-c4ebc22e.js","assets/NumberFormat-afcff40b.css","assets/TableRow-55190f90.js","assets/Checkbox-60209323.js","assets/SwitchBase-f2562236.js","assets/Toolbar-d5f2ec66.js","assets/AppBar-a2b92a6e.js","assets/TablePagination-014b81e1.js","assets/KeyboardArrowRight-930a3b01.js","assets/MenuItem-3ea292e1.js","assets/listItemIconClasses-873dc6a3.js"]))),FGe=an(Y.lazy(()=>Qr(()=>import("./index-b33bddc3.js"),["assets/index-b33bddc3.js","assets/DataTable-63f87428.js","assets/Tooltip-4d2e5457.js","assets/Popper-151dcaf9.js","assets/popper-578b62a7.js","assets/NumberFormat-694550a2.js","assets/tiny-warning.esm-d265c1d1.js","assets/DialogTitle-762ac824.js","assets/reactstrap.modern-0a8c2eab.js","assets/warning-d8cd23a0.js","assets/FormGroup-c4ebc22e.js","assets/NumberFormat-afcff40b.css","assets/TableRow-55190f90.js","assets/Checkbox-60209323.js","assets/SwitchBase-f2562236.js","assets/Toolbar-d5f2ec66.js","assets/AppBar-a2b92a6e.js","assets/TablePagination-014b81e1.js","assets/KeyboardArrowRight-930a3b01.js","assets/MenuItem-3ea292e1.js","assets/listItemIconClasses-873dc6a3.js"]))),VGe=an(Y.lazy(()=>Qr(()=>import("./index-d59aa10a.js"),["assets/index-d59aa10a.js","assets/DataTable-63f87428.js","assets/Tooltip-4d2e5457.js","assets/Popper-151dcaf9.js","assets/popper-578b62a7.js","assets/NumberFormat-694550a2.js","assets/tiny-warning.esm-d265c1d1.js","assets/DialogTitle-762ac824.js","assets/reactstrap.modern-0a8c2eab.js","assets/warning-d8cd23a0.js","assets/FormGroup-c4ebc22e.js","assets/NumberFormat-afcff40b.css","assets/TableRow-55190f90.js","assets/Checkbox-60209323.js","assets/SwitchBase-f2562236.js","assets/Toolbar-d5f2ec66.js","assets/AppBar-a2b92a6e.js","assets/TablePagination-014b81e1.js","assets/KeyboardArrowRight-930a3b01.js","assets/MenuItem-3ea292e1.js","assets/listItemIconClasses-873dc6a3.js","assets/Form-84841cbf.js","assets/Alert-60369fbc.js","assets/Close-1f3816f8.js","assets/Tabs-59094e22.js","assets/unsupportedProp-e368368f.js","assets/CardContent-7571d5c8.js"]))),UGe=an(Y.lazy(()=>Qr(()=>import("./index-6b8ca7fb.js"),["assets/index-6b8ca7fb.js","assets/DataTable-63f87428.js","assets/Tooltip-4d2e5457.js","assets/Popper-151dcaf9.js","assets/popper-578b62a7.js","assets/NumberFormat-694550a2.js","assets/tiny-warning.esm-d265c1d1.js","assets/DialogTitle-762ac824.js","assets/reactstrap.modern-0a8c2eab.js","assets/warning-d8cd23a0.js","assets/FormGroup-c4ebc22e.js","assets/NumberFormat-afcff40b.css","assets/TableRow-55190f90.js","assets/Checkbox-60209323.js","assets/SwitchBase-f2562236.js","assets/Toolbar-d5f2ec66.js","assets/AppBar-a2b92a6e.js","assets/TablePagination-014b81e1.js","assets/KeyboardArrowRight-930a3b01.js","assets/MenuItem-3ea292e1.js","assets/listItemIconClasses-873dc6a3.js"]))),WGe=an(Y.lazy(()=>Qr(()=>import("./index-fbf05c6b.js"),["assets/index-fbf05c6b.js","assets/DataTable-63f87428.js","assets/Tooltip-4d2e5457.js","assets/Popper-151dcaf9.js","assets/popper-578b62a7.js","assets/NumberFormat-694550a2.js","assets/tiny-warning.esm-d265c1d1.js","assets/DialogTitle-762ac824.js","assets/reactstrap.modern-0a8c2eab.js","assets/warning-d8cd23a0.js","assets/FormGroup-c4ebc22e.js","assets/NumberFormat-afcff40b.css","assets/TableRow-55190f90.js","assets/Checkbox-60209323.js","assets/SwitchBase-f2562236.js","assets/Toolbar-d5f2ec66.js","assets/AppBar-a2b92a6e.js","assets/TablePagination-014b81e1.js","assets/KeyboardArrowRight-930a3b01.js","assets/MenuItem-3ea292e1.js","assets/listItemIconClasses-873dc6a3.js"]))),HGe=[{path:"/danh-muc/don-vi",element:Y.createElement($Ge),auth:el.admin},{path:"/danh-muc/chuc-danh",element:Y.createElement(FGe),auth:el.admin},{path:"/exam/list",element:Y.createElement(VGe),auth:el.admin},{path:"/question/store",element:Y.createElement(UGe),auth:el.admin},{path:"/question/group",element:Y.createElement(WGe),auth:el.admin}],GGe=an(Y.lazy(()=>Qr(()=>import("./index-a5275e57.js"),["assets/index-a5275e57.js","assets/NumberFormat-694550a2.js","assets/tiny-warning.esm-d265c1d1.js","assets/DialogTitle-762ac824.js","assets/reactstrap.modern-0a8c2eab.js","assets/popper-578b62a7.js","assets/warning-d8cd23a0.js","assets/FormGroup-c4ebc22e.js","assets/NumberFormat-afcff40b.css","assets/Form-84841cbf.js","assets/Alert-60369fbc.js","assets/Close-1f3816f8.js","assets/Checkbox-60209323.js","assets/SwitchBase-f2562236.js","assets/Badge-bc5cbe8c.js","assets/shouldSpreadAdditionalProps-98202fee.js","assets/CardContent-7571d5c8.js","assets/ListItem-93baa3cc.js","assets/ListItemIcon-236483f0.js","assets/listItemIconClasses-873dc6a3.js","assets/Tabs-59094e22.js","assets/unsupportedProp-e368368f.js","assets/KeyboardArrowRight-930a3b01.js"]))),jGe=[{path:"/page-layouts/account",element:Y.createElement(GGe),auth:el.admin}],Kie=nt(ns)(()=>({display:"flex",alignItems:"center"})),YGe=nt(Kie)(()=>({maxWidth:320,flexDirection:"column",justifyContent:"center"})),qGe=nt("img")(()=>({width:"100%",marginBottom:"32px"})),XGe=nt(Kie)(()=>({width:"100%",alignItems:"center",justifyContent:"center",height:"100vh !important"})),Qie=()=>{const t=VF();return re.jsx(XGe,{children:re.jsxs(YGe,{children:[re.jsx(qGe,{src:"/assets/images/illustrations/404.svg",alt:""}),re.jsx(oK,{color:"primary",variant:"contained",sx:{textTransform:"capitalize"},onClick:()=>t(-1),children:"Go Back"})]})})},ZGe=Object.freeze(Object.defineProperty({__proto__:null,default:Qie},Symbol.toStringTag,{value:"Module"})),KGe=an(Y.lazy(()=>Qr(()=>Promise.resolve().then(()=>ZGe),void 0))),QGe=an(Y.lazy(()=>Qr(()=>import("./ForgotPassword-c937919f.js"),[]))),JGe=an(Y.lazy(()=>Qr(()=>import("./JwtLogin-bebac49a.js"),["assets/JwtLogin-bebac49a.js","assets/object-ea037d27.js","assets/tiny-warning.esm-d265c1d1.js","assets/Checkbox-60209323.js","assets/SwitchBase-f2562236.js"]))),eje=an(Y.lazy(()=>Qr(()=>import("./JwtRegister-559cde40.js"),["assets/JwtRegister-559cde40.js","assets/object-ea037d27.js","assets/tiny-warning.esm-d265c1d1.js","assets/Checkbox-60209323.js","assets/SwitchBase-f2562236.js"]))),tje=an(Y.lazy(()=>Qr(()=>import("./index-6d002b93.js"),["assets/index-6d002b93.js","assets/reactstrap.modern-0a8c2eab.js","assets/popper-578b62a7.js","assets/warning-d8cd23a0.js","assets/index-2edda6d4.css"]))),rje=[{path:"/session/signup",element:re.jsx(eje,{})},{path:"/session/signin",element:re.jsx(JGe,{})},{path:"/session/verified/:expiredToken",element:re.jsx(tje,{})},{path:"/session/forgot-password",element:re.jsx(QGe,{})},{path:"/session/404",element:re.jsx(KGe,{})}];let yX=[{id:"main",element:re.jsx(pGe,{children:re.jsx(USe,{})}),children:[...yGe,...gGe,...LGe,...jGe,...zGe,...HGe]},...rje,{path:"/",element:re.jsx(VK,{to:"dashboard/default"})},{path:"*",element:re.jsx(Qie,{})}];function ai(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];{var a=fje[t],i=a?typeof a=="function"?a.apply(null,r):a:"unknown error nr: "+t;throw Error("[Immer] "+i)}}function wh(t){return!!t&&!!t[qn]}function Tf(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===dje}(t)||Array.isArray(t)||!!t[CX]||!!(!((e=t.constructor)===null||e===void 0)&&e[CX])||bU(t)||xU(t))}function yg(t,e,r){r===void 0&&(r=!1),ub(t)===0?(r?Object.keys:v0)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function ub(t){var e=t[qn];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:bU(t)?2:xU(t)?3:0}function p0(t,e){return ub(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function nje(t,e){return ub(t)===2?t.get(e):t[e]}function Jie(t,e,r){var n=ub(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function eoe(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function bU(t){return uje&&t instanceof Map}function xU(t){return cje&&t instanceof Set}function jd(t){return t.o||t.t}function _U(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=roe(t);delete e[qn];for(var r=v0(e),n=0;n<r.length;n++){var a=r[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function SU(t,e){return e===void 0&&(e=!1),wU(t)||wh(t)||!Tf(t)||(ub(t)>1&&(t.set=t.add=t.clear=t.delete=aje),Object.freeze(t),e&&yg(t,function(r,n){return SU(n,!0)},!0)),t}function aje(){ai(2)}function wU(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function cc(t){var e=Z5[t];return e||ai(18,t),e}function ije(t,e){Z5[t]||(Z5[t]=e)}function Y5(){return O0||ai(0),O0}function vz(t,e){e&&(cc("Patches"),t.u=[],t.s=[],t.v=e)}function kM(t){q5(t),t.p.forEach(oje),t.p=null}function q5(t){t===O0&&(O0=t.l)}function bX(t){return O0={p:[],l:O0,h:t,m:!0,_:0}}function oje(t){var e=t[qn];e.i===0||e.i===1?e.j():e.O=!0}function gz(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.g||cc("ES5").S(e,t,n),n?(r[qn].P&&(kM(e),ai(4)),Tf(t)&&(t=NM(e,t),e.l||BM(e,t)),e.u&&cc("Patches").M(r[qn].t,t,e.u,e.s)):t=NM(e,r,[]),kM(e),e.u&&e.v(e.u,e.s),t!==toe?t:void 0}function NM(t,e,r){if(wU(e))return e;var n=e[qn];if(!n)return yg(e,function(s,l){return xX(t,n,e,s,l,r)},!0),e;if(n.A!==t)return e;if(!n.P)return BM(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=_U(n.k):n.o,i=a,o=!1;n.i===3&&(i=new Set(a),a.clear(),o=!0),yg(i,function(s,l){return xX(t,n,a,s,l,r,o)}),BM(t,a,!1),r&&t.u&&cc("Patches").N(n,r,t.u,t.s)}return n.o}function xX(t,e,r,n,a,i,o){if(a===r&&ai(5),wh(a)){var s=NM(t,a,i&&e&&e.i!==3&&!p0(e.R,n)?i.concat(n):void 0);if(Jie(r,n,s),!wh(s))return;t.m=!1}else o&&r.add(a);if(Tf(a)&&!wU(a)){if(!t.h.D&&t._<1)return;NM(t,a),e&&e.A.l||BM(t,a)}}function BM(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&SU(e,r)}function mz(t,e){var r=t[qn];return(r?jd(r):t)[e]}function _X(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Yd(t){t.P||(t.P=!0,t.l&&Yd(t.l))}function yz(t){t.o||(t.o=_U(t.t))}function X5(t,e,r){var n=bU(e)?cc("MapSet").F(e,r):xU(e)?cc("MapSet").T(e,r):t.g?function(a,i){var o=Array.isArray(a),s={i:o?1:0,A:i?i.A:Y5(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},l=s,u=yS;o&&(l=[s],u=s1);var c=Proxy.revocable(l,u),d=c.revoke,p=c.proxy;return s.k=p,s.j=d,p}(e,r):cc("ES5").J(e,r);return(r?r.A:Y5()).p.push(n),n}function sje(t){return wh(t)||ai(22,t),function e(r){if(!Tf(r))return r;var n,a=r[qn],i=ub(r);if(a){if(!a.P&&(a.i<4||!cc("ES5").K(a)))return a.t;a.I=!0,n=SX(r,i),a.I=!1}else n=SX(r,i);return yg(n,function(o,s){a&&nje(a.t,o)===s||Jie(n,o,e(s))}),i===3?new Set(n):n}(t)}function SX(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return _U(t)}function lje(){function t(o,s){var l=i[o];return l?l.enumerable=s:i[o]=l={configurable:!0,enumerable:s,get:function(){var u=this[qn];return a(u),yS.get(u,o)},set:function(u){var c=this[qn];a(c),yS.set(c,o,u)}},l}function e(o){for(var s=o.length-1;s>=0;s--){var l=o[s][qn];if(!l.P)switch(l.i){case 5:n(l)&&Yd(l);break;case 4:r(l)&&Yd(l)}}}function r(o){for(var s=o.t,l=o.k,u=v0(l),c=u.length-1;c>=0;c--){var d=u[c];if(d!==qn){var p=s[d];if(p===void 0&&!p0(s,d))return!0;var v=l[d],g=v&&v[qn];if(g?g.t!==p:!eoe(v,p))return!0}}var m=!!s[qn];return u.length!==v0(s).length+(m?0:1)}function n(o){var s=o.k;if(s.length!==o.t.length)return!0;var l=Object.getOwnPropertyDescriptor(s,s.length-1);if(l&&!l.get)return!0;for(var u=0;u<s.length;u++)if(!s.hasOwnProperty(u))return!0;return!1}function a(o){o.O&&ai(3,JSON.stringify(jd(o)))}var i={};ije("ES5",{J:function(o,s){var l=Array.isArray(o),u=function(d,p){if(d){for(var v=Array(p.length),g=0;g<p.length;g++)Object.defineProperty(v,""+g,t(g,!0));return v}var m=roe(p);delete m[qn];for(var x=v0(m),_=0;_<x.length;_++){var w=x[_];m[w]=t(w,d||!!m[w].enumerable)}return Object.create(Object.getPrototypeOf(p),m)}(l,o),c={i:l?5:4,A:s?s.A:Y5(),P:!1,I:!1,R:{},l:s,t:o,k:u,o:null,O:!1,C:!1};return Object.defineProperty(u,qn,{value:c,writable:!0}),u},S:function(o,s,l){l?wh(s)&&s[qn].A===o&&e(o.p):(o.u&&function u(c){if(c&&typeof c=="object"){var d=c[qn];if(d){var p=d.t,v=d.k,g=d.R,m=d.i;if(m===4)yg(v,function(A){A!==qn&&(p[A]!==void 0||p0(p,A)?g[A]||u(v[A]):(g[A]=!0,Yd(d)))}),yg(p,function(A){v[A]!==void 0||p0(v,A)||(g[A]=!1,Yd(d))});else if(m===5){if(n(d)&&(Yd(d),g.length=!0),v.length<p.length)for(var x=v.length;x<p.length;x++)g[x]=!1;else for(var _=p.length;_<v.length;_++)g[_]=!0;for(var w=Math.min(v.length,p.length),T=0;T<w;T++)v.hasOwnProperty(T)||(g[T]=!0),g[T]===void 0&&u(v[T])}}}}(o.p[0]),e(o.p))},K:function(o){return o.i===4?r(o):n(o)}})}var wX,O0,TU=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",uje=typeof Map<"u",cje=typeof Set<"u",TX=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",toe=TU?Symbol.for("immer-nothing"):((wX={})["immer-nothing"]=!0,wX),CX=TU?Symbol.for("immer-draftable"):"__$immer_draftable",qn=TU?Symbol.for("immer-state"):"__$immer_state",fje={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(t){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+t},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(t){return"Cannot apply patch, path doesn't resolve: "+t},16:'Sets cannot have "replace" patches.',17:function(t){return"Unsupported patch operation: "+t},18:function(t){return"The plugin for '"+t+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+t+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(t){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+t+"'"},22:function(t){return"'current' expects a draft, got: "+t},23:function(t){return"'original' expects a draft, got: "+t},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},dje=""+Object.prototype.constructor,v0=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,roe=Object.getOwnPropertyDescriptors||function(t){var e={};return v0(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Z5={},yS={get:function(t,e){if(e===qn)return t;var r=jd(t);if(!p0(r,e))return function(a,i,o){var s,l=_X(i,o);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(a.k):void 0}(t,r,e);var n=r[e];return t.I||!Tf(n)?n:n===mz(t.t,e)?(yz(t),t.o[e]=X5(t.A.h,n,t)):n},has:function(t,e){return e in jd(t)},ownKeys:function(t){return Reflect.ownKeys(jd(t))},set:function(t,e,r){var n=_X(jd(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var a=mz(jd(t),e),i=a==null?void 0:a[qn];if(i&&i.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(eoe(r,a)&&(r!==void 0||p0(t.t,e)))return!0;yz(t),Yd(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return mz(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,yz(t),Yd(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=jd(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){ai(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ai(12)}},s1={};yg(yS,function(t,e){s1[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),s1.deleteProperty=function(t,e){return isNaN(parseInt(e))&&ai(13),s1.set.call(this,t,e,void 0)},s1.set=function(t,e,r){return e!=="length"&&isNaN(parseInt(e))&&ai(14),yS.set.call(this,t[0],e,r,t[0])};var hje=function(){function t(r){var n=this;this.g=TX,this.D=!0,this.produce=function(a,i,o){if(typeof a=="function"&&typeof i!="function"){var s=i;i=a;var l=n;return function(m){var x=this;m===void 0&&(m=s);for(var _=arguments.length,w=Array(_>1?_-1:0),T=1;T<_;T++)w[T-1]=arguments[T];return l.produce(m,function(A){var M;return(M=i).call.apply(M,[x,A].concat(w))})}}var u;if(typeof i!="function"&&ai(6),o!==void 0&&typeof o!="function"&&ai(7),Tf(a)){var c=bX(n),d=X5(n,a,void 0),p=!0;try{u=i(d),p=!1}finally{p?kM(c):q5(c)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(m){return vz(c,o),gz(m,c)},function(m){throw kM(c),m}):(vz(c,o),gz(u,c))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===toe&&(u=void 0),n.D&&SU(u,!0),o){var v=[],g=[];cc("Patches").M(a,u,v,g),o(v,g)}return u}ai(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var c=arguments.length,d=Array(c>1?c-1:0),p=1;p<c;p++)d[p-1]=arguments[p];return n.produceWithPatches(u,function(v){return a.apply(void 0,[v].concat(d))})};var o,s,l=n.produce(a,i,function(u,c){o=u,s=c});return typeof Promise<"u"&&l instanceof Promise?l.then(function(u){return[u,o,s]}):[l,o,s]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Tf(r)||ai(8),wh(r)&&(r=sje(r));var n=bX(this),a=X5(this,r,void 0);return a[qn].C=!0,q5(n),a},e.finishDraft=function(r,n){var a=r&&r[qn];a&&a.C||ai(9),a.I&&ai(10);var i=a.A;return vz(i,n),gz(void 0,i)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!TX&&ai(20),this.g=r},e.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(n=n.slice(a+1));var o=cc("Patches").$;return wh(r)?o(r,n):this.produce(r,function(s){return o(s,n)})},t}(),vs=new hje,noe=vs.produce;vs.produceWithPatches.bind(vs);vs.setAutoFreeze.bind(vs);vs.setUseProxies.bind(vs);vs.applyPatches.bind(vs);vs.createDraft.bind(vs);vs.finishDraft.bind(vs);function bS(t){return bS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bS(t)}function pje(t,e){if(bS(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(bS(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function vje(t){var e=pje(t,"string");return bS(e)==="symbol"?e:String(e)}function gje(t,e,r){return e=vje(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function AX(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function EX(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?AX(Object(r),!0).forEach(function(n){gje(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):AX(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var RX=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),bz=function(){return Math.random().toString(36).substring(7).split("").join(".")},tg={INIT:"@@redux/INIT"+bz(),REPLACE:"@@redux/REPLACE"+bz(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+bz()}};function aoe(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function mje(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(xje(t))return"date";if(bje(t))return"error";var r=yje(t);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function yje(t){return typeof t.constructor=="function"?t.constructor.name:null}function bje(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function xje(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function Iv(t){var e=typeof t;return e=mje(t),e}function ioe(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error("Expected the enhancer to be a function. Instead, received: '"+Iv(r)+"'");return r(ioe)(t,e)}if(typeof t!="function")throw new Error("Expected the root reducer to be a function. Instead, received: '"+Iv(t)+"'");var a=t,i=e,o=[],s=o,l=!1;function u(){s===o&&(s=o.slice())}function c(){if(l)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function d(m){if(typeof m!="function")throw new Error("Expected the listener to be a function. Instead, received: '"+Iv(m)+"'");if(l)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var x=!0;return u(),s.push(m),function(){if(x){if(l)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");x=!1,u();var w=s.indexOf(m);s.splice(w,1),o=null}}}function p(m){if(!aoe(m))throw new Error("Actions must be plain objects. Instead, the actual type was: '"+Iv(m)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof m.type>"u")throw new Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,i=a(i,m)}finally{l=!1}for(var x=o=s,_=0;_<x.length;_++){var w=x[_];w()}return m}function v(m){if(typeof m!="function")throw new Error("Expected the nextReducer to be a function. Instead, received: '"+Iv(m));a=m,p({type:tg.REPLACE})}function g(){var m,x=d;return m={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error("Expected the observer to be an object. Instead, received: '"+Iv(w)+"'");function T(){w.next&&w.next(c())}T();var A=x(T);return{unsubscribe:A}}},m[RX]=function(){return this},m}return p({type:tg.INIT}),n={dispatch:p,subscribe:d,getState:c,replaceReducer:v},n[RX]=g,n}function MX(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function _je(t,e,r,n){var a=Object.keys(e),i=r&&r.type===tg.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(a.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!aoe(t))return"The "+i+' has unexpected type of "'+Iv(t)+'". Expected argument to be an object with the following '+('keys: "'+a.join('", "')+'"');var o=Object.keys(t).filter(function(s){return!e.hasOwnProperty(s)&&!n[s]});if(o.forEach(function(s){n[s]=!0}),!(r&&r.type===tg.REPLACE)&&o.length>0)return"Unexpected "+(o.length>1?"keys":"key")+" "+('"'+o.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+a.join('", "')+'". Unexpected keys will be ignored.')}function Sje(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:tg.INIT});if(typeof n>"u")throw new Error('The slice reducer for key "'+e+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:tg.PROBE_UNKNOWN_ACTION()})>"u")throw new Error('The slice reducer for key "'+e+'" returned undefined when probed with a random type. '+("Don't try to handle '"+tg.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function wje(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var a=e[n];typeof t[a]>"u"&&MX('No reducer provided for key "'+a+'"'),typeof t[a]=="function"&&(r[a]=t[a])}var i=Object.keys(r),o;o={};var s;try{Sje(r)}catch(l){s=l}return function(u,c){if(u===void 0&&(u={}),s)throw s;{var d=_je(u,r,c,o);d&&MX(d)}for(var p=!1,v={},g=0;g<i.length;g++){var m=i[g],x=r[m],_=u[m],w=x(_,c);if(typeof w>"u"){var T=c&&c.type;throw new Error("When called with an action of type "+(T?'"'+String(T)+'"':"(unknown type)")+', the slice reducer for key "'+m+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}v[m]=w,p=p||w!==_}return p=p||i.length!==Object.keys(u).length,p?v:u}}function zM(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Tje(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},s=e.map(function(l){return l(o)});return i=zM.apply(void 0,s)(a.dispatch),EX(EX({},a),{},{dispatch:i})}}}function ooe(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(o){return function(s){return typeof s=="function"?s(a,i,t):o(s)}}};return e}var soe=ooe();soe.withExtraArgument=ooe;const DX=soe;var Cje=globalThis&&globalThis.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Aje=globalThis&&globalThis.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;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=e.call(t,r)}catch(c){u=[6,c],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},$M=globalThis&&globalThis.__spreadArray||function(t,e){for(var r=0,n=e.length,a=t.length;r<n;r++,a++)t[a]=e[r];return t},Eje=Object.defineProperty,Rje=Object.defineProperties,Mje=Object.getOwnPropertyDescriptors,IX=Object.getOwnPropertySymbols,Dje=Object.prototype.hasOwnProperty,Ije=Object.prototype.propertyIsEnumerable,PX=function(t,e,r){return e in t?Eje(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},fh=function(t,e){for(var r in e||(e={}))Dje.call(e,r)&&PX(t,r,e[r]);if(IX)for(var n=0,a=IX(e);n<a.length;n++){var r=a[n];Ije.call(e,r)&&PX(t,r,e[r])}return t},xz=function(t,e){return Rje(t,Mje(e))},Pje=function(t,e,r){return new Promise(function(n,a){var i=function(l){try{s(r.next(l))}catch(u){a(u)}},o=function(l){try{s(r.throw(l))}catch(u){a(u)}},s=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(i,o)};s((r=r.apply(t,e)).next())})},Lje=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?zM:zM.apply(null,arguments)};function loe(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function uoe(t,e){var r=0;return{measureTime:function(n){var a=Date.now();try{return n()}finally{var i=Date.now();r+=i-a}},warnIfExceeded:function(){r>t&&console.warn(e+" took "+r+"ms, which is more than the warning threshold of "+t+`ms. If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions. It is disabled in production builds, so you don't need to worry about that.`)}}}var Oje=function(t){Cje(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=t.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,$M([void 0],r[0].concat(this)))):new(e.bind.apply(e,$M([void 0],r.concat(this))))},e}(Array);function K5(t){return Tf(t)?noe(t,function(){}):t}var kje="Invariant failed";function LX(t,e){if(!t)throw new Error(kje+": "+(e||""))}function Nje(t,e,r,n){return JSON.stringify(t,Bje(e,n),r)}function Bje(t,e){var r=[],n=[];return e||(e=function(a,i){return r[0]===i?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(i)).join(".")+"]"}),function(a,i){if(r.length>0){var o=r.indexOf(this);~o?r.splice(o+1):r.push(this),~o?n.splice(o,1/0,a):n.push(a),~r.indexOf(i)&&(i=e.call(this,a,i))}else r.push(i);return t==null?i:t.call(this,a,i)}}function zje(t){return typeof t!="object"||t==null||Object.isFrozen(t)}function $je(t,e,r){var n=coe(t,e,r);return{detectMutations:function(){return foe(t,e,n,r)}}}function coe(t,e,r,n){e===void 0&&(e=[]),n===void 0&&(n="");var a={value:r};if(!t(r)){a.children={};for(var i in r){var o=n?n+"."+i:i;e.length&&e.indexOf(o)!==-1||(a.children[i]=coe(t,e,r[i],o))}}return a}function foe(t,e,r,n,a,i){e===void 0&&(e=[]),a===void 0&&(a=!1),i===void 0&&(i="");var o=r?r.value:void 0,s=o===n;if(a&&!s&&!Number.isNaN(n))return{wasMutated:!0,path:i};if(t(o)||t(n))return{wasMutated:!1};var l={};for(var u in r.children)l[u]=!0;for(var u in n)l[u]=!0;var c=e.length>0,d=function(v){var g=i?i+"."+v:v;if(c){var m=e.some(function(_){return _ instanceof RegExp?_.test(g):g===_});if(m)return"continue"}var x=foe(t,e,r.children[v],n[v],s,g);if(x.wasMutated)return{value:x}};for(var u in l){var p=d(u);if(typeof p=="object")return p.value}return{wasMutated:!1}}function Fje(t){t===void 0&&(t={});var e=t.isImmutable,r=e===void 0?zje:e,n=t.ignoredPaths,a=t.warnAfter,i=a===void 0?32:a,o=t.ignore;n=n||o;var s=$je.bind(null,r,n);return function(l){var u=l.getState,c=u(),d=s(c),p;return function(v){return function(g){var m=uoe(i,"ImmutableStateInvariantMiddleware");m.measureTime(function(){c=u(),p=d.detectMutations(),d=s(c),LX(!p.wasMutated,"A state mutation was detected between dispatches, in the path '"+(p.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var x=v(g);return m.measureTime(function(){c=u(),p=d.detectMutations(),d=s(c),p.wasMutated&&LX(!p.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(p.path||"")+". Take a look at the reducer(s) handling the action "+Nje(g)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),m.warnIfExceeded(),x}}}}function doe(t){var e=typeof t;return t==null||e==="string"||e==="boolean"||e==="number"||Array.isArray(t)||loe(t)}function Q5(t,e,r,n,a,i){e===void 0&&(e=""),r===void 0&&(r=doe),a===void 0&&(a=[]);var o;if(!r(t))return{keyPath:e||"<root>",value:t};if(typeof t!="object"||t===null||i!=null&&i.has(t))return!1;for(var s=n!=null?n(t):Object.entries(t),l=a.length>0,u=function(x,_){var w=e?e+"."+x:x;if(l){var T=a.some(function(A){return A instanceof RegExp?A.test(w):w===A});if(T)return"continue"}if(!r(_))return{value:{keyPath:w,value:_}};if(typeof _=="object"&&(o=Q5(_,w,r,n,a,i),o))return{value:o}},c=0,d=s;c<d.length;c++){var p=d[c],v=p[0],g=p[1],m=u(v,g);if(typeof m=="object")return m.value}return i&&hoe(t)&&i.add(t),!1}function hoe(t){if(!Object.isFrozen(t))return!1;for(var e=0,r=Object.values(t);e<r.length;e++){var n=r[e];if(!(typeof n!="object"||n===null)&&!hoe(n))return!1}return!0}function Vje(t){t===void 0&&(t={});var e=t.isSerializable,r=e===void 0?doe:e,n=t.getEntries,a=t.ignoredActions,i=a===void 0?[]:a,o=t.ignoredActionPaths,s=o===void 0?["meta.arg","meta.baseQueryMeta"]:o,l=t.ignoredPaths,u=l===void 0?[]:l,c=t.warnAfter,d=c===void 0?32:c,p=t.ignoreState,v=p===void 0?!1:p,g=t.ignoreActions,m=g===void 0?!1:g,x=t.disableCache,_=x===void 0?!1:x,w=!_&&WeakSet?new WeakSet:void 0;return function(T){return function(A){return function(M){var D=A(M),P=uoe(d,"SerializableStateInvariantMiddleware");return!m&&!(i.length&&i.indexOf(M.type)!==-1)&&P.measureTime(function(){var O=Q5(M,"",r,n,s,w);if(O){var k=O.keyPath,N=O.value;console.error("A non-serializable value was detected in an action, in the path: `"+k+"`. Value:",N,` Take a look at the logic that dispatched this action: `,M,` (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,` (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),v||(P.measureTime(function(){var O=T.getState(),k=Q5(O,"",r,n,u,w);if(k){var N=k.keyPath,$=k.value;console.error("A non-serializable value was detected in the state, in the path: `"+N+"`. Value:",$,` Take a look at the reducer(s) handling this action type: `+M.type+`. (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),P.warnIfExceeded()),D}}}}function _z(t){return typeof t=="boolean"}function Uje(){return function(e){return Wje(e)}}function Wje(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,o=i===void 0?!0:i,s=new Oje;r&&(_z(r)?s.push(DX):s.push(DX.withExtraArgument(r.extraArgument)));{if(a){var l={};_z(a)||(l=a),s.unshift(Fje(l))}if(o){var u={};_z(o)||(u=o),s.push(Vje(u))}}return s}var Hje=!1;function Gje(t){var e=Uje(),r=t||{},n=r.reducer,a=n===void 0?void 0:n,i=r.middleware,o=i===void 0?e():i,s=r.devTools,l=s===void 0?!0:s,u=r.preloadedState,c=u===void 0?void 0:u,d=r.enhancers,p=d===void 0?void 0:d,v;if(typeof a=="function")v=a;else if(loe(a))v=wje(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=o;if(typeof g=="function"&&(g=g(e),!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(g.some(function(T){return typeof T!="function"}))throw new Error("each middleware provided to configureStore must be a function");var m=Tje.apply(void 0,g),x=zM;l&&(x=Lje(fh({trace:!Hje},typeof l=="object"&&l)));var _=[m];Array.isArray(p)?_=$M([m],p):typeof p=="function"&&(_=p(_));var w=x.apply(void 0,_);return ioe(v,c,w)}function dh(t,e){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return fh(fh({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}function poe(t){var e={},r=[],n,a={addCase:function(i,o){{if(r.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}var s=typeof i=="string"?i:i.type;if(s in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[s]=o,a},addMatcher:function(i,o){if(n)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:i,reducer:o}),a},addDefaultCase:function(i){if(n)throw new Error("`builder.addDefaultCase` can only be called once");return n=i,a}};return t(a),[e,r,n]}function jje(t){return typeof t=="function"}var OX=!1;function Yje(t,e,r,n){r===void 0&&(r=[]),typeof e=="object"&&(OX||(OX=!0,console.warn("The object notation for `createReducer` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer")));var a=typeof e=="function"?poe(e):[e,r,n],i=a[0],o=a[1],s=a[2],l;if(jje(t))l=function(){return K5(t())};else{var u=K5(t);l=function(){return u}}function c(d,p){d===void 0&&(d=l());var v=$M([i[p.type]],o.filter(function(g){var m=g.matcher;return m(p)}).map(function(g){var m=g.reducer;return m}));return v.filter(function(g){return!!g}).length===0&&(v=[s]),v.reduce(function(g,m){if(m)if(wh(g)){var x=g,_=m(x,p);return _===void 0?g:_}else{if(Tf(g))return noe(g,function(w){return m(w,p)});var _=m(g,p);if(_===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return g},d)}return c.getInitialState=l,c}var kX=!1;function qje(t,e){return t+"/"+e}function vI(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u"&&t.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");var r=typeof t.initialState=="function"?t.initialState:K5(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},o={},s={};a.forEach(function(c){var d=n[c],p=qje(e,c),v,g;"reducer"in d?(v=d.reducer,g=d.prepare):v=d,i[c]=v,o[p]=v,s[c]=g?dh(p,g):dh(p)});function l(){typeof t.extraReducers=="object"&&(kX||(kX=!0,console.warn("The object notation for `createSlice.extraReducers` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice")));var c=typeof t.extraReducers=="function"?poe(t.extraReducers):[t.extraReducers],d=c[0],p=d===void 0?{}:d,v=c[1],g=v===void 0?[]:v,m=c[2],x=m===void 0?void 0:m,_=fh(fh({},p),o);return Yje(r,function(w){for(var T in _)w.addCase(T,_[T]);for(var A=0,M=g;A<M.length;A++){var D=M[A];w.addMatcher(D.matcher,D.reducer)}x&&w.addDefaultCase(x)})}var u;return{name:e,reducer:function(c,d){return u||(u=l()),u(c,d)},actions:s,caseReducers:i,getInitialState:function(){return u||(u=l()),u.getInitialState()}}}var Xje="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Zje=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Xje[Math.random()*64|0];return e},Kje=["name","message","stack","code"],Sz=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),NX=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Qje=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=Kje;r<n.length;r++){var a=n[r];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},Mg=function(){function t(e,r,n){var a=dh(e+"/fulfilled",function(c,d,p,v){return{payload:c,meta:xz(fh({},v||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),i=dh(e+"/pending",function(c,d,p){return{payload:void 0,meta:xz(fh({},p||{}),{arg:d,requestId:c,requestStatus:"pending"})}}),o=dh(e+"/rejected",function(c,d,p,v,g){return{payload:v,error:(n&&n.serializeError||Qje)(c||"Rejected"),meta:xz(fh({},g||{}),{arg:p,requestId:d,rejectedWithValue:!!v,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"})}}),s=!1,l=typeof AbortController<"u"?AbortController:function(){function c(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return c.prototype.abort=function(){s||(s=!0,console.info("This platform does not implement AbortController. \nIf you want to use the AbortController to react to `abort` events, please consider importing a polyfill like 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'."))},c}();function u(c){return function(d,p,v){var g=n!=null&&n.idGenerator?n.idGenerator(c):Zje(),m=new l,x;function _(T){x=T,m.abort()}var w=function(){return Pje(this,null,function(){var T,A,M,D,P,O,k;return Aje(this,function(N){switch(N.label){case 0:return N.trys.push([0,4,,5]),D=(T=n==null?void 0:n.condition)==null?void 0:T.call(n,c,{getState:p,extra:v}),e6e(D)?[4,D]:[3,2];case 1:D=N.sent(),N.label=2;case 2:if(D===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=new Promise(function($,H){return m.signal.addEventListener("abort",function(){return H({name:"AbortError",message:x||"Aborted"})})}),d(i(g,c,(A=n==null?void 0:n.getPendingMeta)==null?void 0:A.call(n,{requestId:g,arg:c},{getState:p,extra:v}))),[4,Promise.race([P,Promise.resolve(r(c,{dispatch:d,getState:p,extra:v,requestId:g,signal:m.signal,abort:_,rejectWithValue:function($,H){return new Sz($,H)},fulfillWithValue:function($,H){return new NX($,H)}})).then(function($){if($ instanceof Sz)throw $;return $ instanceof NX?a($.payload,g,c,$.meta):a($,g,c)})])];case 3:return M=N.sent(),[3,5];case 4:return O=N.sent(),M=O instanceof Sz?o(null,g,c,O.payload,O.meta):o(O,g,c),[3,5];case 5:return k=n&&!n.dispatchConditionRejection&&o.match(M)&&M.meta.condition,k||d(M),[2,M]}})})}();return Object.assign(w,{abort:_,requestId:g,arg:c,unwrap:function(){return w.then(Jje)}})}}return Object.assign(u,{pending:i,rejected:o,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Jje(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function e6e(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var CU="listenerMiddleware";dh(CU+"/add");dh(CU+"/removeAll");dh(CU+"/remove");var BX;typeof queueMicrotask=="function"&&queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis);lje();const t6e={value:[],status:"idle"},wz=Mg("routers/getMenus",async()=>await mU.getMenuWithAuthority()),voe=vI({name:"routers",initialState:t6e,reducers:{mergeRouters:(t,e)=>{t.value.concat(e.payload)},updateRouters:(t,e)=>{t.value=e.payload}},extraReducers:t=>{t.addCase(wz.pending,e=>{e.status="loading"}).addCase(wz.fulfilled,(e,r)=>{e.status="idle",e.value=r.payload}).addCase(wz.rejected,e=>{e.status="failed"})}}),{mergeRouters:_Ye,updateRouters:r6e}=voe.actions,SYe=t=>t.router.value,n6e=voe.reducer,goe="odata:server_name",moe="odata:controller_name";function gI(t,e){return function(r){Reflect.defineMetadata(goe,t,r),Reflect.defineMetadata(moe,e||r.name+"s",r)}}var a6e=Object.defineProperty,i6e=Object.getOwnPropertyDescriptor,o6e=(t,e,r,n)=>{for(var a=n>1?void 0:n?i6e(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&a6e(e,r,a),a};let J5=class{constructor(){bt(this,"id");bt(this,"pisplayName");bt(this,"avatar");bt(this,"activated");bt(this,"changed");bt(this,"organizationId");bt(this,"userName");bt(this,"email");bt(this,"phoneNumber")}};J5=o6e([gI("admin")],J5);var s6e=Object.defineProperty,l6e=Object.getOwnPropertyDescriptor,u6e=(t,e,r,n)=>{for(var a=n>1?void 0:n?l6e(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&s6e(e,r,a),a};let zX=class{constructor(){bt(this,"id");bt(this,"code");bt(this,"name");bt(this,"soLuong");bt(this,"min");bt(this,"sec");bt(this,"configStoreExams")}};zX=u6e([gI("rq")],zX);var c6e=Object.defineProperty,f6e=Object.getOwnPropertyDescriptor,d6e=(t,e,r,n)=>{for(var a=n>1?void 0:n?f6e(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&c6e(e,r,a),a};let $X=class{constructor(){bt(this,"storeExamId");bt(this,"groupQuestionId");bt(this,"soLuong");bt(this,"tongDiem");bt(this,"rank")}};$X=d6e([gI("rq")],$X);var h6e=Object.defineProperty,p6e=Object.getOwnPropertyDescriptor,v6e=(t,e,r,n)=>{for(var a=n>1?void 0:n?p6e(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&h6e(e,r,a),a};let FX=class{constructor(){bt(this,"id");bt(this,"soLuong");bt(this,"tongDiem");bt(this,"rank")}};FX=v6e([gI("rq")],FX);function g6e(t,e="auth"){const{logout:r}=yU(),n=Y.useMemo(()=>({serverName:Reflect.getMetadata(goe,t),controllerName:Reflect.getMetadata(moe,t)}),[t]),a=Y.useMemo(()=>`/${n.serverName}/${e}/${n.controllerName}`,[e,n.controllerName,n.serverName]),i=Y.useCallback(({url:u,config:c}={})=>Gie(`${a}${u||""}`,c||{},{logout:r}),[a,r]),o=({url:u,body:c,config:d}={})=>j5(`${a}${u}`,c,{...d,logout:r}),s=({url:u,config:c}={})=>Yie(`${a}${u}`),l=Y.useCallback(({url:u,body:c,config:d}={})=>jie(`${a}${u}`,c),[a,r]);return{get:i,deleteMethod:s,post:o,path:l}}function m6e(t,e){return g6e(t,`${e}`)}function y6e(){const t=m6e(J5,"allow");return{getAllMenus:()=>t.get({url:"/Menus"})}}const yoe=Y.createContext({});function b6e({children:t}){let{isAuthenticated:e}=yU();const{getAllMenus:r}=y6e(),[n,a]=Y.useState(yX),i=jxe();return Y.useEffect(()=>{e&&r().then(({resultObj:o,isSuccessed:s})=>{s&&(a([...yX]),i(r6e(o)))}).catch(()=>{})},[i,e]),re.jsx(yoe.Provider,{value:{menus:n},children:t})}const x6e={isAuthenticated:!1,isInitialised:!1,user:null,status:"idle"},boe=t=>{t?localStorage.setItem("info",JSON.stringify(t)):(localStorage.removeItem("info"),delete il.defaults.headers.common.Authorization)},Tz=Mg("auth/login",async t=>{await OM.loginAccount(t);const{resultObj:e}=await mU.getDetail(),r={name:e.displayName,avatar:null,id:"admin",...e};return boe(r),{user:r,isAuthenticated:!0}}),Cz=Mg("auth/register",async t=>{const e=await il.post("/api/auth/register",t),{user:r}=e.data;return{user:r,isAuthenticated:!0}});Mg("auth/logout",async t=>(await OM.logoutAccount(),boe(null),{user:null,isAuthenticated:!1,navigation:t}));const _6e=vI({name:"auth",initialState:x6e,reducers:{updateUser:(t,e)=>{t.user=e.payload},initMain:(t,e)=>{t.user=e.payload.user,t.isInitialised=!0,t.isAuthenticated=e.payload.isAuthenticated}},extraReducers:t=>{t.addCase(Tz.pending,e=>{e.status="loading"}).addCase(Tz.fulfilled,(e,r)=>{e.status="idle",e.user=r.payload.user,e.isAuthenticated=r.payload.isAuthenticated}).addCase(Tz.rejected,e=>{e.status="failed"}),t.addCase(Cz.pending,e=>{e.status="loading"}).addCase(Cz.fulfilled,(e,r)=>{e.status="idle",e.user=r.payload.user,e.isAuthenticated=r.payload.isAuthenticated,r.payload.navigation("/session/signin")}).addCase(Cz.rejected,e=>{e.status="failed"})}}),S6e=_6e.reducer,w6e="GET_PRODUCT_LIST",xoe="GET_CART_LIST",T6e="GET_CATEGORY_LIST",C6e="GET_RATING_LIST",A6e="GET_BRAND_LIST",E6e="ADD_PRODUCT_TO_CART",_oe="DELETE_PRODUCT_FROM_CART",Soe="UPDATE_CART_AMOUNT",wYe=t=>e=>{Dh.get("/api/ecommerce/get-cart-list",{data:t}).then(r=>{e({type:xoe,payload:r.data})})},TYe=(t,e)=>r=>{Dh.post("/api/ecommerce/delete-from-cart",{uid:t,productId:e}).then(n=>{r({type:_oe,payload:n.data})})},CYe=(t,e,r)=>n=>{console.log(t,e,r),Dh.post("/api/ecommerce/update-cart-amount",{uid:t,productId:e,amount:r}).then(a=>{n({type:Soe,payload:a.data})})},R6e={productList:[],cartList:[]},M6e=function(t=R6e,e){switch(e.type){case w6e:return{...t,productList:[...e.payload]};case T6e:return{...t,categoryList:[...e.payload]};case C6e:return{...t,ratingList:[...e.payload]};case A6e:return{...t,brandList:[...e.payload]};case xoe:return{...t,cartList:[...e.payload]};case E6e:return{...t,cartList:[...e.payload]};case _oe:return{...t,cartList:[...e.payload]};case Soe:return{...t,cartList:[...e.payload]};default:return{...t}}},D6e=[{name:"Dashboard",path:"/dashboard/default",icon:"dashboard"},{label:"Chức năng",type:"label"}],I6e={value:D6e,status:"idle"},P6e=vI({name:"navigation",initialState:I6e,reducers:{update:(t,e)=>{t.value=e.payload}}}),L6e=P6e.reducer,O6e={value:[],status:"idle"},Az=Mg("notification/get",async()=>(await Dh.get("/api/notification")).data),k6e=Mg("notification/delete",async t=>(await Dh.post("/api/notification/delete",{id:t})).data),N6e=Mg("notification/deleteAll",async()=>(await Dh.post("/api/notification/delete-all")).data),B6e=vI({name:"notification",initialState:O6e,reducers:{clear:t=>{t.value=[]}},extraReducers:t=>{t.addCase(Az.pending,e=>{e.status="loading"}).addCase(Az.fulfilled,(e,r)=>{e.status="idle",e.value=r.payload}).addCase(Az.rejected,e=>{e.status="failed"}).addCase(k6e.fulfilled,(e,r)=>{console.log(" deleted"),e.value=r.payload}).addCase(N6e.fulfilled,(e,r)=>{console.log("clear"),e.value=r.payload})}}),AYe=t=>t.notifications.value,z6e=B6e.reducer,$6e={reducer:{notifications:z6e,navigations:L6e,ecommerce:M6e,router:n6e,auth:S6e}},F6e=Gje($6e);const V6e=()=>{const{menus:t}=Y.useContext(yoe);return R0e(t)},U6e=()=>re.jsx(bQ,{store:F6e,children:re.jsx(VSe,{children:re.jsx(W4e,{children:re.jsx(hGe,{children:re.jsx(b6e,{children:re.jsx(V6e,{})})})})})});G_.render(re.jsx(bZ,{injectFirst:!0,children:re.jsxs(q0e,{children:[re.jsx(MF,{}),re.jsx(U6e,{})]})}),document.getElementById("root"));export{uYe as $,N1 as A,mSe as B,vj as C,vSe as D,ns as E,f1 as F,oK as G,hj as H,oc as I,age as J,sYe as K,DQ as L,_ge as M,jxe as N,VF as O,TF as P,yU as Q,sg as R,MQ as S,vve as T,wYe as U,oD as V,CYe as W,gSe as X,ySe as Y,TYe as Z,oe as _,fn as a,JH as a$,iYe as a0,SYe as a1,pYe as a2,D6e as a3,bi as a4,Q1e as a5,lYe as a6,AYe as a7,Az as a8,k6e as a9,Oue as aA,Pv as aB,B1 as aC,hge as aD,Nme as aE,AK as aF,Ume as aG,Bge as aH,Zge as aI,Wge as aJ,fy as aK,r4 as aL,Zy as aM,us as aN,yF as aO,jhe as aP,B4 as aQ,mR as aR,Th as aS,mK as aT,Bme as aU,Rge as aV,Cme as aW,uy as aX,the as aY,rg as aZ,Cf as a_,UK as aa,aYe as ab,N6e as ac,dYe as ad,cYe as ae,JZ as af,qSe as ag,Q6e as ah,J6e as ai,vYe as aj,fYe as ak,mk as al,qF as am,bF as an,Nye as ao,pce as ap,vhe as aq,m0 as ar,VM as as,Xbe as at,hYe as au,FZ as av,V4 as aw,Wye as ax,Bye as ay,Z6e as az,Y as b,DZ as b$,bce as b0,$0 as b1,z0 as b2,x0 as b3,q6e as b4,$ve as b5,dme as b6,Mz as b7,d_ as b8,_0 as b9,$he as bA,UZ as bB,_R as bC,mU as bD,_S as bE,g0 as bF,WZ as bG,Ch as bH,N0 as bI,m6e as bJ,$X as bK,FX as bL,zX as bM,CF as bN,Qr as bO,il as bP,RF as bQ,Xhe as bR,X6e as bS,upe as bT,xYe as bU,tYe as bV,H6e as bW,Qde as bX,vje as bY,VZ as bZ,Ipe as b_,Dd as ba,Xp as bb,Rve as bc,xS as bd,ng as be,tZ as bf,ZX as bg,dk as bh,ag as bi,gce as bj,vF as bk,ol as bl,XM as bm,TZ as bn,ls as bo,Y6e as bp,TS as bq,mYe as br,xF as bs,gR as bt,Dh as bu,gYe as bv,yYe as bw,bYe as bx,gF as by,ghe as bz,zt as c,EX as c0,Fz as c1,bS as c2,gje as c3,j6e as c4,T0 as c5,Bpe as c6,nYe as c7,eYe as c8,rYe as c9,Hve as ca,WK as cb,G6e as cc,G_ as cd,K6e as ce,Eh as d,Gt as e,ar as f,nn as g,_n as h,eZ as i,re as j,ZM as k,af as l,Ace as m,Bo as n,eF as o,E as p,Fxe as q,Af as r,nt as s,Vxe as t,hn as u,Wxe as v,wD as w,fl as x,oYe as y,B0 as z};